/* ============================================================
   STEALTHNET — premium marketing site. Design system.
   OLED-dark · purple brand (#717171) · connected-green · Inter.
   Glassmorphism · bento · grain · spring motion.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #141414;
  --bg-2: #181818;
  --surface: #1e1e1e;
  --surface-2: #272727;
  --glass: rgba(37, 37, 37, 0.55);
  --glass-brd: rgba(255, 255, 255, 0.09);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hi: rgba(255, 255, 255, 0.16);
  --text: #f4f2f8;
  --text-dim: #b1b1b1;
  --text-mute: #777777;
  --accent: #717171;
  --accent-hi: #a7a7a7;
  --accent-2: #535353;
  --accent-3: #969696;
  --glow: rgba(255, 255, 255, 0.5);
  --ok: #34d399;
  --warn: #ffffff;
  --danger: #f87171;
  --maxw: 1200px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(255, 255, 255, 0.35); color: #fff; }

/* ---- Ambient mesh + grain ---- */
.bg-mesh { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(50% 40% at 50% -8%, rgba(255, 255, 255, 0.22), transparent 70%),
    radial-gradient(35% 35% at 88% 8%, rgba(83, 83, 83, 0.12), transparent 70%),
    radial-gradient(40% 40% at 8% 30%, rgba(255, 255, 255, 0.10), transparent 70%);
}
.bg-grain { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.section { padding: 110px 0; position: relative; z-index: 1; }
.center { text-align: center; }
.grad { background: linear-gradient(110deg, #dcdcdc 0%, #717171 45%, #535353 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .06s; }
.reveal[data-d="2"] { transition-delay: .12s; }
.reveal[data-d="3"] { transition-delay: .18s; }
.reveal[data-d="4"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } * { animation: none !important; } }

/* ---- Nav ---- */
.nav { position: sticky; top: 0; z-index: 100; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(22, 18, 31, 0.78); backdrop-filter: blur(20px) saturate(1.3); border-bottom: 1px solid var(--glass-brd); }

/* ---- Language switcher ---- */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 13px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--text-dim);
  background: var(--surface); border: 1px solid var(--card-border); transition: border-color .18s, color .18s; }
.lang-btn:hover { color: var(--text); border-color: var(--card-border-hi); }
.lang-btn svg { transition: transform .2s var(--ease); }
.lang.open .lang-btn svg { transform: rotate(180deg); }
.lang-menu { position: absolute; top: 48px; right: 0; min-width: 130px; background: var(--surface); border: 1px solid var(--card-border-hi); border-radius: 12px; padding: 6px; box-shadow: 0 20px 50px -16px rgba(0,0,0,.7); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s, transform .16s var(--ease), visibility .16s; z-index: 120; }
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button { display: flex; width: 100%; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 9px; background: none; border: 0; color: var(--text-dim); font-size: 14px; font-weight: 500; text-align: left; transition: background .14s, color .14s; }
.lang-menu button:hover { background: var(--surface-2); color: var(--text); }
.lang-menu button.on { color: var(--accent-hi); }

