/* Palette tokens that don't flip on theme change — moved from @theme
 * to :root so plain CSS works without the Tailwind v4 preprocessor.
 * Colors that flip per theme live in the theme-scoped :root blocks
 * below. */
:root {
  --color-warn: #ffb86b;
  --color-warm: #d29b64;  /* bronze/gold — used in orb + accents */

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ==============================================================
 * Theme system — Sprint 0 scaffold (v0.22.11 web)
 *
 * The <html> element carries a `data-theme` attribute set to
 * "light" | "dark" by the ThemeProvider on mount + on system
 * preference change. CSS below defines both palettes with the
 * dark one as the default (matches historical behaviour + used
 * when data-theme is absent).
 *
 * @theme block above owns tokens that do NOT flip. :root below
 * defines the flipping tokens.
 * ============================================================== */

:root,
:root[data-theme="dark"] {
  color-scheme: dark;

  --color-ink:    #07080b;   /* deepest surface / page background */
  --color-ink-2:  #0d0e15;   /* card surface */
  --color-ink-3:  #181a25;   /* elevated surface */
  --color-bone:   #ececf1;   /* primary text */
  --color-bone-2: #c9c9d6;   /* secondary text */
  --color-bone-3: #888894;   /* muted text / captions */

  --color-pulse:   #7c5cff;  /* brand purple — bright on dark */
  --color-pulse-2: #6ec4e8;  /* brand cyan  — bright on dark */

  --hairline:   rgba(255, 255, 255, 0.06);
  --hairline-2: rgba(255, 255, 255, 0.10);
  --hairline-strong: rgba(255, 255, 255, 0.14);

  /* Chrome + surfaces that need semi-transparent panels the theme
   * flips (Nav backdrop, card fills, hover tints). */
  --nav-bg: rgba(7, 8, 11, 0.55);
  --surface:   rgba(255, 255, 255, 0.015);
  --surface-2: rgba(255, 255, 255, 0.03);
  --surface-3: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.04);

  /* Accent tokens for tinted surfaces (badge fills, active states) */
  --pulse-tint:      rgba(124, 92, 255, 0.07);
  --pulse-tint-2:    rgba(124, 92, 255, 0.14);
  --pulse-border:    rgba(124, 92, 255, 0.35);
  --pulse-2-tint:    rgba(110, 196, 232, 0.08);
  --pulse-2-border:  rgba(110, 196, 232, 0.40);

  --shadow-pulse: 0 16px 40px -16px rgba(190, 118, 255, 0.4), 0 4px 14px -4px rgba(0, 0, 0, 0.6);

  /* Decorative artifacts — flipped for theme */
  --orb-gradient: radial-gradient(
    circle at 35% 30%,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(230, 210, 255, 0.55) 22%,
    rgba(210, 155, 100, 0.75) 52%,
    rgba(155, 118, 220, 0.90) 82%,
    rgba(90, 62, 160, 0.98) 100%
  );
  --orb-glow: 0 0 40px rgba(189, 158, 255, 0.30), 0 0 12px rgba(189, 158, 255, 0.55);
  --orb-lg-wash:
    radial-gradient(60% 60% at 50% 50%, rgba(124, 92, 255, 0.22), transparent 65%),
    radial-gradient(40% 40% at 65% 55%, rgba(110, 196, 232, 0.14), transparent 70%);

  --grid-line: rgba(255, 255, 255, 0.045);
  --grid-line-strong: rgba(255, 255, 255, 0.08);

  /* Accent text — accents readable ON the current background.
   * Dark = the bright brand hues. Light = a slightly darker version
   * so contrast against a light bg passes AAA. */
  --accent-text:   #bd9eff;
  --accent-text-2: #6ec4e8;

  --shadow-card: 0 4px 24px -8px rgba(0, 0, 0, 0.5);

  /* Dashboard surface tokens — the workspace shell needs several
   * distinct ground levels (canvas / card / panel / scrim). Panel
   * grounds MUST be fully opaque; they were previously alpha-based
   * on the assumption backdrop-filter on the same element would
   * frost them, but the blur lives on the scrim parent so the
   * alpha leaked whatever was behind on every render. */
  --workspace-canvas:    #0a0b0e;
  --card-elev:           rgba(13, 14, 21, 0.55);
  --card-elev-strong:    rgba(13, 14, 21, 0.85);
  --panel-bg:            #0b0c12;
  --panel-bg-strong:     #0b0c12;
  --overlay-scrim:       rgba(8, 6, 20, 0.62);
  --overlay-scrim-soft:  rgba(8, 6, 20, 0.55);

  /* Gradient wash on <body> that varies by theme */
  --body-wash:
    radial-gradient(1400px 900px at 50% -10%, rgba(124, 92, 255, 0.10), transparent 60%),
    radial-gradient(1100px 700px at 100% 110%, rgba(74, 214, 255, 0.06), transparent 60%);
}

