/* =========================================================================
   IdentSphere — "Platinum" marketing landing
   Monochrome black-&-white with a polished metallic/chrome sheen.
   Tokens per DESIGN_SYSTEM_V4.md. Vanilla CSS, zero build step.
   ========================================================================= */

/* ───────────────────────── TOKENS ───────────────────────── */
:root,
:root[data-theme="dark"] {
  --bg:           #08080a;
  --bg-2:         #101013;
  --surface:      rgba(255,255,255,0.045);
  --surface-2:    rgba(255,255,255,0.075);
  --border:       rgba(255,255,255,0.10);
  --border-soft:  rgba(255,255,255,0.08);
  --border-lit:   rgba(255,255,255,0.20);
  --text:         #f5f5f7;
  --text-dim:     #a1a1aa;
  --muted:        #6b6b73;
  --hairline:     rgba(255,255,255,0.08);
  /* metallic accents (monochrome — no hue) */
  --accent:       #d4d4da;
  --accent-2:     #ffffff;
  --accent-strong:#8c8c94;
  --silver:       #cdced4;
  --glow:         rgba(255,255,255,0.05);

  /* derived */
  --grid-dot:     rgba(255,255,255,0.05);
  --card-shadow:  inset 0 1px 0 rgba(255,255,255,0.06), 0 20px 50px rgba(0,0,0,0.40);
  --pill-bg:      #ececed;
  --pill-text:    #0a0a0b;
  --blur:         blur(14px);
  --scanline-op:  0.014;
  --term-bg:      rgba(8,8,10,0.72);
}

:root[data-theme="light"] {
  --bg:           #ffffff;
  --bg-2:         #f4f4f6;
  --surface:      #ffffff;
  --surface-2:    #f7f7f9;
  --border:       rgba(0,0,0,0.10);
  --border-soft:  rgba(0,0,0,0.07);
  --border-lit:   rgba(0,0,0,0.04);
  --text:         #0a0a0b;
  --text-dim:     #52525b;
  --muted:        #9a9aa3;
  --hairline:     rgba(0,0,0,0.08);
  --accent:       #4a4a52;
  --accent-2:     #0a0a0b;
  --accent-strong:#86868e;
  --silver:       #8c8c94;
  --glow:         rgba(0,0,0,0.04);

  --grid-dot:     rgba(0,0,0,0.045);
  --card-shadow:  inset 0 1px 0 rgba(255,255,255,0.7), 0 12px 40px rgba(0,0,0,0.06);
  --pill-bg:      #0a0a0b;
  --pill-text:    #ffffff;
  --blur:         blur(8px);
  --scanline-op:  0;
  --term-bg:      #101013;
}

