/* CodingBeacon landing page. Dark only (Q-029 b). Tokens: ui-spec §1 (dark values).
   No inline styles anywhere: CSP style-src 'self'. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #111114;
  --bg-2: #0B0B0D;
  --surface: #18181C;
  --raised: #202026;
  --hover: #26262D;
  --border: #2A2A31;
  --control-border: #75757F;
  --focus-ring: #FF9500;
  --selected: #FF9500;
  --text: #F4F4F5;
  --muted: #A1A1AA;
  --faint: #8A8A94;
  --beacon: #FF9500;
  --beacon-hover: #FFA526;
  --on-beacon: #15151A;
  --beacon-text: #FFB340;
  --beacon-soft: rgba(255, 149, 0, .12);
  --done: #3DDC84;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 12px 32px rgba(0, 0, 0, .35);
  --halo: 0 0 0 1px var(--beacon), 0 0 24px rgba(255, 149, 0, .18);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 64px;
  --gutter: 40px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

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

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-top: var(--header-h);
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(255, 149, 0, .12), transparent 62%),
    radial-gradient(700px 500px at -10% 40%, rgba(255, 149, 0, .035), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}

img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
code, .mono { font-family: var(--mono); font-size: .86em; }
code { background: var(--raised); padding: 1px 5px; border-radius: 5px; }

:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }

.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: -80px; z-index: 100;
  padding: 10px 14px; border-radius: 10px;
  background: var(--surface); color: var(--text); font-weight: 600;
  border: 1px solid var(--control-border);
  transition: top 150ms var(--ease);
}
.skip-link:focus { top: 12px; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: calc(680px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.spacer { flex: 1; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: rgba(17, 17, 20, .85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 150ms var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand-wordmark { height: 30px; width: auto; }
.brand-mark { display: none; height: 36px; width: 36px; }
.anchors { display: flex; gap: 4px; margin-left: 12px; }
.anchors a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 10px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  transition: color 150ms var(--ease), background-color 150ms var(--ease);
}
.anchors a:hover { color: var(--text); background: var(--hover); }

.lang {
  display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--border);
}
.lang a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; min-height: 30px; padding: 0 8px; border-radius: 7px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--muted);
  transition: color 150ms var(--ease), background-color 150ms var(--ease);
}
.lang a:hover { color: var(--text); }
.lang a[aria-current="true"] { background: var(--raised); color: var(--text); }

.link-signin {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 6px;
  font-size: 14.5px; font-weight: 500; color: var(--text); white-space: nowrap;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px;
  transition: text-decoration-color 150ms var(--ease);
}
.link-signin:hover { text-decoration-color: var(--beacon-text); }

/* Specificity above .btn (defined later), which would otherwise show the button. */
.site-header .header-cta { display: none; }
.site-header.cta-visible .header-cta { display: inline-flex; animation: fade-in 200ms var(--ease) both; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 10px;
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap;
  transition: background-color 150ms var(--ease), transform 150ms var(--ease);
}
.btn-primary { background: var(--beacon); color: var(--on-beacon); }
.btn-primary:hover { background: var(--beacon-hover); }
a.btn-primary:active { transform: translateY(1px); }
.btn-outline { background: var(--surface); color: var(--text); border: 1px solid var(--control-border); }
.btn-lg { height: 48px; padding: 0 24px; border-radius: 12px; font-size: 15px; }
.btn-sm { height: 30px; padding: 0 12px; border-radius: 8px; font-size: 12.5px; }