/* Light mode requires a broader override set — surfaces need to be
 * TINTED (not translucent white on white), accents darkened for
 * contrast, and borders visible instead of near-invisible. */
:root[data-theme="light"],
:root:not([data-theme]) {
  color-scheme: light;

  /* Slightly warm, subtly purple-tinted whites so pure-white cards
   * pop against the page instead of dissolving into it. */
  --color-ink:    #f6f5fa;
  --color-ink-2:  #ffffff;
  --color-ink-3:  #eeecf5;
  --color-bone:   #14151a;
  --color-bone-2: #3a3b46;
  --color-bone-3: #6d6e78;

  /* Brand accents darkened for legibility on light ground. */
  --color-pulse:   #5834d8;
  --color-pulse-2: #2570a0;

  --hairline:        rgba(20, 21, 26, 0.14);
  --hairline-2:      rgba(20, 21, 26, 0.22);
  --hairline-strong: rgba(20, 21, 26, 0.34);

  --nav-bg: rgba(255, 255, 255, 0.78);
  --surface:       rgba(20, 21, 26, 0.03);
  --surface-2:     rgba(20, 21, 26, 0.05);
  --surface-3:     rgba(20, 21, 26, 0.07);
  --surface-hover: rgba(20, 21, 26, 0.04);

  --pulse-tint:      rgba(88, 60, 220, 0.08);
  --pulse-tint-2:    rgba(88, 60, 220, 0.16);
  --pulse-border:    rgba(88, 60, 220, 0.42);
  --pulse-2-tint:    rgba(38, 130, 180, 0.10);
  --pulse-2-border:  rgba(38, 130, 180, 0.45);

  --accent-text:   #5834d8;
  --accent-text-2: #2570a0;

  --shadow-card:
    0 1px 2px rgba(20, 21, 26, 0.04),
    0 8px 24px -10px rgba(88, 60, 220, 0.14),
    0 22px 48px -22px rgba(20, 21, 26, 0.18);

  --shadow-pulse:
    0 18px 44px -18px rgba(88, 60, 220, 0.38),
    0 6px 16px -6px rgba(20, 21, 26, 0.14);

  /* Dashboard surface tokens — light-mode equivalents. Panels are
   * fully opaque white; scrim is a dark tint so the backdrop still
   * reads as an overlay against a light ground. */
  --workspace-canvas:    #f2f2f5;
  --card-elev:           rgba(255, 255, 255, 0.70);
  --card-elev-strong:    rgba(255, 255, 255, 0.92);
  --panel-bg:            #ffffff;
  --panel-bg-strong:     #ffffff;
  --overlay-scrim:       rgba(30, 24, 60, 0.32);
  --overlay-scrim-soft:  rgba(30, 24, 60, 0.24);

  --body-wash:
    radial-gradient(1400px 900px at 50% -10%, rgba(88, 60, 220, 0.10), transparent 60%),
    radial-gradient(1100px 700px at 100% 110%, rgba(38, 130, 180, 0.07), transparent 60%),
    radial-gradient(700px 500px at 0% 45%, rgba(210, 155, 100, 0.05), transparent 60%);

  /* Decorative artifacts — light-mode tuning. */
  --orb-gradient: radial-gradient(
    circle at 32% 28%,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(232, 220, 255, 0.85) 20%,
    rgba(210, 155, 100, 0.65) 50%,
    rgba(120, 80, 220, 0.75) 82%,
    rgba(58, 34, 140, 0.90) 100%
  );
  --orb-glow: 0 8px 34px rgba(88, 60, 220, 0.28), 0 2px 10px rgba(88, 60, 220, 0.20);
  --orb-lg-wash:
    radial-gradient(60% 60% at 50% 50%, rgba(88, 60, 220, 0.18), transparent 65%),
    radial-gradient(40% 40% at 65% 55%, rgba(210, 155, 100, 0.14), transparent 70%);

  --grid-line: rgba(20, 21, 26, 0.06);
  --grid-line-strong: rgba(20, 21, 26, 0.10);
}

