/* ai-continuum.dev landing — Hallmark Lumen register ("Night Foundry").
   Design tokens below are copied verbatim from the LOCKED console-v6 design
   system (docs/prototypes/console-v6/tokens.css, frozen). Do not edit the
   token values here; change the source system instead. */

:root {
  /* type */
  --font-display: "Instrument Serif", "Tiempos Headline", ui-serif, Georgia, serif;
  --font-body: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-label: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  /* 4pt spacing scale */
  --space-3xs: 0.25rem; --space-2xs: 0.5rem; --space-xs: 0.75rem;
  --space-sm: 1rem; --space-md: 1.5rem; --space-lg: 2rem;
  --space-xl: 3rem; --space-2xl: 4.5rem; --space-3xl: 7rem;

  /* type scale */
  --text-xs: 0.75rem; --text-sm: 0.875rem; --text-md: 1.0625rem;
  --text-lg: 1.375rem; --text-xl: 1.75rem; --text-2xl: 2.25rem;
  --text-display: clamp(3rem, 6.4vw + 0.5rem, 6rem);

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-inout: cubic-bezier(0.83, 0, 0.17, 1);
  --dur-short: 220ms; --dur-med: 420ms; --dur-pulse: 4s;

  /* radii */
  --radius-card: 14px; --radius-pill: 999px; --radius-input: 10px;

  /* tracking */
  --tracking-micro: 0.1em; --tracking-eyebrow: 0.14em;
}

/* Night Foundry (default, dark) — the instrument emits. */
html[data-theme="dark"] {
  color-scheme: dark;
  --color-paper: oklch(13% 0.014 265);
  --color-paper-2: oklch(17% 0.016 265);
  --color-paper-3: oklch(21% 0.018 265);
  --color-ink: oklch(96% 0.006 262);
  --color-ink-2: oklch(74% 0.018 262);
  --color-ink-3: oklch(62% 0.02 262);
  --color-accent: oklch(76% 0.17 50);           /* molten brass */
  --color-accent-strong: oklch(82% 0.16 50);
  --color-accent-2: oklch(68% 0.16 18);          /* coral chord */
  --color-on-accent: oklch(14% 0.02 265);
  --color-glow: oklch(80% 0.16 50 / 0.42);
  --color-paper-emit: oklch(76% 0.17 50 / 0.045);
  --color-card-emit: oklch(76% 0.17 50 / 0.05);
  --color-rule: oklch(96% 0.006 262 / 0.12);
  --color-rule-2: oklch(96% 0.006 262 / 0.22);
  --rule-blueprint: oklch(96% 0.006 262 / 0.04);
  --color-focus: oklch(76% 0.17 50);
  --shadow-elev: 0 24px 60px -28px oklch(0% 0 0 / 0.55);
}

/* Day Foundry (light) — the prism refracts. */
html[data-theme="light"] {
  color-scheme: light;
  --color-paper: oklch(97% 0.008 265);
  --color-paper-2: oklch(94.5% 0.01 265);
  --color-paper-3: oklch(91.5% 0.012 265);
  --color-ink: oklch(18% 0.014 265);
  --color-ink-2: oklch(36% 0.02 265);
  --color-ink-3: oklch(52% 0.02 265);
  --color-accent: oklch(46% 0.24 268);           /* deep indigo */
  --color-accent-strong: oklch(40% 0.22 268);
  --color-accent-2: oklch(58% 0.18 18);          /* coral chord */
  --color-on-accent: oklch(97% 0.008 265);
  --color-glow: oklch(58% 0.22 268 / 0.26);
  --color-paper-emit: oklch(46% 0.24 268 / 0.03);
  --color-card-emit: oklch(46% 0.24 268 / 0.045);
  --color-rule: oklch(18% 0.014 265 / 0.14);
  --color-rule-2: oklch(18% 0.014 265 / 0.26);
  --rule-blueprint: oklch(18% 0.014 265 / 0.05);
  --color-focus: oklch(46% 0.24 268);
  --shadow-elev: 0 18px 44px -22px oklch(30% 0.03 265 / 0.3);
}

/* ---------- page styles (landing-specific, tokens by name only) ---------- */

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0; min-height: 100dvh;
  font: 400 15px/1.6 var(--font-body);
  font-variant-numeric: tabular-nums;
  color: var(--color-ink-2); background: var(--color-paper);
  text-transform: lowercase; /* two-register foundation: prose is quiet */
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
h1, h2, p, figure { margin: 0; }
code { font-family: var(--font-label); font-size: 0.92em; }
*:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 4px; }

/* mono labels are the ONLY uppercase surface */
.eyebrow, .step__num, .prop__tag, .foot, .install__prompt, kbd {
  font-family: var(--font-label); text-transform: uppercase; letter-spacing: var(--tracking-micro);
}
.eyebrow {
  font-size: 11px; letter-spacing: var(--tracking-eyebrow);
  color: var(--color-ink); opacity: 0.65;
}

