/* ==========================================================================
   ArkAChat — premium design system
   Dark-first "obsidian" theme with blue→teal light, plus an optional light theme.
   ========================================================================== */

/* ---------- Tokens: dark (default) ---------- */
:root {
  --blue: #4da3ff;
  --blue-deep: #1565c0;
  --teal: #3fe0c5;
  --indigo: #7b8cff;
  --grad: linear-gradient(120deg, #4da3ff 0%, #3fe0c5 100%);
  --grad-wide: linear-gradient(110deg, #7b8cff 0%, #4da3ff 35%, #3fe0c5 100%);
  --grad-text: linear-gradient(100deg, #8cc8ff 0%, #5fe6cf 55%, #b6f0ff 100%);
  --title-grad: linear-gradient(180deg, #ffffff 30%, #a9b7cf 100%);

  --bg: #04060c;
  --bg-2: #070b15;
  --surface: #0a0f1c;
  --surface-2: #0e1525;
  --surface-glass: rgba(14, 21, 37, .55);
  --border: rgba(255, 255, 255, .075);
  --border-strong: rgba(255, 255, 255, .14);
  --border-grad: linear-gradient(150deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 40%, rgba(77, 163, 255, .22));
  --text: #f2f6fc;
  --text-2: #c3cddd;
  --muted: #8692a8;
  --accent: #7cc0ff;
  --accent-soft: rgba(77, 163, 255, .1);
  --ok: #3fe0a6;
  --no: #ff9b6b;
  --warn: #f5c451;
  --spot: rgba(77, 163, 255, .13);
  --shadow: 0 1px 1px rgba(0, 0, 0, .4), 0 24px 60px -24px rgba(0, 0, 0, .8);
  --shadow-lg: 0 50px 120px -40px rgba(0, 0, 0, .9);
  --glow-a: rgba(77, 163, 255, .22);
  --glow-b: rgba(63, 224, 197, .14);
  --grid-line: rgba(255, 255, 255, .035);
  --noise-opacity: .035;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --max: 1200px;
  --font: "Inter", "Segoe UI Variable Display", "Segoe UI", ui-sans-serif, system-ui, -apple-system, "SF Pro Display", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

/* ---------- Tokens: light (opt-in via toggle) ---------- */
:root[data-theme="light"] {
  --grad-text: linear-gradient(100deg, #1f74d6 0%, #0fa892 60%, #1b8fd8 100%);
  --title-grad: linear-gradient(180deg, #0a1222 40%, #3a4a66 100%);
  --bg: #f6f8fc;
  --bg-2: #eef2f9;
  --surface: #ffffff;
  --surface-2: #f4f7fc;
  --surface-glass: rgba(255, 255, 255, .7);
  --border: rgba(10, 20, 40, .08);
  --border-strong: rgba(10, 20, 40, .15);
  --border-grad: linear-gradient(150deg, rgba(10, 20, 40, .12), rgba(10, 20, 40, .04) 40%, rgba(30, 116, 214, .25));
  --text: #0a1222;
  --text-2: #2a3953;
  --muted: #5d6b84;
  --accent: #1565c0;
  --accent-soft: rgba(30, 116, 214, .08);
  --ok: #0c9b6e;
  --no: #c4521c;
  --warn: #a8740a;
  --spot: rgba(30, 116, 214, .08);
  --shadow: 0 1px 2px rgba(10, 20, 40, .05), 0 20px 50px -24px rgba(10, 20, 40, .2);
  --shadow-lg: 0 40px 100px -40px rgba(10, 20, 40, .35);
  --glow-a: rgba(77, 163, 255, .2);
  --glow-b: rgba(63, 224, 197, .14);
  --grid-line: rgba(10, 20, 40, .05);
  --noise-opacity: .02;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--bg);
  overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
/* film grain */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: var(--noise-opacity);
  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");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: rgba(77, 163, 255, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }
.skip-link { position: absolute; left: -9999px; top: 10px; z-index: 400; background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { left: 12px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -.028em; font-weight: 700; color: var(--text); }
.display { font-size: clamp(42px, 6.6vw, 84px); letter-spacing: -.045em; line-height: 1; font-weight: 750; }
.h2 {
  font-size: clamp(32px, 4.3vw, 54px); letter-spacing: -.038em; line-height: 1.04; font-weight: 700;
  background: var(--title-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
.lead { font-size: clamp(17px, 1.55vw, 20px); color: var(--muted); max-width: 620px; line-height: 1.6; }
.gradient-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-glass);
  font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
code, .mono { font-family: var(--mono); font-size: .86em; }
p code { padding: 2px 7px; border-radius: 7px; background: var(--accent-soft); border: 1px solid var(--border); }

/* ---------- Buttons ---------- */
.btn {
  --py: 12px; --px: 22px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; overflow: hidden;
  padding: var(--py) var(--px); border-radius: 999px; border: 1px solid transparent;
  font-size: 15.5px; font-weight: 600; letter-spacing: -.005em; line-height: 1.2; white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s, background-color .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:hover svg.go { transform: translateX(3px); }
.btn-primary {
  color: #03111f; background: var(--grad);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15) inset, 0 10px 30px -10px rgba(77, 163, 255, .7), 0 0 40px -10px rgba(63, 224, 197, .5);
}
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg);
  transition: left .6s var(--ease);
}
.btn-primary:hover::after { left: 130%; }
.btn-glass { color: var(--text); background: var(--surface-glass); border-color: var(--border-strong); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-glass:hover { border-color: rgba(124, 192, 255, .5); background: var(--accent-soft); }
.btn-sm { --py: 9px; --px: 16px; font-size: 14.5px; }
.btn-lg { --py: 15px; --px: 28px; font-size: 16.5px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 15.5px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Floating capsule header ---------- */
.site-header { position: fixed; top: 14px; left: 0; right: 0; z-index: 200; pointer-events: none; }
.nav {
  pointer-events: auto; position: relative; max-width: 1140px; margin: 0 auto; height: 60px;
  display: flex; align-items: center; gap: 12px; padding: 0 10px 0 18px; border-radius: 999px;
  background: var(--surface-glass); border: 1px solid var(--border);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 10px 40px -12px rgba(0, 0, 0, .5);
  transition: background-color .25s, border-color .25s;
}
.site-header.scrolled .nav { border-color: var(--border-strong); }
@media (max-width: 1180px) { .nav { margin: 0 16px; } }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.logo img { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0 auto; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color .15s, background-color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .06); }
:root[data-theme="light"] .nav-links a[aria-current="page"] { background: rgba(10, 20, 40, .05); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: transparent; border: 1px solid transparent; color: var(--muted); transition: color .15s, background-color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, .06); border-color: var(--border); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme="light"] .theme-toggle .moon { display: block; }
:root[data-theme="light"] .theme-toggle .sun { display: none; }
.menu-toggle { display: none; }
.nav-links .mobile-only { display: none; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-grid; }
  .nav-actions .btn { display: none; }
  .nav { justify-content: space-between; }
  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px; border-radius: 24px;
    background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top center;
    transition: opacity .2s, transform .2s var(--ease), visibility .2s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 13px 16px; font-size: 16px; border-radius: 14px; }
  .nav-links .mobile-only { display: block; }
  .nav-links .mobile-only .btn { width: 100%; margin-top: 6px; }
}

/* ---------- Ambient backgrounds ---------- */
.ambient {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
  mask-image: linear-gradient(#000 50%, transparent 95%); -webkit-mask-image: linear-gradient(#000 50%, transparent 95%);
}
.ambient::before, .ambient::after { content: ""; position: absolute; border-radius: 50%; filter: blur(90px); animation: drift 20s ease-in-out infinite alternate; }
.ambient::before { width: 700px; height: 700px; top: -300px; right: -150px; background: var(--glow-a); }
.ambient::after { width: 600px; height: 600px; top: 10%; left: -300px; background: var(--glow-b); animation-delay: -10s; }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 65% 55% at 50% 35%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 35%, #000 25%, transparent 75%);
}
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(50px, 40px, 0) scale(1.1); } }

/* horizon glow — premium arc under page heroes */
.horizon { position: absolute; left: 50%; bottom: -1px; width: 140%; height: 190px; transform: translateX(-50%); pointer-events: none; z-index: 0; }
.horizon::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 100%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: var(--bg); box-shadow: 0 -2px 0 0 rgba(124, 192, 255, .5), 0 -20px 80px -10px rgba(77, 163, 255, .45), 0 -60px 160px -20px rgba(63, 224, 197, .25);
}
:root[data-theme="light"] .horizon::before { box-shadow: 0 -2px 0 0 rgba(30, 116, 214, .35), 0 -20px 80px -10px rgba(77, 163, 255, .3); }

/* ---------- Sections ---------- */
.section { position: relative; padding: 128px 0; }
.section-sm { padding: 88px 0; }
@media (max-width: 640px) { .section { padding: 84px 0; } .section-sm { padding: 60px 0; } }
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head .h2 { margin-bottom: 18px; }
.divider { height: 1px; max-width: var(--max); margin: 0 auto; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 170px 0 110px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; gap: 72px; } .hero { padding: 140px 0 80px; } }
.hero .display { margin: 6px 0 26px; }
.hero .lead { margin-bottom: 38px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 40px; color: var(--muted); font-size: 14.5px; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 16px; height: 16px; color: var(--ok); }
.announce {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px;
  background: var(--surface-glass); border: 1px solid var(--border); font-size: 13.5px; font-weight: 500; color: var(--text-2);
  transition: border-color .2s;
}
.announce:hover { border-color: var(--border-strong); }
.announce b { white-space: nowrap; flex: none; padding: 3px 10px; border-radius: 999px; background: var(--grad); color: #03111f; font-size: 12px; font-weight: 700; }
.announce svg { width: 14px; height: 14px; color: var(--muted); }

/* inner page hero */
.page-hero { position: relative; overflow: hidden; padding: 180px 0 250px; text-align: center; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .display { font-size: clamp(40px, 5.8vw, 72px); margin-bottom: 22px; }
.page-hero .lead { margin: 0 auto; }
.page-hero .cta-row { justify-content: center; margin-top: 36px; }
@media (max-width: 640px) { .page-hero { padding: 140px 0 200px; } .horizon { height: 150px; } }

/* ---------- Phone mockup ---------- */
.device-stage { position: relative; display: grid; place-items: center; min-height: 600px; }
.device-stage .ring {
  position: absolute; width: 470px; height: 470px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 25%, rgba(77, 163, 255, .55), rgba(63, 224, 197, .45), transparent 70% 100%);
  filter: blur(50px); opacity: .55; animation: spin 14s linear infinite;
}
.device-stage .orbit { position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 1px dashed var(--border-strong); opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }
.phone {
  position: relative; z-index: 1; width: 300px; height: 612px; border-radius: 50px; padding: 11px;
  background: linear-gradient(155deg, #3a4a68 0%, #0d1528 45%, #1f2d4a 100%);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .1) inset, 0 0 0 6px #050a15 inset, 0 0 80px -20px rgba(77, 163, 255, .45);
}
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; width: 94px; height: 27px; border-radius: 20px; background: #000; transform: translateX(-50%); z-index: 3; }
.screen { height: 100%; border-radius: 40px; overflow: hidden; display: flex; flex-direction: column; background: radial-gradient(120% 60% at 50% 0%, #0f1d36, #070d19 60%); color: #e6edf8; font-size: 13px; }
.screen-status { height: 50px; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 28px 6px; font-size: 12px; font-weight: 600; color: #cfd9ea; }
.screen-head { display: flex; align-items: center; gap: 10px; padding: 10px 16px 12px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #03111f; background: var(--grad); }
.screen-head strong { display: block; font-size: 14px; line-height: 1.2; }
.screen-head small { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: #5fe6cf; }
.screen-head small svg { width: 10px; height: 10px; }
.thread { flex: 1; display: flex; flex-direction: column; gap: 9px; padding: 16px 14px; line-height: 1.42; }
.bubble { max-width: 80%; padding: 9px 12px; border-radius: 18px; opacity: 0; transform: translateY(10px) scale(.98); animation: bubble-in .6s var(--ease) forwards; }
.bubble.in { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .06); border-bottom-left-radius: 6px; }
.bubble.out { align-self: flex-end; background: linear-gradient(135deg, #2f8cf0, #1565c0); color: #fff; border-bottom-right-radius: 6px; box-shadow: 0 8px 20px -10px rgba(47, 140, 240, .8); }
.bubble time { display: block; margin-top: 2px; font-size: 10px; opacity: .6; text-align: right; }
.bubble:nth-child(2) { animation-delay: .5s; } .bubble:nth-child(3) { animation-delay: 1.1s; } .bubble:nth-child(4) { animation-delay: 1.7s; } .bubble:nth-child(5) { animation-delay: 2.3s; }
.sys-note { align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(63, 224, 197, .1); color: #7fe8d4; font-size: 11px; }
.sys-note svg { width: 11px; height: 11px; }
.composer { display: flex; align-items: center; justify-content: space-between; margin: 0 12px 16px; padding: 10px 10px 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .06); color: #6f84a6; font-size: 12.5px; }
.composer span:last-child { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #03111f; }
.composer svg { width: 14px; height: 14px; }
@keyframes bubble-in { to { opacity: 1; transform: none; } }

.float-chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 11px; white-space: nowrap;
  padding: 10px 16px 10px 10px; border-radius: 18px; background: var(--surface-glass); border: 1px solid var(--border-strong);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow);
  font-size: 13px; font-weight: 600; color: var(--text); animation: float 6s ease-in-out infinite;
}
.float-chip small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.float-chip .chip-icon { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--border); }
.float-chip .chip-icon svg { width: 17px; height: 17px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
/* chips sit on the phone's bezel edge, never over the chat content */
@media (min-width: 1200px) {
  .chip-1 { top: 120px; left: -64px; }
  .chip-2 { top: 50%; right: -64px; animation-delay: -3s; }
  .chip-3 { bottom: 90px; left: -64px; animation-delay: -1.5s; }
}
@media (max-width: 1199px) { .float-chip { display: none; } }
@media (max-width: 1000px) { .device-stage .orbit { display: none; } .device-stage { min-height: 0; } }
@media (max-width: 520px) { .phone { width: 272px; height: 556px; } .device-stage .ring { width: 340px; height: 340px; } }

/* ---------- Marquee ---------- */
.marquee {
  position: relative; overflow: hidden; padding: 22px 0; border-block: 1px solid var(--border);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; gap: 56px; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 550; font-size: 15.5px; white-space: nowrap; }
.marquee-item svg { width: 18px; height: 18px; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Premium card (gradient border + cursor spotlight) ---------- */
.card {
  position: relative; isolation: isolate; border-radius: var(--radius); padding: 32px;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--border-grad) border-box;
  border: 1px solid transparent; box-shadow: var(--shadow); overflow: hidden;
  transition: transform .3s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--spot), transparent 45%);
}
.card:hover::before { opacity: 1; }
.card:hover { transform: translateY(-2px); }
.card h3 { font-size: 20px; margin-bottom: 10px; letter-spacing: -.02em; }
.card p { color: var(--muted); font-size: 16px; }
.icon-tile {
  position: relative; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; color: var(--accent);
  background: linear-gradient(160deg, rgba(77, 163, 255, .18), rgba(63, 224, 197, .06)); border: 1px solid rgba(124, 192, 255, .22);
  box-shadow: 0 0 24px -8px rgba(77, 163, 255, .5) inset;
}
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile.lg { width: 60px; height: 60px; border-radius: 18px; }
.icon-tile.lg svg { width: 28px; height: 28px; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento .card { display: flex; flex-direction: column; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; }
@media (max-width: 1000px) { .span-2, .span-3, .span-4 { grid-column: span 3; } .bento .wide-md { grid-column: span 6; } }
@media (max-width: 640px) { .span-2, .span-3, .span-4 { grid-column: span 6; } }
.card-visual { margin-top: auto; padding-top: 28px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* visuals inside cards */
.no-signup { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: center; }
@media (max-width: 560px) { .no-signup { grid-template-columns: 1fr; } }
.field-list { display: grid; gap: 8px; }
.field { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-radius: 12px; border: 1px dashed var(--border-strong); color: var(--muted); font-size: 14px; }
.field s { text-decoration-color: var(--no); text-decoration-thickness: 2px; }
.field .x { color: var(--no); font-weight: 700; }
.qr-box { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: var(--accent-soft); border: 1px solid rgba(124, 192, 255, .2); }
.qr-box svg.qr { width: 74px; height: 74px; flex: none; border-radius: 10px; background: #fff; padding: 6px; box-shadow: 0 0 30px -6px rgba(77, 163, 255, .6); }
.qr-box strong { display: block; font-size: 15px; }
.qr-box span { font-size: 13.5px; color: var(--muted); }
.key-chain { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.key { padding: 7px 10px; border-radius: 10px; font-family: var(--mono); font-size: 12px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.key.old { opacity: .4; text-decoration: line-through; }
.key.now { border-color: transparent; background: var(--grad); color: #03111f; font-weight: 700; box-shadow: 0 0 24px -4px rgba(77, 163, 255, .7); }
.key-chain .arrow { color: var(--muted); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13.5px; font-weight: 550; color: var(--text-2); }
.chip svg { width: 15px; height: 15px; }
.snippet { font-family: var(--mono); font-size: 12.5px; line-height: 1.75; padding: 16px 18px; border-radius: 14px; background: #050912; color: #a9b8d0; border: 1px solid rgba(255, 255, 255, .07); overflow-x: auto; }
.snippet .k { color: #7cc4ff; } .snippet .s { color: #6ee7c8; } .snippet .c { color: #56657f; }

/* ---------- Demo ---------- */
.demo { display: grid; grid-template-columns: .92fr 1.08fr; gap: 64px; align-items: center; }
@media (max-width: 1000px) { .demo { grid-template-columns: 1fr; gap: 44px; } }
.window {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--border-grad) border-box; border: 1px solid transparent;
  box-shadow: var(--shadow-lg), 0 0 100px -40px rgba(77, 163, 255, .5);
}
.window-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); font-size: 13px; color: var(--muted); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.window-bar span { margin-left: 8px; }
.demo-body { padding: 26px; display: grid; gap: 18px; }
.demo-label { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.demo-label .tag { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(124, 192, 255, .2); }
.input, .demo-input {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--bg-2);
  color: var(--text); font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .demo-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(77, 163, 255, .18); }
textarea.input { min-height: 150px; resize: vertical; line-height: 1.6; }
.cipher-out { min-height: 108px; padding: 14px 16px; border-radius: 14px; background: #050912; color: #6ee7c8; font-family: var(--mono); font-size: 13px; line-height: 1.65; word-break: break-all; border: 1px solid rgba(255, 255, 255, .07); text-shadow: 0 0 14px rgba(110, 231, 200, .35); }
.demo-flow { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 13px; }
.demo-flow svg { width: 18px; height: 18px; color: var(--accent); }
.demo-foot { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.demo-foot svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--ok); }

/* ---------- Lists ---------- */
.check-list { list-style: none; display: grid; gap: 15px; margin-top: 30px; }
.check-list li { display: flex; gap: 12px; color: var(--text-2); }
.check-list svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--ok); }
.check-list b { color: var(--text); font-weight: 650; }
.check-list.muted-icons svg { color: var(--muted); }

/* ---------- Steps ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; }
.steps::before { content: ""; position: absolute; top: 30px; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, rgba(124, 192, 255, .5) 20%, rgba(63, 224, 197, .5) 80%, transparent); }
.step { position: relative; text-align: center; padding: 0 8px; }
.step-num {
  position: relative; z-index: 1; width: 60px; height: 60px; margin: 0 auto 24px; border-radius: 20px; display: grid; place-items: center; color: var(--accent);
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--border-grad) border-box; border: 1px solid transparent;
  box-shadow: var(--shadow), 0 0 30px -10px rgba(77, 163, 255, .6);
}
.step-num svg { width: 24px; height: 24px; }
.step small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; color: var(--accent); margin-bottom: 8px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; } .steps::before { display: none; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Tables ---------- */
.table-wrap { border-radius: var(--radius-lg); overflow-x: auto; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--border-grad) border-box; border: 1px solid transparent; box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 560px; }
.table th, .table td { padding: 18px 24px; text-align: left; border-bottom: 1px solid var(--border); }
.table tr:last-child td { border-bottom: 0; }
.table thead th { font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.table thead th.us { color: var(--accent); }
.table td.us { background: linear-gradient(180deg, rgba(77, 163, 255, .07), rgba(63, 224, 197, .04)); font-weight: 600; }
.table td:first-child { color: var(--text-2); font-weight: 520; }
.yes, .no, .meh, .soon { display: inline-flex; align-items: center; gap: 8px; }
.yes { color: var(--ok); } .no { color: var(--no); } .meh { color: var(--muted); font-weight: 500; } .soon { color: var(--warn); font-weight: 550; }
.yes svg, .no svg, .soon svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .table th, .table td { padding: 14px; font-size: 14px; } }

/* ---------- Split rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; gap: 44px; } .split.reverse > :first-child { order: 0; } }
.feature-row + .feature-row { margin-top: 128px; }
@media (max-width: 640px) { .feature-row + .feature-row { margin-top: 84px; } }
.visual-panel {
  position: relative; border-radius: var(--radius-lg); padding: 36px; min-height: 320px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(80% 70% at 50% 0%, rgba(77, 163, 255, .14), transparent 70%), linear-gradient(var(--surface), var(--surface)) padding-box, var(--border-grad) border-box;
  border: 1px solid transparent; box-shadow: var(--shadow);
}
.visual-panel > * { position: relative; z-index: 1; width: 100%; }

.flow-stack { display: grid; gap: 14px; }
.flow-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: var(--radius); background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--border-grad) border-box; border: 1px solid transparent; box-shadow: var(--shadow); }
.flow-item .icon-tile { margin: 0; flex: none; }
.flow-item h3 { font-size: 17px; margin-bottom: 3px; }
.flow-item p { color: var(--muted); font-size: 15px; }
.flow-connector { width: 1px; height: 14px; margin: -14px 0 -14px 46px; background: linear-gradient(var(--blue), var(--teal)); }

.tag-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; background: rgba(63, 224, 197, .1); color: var(--teal); border: 1px solid rgba(63, 224, 197, .25); margin-bottom: 20px; }
:root[data-theme="light"] .tag-pill { color: #0b8f7c; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--border-grad) border-box; border: 1px solid transparent; box-shadow: var(--shadow); }
.stat { padding: 32px 30px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: clamp(32px, 3.6vw, 46px); letter-spacing: -.04em; line-height: 1.1; font-weight: 750; background: var(--title-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat strong.gradient-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; }
.stat span { color: var(--muted); font-size: 15px; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); } }

/* ---------- Spec list ---------- */
.spec { border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--border-grad) border-box; border: 1px solid transparent; box-shadow: var(--shadow); }
.spec-row { display: grid; grid-template-columns: 190px 1fr; gap: 20px; padding: 18px 26px; border-bottom: 1px solid var(--border); font-size: 15.5px; }
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { color: var(--muted); font-weight: 550; }
.spec-row dd { color: var(--text); }
@media (max-width: 560px) { .spec-row { grid-template-columns: 1fr; gap: 2px; } }

.callout { display: flex; gap: 16px; padding: 24px 26px; border-radius: var(--radius); border: 1px solid rgba(124, 192, 255, .22); background: linear-gradient(160deg, rgba(77, 163, 255, .1), rgba(63, 224, 197, .04)); color: var(--text-2); font-size: 15.5px; }
.callout svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 2px; }
.callout b { color: var(--text); }

/* ---------- Platform cards ---------- */
.platform-card { display: flex; flex-direction: column; gap: 14px; }
.platform-card .icon-tile { margin-bottom: 6px; }
.platform-card p { flex: 1; }
.platform-card .btn { align-self: flex-start; }
.platform-card .reqs { font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 16px; }
.status { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 650; border: 1px solid currentColor; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.status.live { color: var(--ok); background: rgba(63, 224, 166, .08); }
.status.preview { color: var(--accent); background: var(--accent-soft); }
.status.soon { color: var(--warn); background: rgba(245, 196, 81, .08); }
.status.planned { color: var(--muted); background: transparent; }

.terminal { border-radius: var(--radius); background: #050912; border: 1px solid rgba(255, 255, 255, .08); overflow: hidden; box-shadow: var(--shadow); }
.terminal-bar { display: flex; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: #232f45; }
.terminal pre { margin: 0; padding: 20px 22px; font-family: var(--mono); font-size: 13.5px; line-height: 1.8; color: #c7d3e6; overflow-x: auto; }
.terminal .p { color: #5fe6cf; user-select: none; } .terminal .c { color: #56657f; }

/* ---------- Roadmap timeline ---------- */
.timeline { position: relative; display: grid; gap: 28px; max-width: 900px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(var(--teal), var(--blue) 40%, var(--border-strong) 75%, transparent); }
.phase { position: relative; padding-left: 72px; }
.phase-dot { position: absolute; left: 10px; top: 4px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--border-strong); }
.phase-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.phase.now .phase-dot { border-color: var(--teal); box-shadow: 0 0 20px rgba(63, 224, 197, .6); }
.phase.now .phase-dot::after { background: var(--teal); }
.phase.next .phase-dot { border-color: var(--blue); }
.phase.next .phase-dot::after { background: var(--blue); }
.phase-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.phase-head h2 { font-size: 26px; letter-spacing: -.025em; }
.phase .card { padding: 26px 28px; }
.road-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
@media (max-width: 640px) { .road-list { grid-template-columns: 1fr; } .phase { padding-left: 56px; } .timeline::before { left: 19px; } .phase-dot { left: 6px; } }
.road-list li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-2); font-size: 15.5px; }
.road-list li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.road-list li.done svg { color: var(--ok); }
.road-list li.todo svg { color: var(--muted); }
.road-list small { display: block; color: var(--muted); font-size: 13.5px; }

/* ---------- Contact ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form label { display: block; font-size: 14px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.form select.input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.form-note { font-size: 13.5px; color: var(--muted); }
.contact-card { display: flex; flex-direction: column; gap: 8px; }
.contact-card .link-arrow { margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: var(--radius); background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--border-grad) border-box; border: 1px solid transparent; transition: box-shadow .25s; }
.faq details[open] { box-shadow: var(--shadow), 0 0 60px -30px rgba(77, 163, 255, .5); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 26px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { position: relative; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--accent-soft); border: 1px solid rgba(124, 192, 255, .2); transition: transform .3s var(--ease); }
.faq .plus::before, .faq .plus::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; border-radius: 2px; background: var(--accent); transform: translate(-50%, -50%); }
.faq .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .plus { transform: rotate(45deg); }
.faq details p { padding: 0 26px 24px; color: var(--muted); font-size: 16px; }
.faq details p a { color: var(--accent); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 36px; padding: 88px 48px; text-align: center;
  background: radial-gradient(70% 90% at 50% 0%, rgba(77, 163, 255, .35), transparent 70%), radial-gradient(50% 60% at 100% 100%, rgba(63, 224, 197, .22), transparent 70%), #060c1a;
  border: 1px solid rgba(124, 192, 255, .22); box-shadow: var(--shadow-lg), 0 0 120px -50px rgba(77, 163, 255, .7);
}
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at top, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at top, #000, transparent 70%); }
.cta-band h2 { font-size: clamp(32px, 4.6vw, 58px); letter-spacing: -.04em; margin-bottom: 16px; color: #fff; }
.cta-band p { color: rgba(226, 236, 250, .78); font-size: 18.5px; max-width: 560px; margin: 0 auto 36px; }
.cta-band .cta-row { justify-content: center; }
.cta-band .btn-glass { color: #fff; border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .05); }
@media (max-width: 640px) { .cta-band { padding: 60px 22px; border-radius: 26px; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; margin-top: 128px; padding: 72px 0 0; border-top: 1px solid var(--border); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 36px; }
.footer-grid p { color: var(--muted); font-size: 15px; max-width: 300px; margin-top: 16px; }
.footer-grid h4 { font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-grid ul { list-style: none; display: grid; gap: 11px; }
.footer-grid ul a { color: var(--text-2); font-size: 15px; transition: color .15s; }
.footer-grid ul a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.footer-bottom span { display: inline-flex; align-items: center; gap: 7px; }
.footer-bottom svg { width: 15px; height: 15px; color: var(--ok); }
.wordmark {
  margin-top: 40px; font-size: clamp(64px, 17vw, 240px); font-weight: 800; letter-spacing: -.06em; line-height: .8; text-align: center; user-select: none;
  background: linear-gradient(180deg, var(--border-strong), transparent 85%); -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(12%);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */
.notfound { min-height: 78vh; display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; padding: 160px 0 80px; }
.notfound .code { font-size: clamp(120px, 22vw, 260px); font-weight: 800; letter-spacing: -.07em; line-height: .9; background: var(--grad-wide); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 60px rgba(77, 163, 255, .35)); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); filter: blur(4px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; filter: none; } }
