@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&family=Instrument+Serif:ital,wght@0,400;1,400&display=swap');

:root {
  --bg: oklch(96.16% 0.0057 84.57);
  --surface: oklch(98.48% 0.0054 95.10);
  --fg: oklch(14.06% 0.003 69.39);
  --muted: oklch(48.49% 0.0096 293.70);
  --border: oklch(89.13% 0.0126 91.53);
  --accent: oklch(53.84% 0.2271 279.81);
  --accent-soft: oklch(92% 0.035 279.81);
  --action: oklch(90.32% 0.197 101.2);
  --dark: oklch(14.06% 0.003 69.39);
  --dark-surface: oklch(20% 0.008 279.81);
  --light: oklch(98.48% 0.0054 95.10);
  --success: oklch(64% 0.16 145);
  --danger: oklch(58% 0.19 28);
  --sans: 'Geist', system-ui, sans-serif;
  --display: 'Instrument Serif', Georgia, serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(76px, 10vw, 136px);
  --radius: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; translate: 0 -150%; background: var(--action); color: var(--fg); padding: 10px 14px; border-radius: 6px; font-weight: 700; }
.skip-link:focus { translate: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.shell { width: min(100% - (2 * var(--gutter)), var(--container)); margin-inline: auto; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.serif { font-family: var(--display); font-style: italic; font-weight: 400; }
.muted { color: var(--muted); }
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(56px, 7vw, 90px); }
.dark { background: var(--dark); color: var(--light); }
.surface { background: var(--surface); }
.rule { border-top: 1px solid var(--border); }
.eyeline { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--muted); font: 500 12px/1.2 var(--mono); letter-spacing: .08em; }
.eyeline::before { content: ''; width: 8px; height: 8px; background: var(--accent); }
.dark .eyeline { color: oklch(73% .01 280); }
.display { max-width: 940px; margin-bottom: 24px; font-size: clamp(44px, 7.2vw, 92px); line-height: .97; letter-spacing: -.038em; font-weight: 600; }
.display .serif { color: oklch(82% .035 280); }
.section-title { max-width: 800px; margin-bottom: 20px; font-size: clamp(34px, 5vw, 62px); line-height: 1; letter-spacing: -.035em; font-weight: 600; }
.lead { max-width: 67ch; color: var(--muted); font-size: clamp(17px, 2vw, 21px); line-height: 1.6; }
.dark .lead { color: oklch(74% .012 280); }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer; background: var(--action); color: var(--fg); font-weight: 700; text-decoration: none; box-shadow: 0 6px 8px oklch(20% .05 100 / .22); transition: translate .22s var(--ease), box-shadow .22s var(--ease); }
.button:hover { translate: 0 -2px; box-shadow: 0 8px 8px oklch(20% .05 100 / .24); }
.button.secondary { background: transparent; color: currentColor; border: 1px solid currentColor; box-shadow: none; }
.button.secondary:hover { background: color-mix(in oklch, currentColor 7%, transparent); }
.text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 32px; }

.site-header { position: relative; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 30px; }
.wordmark { flex: 0 0 auto; font-size: 22px; font-weight: 700; letter-spacing: -.04em; text-decoration: none; }
.wordmark span { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.site-nav > a, .nav-group > summary { min-height: 44px; display: inline-flex; align-items: center; padding: 9px 11px; border-radius: 8px; font: 500 13px/1 var(--mono); text-decoration: none; cursor: pointer; }
.site-nav > a:hover, .site-nav > a[aria-current='page'], .nav-group > summary:hover { background: var(--accent-soft); color: var(--accent); }
.nav-group { position: relative; }
.nav-group > summary { list-style: none; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::after { content: '⌄'; margin-left: 6px; }
.nav-popover { position: absolute; top: calc(100% + 10px); left: 0; min-width: 250px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 8px oklch(20% .02 280 / .12); }
.nav-popover a { display: block; min-height: 44px; padding: 10px 12px; border-radius: 8px; text-decoration: none; }
.nav-popover a:hover { background: var(--accent-soft); color: var(--accent); }
.header-cta { margin-left: 8px; }
.menu-toggle { min-width: 44px; min-height: 44px; display: none; margin-left: auto; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--fg); cursor: pointer; }

.hero { padding-block: clamp(76px, 10vw, 132px); background: var(--dark); color: var(--light); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr); gap: clamp(42px, 7vw, 92px); align-items: center; }
.hero-copy .lead { max-width: 60ch; }
.proof-panel { min-width: 0; background: var(--light); color: var(--fg); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 8px oklch(0% 0 0 / .28); }
.proof-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; border-bottom: 1px solid var(--border); font: 500 11px/1.3 var(--mono); }
.proof-head strong { color: var(--accent); }
.proof-body { padding: clamp(20px, 4vw, 34px); }
.proof-command { margin-bottom: 24px; padding: 16px 18px; background: var(--dark); color: var(--light); border-radius: 10px; font-family: var(--mono); }
.proof-result { display: grid; gap: 0; border-top: 1px solid var(--border); }
.proof-row { min-height: 58px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; border-bottom: 1px solid var(--border); }
.proof-row span:last-child { font-family: var(--mono); font-weight: 600; }
.proof-note { margin: 18px 0 0; color: var(--muted); font: 11px/1.5 var(--mono); }

