/* ==========================================================================
   SiteGround — landing & legal pages
   ========================================================================== */

:root {
  --bg: #05070b;
  --bg-2: #090d14;
  --surface: #0d121a;
  --surface-2: #121924;
  --surface-3: #18212e;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  --text: #edf1f7;
  --muted: #95a0b2;
  --dim: #646f82;

  --accent: #c4ff3d;
  --accent-ink: #0a0f02;
  --accent-soft: rgba(196, 255, 61, 0.12);
  --accent-2: #38e1ff;
  --accent-2-soft: rgba(56, 225, 255, 0.12);
  --danger: #ff4d5e;
  --warn: #ffb547;

  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 9vw, 128px);
  --header-h: 72px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html:not(.lenis) { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; overflow-wrap: break-word; }
p { text-wrap: pretty; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
  transform: translateY(-160%); transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

/* Scrollbar */
html { scrollbar-color: var(--surface-3) var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; border: 2px solid var(--bg); }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Film grain */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll progress */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section); }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before {
  content: ''; width: 8px; height: 8px; border-radius: 2px;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}

.section-head { display: grid; gap: 20px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.h2 { font-size: clamp(1.65rem, 3.6vw, 2.9rem); }
.h2 em, .hero__title em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--muted); max-width: 62ch; }

/* ---------- Buttons & chips ---------- */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; isolation: isolate; overflow: hidden;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.3s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.3s var(--ease); }
.btn:hover svg.lucide-arrow-right, .btn:hover svg.lucide-arrow-up-right { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); box-shadow: 0 0 0 0 rgba(196, 255, 61, 0); }
.btn--primary:hover { box-shadow: 0 10px 40px -8px rgba(196, 255, 61, 0.55); }
.btn--ghost { --btn-bg: rgba(255, 255, 255, 0.04); border-color: var(--line-2); backdrop-filter: blur(10px); }
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.28); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.9rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.04em;
  border: 1px solid var(--line-2); color: var(--muted); background: rgba(255, 255, 255, 0.03);
}
.chip--accent { color: var(--accent); border-color: rgba(196, 255, 61, 0.35); background: var(--accent-soft); }
.chip--cyan { color: var(--accent-2); border-color: rgba(56, 225, 255, 0.35); background: var(--accent-2-soft); }

.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.pulse::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; background: inherit;
  animation: pulse 2s var(--ease-out) infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(3.2); opacity: 0; } }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(5, 7, 11, 0.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.02em; }
.logo img { width: 34px; height: 34px; }
.logo span b { color: var(--accent); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-size: 0.93rem; color: var(--muted); transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.header__actions { display: flex; align-items: center; gap: 10px; }

.burger {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.3s var(--ease), opacity 0.2s; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99; padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  background: rgba(5, 7, 11, 0.96); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; gap: 32px;
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 500;
}
.mobile-menu nav a small { font-family: var(--font-mono); font-size: 0.75rem; color: var(--dim); }
.mobile-menu .btn { width: 100%; }

@media (max-width: 1023px) {
  .nav, .header__actions .btn { display: none; }
  .burger { display: inline-flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--header-h) + 40px); padding-bottom: 72px;
  overflow: hidden; isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(60% 50% at 75% 45%, rgba(56, 225, 255, 0.10), transparent 70%),
    radial-gradient(40% 40% at 85% 70%, rgba(196, 255, 61, 0.08), transparent 70%),
    var(--bg);
}
.hero__canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero__canvas.is-ready { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(5, 7, 11, 0.85) 30%, rgba(5, 7, 11, 0.1) 62%, transparent 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 28%),
    linear-gradient(180deg, rgba(5, 7, 11, 0.7) 0%, transparent 22%);
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  grid-template-areas: 'head head' 'content panel'; column-gap: 56px; row-gap: 36px;
}
.hero__head { grid-area: head; display: grid; gap: 28px; justify-items: start; }
.hero__content { grid-area: content; display: grid; gap: 28px; justify-items: start; align-content: start; }
.hero__panel { grid-area: panel; align-self: start; }

