/* =========================================================
   LynkSPhere — main stylesheet
   Dark, tech-forward design system. No framework.
   ========================================================= */

/* ---------- Fonts (self-hosted, no Google dependency) ---------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Lexend Zetta";
  src: url("../fonts/lexend-zetta-latin-300-normal.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Lexend Zetta";
  src: url("../fonts/lexend-zetta-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #05070d;
  --bg-2: #080c17;
  --bg-3: #0c1222;
  --surface: rgba(148, 163, 184, 0.045);
  --surface-2: rgba(148, 163, 184, 0.08);
  --line: rgba(148, 163, 184, 0.13);
  --line-strong: rgba(148, 163, 184, 0.24);
  --text: #e9eef8;
  --text-2: #b4bfd3;
  --muted: #7d8aa3;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #818cf8;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --grad: linear-gradient(115deg, #22d3ee 0%, #3b82f6 50%, #818cf8 100%);
  --grad-soft: linear-gradient(115deg, rgba(34, 211, 238, 0.16), rgba(129, 140, 248, 0.16));
  --glow: 0 0 0 1px rgba(59, 130, 246, 0.35), 0 10px 40px -10px rgba(59, 130, 246, 0.55);

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

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

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgba(59, 130, 246, 0.45); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--cyan);
  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: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--blue); color: #fff; padding: 10px 14px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

/* ---------- Ambient background ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.bg-aurora {
  position: fixed; inset: -20vh -10vw auto; height: 90vh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 25% 30%, rgba(34, 211, 238, 0.16), transparent 70%),
    radial-gradient(40% 50% at 75% 20%, rgba(99, 102, 241, 0.2), transparent 70%),
    radial-gradient(30% 40% at 50% 60%, rgba(59, 130, 246, 0.12), transparent 70%);
  filter: blur(20px);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section-tight { padding-block: clamp(48px, 7vw, 80px); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.section-head p { color: var(--text-2); font-size: clamp(1rem, 1.6vw, 1.125rem); margin-top: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.7;
}
.section-head.center .eyebrow::after {
  content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.7;
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }

.divider {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--btn-bg);
  color: var(--text);
  font-weight: 600; font-size: 0.95rem; letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(148, 163, 184, 0.4); background: rgba(148, 163, 184, 0.12); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  border: 0;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 30px -8px rgba(59, 130, 246, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { background: var(--grad); box-shadow: 0 14px 40px -8px rgba(59, 130, 246, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.875rem; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--cyan); font-weight: 600;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled,
.nav.is-open {
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand { gap: 12px; }
.brand-emblem { height: 38px; width: auto; filter: drop-shadow(0 0 10px rgba(59,130,246,.35)); }
.brand-word {
  font-family: "Lexend Zetta", var(--font-display);
  font-weight: 400; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: #eef4ff; text-shadow: 0 0 14px rgba(59, 130, 246, 0.55);
  white-space: nowrap;
}
.logo-full { width: min(100%, 360px); height: auto; }
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: inline-flex; align-items: center; height: 38px; padding: 0 14px;
  border-radius: 999px;
  color: var(--text-2); font-size: 0.925rem; font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a[aria-current="page"],
.nav-links a.is-active { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface);
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    height: calc(100dvh - var(--nav-h));
    padding: 20px var(--gutter) 32px;
    background: rgba(5, 7, 13, 0.97);
    backdrop-filter: blur(16px);
    display: flex; flex-direction: column; gap: 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s;
    overflow-y: auto;
  }
  .nav.is-open .nav-menu { transform: none; opacity: 1; visibility: visible; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { height: 52px; font-size: 1.125rem; padding: 0 12px; border-radius: 12px; }
  .nav-actions { flex-direction: column; align-items: stretch; margin-top: auto; }
  .nav-actions .btn { min-height: 52px; }
  body.nav-locked { overflow: hidden; }
}
@media (min-width: 961px) {
  .nav-menu { display: flex; align-items: center; gap: 20px; flex: 1; justify-content: space-between; margin-left: 24px; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 96px));
  padding-bottom: clamp(56px, 8vw, 96px);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
}
.hero-copy { max-width: 1000px; margin-inline: auto; text-align: center; }
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.hero-lead {
  margin: 24px auto 0;
  max-width: 640px;
  color: var(--text-2);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 23, 0.7);
  font-size: 0.85rem; color: var(--text-2);
  margin-bottom: 28px;
  transition: border-color 0.2s;
}
.pill:hover { border-color: var(--line-strong); }
.pill-tag {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em;
  padding: 4px 9px; border-radius: 999px;
  background: var(--grad-soft); color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.25);
}
.hero-meta {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  color: var(--muted); font-size: 0.875rem;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--green); }

/* ---------- Head-unit device mock ---------- */
.stage { position: relative; max-width: 1080px; margin-inline: auto; width: 100%; }
.stage::before {
  content: ""; position: absolute; inset: 10% 8% -6%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(59, 130, 246, 0.35), transparent 70%);
  filter: blur(40px); z-index: -1;
}
.headunit {
  position: relative;
  border-radius: clamp(18px, 3vw, 34px);
  padding: clamp(8px, 1.2vw, 14px);
  background: linear-gradient(180deg, #1a2133, #0a0e18 40%, #0b0f1a);
  box-shadow:
    0 0 0 1px rgba(148, 163, 184, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 40px 100px -30px rgba(0, 0, 0, 0.9),
    0 0 80px -20px rgba(59, 130, 246, 0.45);
  transform: perspective(1800px) rotateX(8deg);
  transform-origin: 50% 100%;
  transition: transform 0.8s var(--ease);
}
.stage:hover .headunit { transform: perspective(1800px) rotateX(3deg); }
.headunit-screen {
  position: relative;
  border-radius: clamp(10px, 2vw, 22px);
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: #03050a;
}
.headunit-screen > img,
.headunit-screen > video { width: 100%; height: 100%; object-fit: cover; }
.headunit-reflection {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0%, transparent 30%, transparent 70%, rgba(255, 255, 255, 0.03) 100%);
}

/* Mock launcher UI (placeholder until real screenshots exist) */
.mock-ui {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 58px 1.15fr 1fr;
  gap: clamp(6px, 1vw, 12px);
  padding: clamp(8px, 1.2vw, 14px);
  background:
    radial-gradient(60% 80% at 80% 0%, rgba(99, 102, 241, 0.22), transparent 60%),
    radial-gradient(50% 70% at 10% 100%, rgba(34, 211, 238, 0.14), transparent 60%),
    #050811;
  font-size: clamp(8px, 1.05vw, 13px);
}
.mock-dock {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 10px 0; border-radius: 14px;
  background: rgba(148, 163, 184, 0.06); border: 1px solid rgba(148, 163, 184, 0.08);
}
.mock-dock i { width: 60%; aspect-ratio: 1; border-radius: 30%; background: rgba(148, 163, 184, 0.14); display: block; }
.mock-dock i:first-child { background: var(--grad); }
.mock-card {
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.1);
  padding: clamp(8px, 1.1vw, 14px);
  position: relative; overflow: hidden;
  min-width: 0;
}
.mock-map {
  background:
    linear-gradient(rgba(5, 8, 17, 0.2), rgba(5, 8, 17, 0.2)),
    repeating-linear-gradient(35deg, transparent 0 22px, rgba(148, 163, 184, 0.07) 22px 23px),
    repeating-linear-gradient(-55deg, transparent 0 34px, rgba(148, 163, 184, 0.06) 34px 35px),
    #0a1020;
}
.mock-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mock-turn {
  position: absolute; left: clamp(8px, 1.1vw, 14px); top: clamp(8px, 1.1vw, 14px);
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 12px;
  background: rgba(5, 8, 17, 0.85); border: 1px solid rgba(34, 211, 238, 0.3);
}
.mock-turn b { font-family: var(--font-display); font-size: 1.5em; line-height: 1; }
.mock-turn small { color: var(--muted); display: block; }
.mock-turn svg { position: static; width: 2em; height: 2em; color: var(--cyan); }
.mock-right { display: grid; grid-template-rows: auto 1fr; gap: clamp(6px, 1vw, 12px); min-width: 0; }
.mock-media { display: flex; align-items: center; gap: 12px; }
.mock-art {
  width: 3.8em; aspect-ratio: 1; border-radius: 10px; flex: none;
  background: conic-gradient(from 200deg, #22d3ee, #6366f1, #ec4899, #22d3ee);
}
.mock-media b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-media small { color: var(--muted); }
.mock-bar { height: 3px; border-radius: 3px; background: rgba(148, 163, 184, 0.2); margin-top: 6px; position: relative; overflow: hidden; }
.mock-bar::after { content: ""; position: absolute; inset: 0 55% 0 0; background: var(--grad); }
.mock-apps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(6px, 0.9vw, 12px);
  align-content: center;
}
.mock-app { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.mock-app i {
  width: 70%; max-width: 54px; aspect-ratio: 1; border-radius: 28%;
  display: grid; place-items: center;
  font-style: normal; font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.2em;
  background: var(--c, #334155);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.mock-app span { color: var(--text-2); font-size: 0.85em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.float-chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(10, 14, 26, 0.82);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7);
  font-size: 0.85rem;
  animation: float 6s ease-in-out infinite;
}
.float-chip small { display: block; color: var(--muted); font-size: 0.75rem; }
.float-chip .dot { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--grad-soft); color: var(--cyan); flex: none; }
.float-chip .dot svg { width: 16px; height: 16px; }
.float-chip.c1 { left: -2%; bottom: 18%; }
.float-chip.c2 { right: -2%; top: 10%; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 760px) {
  .float-chip { display: none; }
  .mock-ui { grid-template-columns: 1.2fr 1fr; }
  .mock-dock { display: none; }
  .headunit-screen { --ratio: 16 / 9 !important; }
  .mock-apps { grid-template-columns: repeat(3, 1fr); }
  .mock-apps .mock-app:nth-child(n+7) { display: none; }
}

/* ---------- Marquee (compat / apps) ---------- */
.marquee {
  position: relative; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex; gap: 12px; width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 50s; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--text-2); font-size: 0.925rem; white-space: nowrap;
}
.tag b { color: var(--text); font-weight: 600; }
.tag .tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.trust {
  padding-block: 28px;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 12, 23, 0.4), rgba(8, 12, 23, 0.8));
}
.trust-label {
  text-align: center; color: var(--muted);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 18px;
}