/* ---------- edge chrome ---------- */
.edge {
  position: fixed; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm);
  height: 64px; padding: 0 clamp(16px, 3vw, 32px);
  background: color-mix(in oklab, var(--color-paper) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-rule);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--color-paper-2); border: 1px solid var(--color-rule);
}
.brand-mark svg { width: 17px; height: 17px; }
.brand-mark .orbit-line { stroke: var(--color-accent); }
.brand-mark .orbit-core { fill: var(--color-ink); }
.brand-mark .orbit-sat { fill: var(--color-accent-2); }
.brand-name { font: 500 14px/1 var(--font-body); color: var(--color-ink); letter-spacing: -0.01em; }
.edge nav { display: flex; align-items: center; gap: var(--space-md); }
.edge nav a {
  font-size: 13px; color: var(--color-ink-3); text-decoration: none;
  transition: color var(--dur-short) ease;
}
.edge nav a:hover { color: var(--color-ink); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: clip;
  display: grid; gap: var(--space-lg); justify-items: start;
  padding: calc(64px + var(--space-3xl)) clamp(20px, 6vw, 96px) var(--space-3xl);
  background:
    linear-gradient(var(--rule-blueprint) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--rule-blueprint) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(55% 45% at 74% 30%, var(--color-paper-emit) 0%, transparent 65%),
    var(--color-paper);
}
.hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--text-display); line-height: 1.02; letter-spacing: -0.032em;
  color: var(--color-ink); max-width: 15ch;
  text-wrap: balance;
  animation: rise var(--dur-med) var(--ease-out) backwards;
}
.hero h1 em {
  font-style: normal; /* the verb landmark is colour + line */
  color: var(--color-accent-2);
  position: relative; white-space: nowrap;
}
.hero h1 em::after {
  content: ""; position: absolute;
  left: 0.05em; right: 0.05em; bottom: 0.05em;
  height: 1px; background: var(--color-accent-2);
}
.hero .promise {
  font-size: var(--text-md); max-width: 52ch; line-height: 1.65;
  color: var(--color-ink-2);
  animation: rise var(--dur-med) var(--ease-out) 90ms backwards;
}
.hero .promise b { color: var(--color-ink); font-weight: 600; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.install {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  max-width: 100%;
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--color-rule); border-radius: var(--radius-input);
  background: var(--color-paper-2);
  box-shadow: var(--shadow-elev);
  animation: rise var(--dur-med) var(--ease-out) 180ms backwards;
}
.install__prompt { color: var(--color-accent); font-size: 13px; }
.install code { color: var(--color-ink); font-size: 14px; white-space: nowrap; }

.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-sm); animation: rise var(--dur-med) var(--ease-out) 270ms backwards; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 13px; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--color-rule-2); color: var(--color-ink);
  background: transparent;
  transition: border-color var(--dur-short) ease, filter var(--dur-short) ease, transform 120ms var(--ease-out);
}
.btn:hover { border-color: var(--color-ink-3); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--color-accent); color: var(--color-on-accent); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.08); }

/* ---------- sections ---------- */
section.block {
  padding: var(--space-3xl) clamp(20px, 6vw, 96px);
  border-top: 1px solid var(--color-rule);
  display: grid; gap: var(--space-xl); justify-items: start;
}
section.block h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--text-2xl); line-height: 1.08; letter-spacing: -0.02em;
  color: var(--color-ink); max-width: 22ch; text-wrap: balance;
}
section.block h2 em { font-style: normal; color: var(--color-accent-2); }

.props {
  display: grid; gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  width: 100%;
}
.prop {
  display: grid; gap: var(--space-xs); align-content: start;
  padding: var(--space-md);
  border: 1px solid var(--color-rule); border-radius: var(--radius-card);
  background: var(--color-card-emit);
}
.prop__tag { font-size: 10px; color: var(--color-accent); }
.prop h3 {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: var(--text-lg); line-height: 1.15; letter-spacing: -0.015em;
  color: var(--color-ink);
}
.prop p { font-size: var(--text-sm); line-height: 1.65; color: var(--color-ink-2); }

.steps {
  display: grid; gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  width: 100%;
}
.step {
  display: grid; gap: var(--space-2xs); align-content: start;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-rule-2);
}
.step__num { font-size: 11px; color: var(--color-accent); }
.step b { color: var(--color-ink); font-weight: 600; font-size: var(--text-sm); }
.step p { font-size: var(--text-sm); line-height: 1.6; color: var(--color-ink-2); }

.alpha-note {
  max-width: 64ch;
  padding: var(--space-md);
  border: 1px solid var(--color-rule); border-left: 2px solid var(--color-accent);
  border-radius: var(--radius-card);
  background: var(--color-card-emit);
  font-size: var(--text-sm); line-height: 1.7; color: var(--color-ink-2);
}
.alpha-note b { color: var(--color-ink); font-weight: 600; }

/* ---------- footer ---------- */
.foot {
  display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md);
  align-items: center; justify-content: space-between;
  padding: var(--space-lg) clamp(20px, 6vw, 96px);
  border-top: 1px solid var(--color-rule);
  font-size: 10px; color: var(--color-ink-3);
}
.foot a { color: var(--color-ink-2); text-decoration: none; transition: color var(--dur-short) ease; }
.foot a:hover { color: var(--color-accent); }
.foot .dot { opacity: 0.5; }

/* ---------- motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  .edge nav a:not(.keep) { display: none; }
  .hero h1 { max-width: 12ch; }
}