/* Dark override only when both prefers-color-scheme=dark AND
 * data-theme is not set (respects system dark) — keeps dark values
 * from above. Media query only overrides when user is on light OS
 * WITHOUT an explicit choice. Handled by the :not([data-theme])
 * inheriting the light block above. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --color-ink:    #07080b;
    --color-ink-2:  #0d0e15;
    --color-ink-3:  #181a25;
    --color-bone:   #ececf1;
    --color-bone-2: #c9c9d6;
    --color-bone-3: #888894;
    --color-pulse:   #7c5cff;
    --color-pulse-2: #6ec4e8;
    --hairline:        rgba(255, 255, 255, 0.06);
    --hairline-2:      rgba(255, 255, 255, 0.10);
    --hairline-strong: rgba(255, 255, 255, 0.14);
    --nav-bg: rgba(7, 8, 11, 0.55);
    --surface:       rgba(255, 255, 255, 0.015);
    --surface-2:     rgba(255, 255, 255, 0.03);
    --surface-3:     rgba(255, 255, 255, 0.05);
    --surface-hover: rgba(255, 255, 255, 0.04);
    --pulse-tint:      rgba(124, 92, 255, 0.07);
    --pulse-tint-2:    rgba(124, 92, 255, 0.14);
    --pulse-border:    rgba(124, 92, 255, 0.35);
    --pulse-2-tint:    rgba(110, 196, 232, 0.08);
    --pulse-2-border:  rgba(110, 196, 232, 0.40);
    --accent-text:   #bd9eff;
    --accent-text-2: #6ec4e8;
    --shadow-card: 0 4px 24px -8px rgba(0, 0, 0, 0.5);
    --shadow-pulse: 0 16px 40px -16px rgba(190, 118, 255, 0.4), 0 4px 14px -4px rgba(0, 0, 0, 0.6);
    --workspace-canvas:    #0a0b0e;
    --card-elev:           rgba(13, 14, 21, 0.55);
    --card-elev-strong:    rgba(13, 14, 21, 0.85);
    --panel-bg:            #0b0c12;
    --panel-bg-strong:     #0b0c12;
    --overlay-scrim:       rgba(8, 6, 20, 0.62);
    --overlay-scrim-soft:  rgba(8, 6, 20, 0.55);
    --body-wash:
      radial-gradient(1400px 900px at 50% -10%, rgba(124, 92, 255, 0.10), transparent 60%),
      radial-gradient(1100px 700px at 100% 110%, rgba(74, 214, 255, 0.06), transparent 60%);
    --orb-gradient: radial-gradient(
      circle at 35% 30%,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(230, 210, 255, 0.55) 22%,
      rgba(210, 155, 100, 0.75) 52%,
      rgba(155, 118, 220, 0.90) 82%,
      rgba(90, 62, 160, 0.98) 100%
    );
    --orb-glow: 0 0 40px rgba(189, 158, 255, 0.30), 0 0 12px rgba(189, 158, 255, 0.55);
    --orb-lg-wash:
      radial-gradient(60% 60% at 50% 50%, rgba(124, 92, 255, 0.22), transparent 65%),
      radial-gradient(40% 40% at 65% 55%, rgba(110, 196, 232, 0.14), transparent 70%);
    --grid-line: rgba(255, 255, 255, 0.045);
    --grid-line-strong: rgba(255, 255, 255, 0.08);
  }
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--color-ink);
  color: var(--color-bone-2);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  overflow-x: hidden;
  transition: background-color 0.28s ease, color 0.28s ease;
}

body {
  background: var(--body-wash), var(--color-ink);
}

::selection {
  background: rgba(124, 92, 255, 0.35);
  color: var(--color-bone);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(180, 180, 200, 0.12);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(180, 180, 200, 0.28); }
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(180, 180, 200, 0.2) transparent;
}

/* ── shared section header treatment ── */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-bone-3);
}

.section-title {
  margin: 12px 0 0;
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 200;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--color-bone);
}

.section-lede {
  margin: 18px 0 0;
  max-width: 600px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-bone-3);
}

.hairline { border-color: var(--hairline); }