/* ───────────────────────── RESET ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  transition: background-color .4s ease, color .4s ease;
}

/* radial cinematic backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 50% -8%, var(--glow), transparent 60%),
    radial-gradient(1200px 800px at 88% 4%, rgba(255,255,255,0.03), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 60%, var(--bg));
  transition: background .4s ease;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg, canvas { display: block; }
code, .mono { font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; }

::selection { background: var(--text); color: var(--bg); }

.skip {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: .6rem 1rem; border-radius: 8px;
  font-size: .85rem; font-weight: 600; z-index: 200; transition: top .2s ease;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--text-dim); outline-offset: 3px; border-radius: 4px; }

/* ───────────────────── TEXTURES ───────────────────── */
.grid-tex {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(circle at 50% 36%, #000 0%, transparent 78%);
          mask-image: radial-gradient(circle at 50% 36%, #000 0%, transparent 78%);
  opacity: .9;
}
.scanline {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: repeating-linear-gradient(0deg,
    rgba(255,255,255,var(--scanline-op)) 0px,
    rgba(255,255,255,var(--scanline-op)) 1px,
    transparent 1px, transparent 3px);
  mix-blend-mode: overlay;
}

/* ───────────────────── SHARED ───────────────────── */
.container { width: min(1180px, 92vw); margin-inline: auto; }

.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

.eyebrow {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 500; margin-bottom: 1.1rem;
}

/* chrome text — metallic vertical sheen (DESIGN_SYSTEM_V4 §1) */
.grad {
  background: linear-gradient(180deg,#ffffff 0%,#e7e7ec 36%,#b6b6c0 52%,#f3f3f6 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.12));
}
:root[data-theme="light"] .grad {
  background: linear-gradient(180deg,#3c3c44 0%,#0a0a0b 46%,#4a4a52 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: none;
}

/* lit-edge glass (DESIGN_SYSTEM_V4 §3) */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top-color: var(--border-lit);
  -webkit-backdrop-filter: var(--blur);
          backdrop-filter: var(--blur);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
}

.chip {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .42rem .8rem; border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  font-size: .72rem; letter-spacing: .1em; color: var(--text-dim);
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text); box-shadow: 0 0 0 0 var(--text);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.30); }
  70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
:root[data-theme="light"] .dot { animation-name: pulse-light; }
@keyframes pulse-light {
  0% { box-shadow: 0 0 0 0 rgba(0,0,0,.28); }
  70% { box-shadow: 0 0 0 7px rgba(0,0,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

/* buttons — glossy metallic pill (DESIGN_SYSTEM_V4 §2) */
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  /* DARK = brushed-silver pill */
  background: linear-gradient(180deg,#fbfbfd 0%,#e4e4e8 48%,#cccdd3 52%,#eeeef1 100%);
  color: #0a0a0b;
  font-weight: 600; font-size: .9rem;
  padding: .6rem 1.15rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 24px rgba(0,0,0,.45);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  white-space: nowrap;
}
.btn-pill:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 32px rgba(0,0,0,.55);
  filter: brightness(1.06);
}
:root[data-theme="light"] .btn-pill {
  /* LIGHT = glossy graphite pill */
  background: linear-gradient(180deg,#2b2b31 0%,#070708 100%);
  color: #fff;
  border: 1px solid rgba(0,0,0,.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 20px rgba(0,0,0,.22);
}
:root[data-theme="light"] .btn-pill:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 28px rgba(0,0,0,.30);
}

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 1px solid var(--border); color: var(--text);
  font-weight: 600; font-size: .9rem;
  padding: .6rem 1.15rem; border-radius: 999px;
  background: var(--surface);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.btn-ghost:hover { border-color: var(--border-lit); transform: translateY(-1px); }

/* ───────────────────────── NAV ───────────────────────── */
.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center;
  padding: 1.1rem 1rem 0;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  width: min(1180px, 96vw);
  display: flex; align-items: center; gap: 1rem;
  padding: .55rem .65rem .55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease,
              -webkit-backdrop-filter .3s ease, backdrop-filter .3s ease;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-color: var(--border);
  border-top-color: var(--border-lit);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 40px rgba(0,0,0,.32);
}

.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; }
.brand-mark { display: inline-flex; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
.brand-word { font-family: "Space Grotesk", sans-serif; font-size: 1.06rem; letter-spacing: -.01em; }

.nav-links {
  display: flex; align-items: center; gap: .35rem; margin: 0 auto;
}
.nav-links a {
  font-size: .88rem; color: var(--text-dim); font-weight: 500;
  padding: .42rem .7rem; border-radius: 999px; transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }

.nav-actions { display: flex; align-items: center; gap: .5rem; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--border-soft); background: var(--surface);
  color: var(--text-dim); cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--border); }

.theme-toggle .ic-sun { display: none; }
.theme-toggle .ic-moon { display: block; }
:root[data-theme="light"] .theme-toggle .ic-sun { display: block; }
:root[data-theme="light"] .theme-toggle .ic-moon { display: none; }

.nav-signin {
  font-size: .88rem; font-weight: 500; color: var(--text-dim);
  padding: .42rem .55rem; transition: color .15s ease;
}
.nav-signin:hover { color: var(--text); }

.nav-burger { display: none; }

.mobile-menu {
  pointer-events: auto;
  width: min(1180px, 96vw);
  margin-top: .6rem; padding: 1rem;
  display: flex; flex-direction: column; gap: .2rem;
  border-radius: 18px; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: .7rem .6rem; border-radius: 10px; color: var(--text-dim); font-weight: 500; }
.mobile-menu a:hover { background: var(--surface-2); color: var(--text); }
.mobile-menu .btn-pill { margin-top: .4rem; }

/* ───────────────────────── HERO ───────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 8rem 1rem 5rem;
  overflow: hidden;
}
#starfield {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
}
.hero-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 42%, transparent 40%, var(--bg) 100%),
    linear-gradient(180deg, transparent 65%, var(--bg) 100%);
}

.hero-inner {
  position: relative; z-index: 3;
  width: min(1180px, 92vw); margin-inline: auto;
  display: flex; flex-direction: column; align-items: flex-start;
}

.hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: .98; letter-spacing: -.03em;
  margin-bottom: 2rem; max-width: 14ch;
}

.hero-card {
  width: min(560px, 100%);
  padding: 1.5rem 1.6rem;
}
.hero-tagline { color: var(--text-dim); font-size: 1rem; line-height: 1.65; }
.hero-card-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-top: 1.4rem; padding-top: 1.3rem;
  border-top: 1px solid var(--border-soft); flex-wrap: wrap;
}
.hero-stats { display: flex; align-items: center; gap: 1.3rem; }
.stat { display: flex; flex-direction: column; gap: .2rem; }
.stat-label { font-size: .66rem; letter-spacing: .12em; color: var(--muted); }
.stat-val {
  font-family: "Space Grotesk", sans-serif; font-size: 1.7rem; font-weight: 600; line-height: 1;
  /* chrome text on hero stat values (DESIGN_SYSTEM_V4 §1) */
  background: linear-gradient(180deg,#ffffff 0%,#e7e7ec 36%,#b6b6c0 52%,#f3f3f6 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
:root[data-theme="light"] .stat-val {
  background: linear-gradient(180deg,#3c3c44 0%,#0a0a0b 46%,#4a4a52 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat-sep { width: 1px; height: 34px; background: linear-gradient(180deg,transparent,var(--border-lit),transparent); }

.arrow-cta {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 600; font-size: .92rem; color: var(--text);
  transition: gap .2s ease, color .2s ease;
}
.arrow-cta svg { transition: transform .2s ease; }
.arrow-cta:hover { gap: .8rem; }
.arrow-cta:hover svg { transform: translateX(3px); }

/* status widget (corner) */
.status-widget {
  position: absolute; z-index: 3;
  right: max(4vw, 1.5rem); bottom: 4.5rem;
  width: 232px; padding: 1.05rem 1.15rem;
}
.sw-head { display: flex; align-items: center; justify-content: space-between; }
.sw-label { font-size: .66rem; letter-spacing: .12em; color: var(--muted); }
.sw-big { font-size: 2rem; font-weight: 500; margin-top: .35rem; letter-spacing: -.01em; }
.sw-bar {
  height: 4px; border-radius: 999px; background: var(--border);
  margin: .6rem 0 .9rem; overflow: hidden;
}
.sw-bar span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg,#8c8c94,#ffffff);
  box-shadow: 0 0 10px rgba(255,255,255,.18);
}
:root[data-theme="light"] .sw-bar span {
  background: linear-gradient(90deg,#86868e,#0a0a0b);
  box-shadow: none;
}
.sw-readouts { display: flex; gap: 1.4rem; }
.sw-readouts > div { display: flex; flex-direction: column; gap: .15rem; }
.sw-k { font-size: .6rem; letter-spacing: .1em; color: var(--muted); }
.sw-v { font-size: .82rem; color: var(--text); }

.hero-live { position: absolute; z-index: 3; top: 6.4rem; right: max(4vw, 1.5rem); }
.hero-live .mono { font-size: .68rem; }

/* ───────────────────── STAT STRIP ───────────────────── */
.strip {
  border-block: 1px solid var(--border-soft);
  background: var(--surface);
}
.strip-inner {
  width: min(1180px, 92vw); margin-inline: auto;
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1rem; padding: 2rem 0;
}
.strip-item {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  text-align: center;
}
.strip-num { font-size: 1.9rem; font-weight: 500; color: var(--text); letter-spacing: -.01em; }
.strip-cap { font-size: .64rem; letter-spacing: .12em; color: var(--muted); }

/* ───────────────────── SECTIONS ───────────────────── */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }

.sec-head { max-width: 640px; margin-bottom: 3.2rem; }
.sec-head h2 {
  font-family: "Space Grotesk", sans-serif; font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.05; letter-spacing: -.02em;
}
.sec-sub { margin-top: 1.1rem; color: var(--text-dim); font-size: 1.05rem; line-height: 1.65; }
.sec-sub code, .infra-copy code {
  font-size: .9em; padding: .12em .4em; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--border-soft); color: var(--accent-2);
}

/* feature grid */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
}
.feature { padding: 1.6rem 1.5rem; transition: transform .25s ease, border-color .25s ease; }
.feature:hover { transform: translateY(-4px); border-color: var(--border); }
.ftile, .hl-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px;
  border: 1px solid var(--border); border-top-color: var(--border-lit);
  margin-bottom: 1.2rem;
}
/* monochrome lit-edge icon tiles — faint silver sheen, white/black line-icons */
.ftile-emerald,
.ftile-blue,
.ftile-violet {
  background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 6px 16px rgba(0,0,0,.25);
}
:root[data-theme="light"] .ftile-emerald,
:root[data-theme="light"] .ftile-blue,
:root[data-theme="light"] .ftile-violet {
  background: linear-gradient(160deg, rgba(0,0,0,.05), rgba(0,0,0,.01));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 4px 12px rgba(0,0,0,.05);
}
.feature h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.18rem; font-weight: 600; letter-spacing: -.01em; }
.feature-div { height: 1px; background: linear-gradient(90deg,transparent,var(--border-lit),transparent); margin: .9rem 0; }
/* light theme: dark line-icons inside silver tiles for legibility (overrides silver gradient strokes) */
:root[data-theme="light"] .ftile svg,
:root[data-theme="light"] .hl-tile svg { stroke: #0a0a0b !important; }
.feature p { color: var(--text-dim); font-size: .92rem; line-height: 1.6; }

/* ───────────────── IDENTITY INFRASTRUCTURE ───────────────── */
.infra-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center;
}
.infra-copy h2 {
  font-family: "Space Grotesk", sans-serif; font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.05; letter-spacing: -.02em;
}
.highlights { margin-top: 2.2rem; display: flex; flex-direction: column; gap: 1.3rem; }
.hl { display: flex; gap: 1rem; }
.hl-tile { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; margin: 0; }
.hl h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.05rem; font-weight: 600; }
.hl p { color: var(--text-dim); font-size: .92rem; margin-top: .25rem; line-height: 1.6; }