/* ---- Feature grid (Возможности) ---- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.feat { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--card-border); border-radius: 20px; padding: 26px; transition: border-color .25s, transform .25s var(--ease); }
.feat:hover { border-color: var(--card-border-hi); transform: translateY(-4px); }
.feat::after { content: ""; position: absolute; width: 200px; height: 200px; right: -70px; top: -70px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255,.16), transparent 70%); opacity: 0; transition: opacity .35s; }
.feat:hover::after { opacity: 1; }
.feat .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 17px; color: var(--accent-hi);
  background: linear-gradient(150deg, rgba(255, 255, 255,.22), rgba(83, 83, 83,.10)); border: 1px solid rgba(255, 255, 255,.22); }
.feat h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.feat p { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.nav-in { display: flex; align-items: center; gap: 30px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand .logo { width: 33px; height: 33px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; color: #fff; font-size: 17px;
  background: linear-gradient(150deg, #999999, #555555); box-shadow: 0 8px 24px -6px var(--glow), inset 0 1px 0 rgba(255,255,255,.35); }
.nav-links { display: flex; gap: 28px; margin-left: auto; align-items: center; }
.nav-links > a { color: var(--text-dim); font-size: 14.5px; font-weight: 500; transition: color .18s; }
.nav-links > a:hover { color: var(--text); }
.btn-nav { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 17px; border-radius: 12px; color: #fff !important; font-weight: 600; font-size: 14px;
  background: var(--accent); box-shadow: 0 10px 26px -10px var(--glow); transition: transform .2s var(--ease), box-shadow .2s; }
.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px var(--glow); }
.burger { display: none; background: none; border: 0; color: var(--text); margin-left: auto; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 28px; border-radius: 15px;
  font-weight: 600; font-size: 15.5px; border: 1px solid transparent; transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-lg { height: 58px; padding: 0 34px; font-size: 16.5px; }
.btn-primary { color: #fff; background: linear-gradient(135deg, #999999, #555555); box-shadow: 0 18px 44px -14px var(--glow), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { box-shadow: 0 24px 54px -14px var(--glow); }
.btn-glass { color: var(--text); background: var(--glass); border-color: var(--glass-brd); backdrop-filter: blur(12px); }
.btn-glass:hover { border-color: var(--card-border-hi); background: rgba(28,28,40,.7); }

/* ---- Badge / eyebrow ---- */
.badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 100px; font-size: 13px; font-weight: 600;
  color: var(--text-dim); background: var(--glass); border: 1px solid var(--glass-brd); backdrop-filter: blur(10px); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.eyebrow { display: inline-block; color: var(--accent-hi); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
h2.title { font-size: clamp(30px, 4.4vw, 50px); letter-spacing: -0.035em; font-weight: 800; line-height: 1.06; }
.lead { color: var(--text-dim); font-size: 18px; max-width: 580px; margin-top: 16px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---- Hero ---- */
.hero { padding: 76px 0 40px; text-align: center; }
h1.h1 { font-size: clamp(42px, 7vw, 86px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 900; margin: 24px 0 22px; }
.hero .sub { font-size: clamp(16px, 2vw, 21px); color: var(--text-dim); max-width: 640px; margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 13.5px; color: var(--text-mute); }

/* ---- App mockup (recreated) ---- */
.stage { position: relative; margin: 66px auto 0; max-width: 500px; perspective: 1400px; }
.stage .halo { position: absolute; inset: -60px -20px; background: radial-gradient(50% 50% at 50% 40%, var(--glow), transparent 70%); filter: blur(30px); opacity: .5; z-index: 0; }
.appwin { position: relative; z-index: 1; border-radius: 26px; background: linear-gradient(180deg, #101017, #0a0a10); border: 1px solid var(--card-border-hi);
  box-shadow: 0 60px 140px -50px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.03) inset; overflow: hidden; animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotateX(0); } 50% { transform: translateY(-12px) rotateX(1.5deg); } }
.appbar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--card-border); }
.appbar .tl { display: flex; gap: 7px; } .appbar .tl i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.appbar .tl i:nth-child(1) { background: #6f6f6f; } .appbar .tl i:nth-child(2) { background: #9a9a9a; } .appbar .tl i:nth-child(3) { background: #8a8a8a; }
.appbar .ttl { margin: 0 auto; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--text-mute); }
.appbody { padding: 30px 26px 32px; }
.orb-wrap { display: grid; place-items: center; padding: 8px 0 20px; }
.orb { position: relative; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #0f2318, #0a0a10); border: 2px solid rgba(52,211,153,.35); }
.orb::before, .orb::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid rgba(52,211,153,.25); animation: ring 3s ease-out infinite; }
.orb::after { animation-delay: 1.5s; }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }
.orb svg { filter: drop-shadow(0 0 14px rgba(52,211,153,.6)); }
.stat-line { text-align: center; color: var(--ok); font-weight: 700; letter-spacing: .34em; font-size: 12px; margin-bottom: 4px; }
.stat-sub { text-align: center; color: var(--text-mute); font-size: 12px; font-family: var(--mono); }
.mrow { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--card-border); border-radius: 15px; padding: 13px 15px; margin-top: 12px; }
.mrow .fl { width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255,.12); display: grid; place-items: center; font-size: 17px; }
.mrow .nm { font-weight: 600; font-size: 14px; } .mrow .sub2 { font-size: 11px; color: var(--text-mute); }
.mrow .ping { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-dim); font-family: var(--mono); }
.mrow .ping i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.mcell { background: var(--surface); border: 1px solid var(--card-border); border-radius: 15px; padding: 13px 15px; }
.mcell .lab { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 4px; }
.mcell .val { font-weight: 700; font-size: 15px; font-family: var(--mono); }
/* floating platform chips */
.floaties { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.chip { position: absolute; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 13px; font-size: 13px; font-weight: 600;
  background: var(--glass); border: 1px solid var(--glass-brd); backdrop-filter: blur(14px); box-shadow: 0 14px 40px -14px rgba(0,0,0,.7); animation: bob 6s ease-in-out infinite; }
.chip svg { color: var(--accent-hi); }
.chip.c1 { top: 12%; left: -8%; } .chip.c2 { top: 40%; right: -12%; animation-delay: 1.4s; } .chip.c3 { bottom: 14%; left: -12%; animation-delay: 2.6s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---- Trust / stats ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; }
.stat .n { font-size: clamp(30px, 4vw, 44px); font-weight: 850; letter-spacing: -0.03em; background: linear-gradient(180deg, #fff, #b6b6b6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .l { color: var(--text-dim); font-size: 14px; margin-top: 4px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee .track { display: inline-flex; gap: 56px; align-items: center; animation: scrollx 26s linear infinite; white-space: nowrap; padding: 4px 28px; }
.marquee .track span { color: var(--text-mute); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; opacity: .8; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---- Bento features ---- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento .b { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--card-border); border-radius: 22px; padding: 28px;
  transition: border-color .25s, transform .25s var(--ease); }
.bento .b:hover { border-color: var(--card-border-hi); transform: translateY(-4px); }
.bento .b::after { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255,.16), transparent 70%); opacity: 0; transition: opacity .35s; pointer-events: none; }
.bento .b:hover::after { opacity: 1; }
.b.wide { grid-column: span 3; } .b.mid { grid-column: span 2; } .b.thin { grid-column: span 2; }
.b.tall { grid-column: span 3; grid-row: span 1; }
.b .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(150deg, rgba(255, 255, 255,.22), rgba(255, 255, 255,.08)); color: var(--accent-hi); border: 1px solid rgba(255, 255, 255,.2); }
.b h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.b p { color: var(--text-dim); font-size: 14.5px; }
.b .big { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.b .big .grad { display: inline; }

/* toggle-app demo inside bento (split tunnel) */
.applist { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.appitem { display: flex; align-items: center; gap: 10px; background: var(--bg-2); border: 1px solid var(--card-border); border-radius: 11px; padding: 8px 12px; font-size: 13.5px; }
.appitem .ico { display: inline-flex; color: var(--accent-hi); flex-shrink: 0; }
.appitem .sw { margin-left: auto; width: 16px; height: 16px; border-radius: 5px; border: 1px solid var(--card-border-hi); display: grid; place-items: center; }
.appitem.on .sw { background: var(--accent); border-color: var(--accent); }
.appitem.on .sw svg { color: #fff; } .appitem .sw svg { opacity: 0; } .appitem.on .sw svg { opacity: 1; }

/* ---- How it works ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; position: relative; }
.step { background: var(--surface); border: 1px solid var(--card-border); border-radius: 20px; padding: 30px; }
.step .num { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; margin-bottom: 18px;
  background: linear-gradient(150deg, #999999, #555555); box-shadow: 0 10px 24px -8px var(--glow); }
.step h3 { font-size: 18px; margin-bottom: 8px; } .step p { color: var(--text-dim); font-size: 14.5px; }

/* ---- Download / platforms ---- */
.plat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 50px; }
.pcard { background: var(--surface); border: 1px solid var(--card-border); border-radius: 22px; padding: 30px 24px; text-align: center; transition: border-color .25s, transform .25s var(--ease); }
.pcard:hover { border-color: var(--card-border-hi); transform: translateY(-4px); }
.pcard .os { height: 46px; margin: 0 auto 16px; color: var(--text); display: grid; place-items: center; }
.pcard .os svg { width: 44px; height: 44px; }
.pcard h3 { font-size: 19px; margin-bottom: 6px; }
.pcard .meta { font-size: 12.5px; color: var(--text-mute); margin-bottom: 20px; min-height: 34px; }
.tag { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 100px; }
.tag-ok { color: var(--ok); background: rgba(52,211,153,.13); } .tag-soon { color: var(--warn); background: rgba(255,255,255,.13); }
.pcard .btn { width: 100%; height: 46px; font-size: 14px; }
.soon .btn { background: var(--surface-2); color: var(--text-mute); border: 1px dashed var(--card-border-hi); pointer-events: none; }
/* store badges */
.badges { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 11px; height: 56px; padding: 0 20px; border-radius: 14px; background: #101018; border: 1px solid var(--card-border-hi);
  transition: transform .2s var(--ease), border-color .2s; }
.store:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.24); }
.store .sm { font-size: 11px; color: var(--text-dim); line-height: 1.1; } .store .lg { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.store.dim { opacity: .55; } .store svg { width: 26px; height: 26px; }

.install-note { margin-top: 30px; display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--card-border); border-radius: 18px; padding: 20px 24px; }
.install-note .ic { color: var(--accent-hi); flex-shrink: 0; margin-top: 2px; }
.install-note h4 { font-size: 15px; margin-bottom: 6px; } .install-note p { color: var(--text-dim); font-size: 14px; }
code.inline { font-family: var(--mono); font-size: 13px; background: #060609; border: 1px solid var(--card-border); padding: 2px 7px; border-radius: 7px; color: var(--accent-2); }

/* ---- Providers (bento split) ---- */
.prov { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.prov ul { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.prov li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-dim); }
.prov li .ck { flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; background: rgba(52,211,153,.14); color: var(--ok); display: grid; place-items: center; margin-top: 1px; }
.prov li b { color: var(--text); }
.codecard { background: #060609; border: 1px solid var(--card-border); border-radius: 18px; overflow: hidden; }
.codecard .h { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--card-border); font-size: 12px; color: var(--text-mute); font-family: var(--mono); }
.codecard pre { padding: 16px 18px; overflow-x: auto; margin: 0; }
.codecard code { font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: #d7d7d7; white-space: pre; }
.k { color: #999999; } .s { color: #c8c8c8; } .c { color: var(--text-mute); }

/* ---- FAQ ---- */
.faq { max-width: 760px; margin: 44px auto 0; }
.qa { border: 1px solid var(--card-border); border-radius: 16px; margin-bottom: 12px; overflow: hidden; background: var(--surface); }
.qa summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 14px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .plus { margin-left: auto; transition: transform .25s var(--ease); color: var(--text-mute); flex-shrink: 0; }
.qa[open] summary .plus { transform: rotate(45deg); }
.qa .a { padding: 0 22px 20px; color: var(--text-dim); font-size: 14.5px; }

/* ---- CTA band ---- */
.band { position: relative; overflow: hidden; text-align: center; border: 1px solid var(--card-border-hi); border-radius: 30px; padding: 68px 32px;
  background: radial-gradient(90% 160% at 50% 0%, rgba(255, 255, 255,.2), transparent 62%), var(--surface); }
.band::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20h40M20 0v40' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E"); }
.band > * { position: relative; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--card-border); padding: 56px 0 40px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer .col h5 { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 16px; }
.footer .col a { display: block; color: var(--text-dim); font-size: 14.5px; margin-bottom: 11px; transition: color .15s; }
.footer .col a:hover { color: var(--text); }
.footer .about p { color: var(--text-dim); font-size: 14px; margin: 14px 0 18px; max-width: 300px; }
.footer .socials { display: flex; gap: 10px; }
.footer .socials a { width: 40px; height: 40px; border-radius: 11px; background: var(--surface); border: 1px solid var(--card-border); display: grid; place-items: center; color: var(--text-dim); transition: border-color .2s, color .2s, transform .2s; }
.footer .socials a:hover { color: var(--text); border-color: var(--card-border-hi); transform: translateY(-2px); }
.foot-bottom { border-top: 1px solid var(--card-border); margin-top: 40px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-mute); font-size: 13px; }

/* ============================================================
   DOCS (GitBook-style)
   ============================================================ */
.docs { display: grid; grid-template-columns: 262px minmax(0,1fr) 200px; gap: 44px; align-items: start; padding: 40px 0 100px; }
.side { position: sticky; top: 94px; align-self: start; max-height: calc(100vh - 116px); overflow-y: auto; padding-right: 6px; }
.side::-webkit-scrollbar { width: 6px; } .side::-webkit-scrollbar-thumb { background: var(--card-border); border-radius: 8px; }
.side .grp { font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--text-mute); margin: 24px 0 8px; }
.side .grp:first-child { margin-top: 0; }
.side a { display: block; padding: 8px 13px; border-radius: 10px; color: var(--text-dim); font-size: 14.5px; transition: background .14s, color .14s; }
.side a:hover { background: var(--surface); color: var(--text); }
.side a.active { background: rgba(255, 255, 255,.15); color: #fff; font-weight: 600; }
.doc-main { min-width: 0; }
.doc-page { display: none; } .doc-page.active { display: block; animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.doc-main h1 { font-size: 36px; letter-spacing: -0.03em; margin-bottom: 10px; font-weight: 800; }
.doc-main .lead { color: var(--text-dim); font-size: 17.5px; margin: 0 0 32px; }
.doc-main h2 { font-size: 24px; letter-spacing: -0.02em; margin: 40px 0 14px; scroll-margin-top: 94px; }
.doc-main h3 { font-size: 18px; margin: 26px 0 10px; }
.doc-main p { color: var(--text-dim); margin-bottom: 14px; }
.doc-main ul, .doc-main ol { color: var(--text-dim); margin: 0 0 16px 20px; } .doc-main li { margin-bottom: 7px; }
.doc-main strong { color: var(--text); font-weight: 650; }
.doc-main a.link { color: var(--accent-2); border-bottom: 1px solid transparent; } .doc-main a.link:hover { border-color: var(--accent-2); }
.callout { border: 1px solid var(--card-border); border-left: 3px solid var(--accent); background: var(--surface); border-radius: 12px; padding: 15px 18px; margin: 18px 0; color: var(--text-dim); font-size: 14.5px; }
.callout.warn { border-left-color: var(--warn); } .callout.ok { border-left-color: var(--ok); } .callout strong { color: var(--text); }
pre { background: #060609; border: 1px solid var(--card-border); border-radius: 14px; padding: 16px 18px; overflow-x: auto; margin: 16px 0; position: relative; }
pre code { font-family: var(--mono); font-size: 13px; color: #d7d7d7; line-height: 1.65; white-space: pre; }
pre .n { color: #c8c8c8; }
.copy-btn { position: absolute; top: 10px; right: 10px; background: var(--surface); border: 1px solid var(--card-border); color: var(--text-dim); font-size: 12px; padding: 4px 10px; border-radius: 8px; opacity: 0; transition: opacity .15s; }
pre:hover .copy-btn { opacity: 1; } .copy-btn:hover { color: var(--text); }
table.doc { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
table.doc th, table.doc td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--card-border); }
table.doc th { color: var(--text-mute); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
table.doc td { color: var(--text-dim); } table.doc code { font-family: var(--mono); font-size: 12.5px; color: var(--accent-2); }
.doc-main code.inline { font-family: var(--mono); font-size: 13px; background: #060609; border: 1px solid var(--card-border); padding: 2px 7px; border-radius: 7px; color: var(--accent-2); }
.toc { position: sticky; top: 94px; align-self: start; font-size: 13.5px; }
.toc .t { font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 10px; }
.toc a { display: block; color: var(--text-mute); padding: 5px 0 5px 12px; border-left: 2px solid var(--card-border); transition: color .14s, border-color .14s; }
.toc a:hover { color: var(--text); border-color: var(--accent); }

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); } .b.wide, .b.mid, .b.thin, .b.tall { grid-column: span 1; }
  .plat { grid-template-columns: repeat(2, 1fr); } .stats { grid-template-columns: repeat(2, 1fr); }
  .prov { grid-template-columns: 1fr; } .steps { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; } .toc { display: none; }
  .side { position: static; max-height: none; display: none; border: 1px solid var(--card-border); border-radius: 14px; padding: 14px; margin-bottom: 24px; }
  .side.open { display: block; } .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .nav-links { display: none; } .burger { display: block; }
  .plat, .stats, .foot-grid { grid-template-columns: 1fr; } .section { padding: 76px 0; }
  .chip { display: none; } .prov, .band { padding-left: 20px; padding-right: 20px; }
  h1.h1 { font-size: clamp(38px, 12vw, 60px); }
}

/* ============================================================
   Interactive generators (docs) — base64 news + routing builder
   ============================================================ */
.gen { background: var(--surface); border: 1px solid var(--card-border); border-radius: 16px; padding: 22px; margin: 18px 0 26px; }
.gen-l { display: block; font-size: 12px; font-weight: 600; color: var(--text-mute); margin: 15px 0 6px; letter-spacing: .02em; }
.gen-l:first-child { margin-top: 0; }
.gen-in { width: 100%; background: #060609; border: 1px solid var(--card-border); border-radius: 10px; color: var(--text); font-family: var(--font); font-size: 14px; padding: 10px 12px; outline: none; transition: border-color .15s; }
.gen-in:focus { border-color: var(--accent); }
textarea.gen-in { resize: vertical; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; }
select.gen-in { cursor: pointer; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236a6a7a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.gen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gen-check { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-dim); margin: 16px 0 2px; cursor: pointer; }
.gen-check input { width: 17px; height: 17px; accent-color: var(--accent); flex-shrink: 0; }
.gen-out { display: flex; align-items: center; gap: 10px; background: #060609; border: 1px solid var(--card-border); border-radius: 10px; padding: 11px 13px; }
.gen-out code { font-family: var(--mono); font-size: 12.5px; color: var(--accent-2); word-break: break-all; flex: 1; line-height: 1.55; }
.gen-copy { flex-shrink: 0; background: var(--surface-2); border: 1px solid var(--card-border-hi); color: var(--text-dim); font-size: 12px; font-weight: 600; padding: 7px 13px; border-radius: 8px; cursor: pointer; transition: color .15s, border-color .15s; }
.gen-copy:hover { color: var(--text); border-color: var(--accent); }
.gen-json { margin: 8px 0 0; max-height: 280px; overflow: auto; }
.gen-json code { color: #d7d7d7; }
@media (max-width: 620px) { .gen-grid { grid-template-columns: 1fr; } }

/* ── Stories generator ── */
.st-card { background: #060609; border: 1px solid var(--card-border); border-radius: 12px; padding: 15px 15px 17px; margin-bottom: 12px; }
.st-card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.st-card-t { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.st-del { background: transparent; border: 1px solid var(--card-border-hi); color: var(--text-dim); font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 8px; cursor: pointer; transition: color .15s, border-color .15s; }
.st-del:hover { color: #9a9a9a; border-color: #9a9a9a; }
.st-add { width: 100%; background: var(--surface-2); border: 1px dashed var(--card-border-hi); color: var(--text); font-family: var(--font); font-size: 13.5px; font-weight: 600; padding: 11px; border-radius: 10px; cursor: pointer; margin-bottom: 18px; transition: border-color .15s, color .15s; }
.st-add:hover { border-color: var(--accent); color: var(--accent); }
.st-prev { display: flex; flex-wrap: wrap; gap: 16px; padding: 6px 2px 2px; min-height: 96px; align-items: flex-start; }
.stc { width: 74px; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.stc-ring { position: relative; width: 66px; height: 66px; border-radius: 50%; padding: 3px; background: conic-gradient(from 210deg, var(--accent), var(--accent-2), var(--accent)); }
.stc-img { display: block; width: 100%; height: 100%; border-radius: 50%; background-size: cover; background-position: center; border: 2px solid var(--bg); background-color: var(--surface-2); }
.stc-play { position: absolute; inset: 0; margin: auto; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #fff; background: rgba(0,0,0,.55); border-radius: 50%; align-self: center; }
.stc-t { font-size: 11px; color: var(--text-dim); text-align: center; line-height: 1.2; max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-empty { color: var(--text-dim); font-size: 13px; opacity: .7; align-self: center; }

/* ── Theme: preset swatches + generator + live preview ── */
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 8px; }
.swatch { text-align: left; background: var(--surface); border: 1px solid var(--card-border); border-radius: 14px; padding: 12px; cursor: pointer; font: inherit; color: inherit; transition: border-color .2s, transform .2s var(--ease); }
.swatch:hover { border-color: var(--card-border-hi); transform: translateY(-2px); }
.swatch .bar { height: 34px; border-radius: 9px; margin-bottom: 10px; }
.swatch .nm { font-weight: 700; font-size: 14px; text-transform: capitalize; }
.swatch .hd { font-family: var(--mono); font-size: 11px; color: var(--text-mute); margin-top: 2px; }

.theme-gen { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; background: var(--surface); border: 1px solid var(--card-border); border-radius: 16px; padding: 22px; margin: 16px 0 20px; }
.tg-controls .gen-l:first-child { margin-top: 0; }
.color-row { display: flex; gap: 10px; align-items: center; }
.color-row input[type="color"] { width: 46px; height: 40px; padding: 0; border: 1px solid var(--card-border); border-radius: 10px; background: #060609; cursor: pointer; flex-shrink: 0; }
.color-row input[type="color"]::-webkit-color-swatch-wrapper { padding: 3px; }
.color-row input[type="color"]::-webkit-color-swatch { border: none; border-radius: 6px; }
.color-row .gen-in { flex: 1; font-family: var(--mono); text-transform: uppercase; }

.tg-preview { position: sticky; top: 94px; }
.tg-preview-cap { text-align: center; font-size: 11px; color: var(--text-mute); margin-top: 8px; letter-spacing: .04em; }
.tprev { --pv-accent: #717171; --pv-accent2: #535353; --pv-bg: #080808; --pv-bgdeep: #05040a;
  position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--card-border-hi);
  background: linear-gradient(180deg, var(--pv-bg), var(--pv-bgdeep)); box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); aspect-ratio: 3 / 4; }
.tprev-scrim { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; }
.tprev.has-img .tprev-scrim { opacity: 1; }
.tprev.has-img .tprev-scrim::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--pv-bg) 70%, transparent), color-mix(in srgb, var(--pv-bgdeep) 88%, transparent)); }
.tprev-ui { position: relative; z-index: 1; padding: 16px; height: 100%; display: flex; flex-direction: column; gap: 11px; }
.tprev-bar { display: flex; align-items: center; gap: 5px; }
.tprev-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.25); }
.tprev-bar span { margin-left: auto; font-size: 9px; font-weight: 700; letter-spacing: .1em; color: rgba(255,255,255,.4); }
.tprev-status { text-align: center; font-size: 10px; font-weight: 700; letter-spacing: .3em; color: var(--pv-accent); margin-top: 4px; }
.tprev-orb { width: 82px; height: 82px; margin: 2px auto; border-radius: 50%; display: grid; place-items: center; color: var(--pv-accent);
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--pv-accent) 22%, transparent), transparent 70%);
  border: 2px solid color-mix(in srgb, var(--pv-accent) 45%, transparent); box-shadow: 0 0 30px -4px color-mix(in srgb, var(--pv-accent) 60%, transparent); }
.tprev-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #f4f4f8; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); border-radius: 11px; padding: 9px 11px; }
.tprev-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pv-accent); box-shadow: 0 0 8px var(--pv-accent); flex-shrink: 0; }
.tprev-ping { margin-left: auto; font-family: var(--mono); color: rgba(255,255,255,.6); }
.tprev-btn { margin-top: auto; text-align: center; font-weight: 700; font-size: 13px; color: #fff; padding: 12px; border-radius: 13px;
  background: linear-gradient(135deg, var(--pv-accent), var(--pv-accent2)); box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--pv-accent) 70%, transparent); }
