:root {
  --bg: #050705;
  --bg-2: #090c09;
  --surf: #0c100d;
  --accent: #87ff32;
  --accent-2: #55e820;
  --deep: #163c1a;
  --text: #f3f5f1;
  --muted: #989f98;
  --ink: #081006;
  --line: rgba(135, 255, 50, 0.18);
  --line-weak: rgba(243, 245, 241, 0.08);
  --max: 1440px;
  --pad: clamp(22px, 5vw, 80px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-d: "Space Grotesk", sans-serif;
  --font-b: "Inter", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-b); }
body { min-height: 100%; line-height: 1.55; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: var(--pad); top: 12px; z-index: 80; background: var(--accent); color: var(--ink); padding: 8px 12px; }
.wrap { width: min(var(--max), 100%); margin: 0 auto; padding: 0 var(--pad); }
.lab { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { font-family: var(--font-d); font-weight: 600; letter-spacing: -0.045em; line-height: 0.96; margin: 0; }
.display { font-size: clamp(48px, 8vw, 132px); }
.section-h { font-size: clamp(40px, 6vw, 88px); }
.green { color: var(--accent); }
.muted { color: var(--muted); }
.indent { padding-left: clamp(24px, 8vw, 120px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; font-size: 13px; transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.btn.pri { background: var(--accent); color: var(--ink); }
.btn.pri:hover { background: var(--accent-2); transform: scale(1.015); }
.btn.pri:active { transform: scale(0.985); }
.btn.ghost { border: 1px solid var(--line-weak); color: var(--text); background: transparent; }
.btn.ghost:hover { border-color: var(--accent); }
.btn .arr { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }

.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); z-index: 70; transform-origin: left; }
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 76px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo links end";
  align-items: center; gap: 24px;
  padding: 0 var(--pad); transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(5, 7, 5, 0.82); backdrop-filter: blur(16px); border-bottom-color: rgba(255,255,255,.06); }