/* ---------- Cards / bento ---------- */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.06), rgba(148, 163, 184, 0.02));
  padding: clamp(22px, 2.6vw, 32px);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.card::before {
  /* cursor spotlight */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(59, 130, 246, 0.14), transparent 45%);
  transition: opacity 0.3s;
}
.card:hover { border-color: var(--line-strong); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 0.975rem; }

.icon-box {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: var(--cyan);
  margin-bottom: 20px;
}
.icon-box svg { width: 24px; height: 24px; }

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.bento > .card { grid-column: span 2; }
.bento > .span-3 { grid-column: span 3; }
.bento > .span-4 { grid-column: span 4; }
.bento > .span-6 { grid-column: span 6; }
.bento > .row-2 { grid-row: span 2; }
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > .card, .bento > .span-3 { grid-column: span 1; }
  .bento > .span-4, .bento > .span-6 { grid-column: span 2; }
  .bento > .row-2 { grid-row: auto; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento > .card, .bento > .span-3, .bento > .span-4, .bento > .span-6 { grid-column: auto; }
}
.card-badge {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--text-2);
}
.card-badge.beta { color: var(--amber); border-color: rgba(251, 191, 36, 0.35); }

.card-feature { display: flex; flex-direction: column; }
.card-feature .visual { margin-top: 24px; flex: 1; min-height: 140px; position: relative; }