.status-chip {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 16px 8px 14px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(196, 255, 61, 0.08); border: 1px solid rgba(196, 255, 61, 0.3); color: var(--accent);
}

.hero__title { font-size: clamp(2.1rem, 6.3vw, 5.6rem); font-weight: 700; line-height: 0.98; letter-spacing: -0.035em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .line > span { display: inline-block; will-change: transform; }
.hero__title em { position: relative; }
.hero__title em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0.04em; height: 0.08em;
  background: var(--accent); border-radius: 4px; transform-origin: 0 50%;
  animation: underline 1.1s 1.2s var(--ease-out) both;
}
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero__lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 54ch; }
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__note {
  display: inline-flex; align-items: flex-start; gap: 10px; max-width: 58ch;
  font-size: 0.84rem; color: var(--muted); line-height: 1.5;
  padding: 10px 14px; border-radius: var(--r-sm); border: 1px dashed var(--line-2); background: rgba(5, 7, 11, 0.5);
}
.hero__note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--accent-2); }
.hero__note a { color: var(--text); text-decoration: underline; text-decoration-color: var(--dim); text-underline-offset: 3px; }
.hero__note a:hover { text-decoration-color: var(--accent); }

/* Countdown panel */
.panel {
  position: relative; border-radius: var(--r-lg); border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(18, 25, 36, 0.78), rgba(9, 13, 20, 0.78));
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.panel__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted);
}
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.dots i:first-child { background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }

.countdown { padding: 22px; display: grid; gap: 18px; }
.countdown__label { font-family: var(--font-mono); font-size: 0.8rem; color: var(--dim); }
.countdown__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.countdown__cell {
  display: grid; justify-items: center; gap: 4px; padding: 14px 4px 10px;
  border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
}
.countdown__cell b { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.countdown__cell small { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.countdown__date { font-size: 0.85rem; color: var(--muted); }
.countdown__date strong { color: var(--text); font-weight: 600; }

.boot { display: grid; gap: 8px; font-family: var(--font-mono); font-size: 0.78rem; }
.boot__row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.boot__bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.boot__bar span { display: block; height: 100%; width: var(--p, 70%); border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); box-shadow: 0 0 16px rgba(196, 255, 61, 0.6); }

.release { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1; letter-spacing: -0.03em; }
.release .cursor { display: inline-block; width: 0.42em; height: 0.82em; margin-left: 0.14em; vertical-align: -0.04em; background: var(--accent); box-shadow: 0 0 16px rgba(196, 255, 61, 0.6); animation: caret 1.1s steps(2, jump-none) infinite; }
@keyframes caret { 0% { opacity: 1; } 100% { opacity: 0; } }
.status-list { display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-family: var(--font-mono); font-size: 0.8rem; }
.status-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--muted); }
.status-list li:last-child { border-bottom: 0; }
.status-list b { font-weight: 500; color: var(--text); }
.status-list b.is-dev { color: var(--warn); }
.status-list a { color: var(--accent); }
.status-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.indeterminate { position: relative; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.indeterminate span { position: absolute; top: 0; bottom: 0; left: 0; width: 40%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); box-shadow: 0 0 16px rgba(196, 255, 61, 0.6); animation: indeterminate 1.9s var(--ease) infinite; }
@keyframes indeterminate { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 20px; translate: -50% 0;
  display: grid; justify-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim);
}
.hero__scroll i { width: 1px; height: 40px; background: linear-gradient(var(--accent), transparent); animation: scrollcue 2s var(--ease) infinite; transform-origin: top; }
@keyframes scrollcue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 1023px) {
  .hero__inner { grid-template-columns: 1fr; grid-template-areas: 'head' 'content' 'panel'; row-gap: 28px; }
  .hero__shade { background: linear-gradient(0deg, var(--bg) 6%, rgba(5, 7, 11, 0.55) 55%, rgba(5, 7, 11, 0.75) 100%); }
  .hero__panel { max-width: 480px; }
  .hero__scroll { display: none; }
}

/* ==========================================================================
   Ticker
   ========================================================================== */
