:root {
  --ink: #111a16;
  --ink-soft: #304039;
  --field: #f5f2e9;
  --line: #d5d0c4;
  --dark: #101713;
  --dark-card: #16221c;
  --dark-line: #314239;
  --mint: #8ee8ae;
  --amber: #ffb20b;
  --coral: #f26b48;
  --paper: #fbfaf5;
  --display: Archivo, ui-sans-serif, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--field); font-family: var(--display); font-size: 16px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.skip-link { position: fixed; z-index: 20; top: -5rem; left: 1rem; padding: .75rem 1rem; color: var(--dark); background: var(--mint); font-weight: 700; }
.skip-link:focus { top: 1rem; }
.site-header { min-height: 76px; padding: 0 max(4vw, 1.5rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; color: #eff4ed; background: var(--dark); border-bottom: 1px solid #344139; }
.wordmark { font-family: var(--mono); letter-spacing: .12em; font-weight: 500; font-size: 1rem; white-space: nowrap; }
.wordmark span { color: var(--mint); }
.site-header nav { display: flex; gap: 1.6rem; font-family: var(--mono); font-size: .76rem; color: #c0c9c1; }
.site-header nav a, .header-link { transition: color .2s ease; }
.site-header nav a:hover, .site-header nav a:focus-visible, .header-link:hover, .header-link:focus-visible { color: var(--mint); }
.header-link { font-family: var(--mono); font-size: .76rem; color: var(--amber); white-space: nowrap; }

.hero { min-height: min(760px, calc(100vh - 76px)); padding: clamp(4rem, 8vw, 8.5rem) max(4vw, 1.5rem) clamp(4.5rem, 7vw, 7rem); display: grid; grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr); gap: clamp(2rem, 7vw, 9rem); align-items: center; overflow: hidden; background-color: var(--dark); color: #f6f5ef; position: relative; }
.hero::before { content: ""; pointer-events: none; position: absolute; inset: 0; opacity: .42; background-image: linear-gradient(rgba(142,232,174,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(142,232,174,.08) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(90deg, black 0%, transparent 72%); }
.hero-copy, .terminal-shell { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 1.1rem; color: #71847a; font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .11em; text-transform: uppercase; }
.status-dot { width: .62rem; height: .62rem; margin-right: .5rem; display: inline-block; vertical-align: .05em; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(142,232,174,.12); }
.hero h1, h2 { margin: 0; letter-spacing: -.065em; line-height: .95; font-weight: 800; }
.hero h1 { max-width: 710px; font-size: clamp(3.5rem, 7.1vw, 7.8rem); }
.hero h1 em { color: var(--mint); font-style: normal; }
.hero-intro { max-width: 560px; margin: 2rem 0 2.2rem; color: #c3ccc4; font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button { min-height: 48px; padding: .83rem 1rem; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; border: 1px solid transparent; font-family: var(--mono); font-size: .78rem; font-weight: 500; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--dark); background: var(--mint); }
.button-primary:hover { background: #b7f6c9; }
.button-quiet { color: #edf3ed; border-color: #526158; }
.button-quiet:hover { border-color: var(--mint); color: var(--mint); }
.hero-notes { padding: 0; margin: 2.4rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1rem; color: #91a198; font-family: var(--mono); font-size: .68rem; list-style: none; }
.hero-notes li::before { content: "//"; margin-right: .3rem; color: var(--amber); }

.terminal-shell { border: 1px solid var(--dark-line); background: #0b120f; box-shadow: 14px 14px 0 rgba(255,178,11,.9); }
.terminal-topline { min-height: 46px; padding: .8rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #a5b3a9; background: #1a2720; border-bottom: 1px solid #334138; font-family: var(--mono); font-size: .64rem; letter-spacing: .04em; }
.window-controls { display: flex; gap: .38rem; }
.window-controls i { width: .62rem; height: .62rem; border-radius: 50%; background: var(--coral); }
.window-controls i:nth-child(2) { background: var(--amber); }
.window-controls i:nth-child(3) { background: #80af91; }
.terminal-body { padding: clamp(1.2rem, 2.4vw, 2rem); }
.command-block { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: .8rem; color: #ebf3e9; font-family: var(--mono); font-size: clamp(.75rem, 1.1vw, .91rem); line-height: 1.65; }
.prompt { color: var(--amber); font-weight: 700; }
.command-block code span { color: #b2c0b6; }
.copy-button { padding: .44rem .55rem; border: 1px solid #516258; color: #c5d0c6; background: transparent; cursor: pointer; font-family: var(--mono); font-size: .64rem; transition: all .2s ease; }
.copy-button:hover, .copy-button:focus-visible { border-color: var(--mint); color: var(--dark); background: var(--mint); outline: 0; }
.copy-button.copied { color: var(--dark); background: var(--mint); border-color: var(--mint); }
.terminal-rule { height: 1px; margin: 1.55rem 0; background: #314139; }
.preflight { margin: 0; display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: .8rem; color: var(--mint); font-family: var(--mono); font-size: .62rem; letter-spacing: .04em; text-transform: uppercase; }
.preflight span { color: #aab8ae; }
.preflight b { font-weight: 500; }
.receipt-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem; margin-top: 1.4rem; }
.receipt-cards article { min-height: 132px; padding: 1rem .85rem; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid #405247; border-left: 4px solid var(--amber); }
.receipt-cards article:nth-child(2) { border-left-color: #f88940; }
.receipt-cards article:nth-child(3) { border-left-color: var(--coral); }
.receipt-cards .receipt-result { border-color: #5d976f; border-left: 4px solid var(--mint); }
.receipt-cards span, .receipt-cards small { color: #9dad9f; font-family: var(--mono); font-size: .56rem; letter-spacing: .08em; text-transform: uppercase; }
.receipt-cards strong { color: #f1f6ef; font-family: var(--mono); font-size: clamp(.75rem, 1.25vw, 1rem); }
.receipt-result strong { color: var(--mint); text-transform: uppercase; }
.receipt-footer { padding-top: 1.25rem; margin-top: 1.25rem; display: flex; justify-content: space-between; gap: .5rem; border-top: 1px solid #314139; color: #93a397; font-family: var(--mono); font-size: .57rem; }
.receipt-footer span, .receipt-footer em { color: var(--amber); font-style: normal; }
.receipt-provenance { margin-top: .8rem; display: inline-block; color: #9fb0a3; font-family: var(--mono); font-size: .6rem; text-decoration: underline; text-decoration-color: #536459; text-underline-offset: .25em; }
.receipt-provenance:hover, .receipt-provenance:focus-visible { color: var(--mint); text-decoration-color: var(--mint); }

.signal-bar { padding: 1rem max(4vw, 1.5rem); display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; color: #334138; background: var(--amber); font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .04em; }
.signal-bar p { margin: 0; }
.signal-bar div { display: flex; gap: 1.4rem; }
.signal-bar span::before { content: "✦"; margin-right: .4rem; }

.section { padding: clamp(4.5rem, 9vw, 8rem) max(4vw, 1.5rem); }
.section-heading { max-width: 760px; }
h2 { font-size: clamp(2.6rem, 5.4vw, 5.6rem); }
.section-heading > p:last-child, .start-intro > p:last-child { max-width: 640px; margin: 1.55rem 0 0; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.7; }
.loop { border-bottom: 1px solid var(--line); background: var(--paper); }
.loop-path { padding: 0; margin: clamp(3rem, 6vw, 5.4rem) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; counter-reset: none; }
.loop-path li { min-height: 240px; padding: 1.2rem clamp(1rem, 2.5vw, 2rem); border-left: 1px solid var(--line); }
.loop-path li:first-child { padding-left: 0; border-left: 0; }
.loop-path span, .workflow-card > span { color: var(--coral); font-family: var(--mono); font-size: .72rem; }
.loop-path h3 { margin: 3.4rem 0 .65rem; font-size: 1.35rem; letter-spacing: -.035em; }
.loop-path p { max-width: 230px; margin: 0; color: var(--ink-soft); font-size: .91rem; line-height: 1.6; }

.proof-section { padding: clamp(4.5rem, 9vw, 9rem) max(4vw, 1.5rem); display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr); gap: clamp(3rem, 8vw, 10rem); align-items: center; background: #e8e4d9; }
.proof-visual img { width: 100%; display: block; border: 1px solid #748176; background: var(--dark); box-shadow: 10px 10px 0 var(--mint); }
.proof-visual p { max-width: 620px; margin: 1rem 0 0; color: #5b685f; font-family: var(--mono); font-size: .68rem; line-height: 1.65; }
.demo-preview { max-width: 570px; margin-top: 2.1rem; display: block; color: var(--ink); background: var(--paper); border: 1px solid #9da89d; transition: transform .2s ease, border-color .2s ease; }
.demo-preview:hover, .demo-preview:focus-visible { border-color: var(--coral); transform: translateY(-3px); outline: 0; }
.demo-preview img { width: 100%; display: block; border: 0; box-shadow: none; }
.demo-preview span { padding: .75rem .85rem; display: flex; justify-content: space-between; gap: 1rem; font-family: var(--mono); font-size: .68rem; }
.demo-preview b { color: var(--coral); }
.proof-copy > p:not(.eyebrow) { max-width: 545px; margin: 1.5rem 0; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.7; }
.text-link { display: inline-block; padding-bottom: .2rem; border-bottom: 1px solid var(--ink); font-family: var(--mono); font-size: .78rem; font-weight: 500; }
.text-link:hover { color: var(--coral); border-color: var(--coral); }
.proof-links { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; }
.receipt-list { margin: 2.4rem 0 0; border-top: 1px solid #afb6aa; }
.receipt-list div { padding: .72rem 0; display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #afb6aa; }
.receipt-list dt { font-family: var(--mono); font-size: .75rem; font-weight: 500; }
.receipt-list dd { margin: 0; color: #69766d; font-size: .8rem; }

.start { color: #edf5ec; background: var(--dark); }
.start .eyebrow { color: #789284; }
.start-intro { max-width: 760px; }
.start-intro > p:last-child { color: #b7c4b9; }
.large-command { max-width: 1070px; margin-top: 3.4rem; border: 1px solid #405147; background: #0b120f; box-shadow: 11px 11px 0 var(--coral); }
.large-command-head, .command-outcome { padding: .8rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #a9b9ad; font-family: var(--mono); font-size: .68rem; border-bottom: 1px solid #405147; }
.large-command pre { margin: 0; padding: clamp(1.2rem, 3vw, 2rem); overflow-x: auto; color: #e9f0e9; font-family: var(--mono); font-size: clamp(.72rem, 1.15vw, .96rem); line-height: 1.75; }
.command-outcome { border-top: 1px solid #405147; border-bottom: 0; color: var(--mint); }
.command-outcome span { color: var(--amber); }
.command-outcome b { font-weight: 500; }
.command-outcome a { color: #c9d5ca; text-decoration: underline; text-underline-offset: .22em; }

.workflows { background: var(--field); }
.workflow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.workflow-card { min-height: 270px; padding: 1.4rem; display: flex; flex-direction: column; border: 1px solid var(--ink); background: var(--paper); transition: transform .22s ease, color .22s ease, background .22s ease; }
.workflow-card:hover, .workflow-card:focus-visible { color: #edf5ec; background: var(--dark); transform: translateY(-5px); outline: 0; }
.workflow-card:hover > span, .workflow-card:focus-visible > span { color: var(--amber); }
.workflow-card h3 { margin: 3rem 0 .7rem; font-size: 1.6rem; letter-spacing: -.05em; }
.workflow-card p { max-width: 260px; margin: 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.65; }
.workflow-card:hover p, .workflow-card:focus-visible p { color: #b5c4b9; }
.workflow-card b { margin-top: auto; padding-top: 1.5rem; font-family: var(--mono); font-size: .69rem; font-weight: 500; }
.workflow-card i { color: var(--coral); font-style: normal; }

.closing { padding: clamp(5rem, 12vw, 11rem) max(4vw, 1.5rem); text-align: center; color: #f1f3ed; background: var(--coral); }
.closing .eyebrow { color: #37221a; }
.closing h2 { max-width: 940px; margin: auto; font-size: clamp(3rem, 7vw, 7rem); }
.closing > div { margin-top: 2.3rem; display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; }
.closing .button-primary { background: var(--dark); color: var(--mint); }
.closing .button-primary:hover { background: #283b31; }
.closing .button-quiet { border-color: #4a2c21; color: #2e1c16; }
.closing .button-quiet:hover { color: var(--dark); border-color: var(--dark); }

footer { padding: 2rem max(4vw, 1.5rem); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; color: #b9c6ba; background: var(--dark); border-top: 1px solid #46564b; }
footer p { margin: 0; justify-self: center; font-family: var(--mono); font-size: .68rem; text-align: center; }
footer div { display: flex; gap: 1rem; font-family: var(--mono); font-size: .68rem; }
footer div a:hover, footer div a:focus-visible { color: var(--mint); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
.delay-3 { transition-delay: .36s; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { max-width: 700px; }
  .terminal-shell { max-width: 790px; }
  .loop-path { grid-template-columns: repeat(2, 1fr); }
  .loop-path li:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .loop-path li:nth-child(4) { border-top: 1px solid var(--line); }
  .proof-section { grid-template-columns: 1fr; }
  .proof-visual { max-width: 800px; }
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-card { min-height: 220px; }
}

@media (max-width: 680px) {
  .site-header { min-height: 64px; gap: 1rem; }
  .site-header nav { display: none; }
  .header-link { margin-left: auto; }
  .hero { padding-top: 4rem; }
  .hero h1 { font-size: clamp(3.05rem, 15vw, 4.8rem); }
  .terminal-shell { box-shadow: 7px 7px 0 var(--amber); }
  .terminal-topline span:nth-child(2) { display: none; }
  .command-block { grid-template-columns: auto minmax(0, 1fr); }
  .command-block .copy-button { grid-column: 2; justify-self: start; }
  .preflight { grid-template-columns: 1fr 1fr; }
  .preflight span { grid-column: 1 / -1; }
  .receipt-cards { grid-template-columns: 1fr 1fr; }
  .receipt-cards article { min-height: 112px; }
  .receipt-footer { display: grid; grid-template-columns: 1fr 1fr; }
  .receipt-footer em { grid-column: 1 / -1; margin-top: .4rem; }
  .signal-bar { align-items: flex-start; flex-direction: column; }
  .signal-bar div { flex-wrap: wrap; gap: .5rem 1rem; }
  .loop-path { grid-template-columns: 1fr; }
  .loop-path li, .loop-path li:first-child, .loop-path li:nth-child(3), .loop-path li:nth-child(4) { min-height: auto; padding: 1.5rem 0; border-left: 0; border-top: 1px solid var(--line); }
  .loop-path li:first-child { border-top: 0; padding-top: 0; }
  .loop-path h3 { margin-top: 1.1rem; }
  .large-command { box-shadow: 7px 7px 0 var(--coral); }
  .large-command-head { align-items: flex-start; flex-direction: column; }
  .command-outcome { align-items: flex-start; flex-direction: column; }
  footer { grid-template-columns: 1fr; gap: 1.2rem; text-align: center; }
  footer p { justify-self: auto; }
  footer div { justify-content: center; }
}

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