/* mini visuals inside feature cards */
.aa-visual {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
}
.aa-phone, .aa-car {
  border: 1px solid var(--line-strong); background: #070b15;
  display: grid; place-items: center; color: var(--text-2);
}
.aa-phone { width: 64px; height: 118px; border-radius: 14px; justify-self: end; }
.aa-car { height: 96px; border-radius: 14px; }
.aa-phone svg, .aa-car svg { width: 28px; height: 28px; color: var(--cyan); }
.aa-link { display: flex; gap: 6px; }
.aa-link i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); opacity: 0.25; animation: pulse 1.4s infinite; }
.aa-link i:nth-child(2) { animation-delay: 0.2s; }
.aa-link i:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulse { 50% { opacity: 1; box-shadow: 0 0 10px var(--cyan); } }

.hud-mini {
  height: 100%; min-height: 160px;
  border-radius: 16px;
  background:
    radial-gradient(80% 60% at 50% 110%, rgba(34, 211, 238, 0.18), transparent 60%),
    linear-gradient(180deg, #0b1324, #04060c);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.hud-mini .hud-glass {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 22px; border-radius: 14px;
  color: #7ff3ff;
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.8);
  font-family: var(--font-display);
  border: 1px solid rgba(34, 211, 238, 0.18);
  background: rgba(34, 211, 238, 0.04);
}
.hud-glass svg { width: 34px; height: 34px; filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.8)); }
.hud-glass b { font-size: 1.8rem; font-weight: 600; display: block; line-height: 1; }
.hud-glass small { font-size: 0.8rem; opacity: 0.8; }
.hud-glass .sep { width: 1px; align-self: stretch; background: rgba(34, 211, 238, 0.25); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 0.8rem; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(5, 7, 13, 0.6); color: var(--text-2);
}