/* ── semantic utility classes for theme-aware components ──
 * Use these in JSX/Astro instead of hardcoded `text-white/45` etc.
 * They flip cleanly on data-theme change. Named after semantic role,
 * not visual value, so they read cleanly.
 */
.text-fg       { color: var(--color-bone); }
.text-fg-2     { color: var(--color-bone-2); }
.text-fg-3     { color: var(--color-bone-3); }
.text-muted    { color: color-mix(in srgb, var(--color-bone-3) 75%, transparent); }
.text-muted-2  { color: color-mix(in srgb, var(--color-bone-3) 55%, transparent); }
.text-accent   { color: var(--accent-text); }
.text-accent-2 { color: var(--accent-text-2); }

.bg-app        { background-color: var(--color-ink); }
.bg-surface    { background-color: var(--surface); }
.bg-surface-2  { background-color: var(--surface-2); }
.bg-surface-3  { background-color: var(--surface-3); }
.bg-surface-hover:hover { background-color: var(--surface-hover); }
.bg-pulse-tint { background-color: var(--pulse-tint); }

.border-line       { border-color: var(--hairline); }
.border-line-2     { border-color: var(--hairline-2); }
.border-line-strong { border-color: var(--hairline-strong); }
.border-pulse      { border-color: var(--pulse-border); }

.placeholder-muted::placeholder {
  color: color-mix(in srgb, var(--color-bone-3) 55%, transparent);
}

/* ── ambient grid pattern (used as overlay in some sections) ── */
.grid-bg {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* ── Orb + grid decorative primitives ──
 * Reusable across sections to keep the mercury/pulse orb + grid
 * texture consistent everywhere. All theme-token driven so light
 * and dark stay coherent. */
.orb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--orb-gradient);
  box-shadow: var(--orb-glow);
  display: inline-block;
  flex-shrink: 0;
}
.orb-sm { width: 14px; height: 14px; }
.orb-md { width: 34px; height: 34px; }
.orb-xl { width: 56px; height: 56px; }

/* Ambient glow blob — position absolute inside a positioned parent.
 * Sizing/position via inline style at call site. Purely decorative. */
.orb-ambient {
  position: absolute;
  border-radius: 50%;
  background: var(--orb-lg-wash);
  filter: blur(28px);
  pointer-events: none;
  opacity: 0.9;
}

/* Fine grid texture — masked to feather at edges. Position absolute
 * inside a positioned parent, size via inline style or classes. */
.grid-tex {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}
.grid-tex-fine { background-size: 24px 24px; }
.grid-tex-strong {
  background-image:
    linear-gradient(var(--grid-line-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-strong) 1px, transparent 1px);
}

/* ── orb animations (lifted from landing, refined) ── */
@keyframes orb-hue { to { filter: saturate(1.2) hue-rotate(360deg); } }
@keyframes orb-rotate { to { transform: rotate(360deg); } }
@keyframes aura-pulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50%      { opacity: 0.72; transform: scale(1.04); }
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 0.85; }
}

/* ── prose styling for legal pages ── */
.prose-legal {
  max-width: 760px;
  margin: 0 auto;
  color: var(--color-bone-2);
  font-size: 15px;
  line-height: 1.7;
}
.prose-legal h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 200;
  letter-spacing: -0.03em;
  color: var(--color-bone);
  margin: 0 0 8px;
}
.prose-legal h2 {
  margin: 48px 0 14px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--color-bone);
}
.prose-legal h3 {
  margin: 28px 0 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-bone);
}
.prose-legal p { margin: 12px 0; }
.prose-legal a { color: var(--color-pulse-2); text-decoration: underline; text-decoration-color: rgba(110, 196, 232, 0.4); text-underline-offset: 3px; }
.prose-legal a:hover { color: var(--color-bone); text-decoration-color: var(--color-bone-3); }
.prose-legal ul, .prose-legal ol { margin: 14px 0; padding-left: 22px; }
.prose-legal li { margin: 6px 0; }
.prose-legal code {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-bone);
}
.prose-legal hr {
  border: 0;
  height: 1px;
  background: var(--hairline);
  margin: 40px 0;
}
.prose-legal strong { color: var(--color-bone); }
.prose-legal blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 2px solid var(--color-pulse);
  background: rgba(124, 92, 255, 0.04);
  border-radius: 4px;
  color: var(--color-bone-2);
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ==============================================================
 * .astro component styles — consolidated here because Astro's
 * Vite pipeline silently fails to emit <style> blocks on Windows.
 * See CLAUDE session notes 2026-07-05, 2026-07-22.
 *
 * Sections: Nav, HeroV4, Footer, StripCTA.
 * ============================================================== */