/* ---------- Badges ---------- */
.badge-coming {
  display: inline-block; vertical-align: .2em; margin-left: 8px;
  padding: 3px 7px; border-radius: 6px;
  background: var(--raised); color: var(--muted);
  font-size: 11px; font-weight: 600; line-height: 1.2; letter-spacing: .02em;
  white-space: nowrap;
}
h2 .badge-coming { vertical-align: .55em; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.dot-done { color: var(--done); }
.pulse { background: var(--beacon); animation: pulse 2s ease-out infinite; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding-block: 72px 104px;
}
.eyebrow-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--beacon-soft); color: var(--beacon-text);
  font-size: 13px; font-weight: 600;
}
.hero h1 {
  margin: 22px 0 20px;
  font-size: 56px; font-weight: 700; line-height: 1.05; letter-spacing: -.035em;
  text-wrap: balance;
}
.hero h1 > span { display: block; }
.hero h1 .accent { color: var(--beacon); }
.hero h1 .badge-coming { vertical-align: .9em; }
.lead { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 520px; text-wrap: pretty; }
.hero-ctas { display: flex; align-items: center; gap: 20px; margin: 32px 0 14px; }
.micro { font-size: 13px; color: var(--faint); }

/* Story (ui-spec §3.13 item 2): static, aria-hidden, text alternative in figcaption. */
.hero-visual { position: relative; }
.story-visual { position: relative; height: 470px; }
.story-glow {
  position: absolute; inset: 40px 60px;
  background: radial-gradient(circle, rgba(255, 149, 0, .2), transparent 65%);
  filter: blur(10px);
}
.term {
  position: absolute; left: 0; top: 0; width: 372px;
  padding: 14px 16px; border-radius: 14px;
  background: var(--bg-2); border: 1px solid var(--border); box-shadow: var(--shadow);
  font-family: var(--mono); font-size: 12px; line-height: 1.75; color: var(--muted);
}
.term-bar { display: flex; gap: 6px; margin-bottom: 10px; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3A3A43; }
.term-line { display: block; white-space: pre-wrap; }
.term-path { color: var(--text); }
.term-ask { color: var(--beacon-text); }
.term-ask + .term-ask { padding-left: 1.2em; }

.qcard {
  position: absolute; right: 0; top: 196px; width: 384px;
  padding: 18px 18px 16px; border-radius: 16px;
  background: var(--surface); box-shadow: var(--halo), var(--shadow);
}
.qcard-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--faint); }
.badge-wait {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px; border-radius: 6px;
  background: var(--beacon-soft); color: var(--beacon-text); font-weight: 600;
}
.badge-wait .dot { width: 6px; height: 6px; background: var(--beacon); }
.qcard-title { margin: 10px 0 12px; font-size: 15.5px; font-weight: 600; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.opt {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px; border: 1px solid var(--control-border);
  font-size: 13.5px; font-weight: 600;
}
.opt .radio { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--control-border); flex: none; }
.opt-selected { border-color: var(--selected); background: var(--beacon-soft); }
.opt-selected .radio { border-color: var(--selected); background: radial-gradient(circle, var(--selected) 0 4px, transparent 4.5px); }
.qcard-actions { display: flex; justify-content: flex-end; }

.wake {
  position: absolute; left: 0; bottom: 0; width: 340px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(32, 32, 38, .92); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.wake img { width: 34px; height: 34px; flex: none; }
.wake-title { font-size: 13.5px; font-weight: 600; }
.wake-title .badge-coming { margin-left: 6px; vertical-align: .1em; }
.wake-text { font-size: 12.5px; color: var(--muted); }

/* ---------- Sections ---------- */
.block { position: relative; padding-block: 88px; }
.block::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px; background: var(--border);
}
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--beacon-text); }
.block h2, .cta h2 {
  margin: 12px 0 40px; max-width: 760px;
  font-size: 38px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em;
  text-wrap: balance;
}

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: none; }
.step { padding: 24px; transition: border-color 150ms var(--ease), transform 150ms var(--ease); }
.step:hover { border-color: #3A3A43; transform: translateY(-2px); }
.num { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--beacon-text); }
.step h3 { margin: 12px 0 8px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.55; }
.step.is-coming { border-style: dashed; border-color: #3A3A43; box-shadow: none; background: rgba(24, 24, 28, .6); }

.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.point .icon { width: 20px; height: 20px; color: var(--beacon-text); }
.point h3 { margin: 14px 0 6px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.point p { font-size: 14px; color: var(--muted); line-height: 1.55; }

.block h2#agents-title { margin-bottom: 26px; }
.agents { display: flex; flex-wrap: wrap; gap: 12px; }
.agent {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); font-weight: 600;
}

.cta-wrap { padding-block: 8px 96px; }
.cta {
  padding: 56px 32px; text-align: center;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
}
.cta-mark { position: relative; width: 56px; height: 56px; margin: 0 auto; }
.cta-mark::before {
  content: ""; position: absolute; inset: -28px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 149, 0, .28), transparent 65%);
}
.cta-mark img { position: relative; width: 56px; height: 56px; }
.cta h2 { margin: 20px auto 12px; }
.cta-text { margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding-block: 28px 40px; font-size: 13px; color: var(--faint);
}
.footer-wordmark { height: 26px; width: auto; opacity: .9; }
.footer-links { display: flex; gap: 4px; }
.footer-links a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 8px;
  color: var(--muted); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px;
}
.footer-links a:hover { color: var(--text); text-decoration-color: currentColor; }