.lang-swap {
  display: flex; align-items: center; gap: 12px; font-family: var(--font-display);
}
.lang-swap span {
  padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: #070b15; font-size: 1.1rem;
}
.lang-swap span:last-child { border-color: rgba(34, 211, 238, 0.35); color: var(--cyan); }
.lang-swap svg { width: 20px; height: 20px; color: var(--muted); }

/* ---------- Split sections ---------- */
.split {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 80px); align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split .section-head { margin-bottom: 28px; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; color: var(--text-2); }
.check-list li svg { width: 22px; height: 22px; flex: none; color: var(--cyan); margin-top: 1px; }
.check-list li b { color: var(--text); font-weight: 600; }

/* ---------- Media: screenshot slots / gallery ---------- */
.shot {
  position: relative; margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-3);
  aspect-ratio: var(--ratio, 16 / 9);
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.shot.is-loaded { cursor: zoom-in; }
.shot.is-loaded:hover img { transform: scale(1.03); }
.shot.phone { --ratio: 9 / 19; max-width: 280px; border-radius: 28px; border-width: 6px; border-color: #1a2133; }

.shot-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; padding: 16px;
  color: var(--muted);
  background:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px) 0 0 / 24px 24px,
    radial-gradient(70% 70% at 50% 40%, rgba(59, 130, 246, 0.12), transparent 70%),
    #070b15;
}
.shot-placeholder svg { width: 32px; height: 32px; color: var(--blue); opacity: 0.8; }
.shot-placeholder strong { color: var(--text-2); font-weight: 600; font-size: 0.9rem; }
.shot-placeholder .slot-file {
  display: none;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--cyan);
  padding: 3px 8px; border-radius: 6px; background: rgba(34, 211, 238, 0.08); border: 1px dashed rgba(34, 211, 238, 0.35);
  word-break: break-all;
}
.show-slots .shot-placeholder .slot-file { display: inline-block; }
.shot-placeholder::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(148, 163, 184, 0.06) 50%, transparent 70%);
  background-size: 250% 100%;
  animation: shimmer 3.2s linear infinite;
}
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -100% 0; } }