.ticker-wrap { position: relative; display: grid; overflow: hidden; overflow: clip; padding-block: 64px; margin-block: -32px; }
.ticker {
  grid-area: 1 / 1; align-self: center; position: relative; z-index: 1;
  display: flex; overflow: hidden; user-select: none;
  background: var(--accent); color: var(--accent-ink);
  transform: rotate(-2deg) scale(1.05); box-shadow: 0 0 60px -10px rgba(196, 255, 61, 0.5);
}
.ticker--alt { z-index: 0; background: var(--surface-2); color: var(--muted); transform: rotate(2.2deg) scale(1.05); box-shadow: none; border-block: 1px solid var(--line-2); }
.ticker__track { display: flex; flex: none; padding-block: 16px; animation: marquee 38s linear infinite; }
.ticker--alt .ticker__track { padding-block: 12px; animation-direction: reverse; animation-duration: 60s; }
.ticker__item { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1rem, 2vw, 1.5rem); text-transform: uppercase; white-space: nowrap; letter-spacing: -0.01em; }
.ticker--alt .ticker__item { font-family: var(--font-mono); font-weight: 500; font-size: clamp(0.78rem, 1.1vw, 0.92rem); letter-spacing: 0.1em; }
.ticker__item svg { width: 22px; height: 22px; stroke-width: 2.5; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ==========================================================================
   About
   ========================================================================== */
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__text { display: grid; gap: 24px; }
.about__text p { color: var(--muted); font-size: 1.06rem; }
.about__text p strong { color: var(--text); font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 12px; border-radius: var(--r); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.stat { padding: 22px 20px; background: var(--bg-2); display: grid; gap: 4px; }
.stat b { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat b i { font-style: normal; color: var(--accent); }
.stat small { color: var(--muted); font-size: 0.9rem; }

.frame { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line-2); background: var(--surface); }
.frame img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; filter: saturate(1.1) contrast(1.05); }
.frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 7, 11, 0.1), rgba(5, 7, 11, 0.75)); }
.frame__hud { position: absolute; inset: 18px; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; font-family: var(--font-mono); font-size: 0.74rem; }
.frame__hud-top, .frame__hud-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.frame__tag { padding: 6px 10px; border-radius: 8px; background: rgba(5, 7, 11, 0.7); border: 1px solid var(--line-2); backdrop-filter: blur(8px); color: var(--text); }
.frame__tag em { font-style: normal; color: var(--accent); }
.frame__corners::before, .frame__corners::after { content: ''; position: absolute; width: 28px; height: 28px; border: 2px solid var(--accent); z-index: 3; }
.frame__corners::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.frame__corners::after { bottom: 12px; right: 12px; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
.frame__meter { display: grid; gap: 6px; min-width: 160px; padding: 10px 12px; border-radius: 10px; background: rgba(5, 7, 11, 0.75); border: 1px solid var(--line-2); backdrop-filter: blur(8px); }
.frame__meter div { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.frame__meter div span { display: block; height: 100%; width: 63%; background: var(--accent); animation: meter 4s ease-in-out infinite alternate; }
@keyframes meter { from { width: 38%; } to { width: 82%; } }
.photo-note { margin-top: 12px; font-size: 0.78rem; color: var(--dim); }

@media (max-width: 899px) {
  .about__grid { grid-template-columns: 1fr; }
  .frame { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   Features (bento)
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(250px, auto); gap: 16px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: clamp(22px, 2.6vw, 32px); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s var(--ease);
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(196, 255, 61, 0.10), transparent 45%);
}
.card:hover { border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent-soft); border: 1px solid rgba(196, 255, 61, 0.25); color: var(--accent);
}
.card__icon svg { width: 24px; height: 24px; }
.card__icon--cyan { background: var(--accent-2-soft); border-color: rgba(56, 225, 255, 0.25); color: var(--accent-2); }
.card__icon--red { background: rgba(255, 77, 94, 0.12); border-color: rgba(255, 77, 94, 0.3); color: var(--danger); }
.card__body { display: grid; gap: 10px; }
.card h3 { font-size: clamp(1.15rem, 1.7vw, 1.45rem); font-weight: 600; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }

.card--photo { min-height: 340px; background: var(--surface); }
.card--photo .card__img { position: absolute; inset: 0; z-index: -2; }
.card--photo .card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.card--photo:hover .card__img img { transform: scale(1.05); }
.card--photo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 7, 11, 0.55) 0%, rgba(5, 7, 11, 0.6) 40%, rgba(5, 7, 11, 0.95) 100%); }
.card--photo p { color: #c3cad6; }

.bento > :nth-child(1) { grid-column: span 7; grid-row: span 2; }
.bento > :nth-child(2) { grid-column: span 5; }
.bento > :nth-child(3) { grid-column: span 5; }
.bento > :nth-child(4) { grid-column: span 4; }
.bento > :nth-child(5) { grid-column: span 4; }
.bento > :nth-child(6) { grid-column: span 4; }

/* mini visual inside card */
.uptime { display: flex; gap: 3px; align-items: flex-end; height: 44px; }
.uptime i { flex: 1; height: 100%; border-radius: 3px; background: var(--accent); opacity: 0.85; }
.uptime i.warn { background: var(--warn); }
.uptime i.down { background: var(--danger); }

@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento > :nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .bento > :nth-child(1) { grid-column: span 2; }
}
@media (max-width: 639px) {
  .bento { grid-template-columns: 1fr; }
  .bento > :nth-child(n) { grid-column: span 1; }
}

