/* ============================================================================
   Grounded — showcase site. Dark "AI product" theme with a warm yellow accent,
   consistent with the demo. Static, no dependencies.
   ========================================================================== */

:root {
  --bg: #0a0a0b;
  --surface: #141416;
  --surface-2: #1b1b1f;
  --surface-3: #212127;
  --border: #26262b;
  --border-strong: #35353d;
  --text: #f4f4f5;
  --muted: #a2a2ab;
  --faint: #6c6c76;
  --accent: #f5c518;
  --accent-2: #ffd94a;
  --on-accent: #0a0a0b;
  --accent-glow: rgba(245, 197, 24, 0.35);
  --accent-soft: rgba(245, 197, 24, 0.08);
  --green: #34d399; --green-bg: rgba(52, 211, 153, 0.12);
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 14px 44px rgba(0, 0, 0, 0.55);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --maxw: 1080px;
  --nav-h: 62px;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.6; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
section[id], header[id] { scroll-margin-top: 78px; }

.glow {
  position: fixed; top: -320px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 720px;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
  opacity: 0.18; filter: blur(30px); pointer-events: none; z-index: 0;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

/* icons */
.ic-svg { width: 22px; height: 22px; display: block;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--border); color: var(--accent); margin-bottom: 16px;
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; cursor: pointer;
  font: inherit; font-weight: 700; border-radius: var(--radius-sm); padding: 12px 22px;
  transition: box-shadow .15s, transform .05s, filter .15s, border-color .15s, background .15s; }
.btn-primary { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: var(--on-accent); box-shadow: 0 6px 22px var(--accent-glow); }
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 8px 30px var(--accent-glow); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 11, 0.72); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand .logo { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(140deg, var(--accent-2), var(--accent));
  color: var(--on-accent); display: grid; place-items: center; font-weight: 900; font-size: 16px; box-shadow: 0 0 20px var(--accent-glow); }
.brand .logo .logo-mark { width: 19px; height: 19px; fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.brand .brand-name { font-weight: 700; letter-spacing: 0.2px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn-primary { color: var(--on-accent); }

/* hero */
.hero { padding: 40px 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: center; padding: 44px 28px 0; }
.pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 6px 13px; border-radius: 999px;
  font-size: 12.5px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--accent-glow); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 { margin: 0; font-size: 54px; line-height: 1.05; letter-spacing: -1.6px; font-weight: 800; }
.hero h1 .hl { color: var(--accent); text-shadow: 0 0 30px var(--accent-glow); }
.hero .lead { margin: 20px 0 0; color: var(--muted); font-size: 17.5px; max-width: 560px; }
.hero .lead strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* hero mock (decision receipt) */
.mock { background: linear-gradient(180deg, var(--surface), var(--bg)); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mock-route { color: var(--faint); font-size: 12px; font-family: var(--mono); }
.mock-answer { margin: 0 0 14px; font-size: 15.5px; }
.mock-answer strong { color: var(--accent-2); }
.mock-cites { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.mock-trace { display: flex; flex-wrap: wrap; gap: 6px; }
.mock-trace span { font-family: var(--mono); font-size: 11px; color: var(--faint); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 6px; padding: 3px 7px; }
.mock-trace span.on { color: var(--on-accent); background: var(--accent); border-color: transparent; font-weight: 700; }
.cite { display: inline-flex; gap: 6px; align-items: center; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 5px 9px; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.cite .k { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: 10.5px; }
.badge { font-size: 11.5px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; padding: 6px 11px; border-radius: 999px;
  background: var(--surface-3); color: var(--text); border: 1px solid var(--border); }
.badge.approved { background: var(--green-bg); color: var(--green); border-color: transparent; }

/* claims strip */
.claims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px;
  padding: 24px 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.claim { text-align: center; }
.claim b { display: block; font-size: 30px; font-weight: 800; color: var(--accent); letter-spacing: -0.5px; }
.claim span { color: var(--muted); font-size: 13px; }

/* sections */
.section { padding: 80px 0; }
.section-alt { background: linear-gradient(180deg, transparent, var(--surface) 20%, var(--surface) 80%, transparent); }
.eyebrow { display: inline-block; color: var(--accent); font-size: 12.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 12px; }
.section-title { margin: 0; font-size: 34px; line-height: 1.15; letter-spacing: -0.8px; font-weight: 800; max-width: 780px; }
.section-lead { margin: 14px 0 0; color: var(--muted); font-size: 17px; max-width: 680px; }
.section-lead em { color: var(--accent-2); font-style: normal; }

/* pipeline flow */
.flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin-top: 40px; }
.node { flex: 1 1 150px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px;
  display: flex; flex-direction: column; gap: 6px; min-width: 150px; cursor: default;
  transition: border-color .18s, box-shadow .18s, transform .18s; }
.node .n-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--border); color: var(--accent); transition: background .18s, color .18s; }
.node b { font-size: 14px; }
.node small { color: var(--faint); font-size: 12px; line-height: 1.4; }
.node.gate { border-color: var(--accent); box-shadow: 0 0 18px var(--accent-glow); }
.node.gate .n-ic { background: var(--accent); color: var(--on-accent); }
.node:hover { border-color: var(--accent); box-shadow: 0 0 26px var(--accent-glow); transform: translateY(-3px); }
.node:hover .n-ic { background: var(--accent); color: var(--on-accent); }
.arrow { align-self: center; color: var(--border-strong); font-size: 20px; }
.flow-foot { margin-top: 16px; text-align: center; color: var(--muted); font-size: 14px; }
.flow-foot b { color: var(--accent-2); }

/* comparison */
.compare { margin-top: 40px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.c-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; }
.c-row > div { padding: 15px 20px; border-top: 1px solid var(--border); font-size: 14.5px; }
.c-row.c-head > div { border-top: none; font-weight: 700; color: var(--muted); background: var(--surface-2); font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.c-row > div:first-child { color: var(--text); }
.c-row .no { color: var(--faint); }
.c-us { background: var(--accent-soft); }
.c-row .c-us { border-left: 1px solid var(--border); }
.c-us.yes { color: var(--accent-2); font-weight: 600; }
.c-row.c-head .c-us { color: var(--accent); background: var(--accent-soft); }

/* use cases */
.uc { position: relative; background: linear-gradient(180deg, var(--surface), var(--bg)); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; cursor: default; transition: border-color .18s, transform .18s, box-shadow .18s; }
.uc:hover { border-color: var(--accent); box-shadow: 0 0 26px var(--accent-glow); transform: translateY(-3px); }
.uc h3 { margin: 12px 0 6px; font-size: 17px; }
.uc p { margin: 0; color: var(--muted); font-size: 14px; }
.uc .tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--faint);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; }
.uc.live { border-color: var(--accent); }
.uc.live .tag { color: var(--on-accent); background: var(--accent); border-color: transparent; }