.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-btn {
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
  font-size: 0.9rem; font-weight: 500;
  transition: all 0.2s;
}
.filter-btn:hover { color: var(--text); border-color: var(--line-strong); }
.filter-btn[aria-pressed="true"] { background: var(--grad-soft); color: var(--text); border-color: rgba(59, 130, 246, 0.5); }
.filter-btn .count { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); margin-left: 6px; }

.gallery {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}
.gallery-item { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.gallery-item[hidden] { display: none; }
.gallery-item figcaption b { display: block; font-weight: 600; font-size: 1rem; }
.gallery-item figcaption span { color: var(--muted); font-size: 0.9rem; }
.gallery-item .cat {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan);
}

.preview-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
.preview-grid > :first-child { grid-row: span 2; }
.preview-grid .shot { height: 100%; aspect-ratio: auto; min-height: 180px; }
@media (max-width: 760px) {
  .preview-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .preview-grid > :first-child { grid-row: auto; }
  .preview-grid .shot { aspect-ratio: 16 / 9; }
}

/* Video */
.video-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.video-card { display: flex; flex-direction: column; gap: 12px; }
.video {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #03050a; aspect-ratio: 16 / 9;
}
.video iframe, .video video, .video img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(3, 5, 10, 0.1), rgba(3, 5, 10, 0.55));
  border: 0; width: 100%; color: #fff;
}
.video-play span {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad);
  box-shadow: 0 0 0 10px rgba(59, 130, 246, 0.18), 0 20px 40px -10px rgba(59, 130, 246, 0.8);
  transition: transform 0.3s var(--ease);
}
.video-play:hover span { transform: scale(1.08); }
.video-play svg { width: 26px; height: 26px; margin-left: 4px; }
.video-card b { font-weight: 600; }
.video-card p { color: var(--muted); font-size: 0.9rem; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(3, 5, 10, 0.92);
  backdrop-filter: blur(10px);
  display: grid; grid-template-rows: auto 1fr auto;
  opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-top { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter); }
.lightbox-top .counter { font-family: var(--font-mono); color: var(--muted); font-size: 0.85rem; }
.lightbox-stage { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 0 var(--gutter); min-height: 0; }
.lightbox-stage img { max-height: 78vh; margin: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.lightbox-caption { text-align: center; padding: 18px var(--gutter) 28px; color: var(--text-2); }
.lightbox-caption b { color: var(--text); display: block; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: rgba(148, 163, 184, 0.08);
  transition: background 0.2s;
}
.icon-btn:hover { background: rgba(148, 163, 184, 0.18); }
.icon-btn svg { width: 20px; height: 20px; }
@media (max-width: 640px) {
  .lightbox-stage { grid-template-columns: 1fr; }
  .lightbox-stage .icon-btn { display: none; }
}

/* ---------- Steps (home) ---------- */
.steps {
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  counter-reset: step;
  position: relative;
}
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step-card { counter-increment: step; }
.step-card .step-num {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--cyan);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.step-card .step-num::before {
  content: counter(step, decimal-leading-zero);
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.06);
  font-size: 0.95rem; font-weight: 600;
}

/* ---------- Downloads ---------- */
.downloads { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .downloads { grid-template-columns: minmax(0, 1fr); } }
.dl-card {
  display: flex; align-items: center; gap: 20px;
}
.dl-card .icon-box { margin: 0; width: 56px; height: 56px; flex: none; }
.dl-card .dl-body { flex: 1; min-width: 0; }
.dl-card h3 { margin-bottom: 4px; font-size: 1.15rem; }
.dl-card .file { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); display: block; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) {
  .dl-card { flex-wrap: wrap; }
  .dl-card .btn { width: 100%; }
}

