:root {
  --bg: #ffffff;
  --text: #171717;
  --muted: #4d4d4d;
  --subtle: #666666;
  --line: #ebebeb;
  --surface: #fafafa;
  --develop: #0a72ef;
  --preview: #de1d8d;
  --ship: #ff5b4f;
  --shadow-border: rgba(0, 0, 0, 0.08) 0 0 0 1px;
  --card-shadow: rgba(0, 0, 0, 0.08) 0 0 0 1px, rgba(0, 0, 0, 0.04) 0 2px 2px, rgba(0, 0, 0, 0.04) 0 8px 8px -8px, #fafafa 0 0 0 1px inset;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  width: 100%;
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: "liga" 1;
}
main, section, article, div { min-width: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: #0072f5; }
pre, code { font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: var(--shadow-border);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; letter-spacing: -0.2px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--text);
  color: white;
  font-family: 'Geist Mono', monospace;
  font-size: 14px;
}
.nav nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 500; color: var(--muted); }
.nav-cta { justify-self: end; padding: 8px 14px; border-radius: 6px; background: var(--text); color: white; font-size: 14px; font-weight: 500; }
.nav-cta:hover { color: white; background: #000; }

.section-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.hero { position: relative; padding: 112px 0 76px; text-align: center; overflow: hidden; }
.hero-glow {
  position: absolute;
  inset: 40px 10% auto;
  height: 360px;
  background: radial-gradient(circle at 24% 40%, rgba(10,114,239,.17), transparent 33%), radial-gradient(circle at 62% 18%, rgba(222,29,141,.12), transparent 30%), radial-gradient(circle at 80% 60%, rgba(255,91,79,.12), transparent 32%);
  filter: blur(14px);
  z-index: -1;
}
.eyebrow { margin: 0 0 16px; color: #0068d6; font-family: 'Geist Mono', monospace; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
h1 { max-width: 920px; margin: 0 auto; font-size: clamp(48px, 7vw, 86px); line-height: .95; letter-spacing: clamp(-4px, -0.055em, -2.4px); font-weight: 600; text-wrap: balance; }
h2 { margin: 0; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.02; letter-spacing: -2.4px; font-weight: 600; text-wrap: balance; }
h3 { margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: -0.96px; font-weight: 600; }
h1, h2, h3, p, li, .brand, .arch-row span { overflow-wrap: break-word; }
p { line-height: 1.62; }
.hero-copy { max-width: 760px; margin: 28px auto 0; color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.7; }
.actions { display: flex; justify-content: center; gap: 12px; margin: 34px 0 42px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border-radius: 6px; font-size: 14px; font-weight: 500; }
.button.primary { background: var(--text); color: white; }
.button.secondary { background: white; color: var(--text); box-shadow: var(--shadow-border); }
.button.primary:hover { color: white; background: #000; }

.terminal-card { width: 100%; max-width: 880px; margin: 0 auto; text-align: left; border-radius: 12px; background: #0b0b0c; color: #f5f5f5; box-shadow: rgba(0,0,0,.18) 0 24px 80px, var(--shadow-border); overflow: hidden; }
.terminal-top { display: flex; gap: 8px; padding: 14px 16px; background: #151516; box-shadow: rgba(255,255,255,.08) 0 -1px 0 inset; }
.terminal-top span { width: 10px; height: 10px; border-radius: 50%; background: #3f3f46; }
.terminal-card pre { max-width: 100%; margin: 0; padding: 24px; overflow-x: auto; font-size: 14px; line-height: 1.7; }

.statement { border-block: 1px solid #171717; margin: 20px 0 0; }
.statement-inner { width: min(1120px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.statement p { margin: 0; padding: 26px 20px; min-height: 104px; display: flex; align-items: center; color: var(--muted); box-shadow: rgba(0,0,0,.08) -1px 0 0 inset; }
.statement p:first-child { padding-left: 0; }
.statement p:last-child { box-shadow: none; color: var(--text); }

.section-heading { max-width: 780px; padding: 104px 0 44px; }
.section-heading p:not(.eyebrow), .split > div > p { color: var(--muted); font-size: 18px; margin: 22px 0 0; }
.section-heading.compact { padding-bottom: 34px; }
.pipeline-grid, .cards { display: grid; gap: 16px; }
.pipeline-grid { grid-template-columns: repeat(3, 1fr); }
.pipeline-step, .card, .architecture-card { background: #fff; border-radius: 12px; box-shadow: var(--card-shadow); }
.pipeline-step { padding: 28px; min-height: 250px; }
.pipeline-step span, .card-label { display: inline-block; margin-bottom: 52px; font-family: 'Geist Mono', monospace; font-size: 12px; font-weight: 600; text-transform: uppercase; }
.pipeline-step p, .card p { color: var(--muted); }
.pipeline-step.develop span { color: var(--develop); }
.pipeline-step.preview span { color: var(--preview); }
.pipeline-step.ship span { color: var(--ship); }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; padding-top: 114px; }
.architecture-card { padding: 24px; }
.arch-row { display: flex; justify-content: space-between; gap: 18px; padding: 16px; border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-border); }
.arch-row span { font-weight: 600; letter-spacing: -0.32px; }
.arch-row b { color: var(--subtle); font-family: 'Geist Mono', monospace; font-size: 12px; font-weight: 500; text-transform: uppercase; white-space: nowrap; }
.arrow { padding: 10px 0; text-align: center; color: var(--subtle); }

.cli-section { padding-top: 18px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); padding-bottom: 104px; }
.card { padding: 28px; min-width: 0; max-width: 100%; }
.card-label { margin-bottom: 24px; color: #0068d6; }
.card pre { max-width: 100%; margin: 24px 0 0; padding: 16px; border-radius: 8px; background: #0b0b0c; color: #f5f5f5; overflow-x: auto; font-size: 12px; line-height: 1.6; }
.proof { padding-top: 8px; }

.footer { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding: 40px 32px; border-top: 1px solid #171717; }
.footer p { margin: 8px 0 0; color: var(--muted); }
.footer-links { display: flex; gap: 18px; font-size: 14px; font-weight: 500; }

.whitepaper-page { background: #fff; }
.doc-shell { width: min(900px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0 112px; }
.doc-shell article { padding: 40px; border-radius: 12px; box-shadow: var(--card-shadow); }
.doc-shell h1 { font-size: clamp(38px, 5vw, 62px); text-align: left; margin: 0 0 24px; }
.doc-shell h2 { font-size: 34px; letter-spacing: -1.4px; margin-top: 56px; }
.doc-shell h3 { margin-top: 34px; }
.doc-shell p, .doc-shell li { color: var(--muted); font-size: 16px; line-height: 1.76; }
.doc-shell pre { padding: 18px; border-radius: 8px; background: #0b0b0c; color: #f5f5f5; overflow-x: auto; }
.doc-shell blockquote { margin: 24px 0; padding: 4px 0 4px 18px; border-left: 3px solid #171717; color: var(--text); }

@media (max-width: 820px) {
  .nav { grid-template-columns: 1fr auto; padding: 0 20px; gap: 16px; }
  .nav nav { display: none; }
  .section-shell { width: min(100% - 32px, 1120px); }
  h1 { font-size: clamp(42px, 14vw, 58px); letter-spacing: -2.2px; }
  h2 { font-size: clamp(32px, 10vw, 44px); letter-spacing: -1.6px; }
  .hero { padding-top: 80px; }
  .terminal-card pre, .card pre, .doc-shell pre { -webkit-overflow-scrolling: touch; }
  .statement-inner, .pipeline-grid, .cards.two, .cards.three, .split { grid-template-columns: 1fr; }
  .statement p { min-height: auto; padding: 18px 0; box-shadow: rgba(0,0,0,.08) 0 -1px 0 inset; }
  .statement p:last-child { box-shadow: none; }
  .section-heading { padding-top: 72px; }
  .split { gap: 32px; padding-top: 76px; }
  .cards.three { padding-bottom: 72px; }
  .footer { flex-direction: column; padding: 32px 20px; }
  .doc-shell article { padding: 24px; }
}

@media (max-width: 480px) {
  .nav { min-height: 60px; padding: 0 16px; }
  .brand { gap: 8px; font-size: 14px; }
  .brand-mark { width: 26px; height: 26px; }
  .nav-cta { padding: 7px 11px; font-size: 13px; }
  .section-shell, .statement-inner, .doc-shell { width: min(100% - 28px, 1120px); }
  .hero { padding: 64px 0 56px; }
  .hero-copy { font-size: 17px; }
  .terminal-card pre { padding: 18px; font-size: 12px; }
  .pipeline-step, .card, .architecture-card { padding: 22px; }
  .arch-row { flex-direction: column; gap: 8px; }
  .arch-row b { white-space: normal; }
  .doc-shell { padding: 48px 0 72px; }
  .doc-shell article { padding: 20px; }
  .doc-shell h1 { font-size: clamp(34px, 11vw, 44px); letter-spacing: -1.7px; }
  .doc-shell h2 { font-size: 28px; letter-spacing: -1px; }
  .doc-shell pre { padding: 14px; font-size: 12px; }
}