/* CSS globe visual */
.infra-visual { display: flex; align-items: center; justify-content: center; }
.globe {
  position: relative; width: min(420px, 80vw); aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
}
.globe-core {
  position: absolute; width: 32%; height: 32%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #cdced4 55%, #8c8c94);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.6), 0 0 48px rgba(255,255,255,.12), 0 0 96px rgba(255,255,255,.06);
}
:root[data-theme="light"] .globe-core {
  background: radial-gradient(circle at 35% 30%, #6b6b73, #2b2b31 55%, #0a0a0b);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.2), 0 0 48px rgba(0,0,0,.10);
}
.ring {
  position: absolute; border-radius: 50%; border: 1px solid var(--border);
  inset: 0;
}
.ring-1 { border-color: rgba(255,255,255,.22); animation: spin 28s linear infinite; }
.ring-2 { inset: 12%; transform: rotateX(72deg); border-color: rgba(255,255,255,.16); animation: spin 22s linear infinite reverse; }
.ring-3 { inset: 24%; transform: rotateY(70deg); border-color: rgba(255,255,255,.13); animation: spin 18s linear infinite; }
:root[data-theme="light"] .ring-1 { border-color: rgba(0,0,0,.20); }
:root[data-theme="light"] .ring-2 { border-color: rgba(0,0,0,.14); }
:root[data-theme="light"] .ring-3 { border-color: rgba(0,0,0,.11); }
.sat {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: #ffffff; box-shadow: 0 0 12px rgba(255,255,255,.5);
  top: 50%; left: 50%; margin: -4.5px;
}
.sat-1 { animation: orbit 9s linear infinite; }
.sat-2 { background: #d4d4da; box-shadow: 0 0 12px rgba(255,255,255,.4); animation: orbit 14s linear infinite reverse; }
.sat-3 { background: #8c8c94; box-shadow: 0 0 12px rgba(255,255,255,.35); animation: orbit 19s linear infinite; }
:root[data-theme="light"] .sat { background: #0a0a0b; box-shadow: 0 0 12px rgba(0,0,0,.3); }
:root[data-theme="light"] .sat-2 { background: #4a4a52; box-shadow: 0 0 12px rgba(0,0,0,.25); }
:root[data-theme="light"] .sat-3 { background: #86868e; box-shadow: 0 0 12px rgba(0,0,0,.2); }
@keyframes spin { to { transform: rotate(360deg); } }
.ring-2 { animation-name: spin2; } @keyframes spin2 { to { transform: rotateX(72deg) rotate(360deg); } }
.ring-3 { animation-name: spin3; } @keyframes spin3 { to { transform: rotateY(70deg) rotate(360deg); } }
@keyframes orbit {
  from { transform: rotate(0) translateX(150px) rotate(0); }
  to   { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
}

/* ───────────────────── QUICKSTART ───────────────────── */
.terminal { overflow: hidden; padding: 0; }
.term-bar {
  display: flex; align-items: center; gap: .5rem;
  padding: .75rem 1rem; border-bottom: 1px solid var(--border-soft);
  background: color-mix(in srgb, var(--text) 5%, transparent);
}
.tdot { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.tdot:nth-child(1) { background: #6b6b73; }
.tdot:nth-child(2) { background: #8c8c94; }
.tdot:nth-child(3) { background: #cdced4; }
.term-title { margin-left: .6rem; font-size: .72rem; color: var(--muted); }
.term-body {
  margin: 0; padding: 1.4rem 1.5rem; overflow-x: auto;
  background: var(--term-bg);
  font-size: .85rem; line-height: 1.85;
}
/* monochrome terminal syntax — luminance only, no hue */
.term-body code { font-family: "JetBrains Mono", monospace; color: #c8c8ce; white-space: pre; }
.t-c { color: #6b6b73; }
.t-p { color: #ffffff; font-weight: 500; }
.t-cmd { color: #ffffff; font-weight: 500; }
.t-n { color: #d4d4da; }
.t-s { color: #b6b6c0; }
.t-o { color: #a1a1aa; }
:root[data-theme="light"] .term-body code { color: #c8c8ce; }

.sdk-chips {
  display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; justify-content: center;
}
.sdk-chip {
  font-size: .76rem; letter-spacing: .04em; color: var(--text-dim);
  padding: .5rem .95rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.sdk-chip:hover { border-color: var(--border-lit); color: var(--text); transform: translateY(-2px); }

/* ───────────────────── CHRONOLOGY ───────────────────── */
.timeline { position: relative; max-width: 760px; margin-inline: auto; padding-left: 0; }
.timeline::before {
  content: ""; position: absolute; left: 27px; top: 12px; bottom: 12px;
  width: 1px; background: linear-gradient(180deg, transparent, var(--border) 12%, var(--border) 88%, transparent);
}
.tl-item { position: relative; padding: 0 0 2.6rem 4.5rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-ghost {
  position: absolute; left: auto; right: 0; top: -1.2rem;
  font-size: 5.5rem; font-weight: 500; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--border);
  pointer-events: none; user-select: none; opacity: .8;
}
.tl-node {
  position: absolute; left: 19px; top: .35rem;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--text-dim);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 12%, transparent), inset 0 1px 0 rgba(255,255,255,.2);
}
.tl-tag {
  display: inline-block; font-size: .68rem; letter-spacing: .1em; color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 999px; padding: .2rem .6rem; margin-bottom: .6rem;
}
.tl-body h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
.tl-body p { color: var(--text-dim); font-size: .95rem; margin-top: .35rem; line-height: 1.6; max-width: 52ch; }

/* ───────────────────── PRICING ───────────────────── */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; align-items: stretch; }
.price {
  position: relative; padding: 1.7rem 1.5rem;
  display: flex; flex-direction: column;
  transition: transform .25s ease, border-color .25s ease;
}
.price:hover { transform: translateY(-4px); }
.price-feat { border-color: var(--border-lit); box-shadow: 0 0 0 1px var(--border-lit), var(--card-shadow); }
.price-badge {
  position: absolute; top: -.7rem; left: 1.5rem;
  font-size: .6rem; letter-spacing: .12em; color: #0a0a0b; font-weight: 500;
  background: linear-gradient(180deg,#fbfbfd 0%,#cccdd3 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  padding: .28rem .65rem; border-radius: 999px;
}
:root[data-theme="light"] .price-badge {
  color: #fff;
  background: linear-gradient(180deg,#2b2b31 0%,#070708 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.price-name { font-size: .68rem; letter-spacing: .14em; color: var(--text-dim); }
.price-amt {
  font-family: "Space Grotesk", sans-serif; font-weight: 600;
  font-size: 2.7rem; line-height: 1; margin: .6rem 0 .1rem; letter-spacing: -.02em;
}
.price-amt-custom { font-size: 2rem; }
.price-cur { font-size: 1.3rem; vertical-align: super; color: var(--text-dim); margin-right: .1rem; }
.price-per { font-size: .9rem; font-weight: 400; color: var(--muted); font-family: Inter, sans-serif; }
.price-blurb { color: var(--text-dim); font-size: .88rem; margin-bottom: 1.3rem; min-height: 2.6em; }
.price-feats { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.6rem; flex: 1; }
.price-feats li {
  position: relative; padding-left: 1.5rem; font-size: .88rem; color: var(--text);
}
.price-feats li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 11px; height: 6px; border-left: 1.5px solid var(--text-dim); border-bottom: 1.5px solid var(--text-dim);
  transform: rotate(-45deg);
}
.price .btn-pill, .price .btn-ghost { width: 100%; }
/* .price-cta inherits the glossy metallic .btn-pill treatment */

/* ───────────────────── CTA BAND ───────────────────── */
.cta-band { position: relative; padding: clamp(5rem, 10vw, 8.5rem) 0; overflow: hidden; text-align: center; }
.cta-glow {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 760px; height: 760px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--glow), transparent 62%);
}
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta-inner .eyebrow { text-align: center; }
.cta-inner h2 {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1; letter-spacing: -.03em;
}
.cta-inner .sec-sub { max-width: 50ch; }
.cta-actions { display: flex; gap: .8rem; margin-top: 2rem; flex-wrap: wrap; justify-content: center; }
.cta-actions .btn-pill, .cta-actions .btn-ghost { padding: .75rem 1.5rem; }

/* ───────────────────────── FOOTER ───────────────────────── */
.footer { border-top: 1px solid var(--border-soft); padding: 4rem 0 2.5rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 3rem; border-bottom: 1px solid var(--border-soft);
}
.footer-tag { color: var(--text-dim); font-size: .9rem; margin: 1rem 0 1.3rem; max-width: 34ch; line-height: 1.6; }
.footer-chip .mono { font-size: .64rem; }
.footer-col h4 { font-size: .68rem; letter-spacing: .14em; color: var(--muted); margin-bottom: 1.1rem; }
.footer-col a { display: block; color: var(--text-dim); font-size: .9rem; padding: .32rem 0; transition: color .15s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 2rem; flex-wrap: wrap; gap: .8rem;
}
.footer-bottom .mono { font-size: .7rem; color: var(--muted); letter-spacing: .08em; }
.footer-meta { color: var(--text-dim); }

/* ───────────────────── SCROLL REVEAL ───────────────────── */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ───────────────────── RESPONSIVE ───────────────────── */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .infra-grid { gap: 2.5rem; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-signin { display: none; }
  .nav-actions .btn-pill { display: none; }
  .nav-burger { display: inline-flex; }
  .status-widget { position: static; width: 100%; max-width: 320px; margin-top: 2rem; }
  .hero { min-height: auto; padding-top: 7rem; }
  .hero-live { position: static; align-self: flex-start; margin-bottom: 1.4rem; }
  .hero-inner { align-items: stretch; }
  .strip-inner { grid-template-columns: repeat(3, 1fr); row-gap: 1.6rem; }
  .infra-grid { grid-template-columns: 1fr; }
  .infra-visual { order: -1; }
  .globe { width: min(320px, 70vw); }
}

@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .tl-ghost { font-size: 4rem; opacity: .5; }
  .hero-card-row { align-items: flex-start; }
}

@media (max-width: 375px) {
  .strip-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1rem; }
}

/* ───────────────────── REDUCED MOTION ───────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .dot { animation: none; }
  .ring, .sat { animation: none; }
}