.nav .logo { display: flex; width: 64px; grid-area: logo; }
.nav .logo img { width: 64px; height: 64px; object-fit: contain; }
.nav-links { display: flex; justify-content: center; gap: clamp(16px, 2.4vw, 36px); grid-area: links; }
.nav-links a { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--text); }
.nav-links a:hover::after, .nav-links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav-end { display: flex; align-items: center; gap: 10px; grid-area: end; justify-self: end; }
.nav-cta { display: flex; gap: 10px; }
.nav-cta .btn { min-height: 42px; padding: 0 16px; font-size: 12px; }
.burger { display: none; width: 44px; height: 44px; position: relative; flex: none; }
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: 12px; right: 12px; height: 1px; background: var(--text); transition: .3s var(--ease);
}
.burger span { top: 50%; }
.burger span::before, .burger span::after { content: ""; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.burger.open span { background: transparent; }
.burger.open span::before { top: 0; transform: rotate(45deg); }
.burger.open span::after { top: 0; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; background: #050705; display: none; flex-direction: column;
  justify-content: center; padding: 100px var(--pad) 40px; gap: 22px;
}
.menu.open { display: flex; }
.menu a { font-family: var(--font-d); font-size: clamp(32px, 8vw, 56px); letter-spacing: -.04em; }

.hero { min-height: 100svh; display: flex; flex-direction: column; padding: 110px 0 0; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr); gap: 24px; align-items: center; flex: 1; }
.hero-copy { position: relative; z-index: 2; padding-bottom: 48px; }
.hero .eyebrow { margin-bottom: 28px; }
.hero p.lead { max-width: 520px; color: var(--muted); margin: 28px 0 32px; font-size: 17px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.micro { margin-top: 22px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero-visual { position: relative; height: min(62vh, 640px); display: grid; place-items: center; }
.glow {
  position: absolute; width: 70%; height: 70%; border-radius: 50%;
  background: radial-gradient(circle, rgba(112,255,48,.16), transparent 68%);
  filter: blur(8px); pointer-events: none;
}
.grid-bg {
  position: absolute; inset: 8% 0 0; opacity: .22;
  background-image:
    linear-gradient(rgba(135,255,50,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135,255,50,.12) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 75%);
}
.device {
  position: relative; z-index: 1; width: min(86%, 520px);
  transform: translate3d(8%, 4%, 0);
}
.device img { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0,0,0,.55)); }
.tag { display: none; }
.ticker {
  border-top: 1px solid var(--line-weak); overflow: hidden; white-space: nowrap;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: 16px 0;
}
.ticker-track { display: inline-block; animation: marquee 28s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.why { padding: 88px 0 40px; }
.why-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; margin-bottom: 72px; }
.why-head p { color: var(--muted); max-width: 420px; margin: 0; }
.feats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-weak); border-bottom: 1px solid var(--line-weak); }
.feat { padding: 36px 28px 40px; border-right: 1px solid var(--line-weak); position: relative; overflow: hidden; transition: background .35s; }
.feat:last-child { border-right: 0; }
.feat::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.feat:hover { background: #0e140f; }
.feat:hover::after { transform: scaleX(1); }
.feat:hover svg { stroke: var(--accent); transform: translateY(-3px); }
.feat .n { font-family: var(--font-d); font-size: 13px; color: var(--accent); letter-spacing: .14em; }
.feat svg { margin: 18px 0 16px; transition: stroke .3s, transform .3s var(--ease); }
.feat h3 { font-size: clamp(22px, 2vw, 28px); margin-bottom: 12px; }
.feat p { margin: 0; color: var(--muted); font-size: 14.5px; }

.product { padding: 110px 0; background: linear-gradient(180deg, var(--bg), #081108 55%, var(--bg)); }
.product-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.map-stage { position: relative; min-height: 520px; display: grid; place-items: center; }
.map-stage svg.world { width: 100%; height: auto; opacity: .55; }
.product-device { position: absolute; width: min(58%, 340px); }
.stats { display: flex; gap: 28px; margin: 32px 0; }
.stats b { display: block; font-family: var(--font-d); font-size: 13px; letter-spacing: .14em; }
.stats span { color: var(--muted); font-size: 12px; }

.global { padding: 100px 0 80px; }
.global-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.net { width: 100%; height: auto; }
.servers { display: flex; flex-direction: column; }
.srv {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line-weak); cursor: pointer; text-align: left;
}
.srv .dot { width: 8px; height: 8px; border-radius: 50%; background: #3a413a; }
.srv.on { border-color: var(--line); }
.srv.on .dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(135,255,50,.12); }
.srv .code { color: var(--muted); font-size: 12px; letter-spacing: .14em; }
.status { font-size: 10px; letter-spacing: .16em; color: var(--accent); opacity: 0; }
.srv.on .status { opacity: 1; }
.srv p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.secu { padding: 110px 0; }
.secu-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.rows { margin-top: 40px; }
.row { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; border-top: 1px solid var(--line-weak); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.row:last-child { border-bottom: 1px solid var(--line-weak); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(1.15); } }
.shield { width: min(100%, 420px); margin-left: auto; }

.steps { padding: 90px 0 70px; }
.track { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: start; margin-top: 56px; }
.step h3 { font-size: 28px; margin: 10px 0 8px; }
.step p { color: var(--muted); margin: 0; }
.line { height: 1px; background: var(--line); margin-top: 22px; transform-origin: left; }

.access { padding: 90px 0 80px; }
.cabinet-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.cabinet-cta > div { padding: 32px 28px; border: 1px solid var(--line-weak); background: var(--surf); }
.cabinet-cta h3 { font-size: 28px; margin: 14px 0 12px; }
.cabinet-cta p { color: var(--muted); margin: 0 0 24px; max-width: 420px; }

.acct-body .acct { padding: 128px 0 80px; min-height: 100svh; }
.acct .eyebrow { margin-bottom: 18px; }
.acct .lead { max-width: 520px; color: var(--muted); margin: 18px 0 36px; }
.acct-err { color: #ffb4b4; margin: 16px 0 0; }
.auth-card { max-width: 460px; }
.auth-panel, .dash-panel { padding: 28px; border: 1px solid var(--line-weak); background: var(--surf); }
.auth-panel { border-bottom: 0; }
.auth-panel .btn, .dash-panel .btn { margin-top: 8px; }
.auth-switch {
  display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-weak);
  border-top: 0; background: #080b08;
}
.auth-tab {
  min-height: 52px; letter-spacing: .12em; text-transform: uppercase; font-size: 12px;
  font-weight: 600; color: var(--muted); position: relative;
}
.auth-tab.on { color: var(--ink); background: var(--accent); }
.auth-tab:not(.on):hover { color: var(--text); }
.nav-nick {
  max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-transform: none; letter-spacing: 0; font-size: 13px;
}
.remain-num { font-size: clamp(36px, 5vw, 56px); margin: 8px 0 6px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 8px; }
.plan {
  min-height: 72px; padding: 14px 10px; border: 1px solid var(--line-weak);
  background: #080b08; text-align: center; letter-spacing: .08em; text-transform: uppercase;
  font-size: 12px; font-weight: 600; color: var(--text);
}
.plan b { display: block; font-family: var(--font-d); font-size: 18px; letter-spacing: -.03em; text-transform: none; margin-bottom: 4px; }
.tg-bind { margin-top: 16px; }
.field { display: grid; gap: 8px; margin-top: 16px; }
.field span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.field input, .copy-row input {
  width: 100%; min-height: 48px; background: #050705; border: 1px solid var(--line-weak);
  color: var(--text); padding: 0 14px; font: 15px/1.4 var(--font-b);
}
.field input:focus, .copy-row input:focus { border-color: var(--accent); outline: none; }
.form-msg { min-height: 1.4em; color: #ffb4b4; font-size: 13px; margin: 8px 0 0; }
.tg-box { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line-weak); }
.tg-box .small, .muted.small { font-size: 13px; margin-top: 10px; }
.dash-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin: 28px 0 32px; }
.dash-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px; }
.dash-panel h2 { font-size: 32px; margin: 10px 0 16px; }
.dash-panel.extra { margin-top: 16px; }
.locs { display: grid; gap: 0; }
.loc { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-weak); }
.loc .dot { width: 8px; height: 8px; border-radius: 50%; background: #3a413a; }
.loc .dot.on { background: var(--accent); }
.loc .code { font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.pill { display: inline-flex; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 6px 0; }
.pill.on { color: var(--accent); }
.pill.wait { color: #d6c56a; }
.pill.off { color: var(--muted); }
.copy-row { display: flex; gap: 8px; }
.copy-row input { font-family: ui-monospace, monospace; font-size: 12px; }
.pass-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.pass-row .btn { min-height: 48px; }

@media (max-width: 1100px) {
  .cabinet-cta, .dash-grid, .pass-row, .plans { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cabinet-cta, .dash-grid, .plans { grid-template-columns: 1fr; }
  .copy-row { flex-direction: column; }
}

.faq { padding: 80px 0 60px; }
.acc { margin-top: 40px; border-top: 1px solid var(--line-weak); }
.acc-item { border-bottom: 1px solid var(--line-weak); }
.acc-btn { width: 100%; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 0; text-align: left; font-family: var(--font-d); font-size: clamp(18px, 2vw, 24px); letter-spacing: -.03em; }
.acc-btn:hover { color: var(--accent); transform: translateX(4px); }
.acc-btn .plus { width: 22px; height: 22px; position: relative; flex: none; transition: transform .3s, color .3s; }
.acc-btn .plus::before, .acc-btn .plus::after { content: ""; position: absolute; background: currentColor; }
.acc-btn .plus::before { left: 0; right: 0; top: 10px; height: 1px; }
.acc-btn .plus::after { top: 0; bottom: 0; left: 10px; width: 1px; }
.acc-btn[aria-expanded="true"] .plus { transform: rotate(45deg); color: var(--accent); }
.acc-panel { display: none; color: var(--muted); max-width: 720px; padding: 0 0 22px; }
.acc-item.open .acc-panel { display: block; }

.end { min-height: 86svh; display: grid; place-items: center; text-align: center; padding: 100px var(--pad); position: relative; overflow: hidden; }
.end .logo { width: 120px; margin: 0 auto 28px; }
.end p { color: var(--muted); max-width: 420px; margin: 22px auto 32px; }
.end-bg { position: absolute; inset: 0; opacity: .18; pointer-events: none; }

.foot { border-top: 1px solid var(--line); padding: 48px 0 28px; background: #050705; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot .logo { width: 88px; }
.foot h4 { font-size: 11px; letter-spacing: .16em; margin: 0 0 14px; }
.foot a, .foot p { color: var(--muted); font-size: 14px; display: block; margin: 0 0 8px; }
.foot a:hover { color: var(--text); }
.legal { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line-weak); display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; letter-spacing: .08em; }

.reveal { opacity: 0; transform: translateY(18px); animation: none; }
.reveal.in { animation: up .8s var(--ease) forwards; }
.mask { overflow: hidden; display: block; }
.mask span { display: block; transform: translateY(110%); }
.in .mask span { animation: up .9s var(--ease) forwards; }
@keyframes up { to { opacity: 1; transform: none; } }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(5,7,5,.72); display: grid; place-items: center; padding: 24px; }
.modal .box { width: min(480px, 100%); background: var(--surf); border: 1px solid var(--line); padding: 28px; }
.modal h2 { font-size: 32px; margin-bottom: 12px; }
.modal p { color: var(--muted); }

@media (hover: hover) and (pointer: fine) {
  .nav-cta .btn.pri, .hero .btn.pri { will-change: transform; }
}
@media (max-width: 1100px) {
  .hero-grid, .why-head, .product-grid, .global-grid, .secu-grid, .foot-grid { grid-template-columns: 1fr 1fr; }
  .feats { grid-template-columns: 1fr 1fr; }
  .feat:nth-child(2) { border-right: 0; }
  .track { grid-template-columns: 1fr; }
  .line { width: 1px; height: 40px; margin: 8px 0 8px 10px; }
  .nav-links { display: none; }
  .burger { display: block; }
  .device { transform: none; width: min(70%, 420px); }
  .tag { display: none; }
}
@media (max-width: 760px) {
  html, body { overflow-x: hidden; }
  .wrap { padding: 0 18px; }
  .nav { height: 64px; gap: 12px; padding: 0 16px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .nav .logo, .nav .logo img { width: 48px; height: 48px; }
  .hero { padding-top: 88px; }
  .hero-grid, .why-head, .product-grid, .global-grid, .secu-grid, .foot-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 42vh; order: -1; }
  .device { width: 72%; }
  .feats { grid-template-columns: 1fr; }
  .feat { border-right: 0; }
  .nav-cta { display: none; }
  .stats { flex-direction: column; gap: 12px; }
  .legal { flex-direction: column; }
  .end { min-height: auto; padding: 80px 16px; }
  .menu { padding: 88px 20px 48px; gap: 18px; }
  .menu a, .menu .btn { font-size: clamp(26px, 8vw, 40px); width: auto; min-height: 0; clip-path: none; padding: 0; text-transform: none; letter-spacing: -.04em; justify-content: flex-start; }
  .acct-body .acct { padding: 96px 0 56px; }
  .acct .lead { margin: 14px 0 24px; font-size: 15px; }
  .auth-card { max-width: none; }
  .auth-panel, .dash-panel { padding: 20px 16px; }
  .auth-tab { min-height: 48px; font-size: 11px; }
  .auth-panel .btn, .tg-box .btn, .dash-panel .btn { width: 100%; }
  .dash-head { flex-direction: column; }
  .dash-head #out { display: none; }
  .dash-grid, .dash-panel.extra { width: 100%; }
  .dash-panel h2, .remain-num { font-size: 28px; }
  .plans { grid-template-columns: 1fr; }
  .plan { min-height: 52px; display: flex; align-items: center; justify-content: space-between; text-align: left; padding: 12px 16px; }
  .plan b { display: inline; margin: 0 10px 0 0; font-size: 16px; }
  .pass-row { grid-template-columns: 1fr; }
  .field input, .copy-row input { font-size: 16px; }
  .section-h { font-size: clamp(36px, 11vw, 56px); }
  .indent { padding-left: 0; }
}
@media (pointer: coarse) {
  .device { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .pulse, .reveal, .in .mask span { animation: none !important; }
  .reveal, .mask span { opacity: 1; transform: none; }
}