/* ---------- Pricing ---------- */
.pricing { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
@media (max-width: 960px) { .pricing { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; } }
.price-card { display: flex; flex-direction: column; gap: 24px; }
.price-card.featured {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
  box-shadow: 0 30px 80px -30px rgba(59, 130, 246, 0.6);
}
.price-card.featured::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(80% 50% at 50% 0%, rgba(59, 130, 246, 0.18), transparent 70%);
}
.price-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.price-top h3 { margin: 0 0 4px; }
.price-top p { color: var(--muted); font-size: 0.9rem; }
.price-badge {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
  background: var(--grad); color: #fff; font-weight: 600;
}
.price-badge.alt { background: rgba(251, 191, 36, 0.12); color: var(--amber); border: 1px solid rgba(251, 191, 36, 0.35); }
.price-amount { display: flex; align-items: baseline; gap: 8px; }
.price-amount .cur { font-family: var(--font-mono); color: var(--muted); font-size: 0.9rem; }
.price-amount .val { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.price-amount .per { color: var(--muted); font-size: 0.9rem; }
.price-card .check-list { gap: 12px; font-size: 0.95rem; }
.price-card .check-list svg { width: 18px; height: 18px; }
.price-card .btn { margin-top: auto; }
.pricing-note { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 24px; }

/* ---------- FAQ / accordion ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s, background 0.2s;
}
.faq details[open] { border-color: var(--line-strong); background: var(--surface-2); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 22px;
  font-weight: 600; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 12px; height: 12px; flex: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq .faq-body { padding: 0 22px 22px; color: var(--text-2); }
.faq .faq-body p + p { margin-top: 10px; }
.faq .faq-body code, .prose code {
  font-family: var(--font-mono); font-size: 0.85em;
  padding: 2px 7px; border-radius: 6px;
  background: rgba(34, 211, 238, 0.08); color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.18);
}

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: 1fr 1.1fr; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.channels { display: grid; gap: 12px; margin-top: 28px; }
.channel { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--radius); }
.channel .icon-box { margin: 0; width: 44px; height: 44px; }
.channel b { display: block; font-weight: 600; }
.channel span { color: var(--muted); font-size: 0.925rem; }
.channel .arrow { margin-left: auto; color: var(--muted); width: 18px; height: 18px; transition: transform 0.25s var(--ease), color 0.2s; }
.channel:hover .arrow { transform: translateX(4px); color: var(--cyan); }

.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 8px; }
.field > span { font-size: 0.875rem; color: var(--text-2); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(3, 5, 10, 0.6);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-size: 16px; /* avoids iOS zoom */
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237d8aa3' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 40px;
}
.field select option { background: #0a0f1c; }
.field input::placeholder, .field textarea::placeholder { color: #56627a; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}
.form-honey { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-status {
  padding: 12px 16px; border-radius: 12px; font-size: 0.925rem;
  border: 1px solid var(--line);
}
.form-status[hidden] { display: none; }
.form-status.is-success { border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.08); color: #a7f3d0; }
.form-status.is-error { border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.08); color: #fecaca; }
.form-status.is-loading { border-color: rgba(59, 130, 246, 0.4); background: rgba(59, 130, 246, 0.08); color: #bfdbfe; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(40px, 7vw, 80px) clamp(24px, 5vw, 64px);
  text-align: center;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(59, 130, 246, 0.25), transparent 70%),
    linear-gradient(180deg, var(--bg-3), var(--bg-2));
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, #000, transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); max-width: 720px; margin-inline: auto; }
.cta-band p { color: var(--text-2); margin: 16px auto 0; max-width: 560px; }
.cta-band .hero-cta { margin-top: 32px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 32px; margin-top: 40px; background: linear-gradient(180deg, transparent, rgba(8, 12, 23, 0.9)); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.6fr repeat(3, 1fr); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .brand-emblem { height: 44px; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; max-width: 340px; }
.footer h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--text-2); font-size: 0.925rem; transition: color 0.2s; }
.footer ul a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  color: var(--muted); font-size: 0.8rem;
}
.status-dot { display: inline-flex; align-items: center; gap: 8px; }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 88px));
  padding-bottom: clamp(32px, 5vw, 56px);
}
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -0.03em; }
.page-hero p.lead { color: var(--text-2); font-size: clamp(1.05rem, 1.8vw, 1.2rem); margin-top: 18px; max-width: 680px; }
.page-hero.center { text-align: center; }
.page-hero.center p.lead { margin-inline: auto; }
.breadcrumbs { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); margin-bottom: 20px; display: flex; gap: 8px; }
.page-hero.center .breadcrumbs { justify-content: center; }
.breadcrumbs a:hover { color: var(--text); }