/* ==========================================================================
   How it works
   ========================================================================== */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 32px 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg-2)); display: grid; gap: 16px; align-content: start; }
.step__num { font-family: var(--font-display); font-size: 3.6rem; font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px var(--line-2); }
.step:hover .step__num { -webkit-text-stroke-color: var(--accent); }
.step h3 { font-size: 1.25rem; }
.step p { color: var(--muted); }
.step__cmd { justify-self: start; font-family: var(--font-mono); font-size: 0.8rem; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--accent-2); }
.step__cmd::before { content: '$ '; color: var(--dim); }
@media (max-width: 899px) { .steps { grid-template-columns: 1fr; } }

/* ==========================================================================
   Demo: terminal + rack
   ========================================================================== */
.demo { background: linear-gradient(180deg, transparent, rgba(56, 225, 255, 0.03) 30%, transparent); }
.demo__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }

.terminal { display: flex; flex-direction: column; min-height: 520px; overflow: hidden; }
.terminal__out {
  flex: 1; padding: 18px 18px 6px; overflow-y: auto; max-height: 440px; min-height: 340px;
  font-family: var(--font-mono); font-size: 0.86rem; line-height: 1.7; overscroll-behavior: contain;
}
.terminal__line { white-space: pre-wrap; word-break: break-word; }
.terminal__line .p { color: var(--accent); }
.t-ok { color: var(--accent); }
.t-info { color: var(--accent-2); }
.t-warn { color: var(--warn); }
.t-err { color: var(--danger); }
.t-dim { color: var(--dim); }
.t-b { color: var(--text); font-weight: 600; }

.terminal__form { display: flex; align-items: center; gap: 10px; padding: 10px 18px 16px; font-family: var(--font-mono); font-size: 0.9rem; }
.terminal__form label { color: var(--accent); white-space: nowrap; }
.terminal__form input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; caret-color: var(--accent); padding: 8px 0; font-family: var(--font-mono); }
.terminal__form input::placeholder { color: var(--dim); }
.terminal__form:focus-within { box-shadow: inset 0 1px 0 var(--line); }

.quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.quick button {
  min-height: 36px; padding: 0 12px; border-radius: 8px;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted);
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.quick button:hover { color: var(--accent); border-color: rgba(196, 255, 61, 0.4); background: var(--accent-soft); }

