:root {
  color-scheme: light;
  --ink: #122621;
  --muted: #60716b;
  --paper: #f4f0e7;
  --paper-deep: #e8e2d7;
  --panel: #fffdf8;
  --line: #d3ccbf;
  --deep: #102924;
  --deep-soft: #173c34;
  --sea: #2b6b60;
  --coral: #d96b46;
  --peach: #f4d9bf;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
a { color: inherit; }
button { font: inherit; }
.skip-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; padding: .7rem 1rem; color: white; background: var(--deep); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 10; display: flex; width: min(1240px, calc(100% - 3rem)); min-height: 86px; margin: 0 auto; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: .72rem; align-items: center; text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border: 2px solid var(--sea); border-radius: 50% 46% 52% 44%; color: var(--sea); font-family: var(--serif); font-size: 1.5rem; font-style: italic; }
.brand-copy strong { display: block; font-family: var(--serif); font-size: 1.45rem; line-height: 1; }
.brand-copy small { display: block; margin-top: .18rem; color: var(--muted); font-size: .62rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
nav { display: flex; gap: clamp(1rem, 3vw, 2.2rem); align-items: center; }
nav a { color: #384d46; font-size: .84rem; font-weight: 700; text-decoration: none; }
nav a:hover { color: var(--coral); }
.nav-github { padding: .58rem .9rem; border: 1px solid var(--line); border-radius: 999px; }

.hero { position: relative; display: grid; width: min(1240px, calc(100% - 3rem)); min-height: 690px; margin: 0 auto; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); gap: clamp(3rem, 8vw, 7rem); align-items: center; }
.hero::before { position: absolute; z-index: -1; top: -86px; right: -8vw; width: 46vw; height: calc(100% + 86px); content: ""; background: radial-gradient(circle at 80% 45%, rgb(217 107 70 / .13), transparent 51%); }
.eyebrow { margin: 0 0 .85rem; color: var(--sea); font-size: .72rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 1.4rem; font-family: var(--serif); font-size: clamp(3.4rem, 6.7vw, 6.35rem); font-weight: 500; letter-spacing: -.055em; line-height: .9; }
h1 em { color: var(--coral); font-weight: 500; }
.lede { max-width: 650px; margin-bottom: 2rem; color: #40524c; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.65; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.button { display: inline-flex; min-height: 50px; padding: 0 1.25rem; align-items: center; justify-content: center; border-radius: 999px; font-size: .86rem; font-weight: 800; text-decoration: none; }
.button.primary { color: white; background: var(--coral); }
.button.primary:hover { background: #bd5432; }
.button.secondary { border: 1px solid var(--sea); color: var(--deep); }
.proof-list { display: flex; margin: 2rem 0 0; padding: 0; gap: 1.5rem; color: var(--muted); font-size: .78rem; list-style: none; }
.proof-list li::before { margin-right: .45rem; color: var(--sea); content: "●"; font-size: .55rem; }

.room-demo { padding: 1.15rem; border: 1px solid #cfc6b7; border-radius: 20px; background: rgb(255 253 248 / .8); box-shadow: 0 30px 80px rgb(16 41 36 / .12); transform: rotate(1.1deg); }
.room-topline { display: flex; margin-bottom: 1rem; padding: 0 .25rem .8rem; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .68rem; }
.room-topline i { display: inline-block; width: 8px; height: 8px; margin-right: .4rem; border-radius: 50%; background: #66a984; }
.take { display: grid; margin-top: .7rem; padding: .9rem; grid-template-columns: 34px 1fr; gap: .75rem; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.take-index { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-family: ui-monospace, monospace; font-size: .65rem; }
.take small { color: var(--sea); font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.take p { margin: .38rem 0 0; font-family: var(--serif); font-size: 1rem; line-height: 1.45; }
.take code { display: block; margin-top: .55rem; color: var(--muted); font-size: .64rem; }
.muted-take { opacity: .62; }
.grant-take { border-left: 4px solid var(--coral); }
.active-take { box-shadow: 0 12px 30px rgb(16 41 36 / .08); }
.floor-pill { width: max-content; margin: 1rem auto .2rem; padding: .45rem .75rem; border-radius: 999px; color: var(--sea); background: #e6eee9; font-size: .72rem; font-weight: 800; }

.statement { padding: 4.5rem 1.5rem; color: var(--peach); background: var(--deep); text-align: center; }
.statement p { margin: 0; font-family: var(--serif); font-size: clamp(2.1rem, 5vw, 4.5rem); letter-spacing: -.04em; line-height: 1.05; }
.statement strong { color: white; font-weight: 500; }

.hello { display: grid; width: min(1180px, calc(100% - 3rem)); margin: 0 auto; padding: 8rem 0; grid-template-columns: .7fr 1.3fr; gap: clamp(3rem, 8vw, 7rem); align-items: start; }
.hello-intro { position: sticky; top: 2rem; }
.hello-intro > p:not(.eyebrow) { max-width: 420px; margin: 1.6rem 0 0; color: var(--muted); line-height: 1.7; }
.time-pill { display: inline-flex; margin-top: 1.7rem; padding: .55rem .8rem; gap: .5rem; align-items: center; border: 1px solid var(--line); border-radius: 999px; color: var(--sea); background: rgb(255 253 248 / .58); font-size: .75rem; font-weight: 800; }
.time-pill span { color: #66a984; font-size: .6rem; }
.hello-terminal { overflow: hidden; border: 1px solid #3b574f; border-radius: 20px; color: white; background: #0b201c; box-shadow: 0 30px 80px rgb(16 41 36 / .16); }
.terminal-title { display: flex; min-height: 50px; padding: 0 1.2rem; align-items: center; justify-content: space-between; border-bottom: 1px solid #334a44; color: #9db4ad; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; }
.terminal-title > span { display: flex; gap: .35rem; }
.terminal-title i { display: block; width: 8px; height: 8px; border-radius: 50%; background: #4f685f; }
.terminal-title i:first-child { background: var(--coral); }
.terminal-title i:nth-child(2) { background: #d5aa57; }
.terminal-title i:nth-child(3) { background: #66a984; }
.command-steps { margin: 0; padding: 0; list-style: none; }
.command-steps > li { padding: 1.5rem; }
.command-steps > li + li { border-top: 1px solid #334a44; }
.command-label { display: flex; margin-bottom: 1rem; gap: .65rem; align-items: center; }
.command-label span { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid #56736a; border-radius: 50%; color: #a7c5bc; font-family: ui-monospace, monospace; font-size: .65rem; }
.command-label strong { color: white; font-family: var(--serif); font-size: 1.05rem; font-weight: 500; }
.command-steps p { margin: .8rem 0 0; color: #91aaa2; font-size: .76rem; line-height: 1.55; }
.command-steps p a { color: var(--peach); }
.command-steps p code { color: #c7d8d2; }

.use-cases { padding: 8rem max(1.5rem, calc((100vw - 1180px) / 2)); background: var(--paper-deep); }
.use-cases-heading { align-items: end; }
.use-cases-heading > p { max-width: 460px; margin: 0; color: var(--muted); line-height: 1.7; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #c7bfb1; border-left: 1px solid #c7bfb1; }
.case-grid article { position: relative; min-height: 320px; padding: 2rem; border-right: 1px solid #c7bfb1; border-bottom: 1px solid #c7bfb1; background: rgb(255 253 248 / .28); transition: background .18s ease, transform .18s ease; }
.case-grid article:hover { z-index: 1; background: var(--panel); transform: translateY(-3px); }
.case-number { color: var(--coral); font-family: ui-monospace, monospace; font-size: .7rem; }
.case-grid h3 { margin: 3.8rem 0 .8rem; font-family: var(--serif); font-size: 1.65rem; font-weight: 500; }
.case-grid p { color: #53645e; line-height: 1.65; }
.case-grid ul { margin: 1.4rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line); color: var(--sea); font-size: .75rem; font-weight: 750; line-height: 1.8; list-style: none; }
.case-grid li::before { margin-right: .5rem; color: var(--coral); content: "↳"; }

.how { width: min(1180px, calc(100% - 3rem)); margin: 0 auto; padding: 8rem 0; }
.section-heading { display: flex; margin-bottom: 4rem; align-items: end; justify-content: space-between; }
h2 { margin-bottom: 0; font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4.7rem); font-weight: 500; letter-spacing: -.045em; line-height: .98; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.steps article { padding: 2rem clamp(1rem, 3vw, 2rem) 0 0; }
.steps article + article { padding-left: clamp(1rem, 3vw, 2rem); border-left: 1px solid var(--line); }
.steps span { color: var(--coral); font-family: ui-monospace, monospace; font-size: .72rem; }
.steps h3 { margin: 1.6rem 0 .75rem; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; }
.steps p { margin: 0; color: var(--muted); line-height: 1.65; }

.features { padding: 8rem max(1.5rem, calc((100vw - 1180px) / 2)); color: white; background: var(--deep); }
.features-intro { display: grid; margin-bottom: 4rem; grid-template-columns: 1fr 1fr; gap: 2rem 5rem; align-items: end; }
.features-intro .eyebrow { grid-column: 1 / -1; margin-bottom: -1rem; }
.features-intro h2 { color: white; }
.features-intro > p:last-child { max-width: 510px; margin: 0; color: #adc1ba; line-height: 1.7; }
.feature-map { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #3c554e; border-left: 1px solid #3c554e; }
.feature-map article { min-height: 245px; padding: 1.6rem; border-right: 1px solid #3c554e; border-bottom: 1px solid #3c554e; }
.feature-map span { color: #85b6aa; font-family: ui-monospace, monospace; font-size: .63rem; letter-spacing: .12em; }
.feature-map h3 { margin: 3rem 0 .75rem; color: white; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.feature-map p { margin: 0; color: #9fb4ad; font-size: .85rem; line-height: 1.65; }
.feature-map code { color: var(--peach); }
.architecture { display: grid; margin-top: 2.2rem; padding: 1.4rem 1.6rem; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 1rem; align-items: center; border: 1px solid #3c554e; border-radius: 14px; background: #0b201c; }
.architecture div { min-width: 0; }
.architecture small { display: block; margin-bottom: .35rem; color: #76968d; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.architecture strong { display: block; overflow: hidden; color: #e7efe9; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.architecture > span { color: var(--coral); }

.recipes { width: min(1180px, calc(100% - 3rem)); margin: 0 auto; padding: 8rem 0; }
.recipes-heading { display: grid; margin-bottom: 3.5rem; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; }
.recipes-heading > p { margin: 0; color: var(--muted); line-height: 1.7; }
.recipes-heading code { color: var(--sea); }
.recipe-list { border-top: 1px solid var(--line); }
.recipe-list details { border-bottom: 1px solid var(--line); }
.recipe-list summary { display: grid; min-height: 84px; padding: 1rem .25rem; grid-template-columns: 42px 1fr auto; gap: 1rem; align-items: center; cursor: pointer; list-style: none; }
.recipe-list summary::-webkit-details-marker { display: none; }
.recipe-list summary::after { grid-column: 4; color: var(--coral); content: "+"; font-size: 1.4rem; }
.recipe-list details[open] summary::after { content: "−"; }
.recipe-list summary > span { color: var(--coral); font-family: ui-monospace, monospace; font-size: .7rem; }
.recipe-list summary > strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.recipe-list summary > small { padding: .35rem .55rem; border-radius: 999px; color: var(--sea); background: #e1ebe6; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.recipe-body { padding: 0 3.25rem 2rem; }
.recipe-body > p { max-width: 760px; color: var(--muted); line-height: 1.65; }
.recipe-body .command-row { padding: 1rem; border-radius: 12px; background: var(--deep); }
.recipe-body .command-row code { color: var(--peach); }
.recipe-body > a { display: inline-block; margin-top: 1rem; color: var(--sea); font-size: .82rem; font-weight: 800; }
.dark-copy { border-color: #5b746c; color: white; }
.boundary-note { display: grid; margin-top: 3rem; padding: 1.3rem 1.5rem; grid-template-columns: .45fr 1fr; gap: 2rem; border-left: 4px solid var(--coral); background: var(--paper-deep); }
.boundary-note strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.boundary-note p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.6; }

.install { display: grid; padding: 7rem max(1.5rem, calc((100vw - 1180px) / 2)); grid-template-columns: .78fr 1.22fr; gap: clamp(3rem, 8vw, 7rem); color: white; background: var(--deep); }
.eyebrow.light { color: #85b6aa; }
.install-intro h2 { color: white; }
.install-intro > p:last-child { max-width: 430px; margin-top: 1.5rem; color: #b9cbc5; line-height: 1.7; }
.terminal-card { overflow: hidden; align-self: center; border: 1px solid #3b574f; border-radius: 18px; background: #0b201c; box-shadow: 0 25px 70px rgb(0 0 0 / .25); }
.platform-tabs { display: flex; border-bottom: 1px solid #334a44; }
.platform-tabs button { min-width: 110px; padding: 1rem; border: 0; border-bottom: 3px solid transparent; color: #9db4ad; background: transparent; cursor: pointer; font-weight: 750; }
.platform-tabs button[aria-selected="true"] { border-bottom-color: var(--coral); color: white; }
.install-panel { min-height: 190px; padding: 1.4rem; }
.install-panel[hidden] { display: none; }
.install-panel > p { margin: 1.1rem 0 .55rem; color: #9db4ad; font-size: .8rem; line-height: 1.5; }
.command-row { display: grid; grid-template-columns: 1fr auto; gap: .8rem; align-items: start; }
.command-row pre { min-width: 0; margin: 0; overflow-x: auto; }
.command-row code { color: #f4d9bf; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; line-height: 1.65; }
.copy-button { min-width: 64px; padding: .5rem .75rem; border: 1px solid #516860; border-radius: 8px; color: #dbe7e3; background: transparent; cursor: pointer; font-size: .72rem; font-weight: 800; }
.copy-button:hover { border-color: #86a69d; }

.agents { display: grid; width: min(1180px, calc(100% - 3rem)); margin: 0 auto; padding: 8rem 0; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; }
.agents > p { max-width: 540px; margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.agent-list { display: flex; grid-column: 1 / -1; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.agent-list span { flex: 1; padding: 1.45rem .5rem; color: var(--sea); font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 2rem); text-align: center; }
.agent-list span + span { border-left: 1px solid var(--line); }

footer { display: grid; padding: 2.5rem max(1.5rem, calc((100vw - 1180px) / 2)); grid-template-columns: 1fr auto 1fr; align-items: center; color: white; background: #0a211c; }
.footer-brand .brand-mark { border-color: var(--peach); color: var(--peach); }
.footer-brand .brand-copy small { color: #90a9a1; }
footer p { margin: 0; color: #90a9a1; font-size: .76rem; }
footer > div { display: flex; gap: 1.5rem; justify-self: end; }
footer > div a { font-size: .78rem; text-decoration: none; }
.copy-status { position: fixed; z-index: 20; right: 1rem; bottom: 1rem; padding: .7rem 1rem; border-radius: 9px; color: white; background: var(--sea); opacity: 0; pointer-events: none; transform: translateY(.5rem); transition: .2s ease; }
.copy-status.visible { opacity: 1; transform: none; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--coral) 65%, white); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

@media (max-width: 900px) {
  .hero { min-height: 0; padding: 5rem 0; grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .room-demo { width: min(640px, 100%); transform: none; }
  .hello { grid-template-columns: 1fr; }
  .hello-intro { position: static; }
  .hello-intro > p:not(.eyebrow) { max-width: 650px; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-map { grid-template-columns: repeat(2, 1fr); }
  .architecture { grid-template-columns: 1fr auto 1fr; }
  .architecture > span:nth-of-type(2), .architecture > div:nth-of-type(n+3) { display: none; }
  .install { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-header { width: min(100% - 2rem, 1240px); }
  nav { gap: .55rem; }
  nav a:not(.nav-github):not([href="#install"]) { display: none; }
  nav a { font-size: .75rem; }
  .nav-github { padding: .5rem .7rem; }
  .hero, .hello, .how, .recipes, .agents { width: min(100% - 2rem, 1180px); }
  .hero { padding: 4rem 0; }
  h1 { font-size: clamp(3rem, 16vw, 4.6rem); }
  .proof-list { gap: .65rem; flex-wrap: wrap; }
  .statement { padding: 3.5rem 1rem; }
  .hello, .how, .recipes, .agents { padding: 5rem 0; }
  .hello-terminal { margin: 0 -.35rem; }
  .command-steps > li { padding: 1.2rem; }
  .use-cases, .features { padding: 5rem 1rem; }
  .section-heading, .use-cases-heading, .features-intro, .recipes-heading { display: block; }
  .use-cases-heading > p, .features-intro > p:last-child, .recipes-heading > p { margin-top: 1.5rem; }
  .case-grid, .feature-map { display: block; border-left: 0; }
  .case-grid article, .feature-map article { min-height: 0; border-left: 1px solid #c7bfb1; }
  .feature-map article { border-left-color: #3c554e; }
  .case-grid h3, .feature-map h3 { margin-top: 2rem; }
  .architecture { display: block; }
  .architecture div { margin: .8rem 0; }
  .architecture > span { display: none; }
  .architecture > span:nth-of-type(2), .architecture > div:nth-of-type(n+3) { display: block; }
  .recipe-list summary { min-height: 76px; grid-template-columns: 32px 1fr auto; gap: .65rem; }
  .recipe-list summary::after { grid-column: 3; grid-row: 1; justify-self: end; }
  .recipe-list summary > small { display: none; }
  .recipe-body { padding: 0 0 1.5rem; }
  .boundary-note { display: block; }
  .boundary-note p { margin-top: .7rem; }
  .steps { display: block; }
  .steps article, .steps article + article { padding: 1.6rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .steps h3 { margin-top: .8rem; }
  .install { padding: 5rem 1rem; }
  .command-row { display: block; }
  .copy-button { margin-top: .8rem; }
  .agents { display: block; }
  .agents > p { margin-top: 1.5rem; }
  .agent-list { margin-top: 2.5rem; flex-wrap: wrap; }
  .agent-list span { flex: 1 0 50%; }
  .agent-list span:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .agent-list span:nth-child(4) { border-top: 1px solid var(--line); }
  footer { grid-template-columns: 1fr; gap: 1.5rem; }
  footer > div { justify-self: start; }
}

.checksums { margin: 0.75rem 0; font-size: 0.85rem; }
.checksums summary { cursor: pointer; }
.checksums ul { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.checksums li { display: grid; gap: 0.15rem; margin-bottom: 0.5rem; }
.checksums code.digest { word-break: break-all; opacity: 0.85; }