/* ---------- Legal pages ---------- */
.legal { padding-block: 56px 96px; }
.legal h1 { font-size: 38px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.legal .updated { margin-top: 10px; font-size: 14px; color: var(--faint); }
.legal h2 { margin: 40px 0 12px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.legal p, .legal li { font-size: 16px; line-height: 1.65; color: #D4D4D8; }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 1.25em; margin-top: 10px; }
.legal li + li { margin-top: 6px; }
.legal li::marker { color: var(--faint); }
.legal a, .not-found a {
  color: var(--beacon-text); text-decoration: underline; text-underline-offset: 3px;
}
.not-found p { margin-top: 16px; }

/* ---------- Motion (ui-spec §1.4, §3.13) ---------- */
.reveal { animation: reveal 600ms var(--ease) both; }
.r2 { animation-delay: 80ms; }
.r3 { animation-delay: 160ms; }
.r4 { animation-delay: 240ms; }
.r5 { animation-delay: 320ms; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 149, 0, .55); }
  70% { box-shadow: 0 0 0 7px rgba(255, 149, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 149, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .pulse, .site-header.cta-visible .header-cta { animation: none; }
  .step, .step:hover, a.btn-primary:active, .skip-link { transition: none; transform: none; }
}

/* ---------- Breakpoints (ui-spec §1.4, E-03) ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; gap: 48px; }
  .story-visual { max-width: 560px; }
}
@media (max-width: 1023px) {
  .points { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  :root { --gutter: 20px; }
  .header-inner { gap: 12px; }
  .brand-wordmark, .anchors, .site-header .header-cta, .site-header.cta-visible .header-cta { display: none; }
  .brand-mark { display: block; }
  .lang a { min-height: 40px; min-width: 44px; }
  .link-signin { min-height: 44px; }
  .hero { padding-block: 32px 64px; gap: 40px; }
  .hero h1 { font-size: 36px; letter-spacing: -.025em; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 28px; }
  .hero-ctas .btn-lg { height: 52px; font-size: 16px; }
  .link-hero { justify-content: center; min-height: 44px; }
  .micro { text-align: center; }
  .story-visual { height: auto; width: 92%; margin-inline: auto; display: grid; gap: 14px; }
  .term, .qcard, .wake { position: relative; inset: auto; width: auto; }
  .story-glow { inset: 20% 0; }
  .block { padding-block: 64px; }
  .block h2, .cta h2 { font-size: 28px; margin-bottom: 28px; }
  .steps { grid-template-columns: 1fr; }
  .btn { height: 44px; }
  .btn-outline { background: var(--surface); color: var(--text); border: 1px solid var(--control-border); }
.btn-lg { height: 48px; }
  .btn-sm { height: 30px; }
  .cta { padding: 44px 20px; }
  .footer-links a { min-height: 44px; }
  .legal { padding-block: 40px 72px; }
  .legal h1 { font-size: 30px; }
}
@media (max-width: 639px) {
  .points { grid-template-columns: 1fr; gap: 28px; }
}