/* ----- Nav ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-bone);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-pulse), var(--color-pulse-2));
  box-shadow: 0 0 10px rgba(124, 92, 255, 0.5);
  animation: brand-pulse 2.6s ease-in-out infinite;
}
@keyframes brand-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}
.brand-version {
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--pulse-border);
  background: var(--pulse-tint);
  color: var(--color-pulse);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  line-height: 1;
  align-self: center;
}
@media (max-width: 720px) {
  .brand-version { display: none; }
}
.nav-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 26px;
  flex: 1;
}
.nav-links a {
  color: var(--color-bone-3);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--color-bone); }
.nav-link {
  color: var(--color-bone-3);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.18s ease;
}
.nav-link:hover { color: var(--color-bone); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--color-bone);
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  background: #fff;
}
@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ----- HeroV4 ----- */
.hero {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 20px clamp(48px, 7vw, 80px);
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 80%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
}
.hero-glow {
  position: absolute;
  top: 20%;
  left: 30%;
  width: clamp(360px, 60vw, 720px);
  height: clamp(360px, 60vw, 720px);
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle at center,
    rgba(124, 92, 255, 0.14) 0%,
    rgba(110, 196, 232, 0.06) 30%,
    transparent 60%
  );
  z-index: -1;
  pointer-events: none;
  animation: glowDrift 14s ease-in-out infinite;
}

/* Brand orb — decorative canvas that renders the mercury/pulse
 * spheroid from the brand studio. Sits behind the hero copy,
 * offset so it composes with the title rather than covering it. */
/* Inline brand orb sitting above the title. Tight canvas box; only
 * a small nudge to the left so it visually aligns with the copy. */
.hero-orb-inline {
  margin: 0 0 8px -10px;
  animation: heroFadeUp 0.9s ease 0s both;
}
@media (max-width: 1023px) {
  .hero-orb-inline { margin: 0 auto 8px; }
}
@keyframes glowDrift {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.08); }
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 48px;
  }
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 620px;
}
@media (max-width: 1023px) {
  .hero-copy { align-items: center; text-align: center; margin: 0 auto; }
}
.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--color-bone-2);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  animation: heroFadeUp 0.7s ease 0.05s both;
}
.hero .badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-pulse-2);
  box-shadow: 0 0 8px rgba(110, 196, 232, 0.7);
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.hero .title {
  margin: 22px 0 0;
  font-size: clamp(40px, 6.5vw, 68px);
  font-weight: 300;
  letter-spacing: -0.035em;
  color: var(--color-bone);
  line-height: 1.02;
  max-width: 15ch;
  text-wrap: balance;
  background: linear-gradient(180deg, currentColor 0%, color-mix(in srgb, currentColor 75%, transparent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroFadeUp 0.9s ease 0.15s both;
}
.hero .subhead {
  margin: 20px 0 0;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.55;
  color: var(--color-bone-2);
  max-width: 560px;
  animation: heroFadeUp 0.9s ease 0.28s both;
}
.hero .cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 0;
  flex-wrap: wrap;
  animation: heroFadeUp 0.9s ease 0.4s both;
}
@media (max-width: 1023px) {
  .hero .cta-row { justify-content: center; }
}
.hero .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 14px;
  background: var(--color-bone);
  color: var(--color-ink);
  font-weight: 500;
  font-size: 14.5px;
  text-decoration: none;
  box-shadow: var(--shadow-pulse);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.hero .btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); }
