:root {
  --ink: #111318;
  --ink-soft: #303642;
  --muted: #687183;
  --paper: #f5f7fb;
  --white: #ffffff;
  --blue-wash: #e8edff;
  --blue: #3158ff;
  --blue-dark: #1837bd;
  --orange: #ff6a2b;
  --mint: #dff4e5;
  --mint-dark: #1e7742;
  --line: #cbd3e1;
  --line-strong: #9da9bc;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; }
.wrap { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.mono { font-family: var(--mono); }

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 66px;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 247, 251, .94);
  backdrop-filter: blur(14px);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.04em; }
.brand img { width: 28px; height: 28px; display: block; }
.brand-word { font-size: 20px; }
.brand-word i { color: var(--orange); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: 14px; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { color: var(--ink) !important; border-bottom: 2px solid var(--orange); padding: 7px 0 5px; font-weight: 600; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 62px;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr); gap: 70px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font: 500 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--blue-dark); }
.eyebrow::before { content: ""; width: 9px; height: 9px; background: var(--orange); border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,106,43,.14); }
h1 { margin: 20px 0 0; max-width: 650px; font-size: clamp(48px, 6.3vw, 82px); line-height: .92; letter-spacing: -.065em; font-weight: 600; }
h1 span { color: var(--blue); }
.hero-copy { max-width: 610px; margin: 24px 0 0; color: var(--ink-soft); font-size: 19px; line-height: 1.62; }
.hero-copy strong { color: var(--ink); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 19px; border: 1px solid var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--white); }
.button-primary:hover { background: var(--blue); border-color: var(--blue); }
.button-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button-secondary:hover { border-color: var(--ink); }
.hero-note { margin: 16px 0 0; color: var(--muted); font: 11px/1.55 var(--mono); }