.intro-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(42px, 8vw, 110px); align-items: start; }
.statement { max-width: 18ch; font-size: clamp(30px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -.03em; }
.capability-list { border-top: 1px solid var(--border); }
.capability { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.capability-index { color: var(--accent); font: 500 12px/1.4 var(--mono); }
.capability h3 { margin-bottom: 8px; font-size: 24px; }
.capability p { max-width: 62ch; margin-bottom: 0; color: var(--muted); }
.dark .capability-list, .dark .capability { border-color: oklch(30% .01 280); }
.dark .capability p { color: oklch(74% .012 280); }

.product-proof { display: grid; grid-template-columns: 220px minmax(0, 1fr); background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 8px oklch(20% .01 280 / .11); }
.product-sidebar { padding: 26px 18px; background: var(--dark); color: var(--light); }
.product-sidebar strong { display: block; margin-bottom: 26px; font-size: 18px; }
.product-sidebar span { display: block; padding: 10px 12px; border-radius: 7px; color: oklch(73% .01 280); font-size: 13px; }
.product-sidebar span.active { background: var(--accent); color: white; }
.product-main { min-width: 0; padding: clamp(24px, 5vw, 48px); }
.preview-top { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.preview-top h3 { margin-bottom: 6px; font-size: 30px; }
.preview-badge { padding: 7px 10px; background: var(--accent-soft); color: var(--accent); border-radius: 999px; white-space: nowrap; font: 500 10px/1 var(--mono); }
.preview-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--border); }
.metric { padding: 24px 18px; border-right: 1px solid var(--border); }
.metric:last-child { border-right: 0; }
.metric span { display: block; color: var(--muted); font: 500 10px/1.3 var(--mono); }
.metric strong { display: block; margin-top: 10px; font-size: clamp(24px, 3vw, 34px); font-variant-numeric: tabular-nums; }
.command-strip { margin-top: 24px; display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 12px; background: var(--accent-soft); border-radius: 10px; }
.command-strip span { align-self: center; padding-left: 6px; color: var(--muted); }
.command-strip b { padding: 10px 14px; background: var(--accent); color: white; border-radius: 8px; }

.feature-band { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--border); }
.feature-band article { padding: clamp(26px, 4vw, 46px); border-right: 1px solid var(--border); }
.feature-band article:last-child { border-right: 0; }
.feature-band h3 { font-size: 25px; }
.feature-band p { color: var(--muted); }
.path-list { border-top: 1px solid var(--border); }
.path-row { display: grid; grid-template-columns: 160px 1fr auto; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--border); }
.path-row strong { font-size: 22px; }
.path-row p { margin: 0; color: var(--muted); }
.timeline { border-left: 1px solid var(--border); margin-left: 10px; }
.phase { position: relative; padding: 0 0 52px 38px; }
.phase::before { content: ''; position: absolute; left: -7px; top: 5px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.phase.current::before { background: var(--accent); }
.phase .phase-label { color: var(--accent); font: 500 12px/1.4 var(--mono); }
.phase h3 { margin: 8px 0; font-size: 28px; }
.phase p { max-width: 68ch; color: var(--muted); }

.page-hero { padding-block: clamp(74px, 9vw, 120px); }
.page-hero .display { max-width: 1020px; font-size: clamp(44px, 6vw, 78px); }
.page-hero.dark .display .serif { color: oklch(82% .035 280); }
.page-hero:not(.dark) .display .serif { color: var(--accent); }
.cta-band { padding-block: clamp(64px, 8vw, 100px); background: var(--accent); color: white; }
.cta-grid { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.cta-grid h2 { max-width: 20ch; margin: 0; font-size: clamp(34px, 5vw, 58px); line-height: 1; letter-spacing: -.03em; }
.cta-grid .button { background: var(--action); color: var(--fg); }

.faq-grid { display: grid; grid-template-columns: 260px 1fr; gap: clamp(36px, 7vw, 88px); }
.faq-nav { position: sticky; top: 110px; align-self: start; }
.faq-nav a { min-height: 44px; display: flex; align-items: center; border-bottom: 1px solid var(--border); text-decoration: none; }
.faq-group { margin-bottom: 52px; }
.faq-group > h2 { font-size: 30px; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item summary { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; font-weight: 600; }
.faq-item summary::after { content: '+'; color: var(--accent); font-size: 22px; }
.faq-item[open] summary::after { content: '−'; }
.faq-answer { max-width: 70ch; padding: 0 0 24px; color: var(--muted); }

.form-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(42px, 8vw, 100px); }
.form-card { padding: clamp(24px, 4vw, 42px); background: var(--surface); border-radius: var(--radius); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; }
.field input, .field select, .field textarea { min-height: 48px; width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; background: white; color: var(--fg); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.form-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.form-status { min-height: 24px; margin: 14px 0 0; font-weight: 600; }
.form-card[data-state='pending'] .button { opacity: .62; cursor: wait; }
.form-card[data-state='success'] .form-status { color: var(--success); }
.form-card[data-state='error'] .form-status { color: var(--danger); }

.legal-note { padding: 18px 20px; background: var(--accent-soft); color: var(--accent); border-radius: 10px; font-weight: 600; }
.prose { max-width: 75ch; }
.prose h2 { margin-top: 52px; font-size: 30px; }
.prose p, .prose li { color: var(--muted); }

.site-footer { padding-block: 64px; background: var(--dark); color: var(--light); }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 36px; }
.footer-intro { max-width: 32ch; color: oklch(72% .012 280); }
.footer-col h2 { color: oklch(72% .012 280); font: 500 11px/1.3 var(--mono); letter-spacing: .08em; }
.footer-col a { min-height: 38px; display: flex; align-items: center; color: oklch(86% .01 280); text-decoration: none; }
.footer-col a:hover { color: var(--action); }
.footer-meta { display: flex; justify-content: space-between; gap: 20px; margin-top: 54px; padding-top: 24px; border-top: 1px solid oklch(30% .01 280); color: oklch(66% .01 280); font: 400 11px/1.5 var(--mono); }

dialog { width: min(650px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--fg); box-shadow: 0 8px 8px oklch(0% 0 0 / .35); }
dialog::backdrop { background: oklch(8% .01 280 / .72); backdrop-filter: blur(5px); }
.dialog-head { display: flex; justify-content: space-between; gap: 20px; padding: 24px 26px; border-bottom: 1px solid var(--border); }
.dialog-head h2 { margin: 0; font-size: 30px; }
.dialog-close { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%; background: transparent; cursor: pointer; font-size: 22px; }
.dialog-body { padding: 26px; }

.launcher { min-height: 100dvh; padding-block: 72px; background: var(--dark); color: var(--light); }
.launcher-list { margin-top: 42px; border-top: 1px solid oklch(31% .01 280); }
.launcher-list a { display: grid; grid-template-columns: 80px 1fr auto; gap: 22px; align-items: center; min-height: 76px; border-bottom: 1px solid oklch(31% .01 280); text-decoration: none; }
.launcher-list a:hover { color: var(--action); }

@media (max-width: 960px) {
  .hero-grid, .intro-grid, .form-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 54px; }
  .product-proof { grid-template-columns: 170px minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .site-header { position: relative; }
  .header-inner { min-height: 68px; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .site-nav { position: fixed; inset: 68px 0 auto; z-index: 60; max-height: calc(100dvh - 68px); display: none; align-items: stretch; flex-direction: column; gap: 4px; margin: 0; padding: 18px var(--gutter) 26px; overflow-y: auto; background: var(--bg); border-bottom: 1px solid var(--border); }
  .site-nav[data-open='true'] { display: flex; }
  .site-nav > a, .nav-group > summary { width: 100%; justify-content: space-between; padding-inline: 12px; }
  .nav-popover { position: static; margin: 4px 0 8px; box-shadow: none; }
  .header-cta { width: 100%; margin: 8px 0 0; }
  .feature-band { grid-template-columns: 1fr; }
  .feature-band article { border-right: 0; border-bottom: 1px solid var(--border); }
  .feature-band article:last-child { border-bottom: 0; }
  .product-proof { grid-template-columns: 1fr; }
  .product-sidebar { display: flex; gap: 4px; overflow-x: auto; }
  .product-sidebar strong { display: none; }
  .product-sidebar span { flex: 0 0 auto; }
  .preview-metrics { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--border); }
  .metric:last-child { border-bottom: 0; }
  .path-row { grid-template-columns: 1fr; gap: 8px; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-nav { position: static; display: flex; gap: 8px; overflow-x: auto; }
  .faq-nav a { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; }
  .cta-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 430px) {
  :root { --gutter: 20px; --section: 68px; }
  .display { font-size: clamp(42px, 14vw, 62px); }
  .capability { grid-template-columns: 48px 1fr; gap: 12px; }
  .preview-top, .footer-meta { flex-direction: column; }
  .preview-badge { white-space: normal; }
  .command-strip { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .launcher-list a { grid-template-columns: 42px 1fr; }
  .launcher-list a span:last-child { display: none; }
}

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