.stat-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page-hero.center .stat-row { justify-content: center; }
.stat {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  font-size: 0.9rem; color: var(--text-2);
}
.stat svg { width: 18px; height: 18px; color: var(--cyan); }

/* ---------- Install guide ---------- */
.guide-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 1024px) { .guide-layout { grid-template-columns: minmax(0, 1fr); } }
.toc {
  position: sticky; top: calc(var(--nav-h) + 24px);
  border-left: 1px solid var(--line);
  padding-left: 4px;
}
.toc h4 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px 16px; font-weight: 500; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a {
  display: block; padding: 8px 16px; margin-left: -5px;
  border-left: 2px solid transparent;
  color: var(--muted); font-size: 0.9rem;
  transition: color 0.2s, border-color 0.2s;
}
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--text); border-left-color: var(--cyan); }
@media (max-width: 1024px) { .toc { display: none; } }

.tabs {
  display: inline-flex; gap: 4px; padding: 4px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  margin-bottom: 28px;
}
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 999px; border: 0;
  background: transparent; color: var(--text-2); font-weight: 600; font-size: 0.925rem;
  transition: background 0.2s, color 0.2s;
}
.tab svg { width: 18px; height: 18px; }
.tab[aria-selected="true"] { background: var(--grad); color: #fff; box-shadow: 0 6px 20px -8px rgba(59, 130, 246, 0.8); }
[data-platform-only][hidden] { display: none !important; }

.req-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.req { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); }
.req .icon-box { margin: 0; width: 40px; height: 40px; border-radius: 12px; flex: none; }
.req .icon-box svg { width: 20px; height: 20px; }
.req b { display: block; font-weight: 600; margin-bottom: 2px; }
.req span { color: var(--muted); font-size: 0.9rem; }

.timeline { position: relative; display: grid; gap: 20px; counter-reset: gstep; }
.timeline::before {
  content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 1px;
  background: linear-gradient(180deg, var(--cyan), var(--violet) 60%, transparent);
  opacity: 0.4;
}
.g-step { position: relative; padding-left: 72px; counter-increment: gstep; }
.g-step::before {
  content: counter(gstep);
  position: absolute; left: 0; top: 0;
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  background: var(--bg-2);
  border: 1px solid rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 6px var(--bg), 0 0 24px -4px rgba(59, 130, 246, 0.6);
  color: var(--text);
}
.g-step .card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.g-step .card.no-media { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) {
  .g-step { padding-left: 0; padding-top: 60px; }
  .timeline::before { display: none; }
  .g-step .card { grid-template-columns: minmax(0, 1fr); }
}
.g-step h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 12px; }
.g-step .meta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; display: block; }
.prose { color: var(--text-2); }
.prose p + p, .prose p + ul, .prose ul + p, .prose ol + p, .prose p + ol { margin-top: 12px; }
.prose ul, .prose ol { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.prose li::marker { color: var(--cyan); }
.prose b, .prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(34, 211, 238, 0.4); }
.ui-label {
  display: inline-block; font-weight: 600; color: var(--text);
  padding: 1px 8px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface-2);
  font-size: 0.9em; white-space: nowrap;
}

.callout {
  display: flex; gap: 14px;
  padding: 16px 18px; border-radius: 14px; margin-top: 16px;
  border: 1px solid rgba(59, 130, 246, 0.3); background: rgba(59, 130, 246, 0.07);
  color: var(--text-2); font-size: 0.925rem;
}
.callout svg { width: 20px; height: 20px; flex: none; color: var(--blue); margin-top: 2px; }
.callout.warn { border-color: rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.06); }
.callout.warn svg { color: var(--amber); }
.callout.ok { border-color: rgba(52, 211, 153, 0.3); background: rgba(52, 211, 153, 0.06); }
.callout.ok svg { color: var(--green); }
.callout b { color: var(--text); }