@media (max-width: 860px) { .theme-gen { grid-template-columns: 1fr; } .tg-preview { position: static; max-width: 300px; margin: 0 auto; } }
@media (max-width: 620px) { .swatches { grid-template-columns: 1fr 1fr; } }

/* ── Download modal (Happ-style) ── */
.dl-modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }
.dl-modal.open { display: flex; }
.dl-backdrop { position: absolute; inset: 0; background: rgba(4,3,10,.74); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: dlFade .2s ease; }
.dl-card { position: relative; width: 100%; max-width: 580px; background: var(--surface); border: 1px solid var(--card-border-hi); border-radius: 22px; padding: 26px; box-shadow: 0 40px 120px rgba(0,0,0,.6); animation: dlPop .24s cubic-bezier(.2,.9,.3,1.15); }
@keyframes dlFade { from { opacity: 0; } }
@keyframes dlPop { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.dl-x { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--card-border); border-radius: 10px; color: var(--text-dim); cursor: pointer; transition: color .15s, border-color .15s; }
.dl-x:hover { color: var(--text); border-color: var(--accent); }
.dl-card h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 4px; }
.dl-sub { color: var(--text-dim); font-size: 14px; margin: 0; }
.dl-group { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin: 18px 0 10px; }
.dl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dl-item { display: flex; align-items: center; gap: 13px; background: #07060d; border: 1px solid var(--card-border); border-radius: 14px; padding: 13px 15px; text-decoration: none; color: var(--text); transition: border-color .16s, transform .16s, background .16s; }
a.dl-item:hover { border-color: var(--accent); transform: translateY(-2px); background: #090909; }
.dl-ic { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; background: var(--surface-2); border-radius: 11px; color: var(--text); transition: background .16s, color .16s; }
a.dl-item:hover .dl-ic { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.dl-meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.dl-meta b { font-size: 15px; font-weight: 700; }
.dl-meta small { font-size: 12px; color: var(--text-dim); }
.dl-item.is-soon { opacity: .48; cursor: default; }
.dl-arrow { margin-left: auto; opacity: 0; color: var(--accent-2); transition: opacity .16s; }
a.dl-item:hover .dl-arrow { opacity: 1; }
.dl-soon-chip { margin-left: auto; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); background: var(--surface-2); border: 1px solid var(--card-border); padding: 3px 8px; border-radius: 999px; }
.dl-note { margin: 18px 0 0; font-size: 12.5px; color: var(--text-dim); text-align: center; line-height: 1.5; }
.dl-note a { color: var(--accent-2); }
@media (max-width: 560px) { .dl-row { grid-template-columns: 1fr; } .dl-card { padding: 22px 18px; } }

/* ── Launch (single-screen, Happ-style) ── */
.brand-tx { display: inline-flex; flex-direction: column; line-height: 1.05; }
.brand-tx small { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); margin-top: 1px; }
.launch { min-height: calc(100dvh - 71px); display: flex; align-items: center; padding: 40px 0; position: relative; z-index: 1; }
.landing .wrap { max-width: 1340px; }
.launch-in { display: flex; align-items: center; justify-content: space-between; gap: 48px; width: 100%; }
.launch-left { flex: 1 1 500px; max-width: 560px; }
.launch-h1 { font-size: clamp(40px, 5.2vw, 62px); line-height: 1.0; letter-spacing: -.04em; font-weight: 900; margin: 22px 0 20px; }
.launch-sub { color: var(--text-dim); font-size: 16.5px; line-height: 1.65; margin: 0 0 32px; max-width: 470px; }
.launch-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lcard { display: flex; flex-direction: column; align-items: flex-start; text-align: left; background: var(--surface); border: 1px solid var(--card-border); border-radius: 16px; padding: 20px 20px 22px; cursor: pointer; font-family: var(--font); color: var(--text); transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s; }
.lcard:hover { border-color: var(--card-border-hi); transform: translateY(-3px); background: var(--surface-2); }
.lcard.accent { background: linear-gradient(165deg, rgba(255, 255, 255,.12), rgba(255, 255, 255,.02)); border-color: rgba(255, 255, 255,.26); }
.lcard.accent:hover { border-color: rgba(255, 255, 255,.5); }
.lc-ic { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); color: var(--accent-hi); margin-bottom: 15px; transition: background .2s, color .2s; }
.lcard:hover .lc-ic { background: rgba(255, 255, 255,.14); }
.lcard.accent .lc-ic { background: linear-gradient(135deg, #999999, #555555); color: #fff; box-shadow: 0 10px 22px -10px var(--glow); }
.lcard.accent:hover .lc-ic { background: linear-gradient(135deg, #999999, #717171); }
.lc-t { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.lc-d { font-size: 12.5px; color: var(--text-dim); line-height: 1.45; margin-top: 4px; }
.launch-right { flex: 0 1 600px; display: flex; justify-content: flex-end; }
.launch-right .stage { margin: 0; max-width: 600px; width: 100%; }
.footer-min { border-top: 1px solid var(--card-border); padding: 20px 0; position: relative; z-index: 1; }
.foot-min-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--text-mute); font-size: 13px; }
.foot-links a { color: var(--text-dim); }
.foot-links a:hover { color: var(--text); }
@media (max-width: 940px) {
  .launch { min-height: 0; padding: 28px 0 44px; }
  .launch-in { flex-direction: column; align-items: flex-start; gap: 38px; }
  .launch-left { flex: none; max-width: 560px; width: 100%; }
  .launch-right { flex: none; width: 100%; justify-content: center; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .launch-cards { grid-template-columns: 1fr; }
  .foot-min-in { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Launcher hero is above the fold — reliable CSS entrance, no scroll-observer dependency */
.launch .reveal { opacity: 1; transform: none; transition: none; animation: launchIn .5s var(--ease) both; }
.launch .reveal[data-d="1"] { animation-delay: .06s; }
.launch .reveal[data-d="2"] { animation-delay: .13s; }
.launch .reveal[data-d="3"] { animation-delay: .2s; }
.launch-right .reveal, .launch-right.reveal, .launch .stage.reveal { animation-delay: .16s; }
@keyframes launchIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
