/* KumoKG landing page. Tokens mirror the KumoKG Studio and the launch film.
   Radius system: surfaces 14px, interactive 10px, chips 8px. One interactive accent (blue);
   green / yellow appear only as meaning (verified, verbatim quote). */
@font-face { font-family: "Inter"; src: url("fonts/Inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0d1117; --surface: #161b22; --surface-2: #1c2128; --line: #2b323d; --line-2: #3d444d;
  --ink: #e6edf3; --ink-2: #adbac7; --mute: #8b949e;
  --accent: #58a6ff; --accent-ink: #0d1117; --ok: #3fb950; --quote-bg: rgba(210, 153, 34, .22); --quote-ink: #f0d58a;
  --shadow: 0 24px 60px rgba(1, 4, 9, .55);
  --sans: "Inter", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --r-surface: 14px; --r-ui: 10px; --r-chip: 8px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fa; --surface: #ffffff; --surface-2: #f0f3f6; --line: #d0d7de; --line-2: #afb8c1;
    --ink: #1f2328; --ink-2: #424a53; --mute: #59636e;
    --accent: #0969da; --accent-ink: #ffffff; --ok: #1a7f37; --quote-bg: #fff1b8; --quote-ink: #3d3000;
    --shadow: 0 24px 60px rgba(31, 35, 40, .14);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: var(--r-ui); z-index: 100; }
.skip:focus { left: 12px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.03em; line-height: 1.08; color: var(--ink); }
h2 { font-size: clamp(30px, 3.4vw, 44px); }
h3 { font-size: 19px; letter-spacing: -.015em; }
.section-lede { margin: 14px 0 0; max-width: 62ch; color: var(--ink-2); }
section { padding: 96px 0; }

/* Navigation: one line, 64px */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.nav-row { height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 24px; height: 24px; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { color: var(--ink-2); font-size: 15px; }
.links a:hover { color: var(--ink); text-decoration: none; }

/* Buttons and command pills */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: var(--r-ui); font: 700 15px/1 var(--sans); white-space: nowrap; transition: background .2s, border-color .2s, transform .12s; }
.btn svg { width: 18px; height: 18px; }
.btn.ghost { color: var(--ink); border: 1px solid var(--line-2); background: var(--surface); }
.btn.ghost:hover { border-color: var(--mute); text-decoration: none; }
.btn:active, .copy:active { transform: translateY(1px); }
.cmd { display: inline-flex; align-items: center; gap: 4px; min-height: 48px; max-width: 100%; padding: 0 6px 0 16px; border: 1px solid var(--line-2); border-radius: var(--r-ui); background: var(--surface); }
.cmd code { min-width: 0; font-size: 15px; color: var(--ink); white-space: nowrap; overflow-x: auto; scrollbar-width: none; padding: 12px 0; }
.cmd code::-webkit-scrollbar { display: none; }
.ps { color: var(--ok); font-weight: 700; }
.copy { flex: none; display: grid; place-items: center; width: 36px; height: 36px; margin-left: 6px; border: 0; border-radius: 8px; background: transparent; color: var(--mute); cursor: pointer; transition: background .2s, color .2s, transform .12s; }
.copy:hover { background: var(--surface-2); color: var(--ink); }
.copy svg { width: 18px; height: 18px; grid-area: 1 / 1; transition: opacity .15s; }
.copy svg:last-child { opacity: 0; color: var(--ok); }
.copy.done svg:first-child { opacity: 0; }
.copy.done svg:last-child { opacity: 1; }

/* Hero: asymmetric split */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.22fr 1fr; gap: 52px; align-items: center; }
.eyebrow { margin: 0 0 18px; font: 400 14px/1.4 var(--mono); color: var(--mute); }
.hero h1 { font-size: clamp(40px, 4.6vw, 60px); max-width: 13ch; }
.lede { margin: 22px 0 0; font-size: 19px; color: var(--ink-2); max-width: 44ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.hero-media { margin: 0; }
.hero-grid > *, .receipt-grid > *, .exports-grid > *, .bento > * { min-width: 0; }
.frame { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--r-surface); border: 1px solid var(--line); background: #0d1117; box-shadow: var(--shadow); object-fit: cover; }

/* Harness strip */
.harness { padding: 28px 0; border-block: 1px solid var(--line); }
.harness-row { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.harness-lead { margin: 0; color: var(--mute); font-size: 15px; }
.harness ul { display: flex; flex-wrap: wrap; gap: 36px; margin: 0; padding: 0; list-style: none; }
.harness li { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.harness li svg { width: 24px; height: 24px; }

/* Receipt */
.receipt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.receipt .frame { aspect-ratio: auto; }
.receipt figure { margin: 0; }
.receipt-copy p { margin: 18px 0 0; color: var(--ink-2); max-width: 46ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.chips li { padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r-chip); background: var(--surface); font: 400 14px/1.3 var(--mono); color: var(--ink-2); }
.proof { margin: 28px 0 0; padding: 18px 20px; border-left: 3px solid var(--ok); border-radius: 0 var(--r-chip) var(--r-chip) 0; background: var(--surface); }
.proof p { margin: 0; font-size: 17px; }
.proof mark { background: var(--quote-bg); color: var(--quote-ink); padding: 1px 4px; border-radius: 4px; }
.proof footer { margin-top: 10px; font-size: 14px; color: var(--mute); }
.proof footer code { color: var(--accent); }

/* Flow: horizontal steps on a hairline */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; margin: 48px 0 0; padding: 0; list-style: none; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-2); }
.steps li { position: relative; padding-top: 34px; }
.steps li::before { content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.steps li:last-child::before { background: var(--accent); }
.steps p { margin: 8px 0 0; font-size: 15.5px; color: var(--ink-2); }

/* Studio bento */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; align-items: start; }
.tile { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-surface); background: var(--surface); overflow: hidden; }
.tile-lg { grid-column: span 2; }
.tile img { width: 100%; height: auto; aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); }
.tile figcaption { padding: 16px 18px 18px; display: grid; gap: 4px; }
.tile figcaption b { font-size: 16px; letter-spacing: -.01em; }
.tile figcaption span { font-size: 15px; color: var(--ink-2); }

