@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("./fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("./fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #110f0c;
  --panel: #19160f;
  --card: #1f1b16;
  --inset: #0c0a08;
  --border: #302a22;
  --border-strong: #4a3d2c;
  --text: #f7f2ea;
  --muted: #bcb2a5;
  --subtle: #9d9386;
  --accent: #ffa333;
  --accent-hot: #ff8a1f;
  --accent-soft: #ffc57a;
  --accent-ink: #211507;
  --green: #8cdaa2;
  --red: #ff8f7a;
  /* Pipeline phase colors, shared with the app and the tour video. */
  --concept: #9fb2c7;
  --arch: #63b3ff;
  --verify: #3fcfd6;
  --impl: #ffa333;
  --test: #6fd08a;
  --review: #df94ef;
  --ready: #7fdc86;
  --epic: #a996f7;
  --sans: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
[hidden] { display: none !important; }
::selection { background: #8a531c; color: #fff; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, summary, input { -webkit-tap-highlight-color: #ffa33325; touch-action: manipulation; }
button { cursor: pointer; }
button, a, summary, pre, input { scroll-margin-block: 110px 24px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { line-height: 1.2; text-wrap: balance; }
p { text-wrap: pretty; }
code, pre { font-family: var(--mono); }
p code, dd code { color: #eadbc6; font-size: .88em; }
strong { font-weight: 600; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.container { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 16px; z-index: 100; padding: 10px 18px; background: var(--accent); color: var(--accent-ink); border-radius: 8px; font-weight: 600; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--accent); font: 600 12px/1.6 var(--mono); letter-spacing: .16em; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.status-dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px #ffa33380; }
.status-dot.green { background: var(--green); box-shadow: 0 0 10px #8cdaa266; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #2a251e; color: var(--muted); font: 500 11px/1.6 var(--mono); }
.tag-orange { background: #3b2a16; color: #ffc178; }
.task-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.task-number { color: var(--subtle); font: 11px var(--mono); }
.agent-avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 24px; height: 24px; border: 1px solid #5b4931; border-radius: 7px; background: #33291c; color: var(--accent); font-size: 12px; font-weight: 700; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: #110f0cb8; -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); border-bottom: 1px solid #ffffff0f; }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; font-size: 21px; font-weight: 700; letter-spacing: -.03em; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid #ffc57a; border-radius: 9px; background: linear-gradient(145deg, #ffbb5c, #ff8a1f); box-shadow: 0 2px 16px #ff8a1f40, inset 0 1px 0 #ffe2b8; }
.brand-mark > span, .brand-diamond { display: block; width: 11px; height: 11px; border-radius: 1.5px; background: #1a1006; transform: rotate(45deg); }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.site-nav > a:not(.button), .footer-inner nav a { color: var(--muted); transition: color .15s; }
.site-nav > a:not(.button):hover, .footer-inner nav a:hover { color: var(--text); }
.menu-toggle { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 7px 12px; color: var(--text); background: var(--panel); border: 1px solid var(--border); border-radius: 8px; }
.menu-toggle:hover { background: var(--card); }
.menu-toggle .icon { transition: transform .2s; }
.menu-toggle[aria-expanded="true"] .icon { transform: rotate(45deg); }

/* Buttons */
.button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 11px 20px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; font-weight: 600; line-height: 1.3; transition: transform .2s var(--ease-out), background .2s, border-color .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button .icon-arrow { width: 18px; height: 18px; transition: transform .2s var(--ease-out); }
.button:hover .icon-arrow { transform: translateX(3px); }
.button-small { min-height: 38px; padding: 8px 14px; border-radius: 9px; font-size: 13.5px; }
.button-small .icon-arrow { width: 15px; height: 15px; }
.button-large { min-height: 56px; padding: 15px 26px; border-radius: 12px; font-size: 16px; }
.button-primary { color: var(--accent-ink); background: linear-gradient(180deg, #ffbb5c, #ff9b2b); border-color: #ffc47d; box-shadow: 0 10px 34px -12px #ff8a1fcc, inset 0 1px 0 #ffe2b8; }
.button-primary:hover { background: linear-gradient(180deg, #ffc570, #ffa63c); box-shadow: 0 16px 44px -12px #ff8a1fee, inset 0 1px 0 #ffe9c8; }
.button-ghost { color: var(--text); background: #ffffff0a; border-color: #ffffff21; }
.button-ghost:hover { background: #ffffff14; border-color: #ffffff3d; }
.play-chip { display: grid; place-items: center; width: 26px; height: 26px; margin-left: -6px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 16px #ffa33366; }
.play-chip .icon { width: 12px; height: 12px; margin-left: 2px; }

/* Hero */
.hero { position: relative; isolation: isolate; padding: 84px 0 24px; overflow: hidden; text-align: center; }
.hero-backdrop { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid { position: absolute; inset: -60px; background-image: radial-gradient(#ffffff17 1px, transparent 1.3px); background-size: 30px 30px; -webkit-mask-image: radial-gradient(ellipse 60% 45% at 50% 22%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 60% 45% at 50% 22%, #000 20%, transparent 75%); animation: grid-drift 24s linear infinite; }
.hero-glow { position: absolute; border-radius: 50%; }
.hero-glow-warm { left: 50%; top: 460px; width: min(1400px, 130vw); height: 900px; translate: -50% 0; background: radial-gradient(closest-side, #ff8a1f3d, #ff8a1f14 55%, transparent); animation: breathe 9s ease-in-out infinite alternate; }
.hero-glow-cool { left: -18%; top: -200px; width: 900px; height: 700px; background: radial-gradient(closest-side, #3d5a9a2e, transparent); }
.embers { position: absolute; inset: 0; overflow: hidden; }
.embers i { position: absolute; left: var(--x); bottom: 30%; width: var(--s); height: var(--s); border-radius: 50%; background: #ffc06a; box-shadow: 0 0 6px 1px #ff8a1fcc; opacity: 0; animation: ember var(--t) linear var(--d) infinite; }
.hero-inner { position: relative; }
.hero-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid #ffffff1f; border-radius: 999px; background: #ffffff08; color: #e9dfd2; font-size: 14px; font-weight: 500; transition: border-color .2s, background .2s; }
.hero-pill:hover { border-color: #ffa33370; background: #ffa33312; }
.pill-mark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: linear-gradient(145deg, #ffbb5c, #ff8a1f); }
.pill-mark::after { content: ""; width: 8px; height: 8px; border-radius: 1px; background: #1a1006; transform: rotate(45deg); }
.hero-pill .icon { width: 15px; height: 15px; color: var(--accent); }
.hero h1 { max-width: 1000px; margin: 28px auto 0; font-size: clamp(46px, 6.8vw, 94px); font-weight: 650; line-height: 1.02; letter-spacing: -.045em; }
.gradient-text { display: inline-block; padding-bottom: .06em; background: linear-gradient(100deg, #ffd89c, #ffa333 35%, #ff8a1f 65%, #ffbd66); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { max-width: 700px; margin: 26px auto 0; color: var(--muted); font-size: 19px; line-height: 1.7; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-actions .button-primary { overflow: hidden; }
.hero-actions .button-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, #ffffff8c 50%, transparent 65%); transform: translateX(-120%); animation: shine 5s ease-in-out 1.5s infinite; }
.hero-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 28px; margin: 34px 0 0; padding: 0; list-style: none; color: #b9ae9f; font-size: 14px; }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges .icon { width: 17px; height: 17px; color: var(--accent); }

/* Tour video */
.tour { width: min(1240px, calc(100% - 80px)); margin-top: 72px; text-align: left; }
.tour-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; color: var(--muted); font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.tour-title { display: inline-flex; align-items: center; gap: 10px; color: #eadfcf; }
.tour-hint { color: var(--subtle); }
.tour-frame { position: relative; padding: 1px; border-radius: 22px; background: linear-gradient(180deg, #5a4730, #2a2219 40%, #1c1712); box-shadow: 0 50px 120px -40px #000, 0 0 0 1px #00000080; }
.tour-frame::before { content: ""; position: absolute; top: 0; left: 12%; right: 12%; z-index: 1; height: 1px; background: linear-gradient(90deg, transparent, #ffc57a, transparent); pointer-events: none; }
.tour-frame::after { content: ""; position: absolute; z-index: -1; inset: 12% 4% -10%; border-radius: 50%; background: radial-gradient(closest-side, #ff8a1f59, transparent); filter: blur(34px); pointer-events: none; }
.tour-screen { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 21px; background: #0b0908; }
.tour-video { display: block; width: 100%; height: 100%; object-fit: cover; background: #0b0908; }
.tour-big-play { position: absolute; left: 50%; bottom: 13%; display: none; align-items: center; gap: 14px; padding: 8px 22px 8px 8px; border: 1px solid #ffffff2e; border-radius: 999px; background: #0f0c09b8; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--text); font-size: 16px; font-weight: 600; box-shadow: 0 20px 50px -14px #000; transform: translateX(-50%); transition: transform .25s var(--ease-out), background .2s, border-color .2s; }
.tour.is-waiting .tour-big-play { display: inline-flex; }
.tour-big-play:hover { transform: translateX(-50%) scale(1.04); border-color: #ffa33380; background: #1a130cd9; }
.tour-big-play-icon { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(145deg, #ffbb5c, #ff8a1f); color: var(--accent-ink); }
.tour-big-play-icon::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--accent); border-radius: 50%; animation: ping 2.4s var(--ease-out) infinite; }
.tour-big-play-icon .icon { width: 20px; height: 20px; margin-left: 3px; }
.tour-length { margin-left: 6px; color: var(--muted); font: 500 13px var(--mono); }
.tour-controls { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; }
.tour-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 12px; background: #ffffff08; color: var(--text); font-size: 14px; font-weight: 600; transition: background .2s, border-color .2s, color .2s; }
.tour-button:hover { background: #ffffff12; border-color: var(--border-strong); }
.tour-button .icon { width: 18px; height: 18px; }
.tour.is-playing [data-tour-toggle] .icon-play, .tour:not(.is-playing) [data-tour-toggle] .icon-pause { display: none; }
.tour-sound[aria-pressed="true"] { border-color: #ffa33380; background: #ffa33317; color: var(--accent-soft); }
.tour-sound[aria-pressed="true"] .icon-mute, .tour-sound[aria-pressed="false"] .icon-sound { display: none; }
.tour-chapters { flex: 1; min-width: 0; display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tour-chapters li { flex: var(--len) 1 0; min-width: 0; }
.tour-chapters button { display: flex; flex-direction: column; gap: 9px; width: 100%; min-height: 44px; padding: 8px 0 2px; border: 0; background: none; color: var(--subtle); text-align: left; transition: color .2s; }
.tour-chapters button:hover, .tour-chapters button[aria-current="true"] { color: var(--text); }
.tour-chapters button:focus-visible { outline-offset: 2px; border-radius: 4px; }
.chapter-track { display: block; width: 100%; height: 4px; overflow: hidden; border-radius: 4px; background: #ffffff1c; transition: background .2s; }
.tour-chapters button:hover .chapter-track { background: #ffffff33; }
.chapter-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-hot), var(--accent-soft)); transform: scaleX(var(--p, 0)); transform-origin: left; }
.chapter-label { overflow: hidden; font: 500 12px var(--mono); white-space: nowrap; text-overflow: ellipsis; }
.chapter-label b { margin-right: 3px; color: var(--accent); font-weight: 600; }
.tour-player:fullscreen { display: flex; flex-direction: column; justify-content: center; padding: 24px; background: #000; }
.tour-player:fullscreen .tour-frame { width: min(100%, (100vh - 120px) * 16 / 9); margin-inline: auto; }
.tour-player:fullscreen .tour-controls { width: min(100%, (100vh - 120px) * 16 / 9); margin-inline: auto; }

/* Built with ForgeBoard */
.dogfood.section { padding-block: 72px 0; }
.dogfood-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 48px; overflow: hidden; padding: 40px 44px; border: 1px solid var(--border); border-radius: 24px; background: radial-gradient(ellipse 50% 80% at 0% 0%, #ff8a1f1f, transparent 70%), linear-gradient(135deg, #1d1813, #15120e 60%); }
.dogfood-copy h2 { margin-top: 14px; font-size: clamp(28px, 3vw, 38px); font-weight: 600; letter-spacing: -.03em; }
.dogfood-copy > p:not(.eyebrow) { margin-top: 14px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.commit-log { position: relative; margin: 0; padding: 14px 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--inset); list-style: none; font: 13px var(--mono); }
.commit-log li { position: relative; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 9px 0; }
.commit-log li + li { border-top: 1px dashed #ffffff12; }
.commit-log li::before { content: ""; position: absolute; left: 5px; top: 0; bottom: 0; width: 1px; background: #ffa33338; }
.commit-log li:first-child::before { top: 50%; }
.commit-log li:last-child::before { bottom: 50%; }
.commit-dot { position: relative; width: 11px; height: 11px; border-radius: 2px; background: #6a4a26; transform: rotate(45deg); }
.commit-log li:first-child .commit-dot { background: var(--accent); box-shadow: 0 0 12px #ffa333aa; }
.commit-log code { overflow: hidden; color: #e8dccb; white-space: nowrap; text-overflow: ellipsis; }
.commit-log li:first-child code { color: var(--accent-soft); }
.commit-author { color: var(--subtle); font-size: 11.5px; }
.commit-log li:first-child .commit-author { color: var(--accent); }

/* Sections */
.section { padding-block: 120px; }
.section-heading { margin-bottom: 56px; }
.section-heading h2, .closing-section h2 { margin-top: 16px; font-size: clamp(34px, 4.4vw, 56px); font-weight: 600; line-height: 1.06; letter-spacing: -.035em; }
.muted-heading { color: #958b7f; }
.section-heading > p:not(.eyebrow) { max-width: 640px; margin-top: 22px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.centered-heading { text-align: center; }
.centered-heading > p:not(.eyebrow) { margin-inline: auto; }
.split-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 64px; }
.split-heading > div { flex: 1; }
.split-heading > p:not(.eyebrow) { width: 440px; max-width: 45%; margin: 0 0 6px; }

/* Feature bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-card { position: relative; isolation: isolate; display: flex; flex-direction: column; min-width: 0; padding: 30px; overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: linear-gradient(160deg, #1e1a15, #15120e 75%); transition: border-color .3s; }
.feature-card::after { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, #ffffff26, transparent); }
.feature-wide { grid-column: span 2; }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 22px; border: 1px solid #5a4226; border-radius: 13px; background: linear-gradient(180deg, #3a2a17, #261c11); color: var(--accent); box-shadow: 0 0 26px -8px #ffa33380; }
.feature-card h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.feature-card > p { margin: 12px 0 28px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.feature-wide > p { max-width: 600px; }
.feature-card > [role="img"] { margin-top: auto; }
.spotlight::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(460px circle at var(--mx, 50%) var(--my, -30%), #ffa3331c, transparent 65%); opacity: 0; transition: opacity .35s; pointer-events: none; }
.spotlight:hover::before { opacity: 1; }
.spotlight:hover { border-color: #4d3e2c; }

.repo-diagram { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 22px 56px; padding: 30px 18px 24px; border: 1px solid #ffffff0d; border-radius: 16px; background: radial-gradient(#ffffff0f 1px, transparent 1.2px) 0 0 / 18px 18px, #0f0d0a; }
.diagram-task { position: relative; display: inline-flex; align-items: center; gap: 11px; padding: 13px 20px; border: 1px solid #8a5f2c; border-radius: 11px; background: #2b2116; color: #ffd39a; font-size: 14px; font-weight: 600; box-shadow: 0 0 30px -8px #ffa33366; }
.diagram-task::after { content: ""; position: absolute; top: 50%; right: -57px; width: 56px; height: 2px; background: linear-gradient(90deg, #b07a3e, #7a5530); }
.brand-diamond { width: 9px; height: 9px; background: var(--accent); }
.repo-connections { position: relative; display: flex; flex-direction: column; gap: 12px; padding-left: 28px; }
.repo-connections::before { content: ""; position: absolute; top: 19px; bottom: 19px; left: 0; width: 2px; background: #7a5530; }
.repo-connections > span { position: relative; display: flex; align-items: center; gap: 10px; min-width: 190px; height: 40px; padding: 8px 14px; border: 1px solid #4f412d; border-radius: 9px; background: #1d1914; color: #eadcc6; font: 500 13px var(--mono); }
.repo-connections > span::before { content: ""; position: absolute; top: 50%; left: -29px; width: 28px; height: 2px; background: #7a5530; }
.repo-connections .icon { width: 16px; height: 16px; color: var(--accent); }
.repo-connections em { margin-left: auto; color: var(--arch); font: 500 11px var(--mono); font-style: normal; }
.diagram-chat { grid-column: 1 / -1; justify-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; white-space: nowrap; border: 1px solid #63b3ff40; border-radius: 999px; background: #63b3ff12; color: #cfe4ff; font: 12.5px var(--mono); }
.diagram-chat b { color: #fff; font-weight: 600; }
.diagram-chat .icon { width: 15px; height: 15px; color: var(--arch); }
.diagram-chat .icon-ok { color: var(--green); }

.ask-card { padding: 16px; border: 1px solid #4a3a26; border-radius: 16px; background: #14110d; }
.ask-head { display: flex; align-items: center; gap: 9px; color: #eadfcf; font-size: 13px; font-weight: 600; }
.ask-waiting { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--accent); font: 500 11px var(--mono); }
.ask-waiting .status-dot { width: 6px; height: 6px; }
.ask-question { margin-top: 12px; color: var(--text); font-size: 15px; font-weight: 600; }
.ask-option { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; color: var(--muted); font-size: 13.5px; }
.ask-option.is-chosen, .phone-option.is-chosen { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.ask-option .icon, .phone-option .icon { width: 15px; height: 15px; stroke-width: 2.4; }
.ask-resumed { display: flex; align-items: center; gap: 7px; margin-top: 12px; color: var(--green); font-size: 12.5px; }
.ask-resumed .status-dot { width: 6px; height: 6px; }

.mini-terminal { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 14px 16px 16px; border: 1px solid #3a3127; border-radius: 16px; background: var(--inset); font: 12.5px/1.55 var(--mono); }
.mini-terminal-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; padding-bottom: 10px; border-bottom: 1px solid #ffffff10; color: var(--subtle); font-size: 11.5px; }
.mini-terminal-bar > span { display: inline-flex; align-items: center; gap: 6px; }
.mini-terminal-bar .icon { width: 13px; height: 13px; }
.isolated { color: var(--green); }
.isolated .status-dot { width: 6px; height: 6px; }
.mini-terminal .line { display: flex; align-items: center; gap: 7px; min-width: 0; color: #eadfd0; overflow-wrap: anywhere; }
.mini-terminal .line .icon { width: 14px; height: 14px; stroke-width: 2.4; }
.prompt { color: var(--accent); }
.mini-terminal .ok { color: var(--green); }
.mini-terminal .bad { color: var(--red); }
.mini-terminal .pass { color: #b8f2c6; font-weight: 600; }
.dim { margin-left: auto; padding-left: 10px; color: var(--subtle); font-weight: 400; }
.test-run { padding-top: 16px; }
.pass-stamp { position: absolute; top: 30px; right: 18px; display: flex; flex-direction: column; align-items: center; padding: 6px 14px 5px; border: 3px solid var(--test); border-radius: 10px; background: #0c0a08d9; color: var(--test); font: 800 24px/1 var(--sans); letter-spacing: .08em; box-shadow: 0 0 26px -4px #6fd08a80, inset 0 0 14px #6fd08a33; transform: rotate(-11deg); }
.pass-stamp small { margin-top: 3px; font: 600 9px var(--mono); letter-spacing: .32em; text-transform: uppercase; }

.mini-diff { overflow: hidden; border: 1px solid #3a3127; border-radius: 16px; background: var(--inset); font: 12.5px/1.6 var(--mono); }
.mini-diff-file { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #ffffff10; color: #dccfbe; font-size: 12px; }
.mini-diff-file b { font-weight: 600; }
.add { color: var(--green); }
.del { color: var(--red); }
.mini-diff code { display: block; padding: 4px 14px; overflow: hidden; white-space: pre; text-overflow: ellipsis; }
.del-line { background: #ff6b5517; color: #ffbcaf; }
.add-line { background: #6fd08a1a; color: #c4f0cf; }
.mini-diff-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border-top: 1px solid #ffffff10; font: 600 12.5px var(--sans); }
.mini-diff-foot > span { display: inline-flex; align-items: center; gap: 6px; }
.mini-diff-foot .icon { width: 14px; height: 14px; stroke-width: 2.2; }
.approved { color: var(--review); }
.merged { margin-left: auto; padding: 5px 10px; border-radius: 8px; background: #7fdc86; color: #0d2211; }
.undo { padding: 4px 10px; border: 1px solid var(--border-strong); border-radius: 8px; color: var(--muted); }

.more-heading { margin: 80px 0 26px; text-align: center; }
.more-heading h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: -.025em; }
.more-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.more-tile { position: relative; isolation: isolate; min-width: 0; padding: 22px; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: #16130f; transition: border-color .3s; }
.more-tile > .icon { width: 38px; height: 38px; padding: 8px; border: 1px solid color-mix(in srgb, var(--c) 32%, transparent); border-radius: 11px; background: color-mix(in srgb, var(--c) 13%, transparent); color: var(--c); }
.more-tile h4 { margin-top: 16px; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }
.more-tile p { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* How it works */
.workflow-section { position: relative; overflow: hidden; border-block: 1px solid var(--border); background: radial-gradient(ellipse 60% 70% at 50% 0%, #ff8a1f14, transparent 70%), linear-gradient(180deg, #15120e, #110f0c); }
.workflow { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px; margin: 72px 0 0; padding: 0; list-style: none; }
.workflow::before, .workflow::after { content: ""; position: absolute; top: 23px; left: 24px; right: 24px; height: 2px; border-radius: 2px; }
.workflow::before { background: linear-gradient(90deg, var(--concept), var(--arch), var(--impl), var(--test), var(--review), var(--ready)); opacity: .45; }
/* A light pulse runs along the track; it moves by transform only, so the compositor animates it. */
.workflow::after { background: linear-gradient(90deg, transparent 42%, #fff4e0 50%, transparent 58%); animation: travel 6.5s cubic-bezier(.45, 0, .55, 1) infinite; }
.workflow li { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.step-node { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); border-radius: 14px; background: #17140f; color: var(--c); box-shadow: 0 0 0 6px #14110d, 0 0 30px -6px color-mix(in srgb, var(--c) 70%, transparent); }
.step-label { margin-top: 22px; color: var(--c); font: 600 12px var(--mono); letter-spacing: .12em; }
.workflow h3 { min-height: 2.4em; margin-top: 10px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.workflow li > p { margin: 10px 0 18px; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.step-tag { margin-top: auto; padding: 5px 9px; border: 1px solid #ffffff1a; border-radius: 7px; color: #dccdb7; font: 500 11.5px var(--mono); }
.workflow-aside { display: flex; align-items: center; gap: 16px; margin-top: 56px; padding: 20px 24px; border: 1px solid var(--border); border-radius: 16px; background: #ffffff05; }
.workflow-aside .icon { width: 22px; height: 22px; color: var(--epic); }
.workflow-aside p { color: var(--muted); font-size: 15px; }
.workflow-aside strong { color: #efe3d2; }

/* Mobile */
.mobile-section { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 80px; }
.mobile-copy { min-width: 0; }
.mobile-copy .section-heading { margin-bottom: 34px; }
.mobile-features { display: grid; gap: 26px; }
.mobile-features > div { display: flex; align-items: flex-start; gap: 16px; }
.mobile-icon { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border: 1px solid #4d3a24; border-radius: 12px; background: #2a1f13; color: var(--accent); }
.mobile-features h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.mobile-features p { margin-top: 6px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.mobile-setup { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: 15px; }
.mobile-setup strong { color: #efdfc8; }
.mobile-preview { position: relative; min-width: 0; padding: 48px 24px 26px; overflow: hidden; border: 1px solid var(--border); border-radius: 26px; background: radial-gradient(ellipse 60% 45% at 50% 35%, #ff8a1f33, transparent 70%), radial-gradient(ellipse 45% 35% at 15% 95%, #3d5a9a2e, transparent), #15120e; }
.phone-frame { position: relative; max-width: 316px; margin-inline: auto; padding: 12px 14px 10px; border: 1px solid #5f4c36; border-radius: 48px; background: radial-gradient(ellipse 90% 45% at 50% 0%, #3b2a18, transparent 70%), linear-gradient(170deg, #1b1712, #0c0a08); box-shadow: 0 0 0 7px #0b0907, 0 0 0 8px #3d3226, 0 40px 80px -24px #000, 0 0 70px -12px #ff8a1f55; }
.phone-island { width: 96px; height: 28px; margin: 4px auto 0; border-radius: 20px; background: #000; }
.phone-lock { margin-top: 16px; text-align: center; }
.phone-lock span { display: block; color: #ddd1c1; font-size: 13px; font-weight: 500; }
.phone-lock strong { display: block; background: linear-gradient(180deg, #fff, #d8cab7); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 66px; font-weight: 600; line-height: 1.05; letter-spacing: -.03em; }
.phone-notification { margin-top: 16px; padding: 12px 14px; border: 1px solid #ffffff17; border-radius: 20px; background: #2c251dd9; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 12px 30px -12px #000; }
.phone-notification-head { display: flex; align-items: center; gap: 7px; color: #d5c9b9; font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.phone-notification-head .brand-mark { width: 20px; height: 20px; border-radius: 6px; }
.phone-notification-head .brand-mark > span { width: 7px; height: 7px; }
.phone-now { margin-left: auto; color: var(--subtle); font-weight: 500; letter-spacing: 0; }
.phone-notification h3 { margin-top: 7px; font-size: 14.5px; font-weight: 600; }
.phone-notification p { margin-top: 2px; color: #d5c9b9; font-size: 13px; }
.phone-task { margin-top: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 20px; background: var(--card); }
.phone-task h3 { margin-top: 10px; font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.phone-option { display: flex; align-items: center; gap: 7px; margin-top: 8px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 11px; color: var(--muted); font-size: 13px; }
.phone-resumed { display: flex; align-items: center; gap: 7px; margin-top: 12px; color: var(--green); font-size: 12.5px; }
.phone-resumed .status-dot { width: 6px; height: 6px; }
.phone-home-indicator { width: 110px; height: 5px; margin: 16px auto 2px; border-radius: 5px; background: #e2d6c6; opacity: .75; }
.mobile-preview figcaption { max-width: 300px; margin: 28px auto 0; color: var(--subtle); font-size: 12.5px; text-align: center; }

/* Self-hosting */
.hosting-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 20px; }
.requirements, .topology-panel { min-width: 0; padding: 30px; border: 1px solid var(--border); border-radius: 22px; background: var(--panel); }
.panel-heading { display: flex; align-items: center; gap: 11px; }
.panel-heading .icon { width: 20px; height: 20px; color: var(--accent); }
.panel-heading h3 { font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.mono-label { margin-left: auto; color: var(--subtle); font: 500 11px var(--mono); letter-spacing: .1em; }
.requirements-list { margin: 24px 0 0; }
.requirements-list > div { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding-block: 16px; border-top: 1px solid var(--border); }
.requirements-list dt { color: #efe2cf; font-size: 15px; font-weight: 600; }
.requirements-list dd { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.requirements-list dd strong { color: #e4d6c3; }
.capacity-note { padding-top: 16px; border-top: 1px solid var(--border); color: var(--subtle); font-size: 13.5px; line-height: 1.7; }
.topology { max-width: 400px; margin: 30px auto 0; }
.browser-node { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #4d4131; border-radius: 11px; background: #242019; font-size: 14px; font-weight: 500; }
.browser-node > .icon { width: 18px; height: 18px; color: var(--accent-soft); }
.browser-node > .tag { margin-left: auto; }
.connection-label { display: flex; align-items: center; justify-content: center; gap: 12px; height: 44px; color: var(--subtle); font: 500 11px var(--mono); letter-spacing: .1em; }
.connection-label > span { color: #a8814f; font-size: 17px; }
.host-boundary { padding: 16px; border: 1px dashed #8a6232; border-radius: 14px; background: #1f1a12; }
.host-label { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: #e6c08a; font: 600 11px var(--mono); letter-spacing: .12em; }
.host-label .status-dot { width: 6px; height: 6px; }
.service-node { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; padding: 10px 8px; margin-top: 8px; border: 1px solid #4a3b28; border-radius: 9px; background: #28211a; color: #dccbb0; font-size: 13px; text-align: center; }
.main-node { border-color: #8a602e; background: #3a2915; color: #ffd497; font-weight: 600; }
.service-row { display: flex; gap: 8px; }
.service-row > div { flex: 1; }
.agent-boundary { border-color: #4f7a55; background: #151b14; }
.agent-boundary .host-label { color: #a9dcb2; }
.agent-node { border-color: #3d5a41; background: #1b251c; color: #cdeccf; }
.agent-node .icon { width: 15px; height: 15px; }
.agent-note { margin-top: 10px; color: var(--subtle); font-size: 12.5px; text-align: center; }
.topology-note { margin-top: 26px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.topology-note strong { color: #eadbc6; }
.notice { display: flex; align-items: flex-start; gap: 14px; padding: 20px 24px; border: 1px solid #6a4d29; border-radius: 16px; background: linear-gradient(90deg, #2d2215, #221a11); color: #d6c5ab; font-size: 15px; line-height: 1.7; }
.notice > .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }
.notice strong { color: #ffd097; }
.sandbox-notice { margin-top: 20px; }

/* Install */
.install-section { border-block: 1px solid var(--border); background: radial-gradient(ellipse 50% 60% at 50% 0%, #ff8a1f17, transparent 70%), #14110d; }
.installation-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 64px; }
.install-main { min-width: 0; }
.install-main > p { color: var(--muted); font-size: 15.5px; line-height: 1.75; }
.install-step-heading { display: flex; align-items: center; gap: 14px; margin: 48px 0 16px; }
.install-step-heading:first-child { margin-top: 0; }
.number-badge { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid #7a5a31; border-radius: 10px; background: linear-gradient(180deg, #3d2c18, #2a1f12); color: var(--accent); font: 600 14px var(--mono); box-shadow: 0 0 22px -8px #ffa33399; }
.install-step-heading h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.channel-picker { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 24px 0 14px; padding: 0; border: 0; }
.channel-picker legend { margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.channel-picker label { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 10px; background: #1d1813; font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color .2s, background .2s; }
.channel-picker label:hover { border-color: #9a7343; background: #2a2016; }
.channel-picker label:has(input:checked) { border-color: #b07f42; background: #3a2a16; color: #ffd296; }
.channel-picker input { margin: 0; accent-color: var(--accent); }
.channel-picker label > span { color: var(--muted); font-size: 12px; }
.terminal { overflow: hidden; margin-top: 14px; border: 1px solid #6a5130; border-radius: 16px; background: #0c0a08; box-shadow: 0 30px 60px -30px #000, 0 0 50px -20px #ff8a1f55; }
.terminal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 7px 10px 7px 14px; border-bottom: 1px solid #3a3025; background: #1c1712; color: #d9c8ad; font: 500 12px var(--mono); }
.terminal-bar > span { display: flex; align-items: center; gap: 10px; }
.terminal-lights { display: inline-flex; gap: 6px; margin-right: 4px; }
.terminal-lights i { width: 10px; height: 10px; border-radius: 50%; background: #e2675a; }
.terminal-lights i:nth-child(2) { background: #e8b14a; }
.terminal-lights i:nth-child(3) { background: #6fbf6a; }
.terminal-shell { color: var(--subtle); }
.copy-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 5px 12px; border: 1px solid #5e4a30; border-radius: 8px; background: #2c2217; color: #ecdcc3; font-size: 13px; font-weight: 600; transition: background .2s, border-color .2s, color .2s; }
.copy-button:hover { border-color: #c79552; background: #4a3219; color: #ffe0b2; }
.copy-button .icon { width: 15px; height: 15px; }
.terminal pre { margin: 0; padding: 24px 20px; overflow-x: auto; color: #f0cd9b; font-size: 12px; line-height: 2; tab-size: 2; }
.terminal pre:focus-visible { outline-offset: -3px; }
.copy-status { min-height: 28px; padding-top: 8px; }
.install-main .copy-status { color: #f0c68d; font-size: 14px; font-weight: 500; }
.install-main .install-detail { color: var(--subtle); font-size: 14px; }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.mode-grid article { padding: 22px; border: 1px solid #463927; border-radius: 16px; background: #1b1610; }
.mode-label { color: #d6ae78; font: 600 11px var(--mono); letter-spacing: .1em; }
.mode-grid h4 { margin-top: 10px; font-size: 17px; font-weight: 600; }
.mode-grid p { margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.onboarding-list { margin: 0; padding-left: 24px; color: var(--muted); font-size: 15.5px; }
.onboarding-list li { margin-top: 12px; padding-left: 6px; }
.onboarding-list li::marker { color: var(--accent); font: 600 13px var(--mono); }
.onboarding-list strong { color: #efdfc8; }
.operations-panel { min-width: 0; padding: 28px; border: 1px solid var(--border); border-radius: 22px; background: #1a1611; }
.operations-panel > p { margin-top: 18px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.operations-list { margin: 22px 0; }
.operations-list > div { margin-top: 16px; }
.operations-list dt { margin-bottom: 6px; color: var(--subtle); font-size: 13px; }
.operations-list dd { margin: 0; padding: 10px 12px; overflow-x: auto; border: 1px solid #3b3023; border-radius: 9px; background: var(--inset); font-size: 13px; white-space: nowrap; }
.operations-list code { color: #f0cd9b; font-size: 12px; }
.operations-note { padding-top: 20px; border-top: 1px solid var(--border); }
.operations-note > strong { display: block; color: #f0c68d; font-size: 15px; }
.operations-note p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.text-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 24px; color: #ffbf6e; font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-color: #8a6538; text-underline-offset: 5px; }
.text-link:hover { color: #ffdcac; text-decoration-color: currentColor; }
.text-link .icon { width: 16px; height: 16px; }
.inline-link { color: #ffbf6e; text-decoration: underline; text-underline-offset: 3px; }
.inline-link:hover { color: #ffdcac; }
.reference-note { display: block; margin-top: 12px; color: var(--subtle); font-size: 13px; line-height: 1.7; }

/* FAQ */
.faq-section { display: grid; grid-template-columns: 1fr 1.45fr; gap: 80px; }
.faq-section .section-heading { margin: 0; }
.faq-section .section-heading > p:not(.eyebrow) { max-width: 300px; font-size: 16px; }
.faq-list { border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; font-size: 17px; font-weight: 600; line-height: 1.5; list-style: none; cursor: pointer; transition: color .15s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent-soft); }
.faq-list summary > .icon { width: 20px; height: 20px; color: #b29370; transition: transform .25s var(--ease-out), color .2s; }
.faq-list details[open] summary > .icon { color: var(--accent); transform: rotate(45deg); }
.faq-list details p { padding: 0 30px 24px 0; color: var(--muted); font-size: 15.5px; line-height: 1.75; }

/* Closing */
.closing-section { position: relative; isolation: isolate; overflow: hidden; margin-bottom: 110px; padding: 92px 32px 96px; border: 1px solid #684a28; border-radius: 30px; background: radial-gradient(ellipse 70% 90% at 50% 0%, #6b3d1566, transparent 70%), linear-gradient(180deg, #211a11, #15110c); text-align: center; }
.closing-section::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(#ffffff14 1px, transparent 1.3px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000, transparent 75%); }
.closing-glow { position: absolute; left: 10%; right: 10%; bottom: -45%; z-index: -1; height: 70%; border-radius: 50%; background: radial-gradient(closest-side, #ff8a1f59, transparent); filter: blur(24px); animation: breathe 7s ease-in-out infinite alternate; }
.closing-mark { margin-bottom: 26px; }
.closing-mark .brand-mark { width: 60px; height: 60px; border-radius: 17px; box-shadow: 0 0 50px #ff8a1f80, inset 0 1px 0 #ffe2b8; }
.closing-mark .brand-mark > span { width: 19px; height: 19px; border-radius: 3px; }
.closing-section h2 { font-size: clamp(34px, 4.8vw, 62px); letter-spacing: -.04em; line-height: 1.04; }
.closing-section > p:not(.eyebrow) { max-width: 560px; margin: 22px auto 0; color: var(--muted); font-size: 18px; }
.closing-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* Footer */
.site-footer { padding-block: 32px; border-top: 1px solid var(--border); background: #0d0b09; }
.footer-inner { display: flex; align-items: center; gap: 26px; }
.footer-inner .brand { font-size: 18px; }
.footer-inner .brand-mark { width: 27px; height: 27px; border-radius: 8px; }
.footer-inner .brand-mark > span { width: 9px; height: 9px; }
.footer-inner > p { color: var(--subtle); font-size: 14px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 24px; margin-left: auto; font-size: 14px; }

/* Scroll reveal: only once script.js has opted in, so the page stays complete without JavaScript. */
.reveal-ready [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(28px); }
.reveal-ready [data-reveal].is-visible { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal-ready .bento > :nth-child(2), .reveal-ready .more-grid > :nth-child(4n + 2) { transition-delay: .08s; }
.reveal-ready .bento > :nth-child(3), .reveal-ready .more-grid > :nth-child(4n + 3) { transition-delay: .16s; }
.reveal-ready .bento > :nth-child(4), .reveal-ready .more-grid > :nth-child(4n + 4) { transition-delay: .08s; }
.reveal-ready .bento > :nth-child(5) { transition-delay: .16s; }
.reveal-ready .workflow[data-reveal]:not(.is-visible) { opacity: 1; transform: none; }
.reveal-ready .workflow:not(.is-visible) li { opacity: 0; transform: translateY(22px); }
.reveal-ready .workflow.is-visible li { transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal-ready .workflow li:nth-child(2) { transition-delay: .1s; }
.reveal-ready .workflow li:nth-child(3) { transition-delay: .2s; }
.reveal-ready .workflow li:nth-child(4) { transition-delay: .3s; }
.reveal-ready .workflow li:nth-child(5) { transition-delay: .4s; }
.reveal-ready .workflow li:nth-child(6) { transition-delay: .5s; }
.reveal-ready .is-visible .mini-terminal .line { animation: type-in .4s var(--ease-out) calc(.4s + var(--i) * .32s) both; }
.reveal-ready .is-visible .pass-stamp { animation: stamp .5s cubic-bezier(.3, 1.6, .5, 1) 2.7s both; }
.reveal-ready .is-visible .ask-option.is-chosen, .reveal-ready .is-visible .phone-option.is-chosen { animation: choose .45s ease-out 1.1s both; }
.reveal-ready .is-visible .ask-resumed, .reveal-ready .is-visible .phone-resumed { animation: type-in .5s var(--ease-out) 1.7s both; }
.reveal-ready .is-visible .phone-notification { animation: drop-in .8s var(--ease-out) .4s both; }
.reveal-ready .is-visible .merged, .reveal-ready .is-visible .undo { animation: type-in .5s var(--ease-out) 1s both; }

/* Hero entrance needs no JavaScript. */
.hero-inner > *, .tour { animation: rise 1s var(--ease-out) both; }
.hero-inner > :nth-child(2) { animation-delay: .06s; }
.hero-inner > :nth-child(3) { animation-delay: .14s; }
.hero-inner > :nth-child(4) { animation-delay: .22s; }
.hero-inner > :nth-child(5) { animation-delay: .3s; }
.tour { animation-duration: 1.3s; animation-delay: .4s; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes grid-drift { to { transform: translate3d(-30px, -30px, 0); } }
@keyframes breathe { from { opacity: .75; transform: scale(.94); } to { opacity: 1; transform: scale(1.04); } }
@keyframes ember { 0% { opacity: 0; transform: translate3d(0, 0, 0); } 12% { opacity: .85; } 70% { opacity: .45; } 100% { opacity: 0; transform: translate3d(var(--dx), -560px, 0); } }
@keyframes shine { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }
@keyframes ping { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }
@keyframes travel { from { opacity: 0; transform: translateX(-50%); } 12%, 88% { opacity: 1; } to { opacity: 0; transform: translateX(50%); } }
@keyframes type-in { from { opacity: 0; transform: translateX(-8px); } }
@keyframes stamp { from { opacity: 0; transform: rotate(-11deg) scale(1.9); } }
@keyframes choose { from { border-color: var(--border); background: transparent; color: var(--muted); } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-26px) scale(.95); } }

@media (min-width: 1500px) {
  .hero { padding-top: 104px; }
}

@media (max-width: 1100px) {
  .workflow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
  .workflow h3 { min-height: 0; }
  .workflow::before, .workflow::after { display: none; }
}

@media (max-width: 1050px) {
  .container, .tour { width: calc(100% - 48px); }
  .site-nav { gap: 16px; font-size: 13.5px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card { padding: 26px; }
  .mini-terminal, .mini-diff { font-size: 11.5px; }
  .split-heading { gap: 40px; }
  .mobile-section { gap: 40px; }
  .requirements, .topology-panel { padding: 24px; }
  .requirements-list > div { grid-template-columns: 140px 1fr; gap: 14px; }
  .mono-label { display: none; }
  .installation-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; }
  .operations-list code { font-size: 11.5px; }
  .operations-panel { padding: 22px; }
  .faq-section { gap: 48px; }
}

@media (max-width: 900px) {
  .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dogfood-card { grid-template-columns: 1fr; gap: 28px; padding: 32px; }
  html { scroll-padding-top: 84px; }
  .site-header:has(.menu-toggle[hidden]) { position: static; }
  .header-inner { flex-wrap: wrap; gap: 0; min-height: 66px; padding-block: 12px; }
  .site-nav { flex-basis: 100%; flex-wrap: wrap; gap: 0; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 15px; }
  .site-nav > a:not(.button) { padding: 11px 12px; }
  .site-nav .button { margin: 6px 10px; }
  .tour-chapters { gap: 4px; }
  .tour-chapters button { justify-content: center; gap: 0; min-height: 42px; padding: 0; }
  /* Labels stay in the accessibility tree; only the bars show on smaller screens. */
  .chapter-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .split-heading { flex-direction: column; align-items: flex-start; gap: 22px; }
  .split-heading > p:not(.eyebrow) { width: auto; max-width: 560px; }
  .hosting-grid { grid-template-columns: 1fr; gap: 16px; }
  .requirements-list > div { grid-template-columns: 160px 1fr; gap: 18px; }
  .mono-label { display: block; }
  .topology-note { max-width: 460px; margin-inline: auto; }
  .installation-layout { grid-template-columns: 1fr; gap: 40px; }
  .operations-panel { padding: 26px; }
  .operations-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .operations-list dd { display: flex; align-items: center; min-height: 44px; white-space: normal; overflow-wrap: anywhere; }
}

@media (max-width: 760px) {
  .container, .tour { width: calc(100% - 40px); }
  .brand { gap: 9px; font-size: 19px; }
  .brand-mark { width: 29px; height: 29px; border-radius: 8px; }
  .hero { padding-top: 56px; }
  .hero h1 { margin-top: 22px; font-size: clamp(40px, 10.5vw, 60px); letter-spacing: -.04em; }
  .hero-lead { margin-top: 22px; font-size: 17px; }
  .hero-badges { gap: 10px 18px; font-size: 13.5px; }
  .tour { margin-top: 52px; }
  .tour-caption { font-size: 11px; }
  .tour-hint { display: none; }
  .tour-frame { border-radius: 16px; }
  .tour-screen { border-radius: 15px; }
  .tour-big-play { bottom: 10%; gap: 10px; padding: 6px 16px 6px 6px; font-size: 14px; }
  .tour-big-play-icon { width: 38px; height: 38px; }
  .tour-big-play-icon .icon { width: 16px; height: 16px; }
  .tour-controls { gap: 8px; margin-top: 12px; }
  .tour-button { min-width: 42px; height: 42px; padding: 0 10px; }
  .tour-sound > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .dogfood { padding-top: 48px; }
  .dogfood-card { padding: 26px 22px; border-radius: 20px; }
  .commit-log { padding: 10px 14px; font-size: 12px; }
  .commit-author { display: none; }
  .commit-log li { grid-template-columns: 12px minmax(0, 1fr); }
  .section { padding-block: 84px; }
  .section-heading { margin-bottom: 36px; }
  .section-heading h2 { font-size: clamp(32px, 8.4vw, 44px); letter-spacing: -.03em; }
  .section-heading > p:not(.eyebrow) { font-size: 16.5px; }
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .feature-wide { grid-column: auto; }
  .feature-card { padding: 24px; border-radius: 20px; }
  .feature-card h3 { font-size: 20px; }
  .repo-diagram { gap: 18px 34px; }
  .diagram-task::after { right: -35px; width: 34px; }
  .repo-connections > span { min-width: 0; }
  .more-heading { margin-top: 60px; }
  .workflow { grid-template-columns: 1fr; gap: 34px; margin-top: 44px; }
  .workflow::before, .workflow::after { display: block; top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; }
  .workflow::before { background: linear-gradient(180deg, var(--concept), var(--arch), var(--impl), var(--test), var(--review), var(--ready)); }
  .workflow::after { background: linear-gradient(180deg, transparent 42%, #fff4e0 50%, transparent 58%); animation-name: travel-down; }
  .workflow li { min-height: 0; padding-left: 70px; }
  .step-node { position: absolute; top: 0; left: 0; }
  .step-label { margin-top: 2px; }
  .workflow li > p { max-width: 520px; margin-bottom: 12px; }
  .workflow-aside { align-items: flex-start; margin-top: 40px; padding: 18px; }
  .mobile-section { grid-template-columns: 1fr; gap: 44px; }
  .mobile-preview { justify-self: center; width: 100%; max-width: 460px; }
  .faq-section { grid-template-columns: 1fr; gap: 30px; }
  .faq-section .section-heading > p:not(.eyebrow) { max-width: none; }
  .closing-section { margin-bottom: 72px; padding: 64px 22px 68px; border-radius: 24px; }
  .closing-section h2 { font-size: clamp(32px, 8.6vw, 46px); }
  .closing-section > p:not(.eyebrow) { font-size: 16.5px; }
  .footer-inner { flex-wrap: wrap; gap: 16px 22px; }
  .footer-inner nav { flex-basis: 100%; gap: 20px; margin-left: 0; }
  .footer-inner nav a { padding-block: 6px; }
}

@media (max-width: 440px) {
  .container, .tour { width: calc(100% - 32px); }
  .hero { padding-top: 44px; }
  .hero-pill { font-size: 13px; }
  .hero h1 { font-size: 40px; }
  .hero-lead { font-size: 16px; }
  .hero-actions { gap: 10px; }
  .hero-actions .button { width: 100%; }
  .hero-badges { gap: 10px 16px; font-size: 13px; }
  .eyebrow { font-size: 11px; letter-spacing: .12em; }
  .eyebrow::before { width: 18px; }
  .section-heading h2 { font-size: 32px; }
  .feature-card { padding: 22px 18px; }
  .repo-diagram { grid-template-columns: 1fr; justify-items: center; padding: 22px 14px; }
  .diagram-task::after { display: none; }
  .repo-connections { width: 100%; padding-left: 0; }
  .repo-connections::before, .repo-connections > span::before { display: none; }
  .more-grid { gap: 10px; }
  .more-tile { padding: 16px; }
  .more-tile h4 { margin-top: 12px; font-size: 15px; }
  .more-tile p { font-size: 13px; }
  .diagram-chat { gap: 6px; padding: 7px 10px; font-size: 11px; }
  .browser-node { gap: 8px; padding-inline: 12px; font-size: 13px; }
  .browser-node > .tag { font-size: 10px; }
  .mobile-preview { padding: 34px 12px 22px; }
  .phone-frame { padding: 10px 11px 9px; }
  .phone-lock strong { font-size: 56px; }
  .requirements, .topology-panel { padding: 20px; }
  .requirements-list > div { grid-template-columns: 1fr; gap: 4px; padding-block: 14px; }
  .mono-label { display: none; }
  .notice { gap: 10px; padding: 16px; font-size: 14px; }
  .service-row { flex-wrap: wrap; }
  .service-row > div { flex-basis: calc(50% - 4px); }
  .terminal-shell { display: none; }
  .terminal pre { padding: 18px 14px; font-size: 12px; }
  .mode-grid { grid-template-columns: 1fr; }
  .operations-list { grid-template-columns: 1fr; }
  .faq-list summary { gap: 14px; font-size: 16px; }
  .closing-actions .button { width: 100%; }
  .footer-inner > p { flex-basis: 100%; }
}

@keyframes travel-down { from { opacity: 0; transform: translateY(-50%); } 12%, 88% { opacity: 1; } to { opacity: 0; transform: translateY(50%); } }

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

@media (forced-colors: active) {
  .brand-mark, .status-dot, .brand-diamond, .pill-mark, .commit-dot { forced-color-adjust: none; }
  .gradient-text, .phone-lock strong { background: none; color: CanvasText; }
  .button, .feature-card, .more-tile, .step-node, .number-badge, .tour-button, .chapter-track { border: 1px solid ButtonText; }
  .chapter-fill { background: Highlight; }
}

@media print {
  :root { color-scheme: light; }
  *, *::before, *::after { background: transparent !important; color: #111 !important; box-shadow: none !important; animation: none !important; }
  body { background: #fff; color: #111; }
  .site-header { position: static; }
  .site-nav, .menu-toggle, .hero-actions, .hero-backdrop, .tour, .copy-button, .channel-picker, .closing-section, .pass-stamp { display: none !important; }
  [data-reveal], .workflow li { opacity: 1 !important; transform: none !important; }
  .container { width: 100%; }
  .section, .hero { padding-block: 25px; }
  .feature-card, .more-tile, .mobile-preview, .requirements, .topology-panel, .terminal, .operations-panel, .dogfood-card { break-inside: avoid; box-shadow: none; }
  .hero h1 { font-size: 40px; }
  .installation-layout, .hosting-grid, .faq-section, .mobile-section, .dogfood-card { display: block; }
  .mobile-preview { max-width: 340px; margin: 25px auto 0; }
  .operations-panel, .topology-panel { margin-top: 20px; }
  .site-footer { margin-top: 20px; }
}