.hero .btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-ink) 12%, transparent);
  font-size: 12px;
}
.hero .btn-ghost {
  color: var(--color-bone-2);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.18s, border-color 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero .btn-ghost:hover { color: var(--color-bone); border-bottom-color: var(--color-bone-3); }
.hero .trust-row {
  margin: 24px 0 0;
  color: var(--color-bone-3);
  font-size: 13px;
  line-height: 1.5;
  max-width: 480px;
  animation: heroFadeUp 0.9s ease 0.5s both;
}
.hero .hero-preview {
  animation: heroFadeUp 0.9s ease 0.55s both;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 540px) {
  .hero .cta-row { gap: 12px; width: 100%; flex-direction: column; }
  .hero .cta-row .btn-primary,
  .hero .cta-row .btn-ghost { width: 100%; justify-content: center; }
}

/* ----- Footer ----- */
.footer {
  margin-top: 120px;
  padding: 72px 24px 32px;
  border-top: 1px solid var(--hairline);
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(124, 92, 255, 0.05), transparent 60%);
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
}
.footer-brand .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-bone);
  text-decoration: none;
  font-weight: 500;
}
.footer-brand .tag {
  margin: 10px 0 0;
  color: var(--color-bone-3);
  font-size: 13px;
}
.footer .cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer .cols h4 {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-bone-3);
  font-weight: 500;
}
.footer .cols ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer .cols a {
  color: var(--color-bone-2);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.18s ease;
}
.footer .cols a:hover { color: var(--color-bone); }
.footer .cols .link-btn {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--color-bone-2);
  font-family: inherit;
  font-size: 13.5px;
  text-align: left;
  transition: color 0.18s ease;
}
.footer .cols .link-btn:hover { color: var(--color-bone); }
.footer-bottom {
  max-width: 1180px;
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--color-bone-3);
}
.footer-bottom .dot { opacity: 0.5; }
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: repeat(2, 1fr); }
}

/* ----- StripCTA ----- */
.strip {
  position: relative;
  max-width: 1180px;
  margin: 64px auto 0;
  padding: 0 24px;
}
.strip-bg {
  position: absolute;
  inset: 0 24px;
  border-radius: 28px;
  background:
    radial-gradient(800px 400px at 20% 50%, rgba(124, 92, 255, 0.18), transparent 50%),
    radial-gradient(800px 400px at 80% 50%, rgba(110, 196, 232, 0.14), transparent 50%),
    linear-gradient(135deg, var(--color-ink-2), var(--color-ink-3));
  border: 1px solid rgba(124, 92, 255, 0.18);
  overflow: hidden;
}
.strip-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.strip-inner {
  position: relative;
  padding: 72px 32px;
  text-align: center;
}
.strip-inner h2 {
  margin: 0 auto;
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 200;
  letter-spacing: -0.025em;
  color: var(--color-bone);
  line-height: 1.15;
  max-width: 760px;
  text-wrap: balance;
}
.strip-inner p {
  margin: 18px auto 32px;
  max-width: 460px;
  color: var(--color-bone-3);
  font-size: 15px;
  line-height: 1.6;
}
.strip .cta-row {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.strip .primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  background: var(--color-bone);
  color: var(--color-ink);
  font-weight: 500;
  font-size: 14.5px;
  text-decoration: none;
  box-shadow: var(--shadow-pulse);
  transition: transform 0.2s, background 0.2s;
}
.strip .primary:hover { transform: translateY(-1px); filter: brightness(1.05); }
.strip .primary .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-ink) 12%, transparent);
  font-size: 12px;
}
.strip .ghost {
  color: var(--color-bone-2);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.18s, border-color 0.18s;
}
.strip .ghost:hover { color: var(--color-bone); border-bottom-color: var(--color-bone-3); }
.strip .strip-ghost-btn {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  padding: 8px 4px;
  border-bottom: 1px solid transparent;
}
.strip .strip-ghost-btn:hover { color: var(--color-bone); border-bottom-color: var(--color-bone-3); }

/* ----- Legal shell (back button + updated stamp on privacy/terms) ----- */
.legal-shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px 32px;
}
.legal-eyebrow {
  max-width: 760px;
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--color-bone-3);
  letter-spacing: 0.05em;
}
.legal-eyebrow .back {
  color: var(--color-bone-3);
  text-decoration: none;
  transition: color 0.18s;
}
.legal-eyebrow .back:hover { color: var(--color-bone); }
.legal-eyebrow .updated { letter-spacing: 0.12em; text-transform: uppercase; }

/* ==============================================================
 * /app + /app/orbit light-mode compat
 *
 * The SPA chrome (AppShell, OrbitShell, and many sub-components)
 * was authored dark-first using hardcoded Tailwind utilities:
 *   bg-[#07080b], bg-[#0c0d11], text-white, text-white/55,
 *   border-white/15, bg-white/[0.03], etc.
 *
 * Tailwind v4 compiles text-white / border-white / bg-white/* to
 * rules that reference var(--color-white). Redefining --color-white
 * in light theme flips all of those to dark ink automatically, so
 * the SPA respects the theme without touching every component.
 *
 * The two hardcoded page-bg hexes (#07080b and #0c0d11) don't go
 * through --color-white — they get explicit overrides below.
 * ============================================================== */