/* Film */
.film h2 { margin-bottom: 28px; }
.film .frame { aspect-ratio: 16 / 9; }

/* Exports */
.exports-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; margin-top: 40px; align-items: start; }
.dbs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.dbs li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-ui); background: var(--surface); font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; }
.dbs li svg { width: 24px; height: 24px; flex: none; color: var(--ink-2); }
.mcp { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-surface); background: var(--surface-2); }
.mcp-head { display: flex; align-items: center; gap: 14px; }
.mcp-head svg { width: 36px; height: 36px; flex: none; }
.mcp-head h3 { font-size: 20px; line-height: 1.25; }
.mcp .cmd { margin-top: 20px; width: 100%; background: var(--surface); }
.cmd.small code { font-size: 14px; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.tools li { padding: 5px 10px; border: 1px solid var(--line); border-radius: var(--r-chip); background: var(--surface); font: 400 13.5px/1.3 var(--mono); color: var(--accent); }

/* Install tabs */
.install-wrap .cmd.wide, .install-wrap .req { max-width: 980px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.tabs button { height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-ui); background: transparent; color: var(--ink-2); font: 700 14.5px/1 var(--sans); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.tabs button:hover { color: var(--ink); border-color: var(--line-2); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); border-color: var(--accent); }
.cmd.wide { display: flex; width: 100%; margin-top: 14px; }
.cmd.wide code { flex: 1; }
.req { margin: 18px 0 0; color: var(--mute); font-size: 15px; }

/* Footer */
.foot { padding: 40px 0 56px; border-top: 1px solid var(--line); }
.foot-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot p { margin: 0; flex: 1; min-width: 260px; color: var(--mute); font-size: 15px; }

/* Reveal on scroll (IntersectionObserver adds .in); motion only when the viewer allows it */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1); }
  .reveal.in { opacity: 1; transform: none; }
  .hero-copy > * { animation: rise .7s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; } .hero-copy > :nth-child(3) { animation-delay: .12s; } .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .hero-media { animation: rise .8s .1s cubic-bezier(.16, 1, .3, 1) both; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Tablet */
@media (max-width: 980px) {
  .hero-grid, .receipt-grid, .exports-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { max-width: 16ch; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .steps::before { display: none; }
}
/* Phone: single column, 16px gutters */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .hero { padding: 40px 0 40px; }
  .links { display: none; }
  .nav-row .btn { margin-left: auto; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { justify-content: center; }
  .cmd { width: 100%; }
  .cmd code { font-size: 13.5px; }
  .harness-row { gap: 16px; }
  .harness ul { gap: 18px 24px; }
  .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile-lg { grid-column: auto; }
  .dbs { grid-template-columns: 1fr 1fr; }
  .dbs li { padding: 12px; font-size: 14.5px; }
}