/* engineering */
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); font-size: 15px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 900; display: grid; place-items: center; }

/* contact */
.contact { text-align: center; }
.contact-inner { max-width: 760px; margin: 0 auto; }
.contact .section-title, .contact .section-lead { margin-left: auto; margin-right: auto; }

/* demo page */
.demo-hero { text-align: center; padding: 46px 0 8px; }
.demo-hero .lead { margin-left: auto; margin-right: auto; }
.demo-intro { padding-top: 40px; }
.demo-wrap { max-width: 800px; }
.demo-wrap > p { color: var(--muted); font-size: 16.5px; margin: 0 0 18px; }
.demo-wrap > p strong { color: var(--text); }
.demo-wrap > p em { color: var(--accent-2); font-style: normal; }
.video-box { margin: 34px 0 40px; aspect-ratio: 16 / 9; border: 2px dashed var(--border-strong); border-radius: var(--radius);
  background: radial-gradient(closest-side at 50% 38%, var(--accent-soft), var(--surface)); display: grid; place-items: center; }
.video-inner { display: grid; justify-items: center; gap: 14px; color: var(--muted); }
.video-inner .play { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-size: 20px; box-shadow: 0 0 28px var(--accent-glow); }
.video-text { font-size: 15px; }
.watch-title { font-size: 20px; margin: 10px 0 2px; }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; }
.foot-inner { text-align: center; display: grid; gap: 8px; justify-items: center; }
.foot-inner p { margin: 4px 0; color: var(--muted); font-size: 14px; max-width: 520px; }
.foot-inner small { color: var(--faint); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 42px; }
}
@media (max-width: 640px) {
  .nav-links { gap: 14px; }
  .hero h1 { font-size: 34px; }
  .claims { grid-template-columns: 1fr; gap: 20px; }
  .flow { flex-direction: column; }
  .arrow { transform: rotate(90deg); align-self: center; }
  .c-row { grid-template-columns: 1fr; }
  .c-row > div { border-top: 1px solid var(--border); }
  .c-row.c-head { display: none; }
  .section-title { font-size: 27px; }
  .arrow-gate { margin: 10px 0; }
  .final-gate { margin-left: 0; margin-top: 8px; }
}

/* ============================ polish sweep ================================= */

::selection { background: var(--accent); color: var(--on-accent); }

a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px;
}

/* nav gains depth once you scroll */
.nav { transition: box-shadow .2s, background .2s; }
.nav.scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); background: rgba(10, 10, 11, 0.9); }

/* emphasize the final verify step — a clear gap + an accent arrow into it */
.arrow-gate { color: var(--accent-2); margin: 0 20px; font-weight: 700; }
.final-gate { margin-left: 6px; }

/* comparison — scannable ticks / crosses */
.c-us.yes::before { content: "✓"; color: var(--accent); font-weight: 900; margin-right: 8px; }
.c-row .no::before { content: "✕"; color: var(--faint); margin-right: 8px; }

/* footer links */
.foot-links { display: flex; gap: 18px; margin: 4px 0 2px; }
.foot-links a { color: var(--muted); font-size: 13.5px; }
.foot-links a:hover { color: var(--accent-2); }

/* gentle float on the hero receipt */
@media (prefers-reduced-motion: no-preference) {
  .hero-art .mock { animation: float 6s ease-in-out infinite; }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
}

/* respect reduced motion everywhere */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}