/* Signature: the command crosses the boundary; code ownership does not. */
.handoff { position: relative; border: 1px solid var(--line-strong); background: var(--white); box-shadow: 14px 14px 0 var(--blue-wash); }
.handoff-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; border-bottom: 1px solid var(--line); color: var(--muted); font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.window-dots i:first-child { background: var(--orange); }
.handoff-grid { display: grid; grid-template-columns: 1fr 68px 1fr; min-height: 408px; }
.side { padding: 22px 19px; min-width: 0; }
.side-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid var(--line); font: 500 10px/1.25 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.side-label span:last-child { color: var(--muted); font-weight: 400; letter-spacing: 0; text-transform: none; }
.terminal { display: grid; gap: 12px; padding-top: 18px; font: 12px/1.55 var(--mono); }
.terminal-row { opacity: 0; transform: translateY(5px); animation: line-in .35s ease forwards; }
.terminal-row:nth-child(2) { animation-delay: .22s; }
.terminal-row:nth-child(3) { animation-delay: .44s; }
.terminal-row:nth-child(4) { animation-delay: .66s; }
.terminal-row:nth-child(5) { animation-delay: .88s; }
.prompt-mark { color: var(--orange); }
.terminal-key { color: var(--muted); }
.terminal-value { color: var(--blue-dark); }
.receipt-row { display: grid; grid-template-columns: 10px 1fr; gap: 8px; }
.receipt-row::before { content: ""; width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--mint-dark); }
.receipt-row.wait::before { background: var(--orange); }
.endpoint { margin-top: 8px; padding: 11px; border: 1px solid #a7c9b2; background: var(--mint); color: #155b32; overflow-wrap: anywhere; }
.boundary { position: relative; display: grid; place-items: center; border-left: 1px dashed var(--line-strong); border-right: 1px dashed var(--line-strong); background: var(--paper); }
.boundary-label { writing-mode: vertical-rl; transform: rotate(180deg); color: var(--muted); font: 500 9px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.packet { position: absolute; top: 49%; left: 9px; right: 9px; height: 32px; display: grid; place-items: center; background: var(--blue); color: var(--white); font: 500 10px/1 var(--mono); animation: packet 2.8s cubic-bezier(.65,0,.35,1) infinite; }
.handoff-foot { display: flex; justify-content: space-between; gap: 20px; padding: 13px 15px; border-top: 1px solid var(--line); color: var(--muted); font: 10px/1.4 var(--mono); }
.handoff-foot strong { color: var(--ink); font-weight: 500; }

@keyframes line-in { to { opacity: 1; transform: translateY(0); } }
@keyframes packet { 0%, 20% { transform: translateX(-8px); opacity: .55; } 50%, 70% { transform: translateX(8px); opacity: 1; } 100% { transform: translateX(-8px); opacity: .55; } }

.truth-strip { border-bottom: 1px solid var(--line); background: var(--blue-wash); }
.truth-inner { min-height: 72px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; }
.truth-kicker { color: var(--blue-dark); font: 500 10px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.truth-text { font-size: 18px; letter-spacing: -.02em; }
.truth-text strong { font-weight: 600; }
.truth-proof { color: var(--muted); font: 10px/1.5 var(--mono); text-align: right; }

.section { padding: 82px 0; border-bottom: 1px solid var(--line); }
.section.white { background: var(--white); }
.section.blue { background: var(--blue-wash); }
.section-head { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 34px; margin-bottom: 42px; }
.section-label { color: var(--blue-dark); font: 500 10px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .11em; }
.section-title h2 { margin: 0; max-width: 820px; font-size: clamp(34px, 4.6vw, 58px); line-height: .98; letter-spacing: -.055em; font-weight: 600; }
.section-title p { max-width: 720px; margin: 18px 0 0; color: var(--ink-soft); font-size: 17px; line-height: 1.65; }

.contract { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-strong); background: var(--white); }
.contract-col { padding: 30px; }
.contract-col + .contract-col { border-left: 1px solid var(--line-strong); }
.contract-col.owner { background: var(--paper); }
.contract-tag { font: 500 10px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contract-col h3 { margin: 16px 0 20px; font-size: 26px; line-height: 1.1; letter-spacing: -.04em; }
.contract-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.contract-list li { position: relative; padding: 13px 0 13px 28px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 15px; }
.contract-list li::before { position: absolute; left: 0; top: 14px; color: var(--blue); font: 500 12px/1 var(--mono); }
.owner .contract-list li::before { content: "YOU"; color: var(--muted); font-size: 8px; top: 18px; }
.platform .contract-list li::before { content: "✓"; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.service { min-height: 218px; padding: 24px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: rgba(255,255,255,.72); }
.service-code { color: var(--blue-dark); font: 500 10px/1.2 var(--mono); }
.service h3 { margin: 34px 0 10px; font-size: 21px; letter-spacing: -.035em; }
.service p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.receipt { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 58px; align-items: center; }
.receipt-copy h2 { margin: 12px 0 0; font-size: clamp(35px, 4.2vw, 54px); line-height: 1; letter-spacing: -.05em; }
.receipt-copy p { margin: 18px 0 0; color: var(--ink-soft); font-size: 17px; line-height: 1.65; }
.receipt-card { background: var(--ink); color: #f5f7fb; border: 1px solid var(--ink); box-shadow: 14px 14px 0 var(--orange); }
.receipt-card-head { display: flex; justify-content: space-between; gap: 16px; padding: 14px 17px; border-bottom: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.55); font: 10px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.receipt-lines { padding: 20px 17px; display: grid; gap: 13px; font: 12px/1.45 var(--mono); }
.receipt-line { display: grid; grid-template-columns: 130px 1fr; gap: 18px; }
.receipt-line dt { color: rgba(255,255,255,.47); }
.receipt-line dd { margin: 0; overflow-wrap: anywhere; }
.receipt-line .ok { color: #7ee2a2; }
.receipt-line .orange { color: #ff9a70; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.step { min-height: 250px; padding: 24px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: var(--white); }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--blue); color: var(--blue-dark); font: 500 10px/1 var(--mono); }
.step h3 { margin: 40px 0 10px; font-size: 21px; letter-spacing: -.035em; }
.step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.62; }

.prompt-shell { border: 1px solid var(--line-strong); background: var(--white); }
.prompt-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.prompt-title { font: 500 10px/1.3 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.copy-button { border: 0; background: var(--blue); color: var(--white); padding: 10px 14px; font: 500 11px/1 var(--mono); cursor: pointer; }
.copy-button:hover { background: var(--blue-dark); }
.copy-button.copied { background: var(--mint-dark); }
.prompt-shell pre { margin: 0; padding: 24px; white-space: pre-wrap; word-break: break-word; color: var(--ink); font: 13px/1.75 var(--mono); }
.prompt-status { min-height: 20px; padding: 0 24px 18px; color: var(--mint-dark); font: 11px/1.5 var(--mono); }

.proof-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.proof-chip { border: 1px solid var(--line-strong); background: var(--paper); padding: 8px 10px; color: var(--muted); font: 10px/1.2 var(--mono); }

.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font: 500 18px/1 var(--mono); }
.faq details[open] summary::after { content: "−"; }
.faq p { max-width: 780px; margin: 0 0 22px; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }

.final { padding: 88px 0 94px; background: var(--ink); color: var(--white); }
.final-inner { display: grid; grid-template-columns: 1fr auto; gap: 42px; align-items: end; }
.final h2 { max-width: 790px; margin: 0; font-size: clamp(42px, 6vw, 74px); line-height: .94; letter-spacing: -.06em; }
.final p { max-width: 680px; margin: 20px 0 0; color: rgba(255,255,255,.62); font-size: 17px; }
.final .button-primary { background: var(--orange); border-color: var(--orange); white-space: nowrap; }
.final .button-primary:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

footer { padding: 24px 0; border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font: 10px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid rgba(49,88,255,.42); outline-offset: 3px; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .handoff { max-width: 680px; }
  .truth-inner { grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
  .truth-proof { text-align: left; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .receipt { grid-template-columns: 1fr; }
  .receipt-card { max-width: 700px; }
}

@media (max-width: 680px) {
  .wrap { width: min(100% - 30px, 1160px); }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 54px 0 44px; }
  h1 { font-size: clamp(44px, 14vw, 66px); }
  .hero-copy { font-size: 17px; }
  .actions .button { width: 100%; }
  .handoff-grid { grid-template-columns: 1fr; }
  .boundary { min-height: 58px; border: 0; border-top: 1px dashed var(--line-strong); border-bottom: 1px dashed var(--line-strong); }
  .boundary-label { writing-mode: initial; transform: none; }
  .packet { left: 50%; right: auto; top: 13px; width: 72px; transform: translateX(-50%); animation: none; }
  .section { padding: 60px 0; }
  .contract { grid-template-columns: 1fr; }
  .contract-col + .contract-col { border-left: 0; border-top: 1px solid var(--line-strong); }
  .service-grid, .steps { grid-template-columns: 1fr; }
  .service, .step { min-height: 0; }
  .step h3 { margin-top: 26px; }
  .receipt-line { grid-template-columns: 1fr; gap: 3px; }
  .prompt-head { align-items: flex-start; }
  .prompt-shell pre { padding: 19px 16px; font-size: 12px; }
  .prompt-status { padding-left: 16px; padding-right: 16px; }
  .final-inner { grid-template-columns: 1fr; align-items: start; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .terminal-row { opacity: 1; transform: none; }
}