.terminal {
  margin-top: 16px;
  border-radius: 14px; border: 1px solid var(--line);
  background: #03050a;
  font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.7;
  overflow: hidden;
}
.terminal-bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(148, 163, 184, 0.04); }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.terminal-bar span { margin-left: 8px; color: var(--muted); font-size: 0.72rem; }
.terminal pre { margin: 0; padding: 14px 16px; overflow-x: auto; color: var(--text-2); white-space: pre; }
.terminal .ok { color: var(--green); }
.terminal .dim { color: #56627a; }
.terminal .hl { color: var(--cyan); }

.tips-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.tip .icon-box { margin-bottom: 16px; }
.tip h3 { font-size: 1.1rem; }

/* ---------- Register page ---------- */
.auth-wrap { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 960px) { .auth-wrap { grid-template-columns: minmax(0, 1fr); } .auth-aside { display: none; } }
.auth-aside {
  position: relative; overflow: hidden;
  padding: 48px clamp(32px, 5vw, 72px);
  display: flex; flex-direction: column; justify-content: space-between;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(70% 60% at 30% 20%, rgba(59, 130, 246, 0.22), transparent 70%),
    radial-gradient(60% 60% at 80% 90%, rgba(34, 211, 238, 0.12), transparent 70%),
    var(--bg-2);
}
.auth-aside h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-top: 24px; }
.auth-aside .check-list { margin-top: 32px; }
.auth-main { display: flex; flex-direction: column; padding: 32px var(--gutter); }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.auth-card { width: 100%; max-width: 480px; margin: auto; padding-block: 40px; }
.auth-card h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.auth-card .lead { color: var(--text-2); margin-top: 12px; }
.auth-steps { display: flex; gap: 8px; margin: 24px 0; }
.auth-steps span {
  flex: 1; font-size: 0.75rem; color: var(--muted); font-family: var(--font-mono);
  padding-top: 10px; border-top: 2px solid var(--line-strong);
}
.auth-steps span.on { color: var(--text); border-top-color: var(--cyan); }
.auth-footer-links { margin-top: 24px; color: var(--muted); font-size: 0.9rem; text-align: center; }
.auth-footer-links a { color: var(--text-2); }
.auth-footer-links a:hover { color: var(--cyan); }
.success-box { text-align: center; }
.success-box[hidden] { display: none; }
.success-box .icon-box { margin: 0 auto 20px; width: 64px; height: 64px; border-radius: 20px; color: var(--green); background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.35); }
.success-box .icon-box svg { width: 30px; height: 30px; }
.success-box h2 { font-size: 1.8rem; }
.success-box p { color: var(--text-2); margin-top: 12px; }
.success-box .actions { display: grid; gap: 10px; margin-top: 28px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
.js .reveal[data-delay="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------- Misc ---------- */
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.mt-0 { margin-top: 0 !important; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.center { text-align: center; }
.back-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.3s var(--ease);
  background: rgba(10, 14, 26, 0.9);
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: none; }

@media (max-width: 520px) {
  .hud-mini .hud-glass { gap: 12px; padding: 12px 14px; }
  .hud-glass b { font-size: 1.35rem; white-space: nowrap; }
  .hud-glass svg { width: 26px; height: 26px; }
  .aa-phone { width: 52px; height: 96px; }
  .aa-car { height: 76px; }
}

@media (max-width: 960px) {
  .nav.is-open { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-menu { background: var(--bg); backdrop-filter: none; }
}

@media (max-width: 420px) {
  .hud-glass .sep, .hud-glass > div:last-child { display: none; }
}

.hero-logo { width: clamp(200px, 26vw, 300px); height: auto; margin: -24px auto 8px; }