.rack { display: flex; flex-direction: column; }
.rack__body { padding: 18px; display: grid; gap: 18px; flex: 1; align-content: start; }
.rack__units { display: grid; gap: 6px; padding: 10px; border-radius: 14px; background: #070a10; border: 1px solid var(--line); }
.rack__unit {
  position: relative; display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 10px;
  border-radius: 6px; border: 1px dashed rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--dim);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.rack__unit.is-on { border-style: solid; border-color: var(--line-2); background: linear-gradient(180deg, #1a2330, #121923); color: var(--muted); }
.rack__unit .leds { display: flex; gap: 5px; }
.rack__unit .leds i { width: 6px; height: 6px; border-radius: 50%; background: #20293a; }
.rack__unit.is-on .leds i { background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: blink var(--d, 1.2s) steps(2, jump-none) infinite; }
.rack__unit.is-on .leds i:nth-child(2) { --d: 0.7s; background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }
.rack__unit.is-on .leds i:nth-child(3) { --d: 1.9s; }
.rack__unit .vents { margin-left: auto; display: flex; gap: 3px; }
.rack__unit .vents i { width: 2px; height: 12px; border-radius: 2px; background: rgba(255, 255, 255, 0.06); }
.rack__unit.is-on .vents i { background: rgba(255, 255, 255, 0.14); }
@keyframes blink { 0% { opacity: 1; } 100% { opacity: 0.25; } }

.rack.is-warn .rack__unit.is-on .leds i { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.rack.is-down .rack__unit.is-on .leds i { background: var(--danger); box-shadow: 0 0 10px var(--danger); --d: 0.25s; }
.rack.is-down .rack__units { border-color: rgba(255, 77, 94, 0.45); box-shadow: 0 0 40px -10px rgba(255, 77, 94, 0.5); }

.meter { display: grid; gap: 8px; }
.meter__head { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.meter__head b { color: var(--text); font-weight: 600; }
.meter__track { height: 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.meter__fill { height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width 0.6s var(--ease), background-color 0.3s; }
.rack.is-warn .meter__fill { background: var(--warn); }
.rack.is-down .meter__fill { background: var(--danger); }

.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.metric { padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); display: grid; gap: 2px; }
.metric small { font-family: var(--font-mono); font-size: 0.68rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.metric b { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.rack__status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); }
.rack.is-warn .rack__status { color: var(--warn); }
.rack.is-down .rack__status { color: var(--danger); }
.rack__status .pulse { background: currentColor; }
.demo__note { margin-top: 16px; display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--dim); }
.demo__note svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }

@media (max-width: 899px) {
  .demo__grid { grid-template-columns: 1fr; }
  .terminal { min-height: 460px; }
  .terminal__out { max-height: 360px; min-height: 300px; font-size: 0.8rem; }
  .terminal__form input { font-size: 16px; }
}

/* ==========================================================================
   World gallery (horizontal)
   ========================================================================== */
.world { overflow: hidden; overflow: clip; }
.world__pin { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 48px); }
.world__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; }
.world__head .section-head { margin-bottom: 0; }
.world .photo-note { margin-top: 0; }
.world__track {
  display: flex; gap: 20px; padding: 4px var(--gutter) 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.world__track::-webkit-scrollbar { display: none; }
.shot {
  position: relative; flex: none; width: min(80vw, 400px); aspect-ratio: 4 / 5; scroll-snap-align: start;
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); background: var(--surface);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; isolation: isolate;
}
.shot img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.shot:hover img { transform: scale(1.06); }
.shot::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 7, 11, 0) 35%, rgba(5, 7, 11, 0.92) 100%); }
.shot__idx { position: absolute; top: 20px; left: 20px; }
.shot h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); margin-bottom: 8px; }
.shot p { color: #c3cad6; font-size: 0.95rem; max-width: 36ch; }

/* Desktop: pinned section with horizontal scroll (class is set by main.js) */
.world.is-pinned { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-block: 72px; }
.world.is-pinned .world__pin { width: 100%; }
.world.is-pinned .world__track { width: max-content; overflow: visible; scroll-snap-type: none; will-change: transform; }
.world.is-pinned .shot { width: auto; height: min(54vh, 520px); }
.world.is-pinned .shot:nth-child(even) { transform: translateY(28px); }

/* ==========================================================================
   Roadmap
   ========================================================================== */
.timeline { position: relative; display: grid; gap: 16px; max-width: 920px; margin-inline: auto; padding-left: 48px; }
.timeline__line { position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.timeline__line span { position: absolute; inset: 0; background: linear-gradient(var(--accent-2), var(--accent)); transform-origin: top; transform: scaleY(var(--progress, 0.45)); }
.milestone { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 26px 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.milestone::before {
  content: ''; position: absolute; left: -41px; top: 32px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-2);
}
.milestone.is-done::before { background: var(--accent); border-color: var(--accent); }
.milestone.is-now { border-color: rgba(196, 255, 61, 0.35); background: linear-gradient(135deg, rgba(196, 255, 61, 0.07), var(--surface) 60%); }
.milestone.is-now::before { border-color: var(--accent); box-shadow: 0 0 0 6px rgba(196, 255, 61, 0.15), 0 0 20px var(--accent); }
.milestone__when { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); display: grid; gap: 10px; align-content: start; }
.milestone__when b { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--text); }
.milestone h3 { font-size: 1.2rem; margin-bottom: 8px; }
.milestone p { color: var(--muted); }
.milestone ul { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.roadmap__note { text-align: center; margin-top: 28px; font-size: 0.85rem; color: var(--dim); }
@media (max-width: 639px) {
  .timeline { padding-left: 32px; }
  .timeline__line { left: 7px; }
  .milestone { grid-template-columns: 1fr; gap: 12px; padding: 22px; }
  .milestone::before { left: -33px; top: 26px; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.faq__aside { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 24px; }
.faq__aside .section-head { margin-bottom: 0; }
.contact-card svg { width: 26px; height: 26px; color: var(--accent); }
.contact-card { display: grid; gap: 14px; padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.contact-card p { color: var(--muted); font-size: 0.95rem; }
.contact-card a.mail { font-family: var(--font-mono); color: var(--accent); word-break: break-all; }
.accordion { display: grid; gap: 10px; }
.accordion details { border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); transition: border-color 0.3s var(--ease), background-color 0.3s; }
.accordion details[open] { border-color: var(--line-2); background: var(--surface-2); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 22px; font-weight: 600; font-size: 1.04rem; border-radius: var(--r);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .plus { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform 0.35s var(--ease), background-color 0.3s, border-color 0.3s; }
.accordion summary .plus::before, .accordion summary .plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: currentColor; translate: -50% -50%; }
.accordion summary .plus::after { rotate: 90deg; transition: rotate 0.35s var(--ease); }
.accordion details[open] .plus { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: rotate(180deg); }
.accordion details[open] .plus::after { rotate: 0deg; }
.accordion .answer { padding: 0 22px 22px; color: var(--muted); display: grid; gap: 10px; }
.accordion details[open] .answer { animation: fadein 0.4s var(--ease); }
.accordion .answer a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
@keyframes fadein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 899px) { .faq__grid { grid-template-columns: 1fr; } .faq__aside { position: static; } }

/* ==========================================================================
   Signup
   ========================================================================== */
.signup__card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 5vw, 72px); border-radius: var(--r-xl); border: 1px solid var(--line-2);
  background: radial-gradient(80% 120% at 100% 0%, rgba(196, 255, 61, 0.14), transparent 55%), radial-gradient(60% 100% at 0% 100%, rgba(56, 225, 255, 0.12), transparent 60%), var(--surface);
}
.signup__card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(70% 70% at 60% 40%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 70% at 60% 40%, #000, transparent);
}
.signup__text { display: grid; gap: 20px; }
.perks { display: grid; gap: 12px; margin-top: 8px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.perks svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 2px; }