:root[data-theme="light"] {
  --color-white: #14151a;
}
/* ----- ContactModal ----- */
.cm-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 6, 20, 0.55);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
}
.cm-dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--color-ink-2);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 32px 30px 28px;
  box-shadow:
    0 30px 80px -30px rgba(20, 21, 26, 0.55),
    0 12px 32px -12px rgba(88, 60, 220, 0.30);
}
.cm-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: 0;
  color: var(--color-bone-3);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 0.18s, background 0.18s;
}
.cm-close:hover { color: var(--color-bone); background: var(--surface); }
.cm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-bone-3);
}
.cm-orb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orb-gradient);
  box-shadow: var(--orb-glow);
  flex-shrink: 0;
}
.cm-title {
  margin: 12px 0 8px;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--color-bone);
  line-height: 1.15;
  text-wrap: balance;
}
.cm-sub {
  margin: 0 0 22px;
  color: var(--color-bone-2);
  font-size: 14px;
  line-height: 1.5;
}
.cm-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cm-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cm-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 540px) {
  .cm-row { grid-template-columns: 1fr; }
}
.cm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cm-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-bone-3);
}
.cm-field input,
.cm-field textarea {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-bone);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 11px 12px;
  transition: border-color 0.18s, background 0.18s;
  outline: none;
}
.cm-field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.cm-field input:focus,
.cm-field textarea:focus {
  border-color: var(--pulse-border);
  background: var(--surface-2);
}
.cm-field input::placeholder,
.cm-field textarea::placeholder {
  color: var(--color-bone-3);
  opacity: 0.7;
}
.cm-error {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(232, 154, 154, 0.10);
  border: 1px solid rgba(232, 154, 154, 0.35);
  color: #e89a9a;
  font-size: 13px;
}
.cm-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}
.cm-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  background: var(--color-pulse);
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  border: 0;
  cursor: pointer;
  transition: transform 0.18s, filter 0.18s, background 0.18s;
}
.cm-primary:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.08); }
.cm-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.cm-arrow { display: inline-flex; }
.cm-ghost {
  background: transparent;
  border: 0;
  color: var(--color-bone-2);
  font-size: 14px;
  cursor: pointer;
  padding: 8px 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.cm-ghost:hover { color: var(--color-bone); border-bottom-color: var(--color-bone-3); }
.cm-sent {
  color: var(--color-bone-2);
  font-size: 14.5px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.cm-sent p { margin: 0; }

:root[data-theme="light"] .bg-\[\#07080b\] { background-color: var(--color-ink); }
:root[data-theme="light"] .bg-\[\#0c0d11\] { background-color: var(--color-ink-2); }
:root[data-theme="light"] .text-\[\#07080b\] { color: var(--color-bone); }

/* ==============================================================
 * Utility fallbacks (Sprint 0.28.x web polish)
 *
 * The bundled public/tailwind.css is a pre-built static file that
 * only contains utility classes present at the last regeneration.
 * The Tailwind v4 CLI on this Windows toolchain has an issue
 * generating new arbitrary-value classes at build time, so classes
 * we've added since (w-9, w-[280px], min-w-[220px], etc.) are
 * silently missing. This block backfills the exact ones we need
 * so popovers get their intended width and small round buttons
 * their intended size.
 *
 * When the Tailwind pipeline is regenerated cleanly, these become
 * redundant duplicates — harmless. */
.w-9 { width: 2.25rem; }
.h-9 { height: 2.25rem; }

/* Popover / dropdown widths — clamp to viewport so they never
 * overflow on mobile. All are max(fixed-target, 92vw ceiling). */
.w-\[280px\]     { width: min(280px, 92vw); }
.min-w-\[220px\] { min-width: min(220px, 92vw); }
.min-w-\[240px\] { min-width: min(240px, 92vw); }
.min-w-\[200px\] { min-width: min(200px, 92vw); }
.min-w-\[180px\] { min-width: min(180px, 92vw); }
.min-w-\[42px\]  { min-width: 42px; }
.max-w-\[180px\] { max-width: 180px; }
.max-w-\[220px\] { max-width: 220px; }
.max-w-\[240px\] { max-width: 240px; }