.form { display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg); background: rgba(5, 7, 11, 0.6); border: 1px solid var(--line-2); backdrop-filter: blur(12px); }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.9rem; font-weight: 500; }
.field input[type='email'], .field input[type='text'] {
  min-height: 54px; padding: 0 18px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); outline: 0;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field input::placeholder { color: var(--dim); }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(196, 255, 61, 0.15); background: rgba(255, 255, 255, 0.06); }
.field.has-error input { border-color: var(--danger); }
.field__hint { font-size: 0.8rem; color: var(--dim); }
.field__error { font-size: 0.82rem; color: var(--danger); min-height: 0; }
.field__error:empty { display: none; }

.check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 0.86rem; color: var(--muted); line-height: 1.5; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 6px; border: 1.5px solid var(--line-2); background: rgba(255, 255, 255, 0.04); display: grid; place-items: center; cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.check input::after { content: ''; width: 10px; height: 6px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform 0.2s var(--ease); }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check a { color: var(--text); text-decoration: underline; text-decoration-color: var(--dim); text-underline-offset: 3px; }
.check a:hover { text-decoration-color: var(--accent); }
.field.has-error .check input { border-color: var(--danger); }
.form .btn { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__legal { font-size: 0.76rem; color: var(--dim); line-height: 1.5; }

.form__success { display: none; gap: 14px; justify-items: start; text-align: left; }
.form.is-success .form__fields { display: none; }
.form.is-success .form__success { display: grid; animation: fadein 0.5s var(--ease); }
.form__success .ok { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.form__success .ok svg { width: 28px; height: 28px; stroke-width: 3; }
.form__success h3 { font-size: 1.3rem; }
.form__success p { color: var(--muted); }
.form__fields { display: grid; gap: 16px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 899px) { .signup__card { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { position: relative; padding-top: clamp(64px, 8vw, 96px); padding-bottom: 32px; border-top: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer__brand { display: grid; gap: 18px; align-content: start; max-width: 360px; }
.footer__brand p { color: var(--muted); font-size: 0.94rem; }
.footer h4 { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
.footer__links { display: grid; gap: 10px; }
.footer__links a { color: var(--muted); font-size: 0.94rem; transition: color 0.2s; }
.footer__links a:hover { color: var(--accent); }

.disclaimer {
  margin-top: 56px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  padding: 20px 22px; border-radius: var(--r); border: 1px solid rgba(56, 225, 255, 0.25); background: rgba(56, 225, 255, 0.05);
  font-size: 0.86rem; color: var(--muted); line-height: 1.6;
}
.disclaimer svg { width: 22px; height: 22px; color: var(--accent-2); }
.disclaimer strong { color: var(--text); }
.disclaimer a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

.footer__bottom { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; font-size: 0.82rem; color: var(--dim); }
.footer__bottom button { padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.footer__bottom button:hover { color: var(--text); }
.footer__word {
  margin-top: 48px; font-family: var(--font-display); font-weight: 800; line-height: 0.82; letter-spacing: -0.04em;
  font-size: 10.6vw; text-align: center; white-space: nowrap; user-select: none;
  color: transparent; background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 85%);
  -webkit-background-clip: text; background-clip: text; margin-bottom: -0.1em;
}

@media (max-width: 899px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 479px) { .footer__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Cookie banner
   ========================================================================== */
.cookie {
  position: fixed; left: 16px; bottom: 16px; z-index: 110; width: min(440px, calc(100vw - 32px));
  padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line-2);
  background: rgba(13, 18, 26, 0.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9);
  display: grid; gap: 14px;
  transform: translateY(24px); opacity: 0; visibility: hidden;
  transition: transform 0.45s var(--ease-out), opacity 0.35s var(--ease), visibility 0.45s;
}
.cookie.is-visible { transform: none; opacity: 1; visibility: visible; }
.cookie__head { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.cookie__head svg { width: 20px; height: 20px; color: var(--accent); }
.cookie p { font-size: 0.86rem; color: var(--muted); line-height: 1.55; }
.cookie p a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie__actions .btn { flex: 1 1 auto; min-height: 44px; padding: 0 16px; font-size: 0.88rem; }

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal-hero { position: relative; padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px)); padding-bottom: clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.legal-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(60% 90% at 80% 0%, #000, transparent 75%); -webkit-mask-image: radial-gradient(60% 90% at 80% 0%, #000, transparent 75%);
}
.legal-hero::after { content: ''; position: absolute; right: -10%; top: -40%; width: 60%; height: 140%; z-index: -1; background: radial-gradient(closest-side, rgba(196, 255, 61, 0.10), transparent); }
.legal-hero__inner { display: grid; gap: 20px; justify-items: start; }
.legal-hero__inner > * { max-width: 920px; }
.legal-hero h1 { font-size: clamp(1.4rem, 4.6vw, 3.4rem); }
.legal-hero p { color: var(--muted); font-size: 1.05rem; max-width: 64ch; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs { display: flex; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 0.78rem; color: var(--dim); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }

.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); padding-block: clamp(48px, 7vw, 88px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; padding-right: 8px; }
.toc p { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.toc a { display: block; padding: 7px 12px; border-left: 2px solid var(--line); font-size: 0.88rem; color: var(--muted); line-height: 1.4; transition: color 0.2s, border-color 0.2s, background-color 0.2s; }
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--accent); border-color: var(--accent); background: linear-gradient(90deg, var(--accent-soft), transparent); }
.toc-docs { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 4px; }

.prose { max-width: 76ch; color: #c9d0db; font-size: 1.02rem; line-height: 1.75; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); color: var(--text); margin-top: 2.6em; padding-top: 0.2em; display: flex; gap: 14px; align-items: baseline; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose h2 .n { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); font-weight: 500; flex: none; }
.prose h3 { font-size: 1.1rem; color: var(--text); margin-top: 1.8em; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(196, 255, 61, 0.4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.4em; display: grid; gap: 0.5em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.6em; }
.prose ul li::before { content: ''; position: absolute; left: 0.3em; top: 0.72em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.prose ol { list-style: decimal; }
.prose ol li::marker { color: var(--accent); font-family: var(--font-mono); font-size: 0.9em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.92rem; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--font-mono); font-weight: 500; font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--surface); }
.prose tr:last-child td { border-bottom: 0; }
.prose code { font-family: var(--font-mono); font-size: 0.86em; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); color: var(--accent-2); }

.prose > section + section { margin-top: 3.2em; }
.prose section > * + * { margin-top: 1em; }
.prose section > h2 { margin-top: 0; }
.prose section > h3 { margin-top: 1.8em; }
.prose section > h2 + * { margin-top: 1.1em; }

.callout { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 18px 20px; border-radius: var(--r); border: 1px solid rgba(56, 225, 255, 0.3); background: rgba(56, 225, 255, 0.06); }
.callout svg { width: 22px; height: 22px; color: var(--accent-2); margin-top: 3px; }
.callout--accent { border-color: rgba(196, 255, 61, 0.35); background: var(--accent-soft); }
.callout--accent svg { color: var(--accent); }
.callout p + p { margin-top: 0.6em; }

.requisites { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.requisites div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.requisites div:last-child { border-bottom: 0; }
.requisites dt { color: var(--muted); font-size: 0.9rem; }
.requisites dd { color: var(--text); margin: 0; word-break: break-word; }
@media (max-width: 639px) { .requisites div { grid-template-columns: 1fr; gap: 2px; } }


/* cookie settings on cookies.html */
.prefs { display: grid; gap: 10px; margin-top: 1.2em; }
.pref { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.pref b { color: var(--text); display: block; }
.pref small { color: var(--muted); font-size: 0.86rem; line-height: 1.5; display: block; margin-top: 2px; }
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; z-index: 1; }
.switch input:disabled { cursor: not-allowed; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-2); transition: background-color 0.25s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--text); transition: transform 0.25s var(--ease); }
.switch input:checked + span { background: var(--accent); border-color: var(--accent); }
.switch input:checked + span::after { transform: translateX(22px); background: var(--accent-ink); }
.switch input:disabled + span { opacity: 0.6; }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.prefs__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.prefs__saved { font-size: 0.86rem; color: var(--accent); opacity: 0; transition: opacity 0.3s; }
.prefs__saved.is-visible { opacity: 1; }

@media (max-width: 899px) {
  .legal { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
}

/* ==========================================================================
   404
   ========================================================================== */
.notfound { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) var(--gutter) 64px; }
.notfound__inner { display: grid; gap: 24px; justify-items: center; max-width: 560px; }
.notfound__code { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 22vw, 12rem); line-height: 0.9; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 2px var(--accent); }
.notfound pre { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); text-align: left; padding: 16px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); white-space: pre-wrap; }

/* ==========================================================================
   Reveal (JS adds .js to <html>)
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
  html { scroll-behavior: auto !important; }
}
