:root {
  --bg: #f6f5f1;
  --paper: #ffffff;
  --fg: #121211;
  --ink: #2b2a26;
  --muted: #6a6862;
  --line: #e3e1d9;
  --accent: #ff5b24;
  --accent-deep: #e0440f;
  --accent-soft: #fff0e9;
  --ok: #128048;
  --bad: #cf3b2b;
  --r: 20px;
  --body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Inter Tight", Inter, ui-sans-serif, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --shadow: 0 1px 0 rgba(0,0,0,.03), 0 30px 60px -32px rgba(40, 30, 10, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17.5px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: 0.84em; background: #f0eee7; padding: 0.12em 0.4em; border-radius: 6px; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); color: var(--fg); }
h2 { font-size: clamp(34px, 4.3vw, 54px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 18px; max-width: 18ch; }
h3 { font-size: 20px; letter-spacing: -0.015em; line-height: 1.25; margin: 0 0 8px; font-weight: 700; }
.kicker { font: 600 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); margin: 0 0 18px; }
.sub { color: var(--muted); font-size: 19px; max-width: 58ch; margin: 0 0 44px; }
section { scroll-margin-top: 90px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px) saturate(1.3); border-bottom: 1px solid transparent; }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font: 800 20px var(--display); letter-spacing: -0.03em; }
.brand:hover { text-decoration: none; }
.brand.small { font-size: 16px; }
.mark { width: 24px; height: 24px; border-radius: 7px; background: var(--fg); position: relative; flex: none; }
.mark::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid var(--accent); border-width: 0 3px 3px 0; transform: rotate(40deg); }
.nav nav { display: flex; gap: 26px; align-items: center; font-size: 15px; }
.nav nav a { color: var(--muted); }
.nav nav a:hover { color: var(--fg); text-decoration: none; }
.nav nav a.nav-cta { color: #fff; background: var(--fg); font-weight: 600; padding: 9px 16px; border-radius: 999px; }

/* hero */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%); opacity: .55; pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; padding: 64px 0 88px; }
h1 { font-size: clamp(42px, 4.9vw, 70px); line-height: 1.0; letter-spacing: -0.048em; font-weight: 800; margin: 0 0 28px; }
.hl { color: var(--accent); }
.lede { font-size: clamp(18px, 1.6vw, 20.5px); color: var(--ink); max-width: 54ch; margin: 0 0 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; gap: 10px; align-items: center; min-height: 54px; padding: 0 24px; background: var(--accent); color: #fff; font-weight: 650; border-radius: 14px; box-shadow: 0 12px 26px -14px var(--accent), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .15s ease, background .15s ease; }
.btn:hover { text-decoration: none; background: var(--accent-deep); transform: translateY(-1px); }
.btn.ghost { background: var(--paper); color: var(--fg); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: #fbfaf7; }
.btn.ghost.dark { background: transparent; color: #f4f3ee; border-color: #3a3935; }
.btn.ghost.dark:hover { background: #1d1d1b; }
.play { width: 0; height: 0; border-left: 9px solid var(--accent); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.works { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 30px 0 0; }
.works::before { content: "Works with"; color: var(--muted); font-size: 14px; margin-right: 4px; align-self: center; }
.works li { font: 600 13px var(--mono); color: var(--ink); background: var(--paper); border: 1px solid var(--line); padding: 5px 10px; border-radius: 8px; }

/* app window */
.window { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 2px 0 rgba(0,0,0,.02), 0 60px 90px -45px rgba(40, 30, 10, .42); overflow: hidden; font-size: 14.5px; line-height: 1.5; }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fbfaf7; }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e1ded5; }
.win-bar span { font: 600 13px var(--mono); color: var(--muted); margin-left: 10px; }
.win-bar em { margin-left: auto; font: 600 12px var(--mono); font-style: normal; color: var(--ok); }
.win-bar.dark { background: #1b1b19; border-color: #2a2a27; }
.win-bar.dark i { background: #3a3935; }
.win-body { padding: 14px 18px 18px; display: grid; gap: 4px; }
.msg { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 8px 0; }
.who { margin: 0; font-weight: 700; }
.who small { font-weight: 500; color: var(--muted); font-size: 12.5px; margin-left: 4px; }
.msg p { margin: 2px 0 0; color: var(--ink); }
.bubble { background: #f6f5f1; border-radius: 4px 14px 14px 14px; padding: 9px 12px; margin-top: 6px !important; }
.av { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font: 800 14px var(--display); }
.av.sam { background: #ffe0d2; color: var(--accent-deep); }
.av.t { background: #f1e8ff; color: #6d3fd1; }
.av.c { background: #ecebe5; color: #4a4943; }
.row-events { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 0 6px 48px; }
.ev { font: 600 12px var(--mono); padding: 6px 9px; border-radius: 8px; background: #f2f1ec; color: #4a4943; }
.ev.red { background: #fdeae6; color: var(--bad); }
.ev.green { background: #e2f4ea; color: var(--ok); }
.approve { margin: 6px 0 4px 48px; border: 1px solid #f3d3c4; background: var(--accent-soft); border-radius: 16px; padding: 14px; }
.ap-top { display: flex; gap: 12px; align-items: flex-start; }
.ap-icon { width: 28px; height: 28px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.ap-top b { display: block; }
.ap-top small { color: var(--muted); font-size: 12.5px; }
.ap-row { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.ap-btn { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 7px 14px; font-weight: 650; font-size: 13px; }
.ap-btn.yes { background: var(--ok); color: #fff; border-color: var(--ok); }
.ap-by { margin-left: auto; color: var(--muted); font-size: 13px; }
.ap-by b { color: var(--fg); }
.tag { display: inline-block; background: var(--fg); color: #fff; font: 600 11.5px var(--mono); padding: 4px 8px; border-radius: 7px; margin-right: 6px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: -36px; position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.stats div { padding: 28px 28px 26px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats strong { display: block; font: 800 44px/1 var(--display); letter-spacing: -0.04em; margin-bottom: 10px; }
.stats strong small { font-size: 20px; letter-spacing: -0.01em; margin-left: 4px; color: var(--muted); font-weight: 700; }
.stats span { color: var(--muted); font-size: 15px; line-height: 1.45; display: block; }

/* pain */
.pain { padding: 150px 0 0; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.col { border-radius: 24px; padding: 34px 36px; }
.col h3 { font: 600 12.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 20px; }
.col ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.col li { counter-increment: s; position: relative; padding-left: 30px; }
.col li::before { content: counter(s); position: absolute; left: 0; top: 3px; font: 600 13px var(--mono); }
.before { background: #ebe9e2; color: #57564f; }
.before h3, .before li::before { color: #99978d; }
.after { background: var(--fg); color: #e9e8e2; }
.after h3, .after li::before { color: var(--accent); }
.after b { color: #fff; }
.verdict { margin: 26px 0 0; padding-top: 18px; font: 600 14px var(--mono); border-top: 1px solid rgba(127,127,127,.25); }
.before .verdict { color: var(--bad); }
.after .verdict { color: #6fdc9c; }

/* demo */
.demo { padding: 110px 0 0; }
.video-frame { border-radius: 24px; overflow: hidden; background: #000; box-shadow: 0 50px 90px -45px rgba(20, 15, 5, .55); border: 1px solid #1e1e1c; }
.video-frame video { width: 100%; }
.caption { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; margin: 18px 0 0; }
.rec { width: 9px; height: 9px; border-radius: 50%; background: var(--bad); flex: none; }

/* crew */
.crew { padding: 150px 0 0; }
.crew-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.crew-grid article { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.crew-grid article:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.role { font: 600 12px var(--mono); color: var(--muted); margin-bottom: 30px; }
.crew-grid p { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.model { margin-top: auto; align-self: flex-start; font: 600 12px var(--mono); padding: 5px 9px; border-radius: 8px; }
.model.claude { background: #fff0e9; color: #b9441b; }
.model.codex { background: #e9f0ff; color: #2856c4; }
.model.plain { background: #eeede8; color: #4a4943; }

/* run */
.run { padding: 150px 0 0; }
.bar { display: flex; gap: 4px; height: 54px; margin-bottom: 40px; }
.bar span { position: relative; border-radius: 10px; display: flex; align-items: center; padding: 0 12px; min-width: 0; }
.bar em { font: 600 12.5px var(--mono); font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .s1 { background: #f1e8ff; color: #6d3fd1; }
.bar .s2 { background: #e9f0ff; color: #2856c4; }
.bar .s3 { background: #fff0e9; color: #b9441b; }
.bar .s4 { background: #e9f0ff; color: #2856c4; }
.bar .s5 { background: var(--fg); color: #fff; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.timeline li { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 20px; display: grid; gap: 8px; align-content: start; }
.timeline time { font: 600 13px var(--mono); color: var(--muted); }
.timeline b { display: block; font-family: var(--display); font-size: 17px; letter-spacing: -0.01em; }
.timeline span { color: var(--muted); font-size: 14.5px; line-height: 1.45; display: block; margin-top: 4px; }
.timeline li.human { background: var(--accent-soft); border-color: #f3d3c4; }
.timeline li.human time, .timeline li.human b { color: var(--accent-deep); }

/* trust */
.trust { padding: 150px 0 0; }
.rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.rules article { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 24px 22px; }
.rules svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 28px; }
.rules p { color: var(--muted); font-size: 15px; margin: 0; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.shots figure, .loop-shot, .switch-shot { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 10px; box-shadow: var(--shadow); }
.shots img, .loop-shot img, .switch-shot img { border-radius: 10px; }
figcaption { color: var(--muted); font-size: 13.5px; padding: 10px 6px 2px; }

/* loop & switch */
.loop, .switch { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; padding: 150px 0 0; }
.loop-copy p:not(.kicker), .switch-copy > p:not(.kicker) { color: var(--muted); }
dl { display: grid; grid-template-columns: 170px 1fr; gap: 0; margin: 28px 0 0; font-size: 15.5px; }
dt, dd { padding: 13px 0; border-top: 1px solid var(--line); margin: 0; }
dt { font-weight: 650; }
dd { color: var(--muted); }

/* results */
.results { padding: 150px 0 0; }
.table { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); margin-top: 36px; }
.tr { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr; gap: 20px; padding: 20px 28px; border-top: 1px solid var(--line); font-size: 16.5px; align-items: center; }
.tr.th { border-top: 0; background: #f6f5f1; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 14px 28px; }
.tr .num { font: 700 18px var(--display); letter-spacing: -0.01em; }
.tr span:last-child { color: var(--muted); }

/* setup */
.setup { padding: 150px 0 0; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.setup .sub { margin-bottom: 0; }
.term { background: #121211; border-radius: 20px; overflow: hidden; box-shadow: 0 50px 90px -45px rgba(0,0,0,.6); }
.term .win-bar span { color: #8a887f; }
.term pre { margin: 0; padding: 22px 26px 26px; color: #ecebe4; font: 15px/2 var(--mono); overflow-x: auto; }
.term .c { color: var(--accent); }
.term .cm { color: #77756d; }
.term .ok { color: #6fdc9c; }

/* faq */
.faq { padding: 150px 0 0; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font: 650 18.5px var(--display); letter-spacing: -0.01em; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 12px 0 0; max-width: 60ch; }

/* final */
.final { padding: 150px 0 110px; }
.final-card { position: relative; overflow: hidden; background: var(--fg); color: #e9e8e2; border-radius: 30px; padding: 84px 72px; }
.final-card::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(#262624 1px, transparent 1px), linear-gradient(90deg, #262624 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 60% 80% at 90% 50%, #000, transparent 70%); pointer-events: none; }
.final-card > * { position: relative; z-index: 1; }
.final-card h2 { color: #fff; max-width: 16ch; }
.final-card p { color: #a9a79e; font-size: 20px; margin: 0 0 34px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; padding: 28px 0 44px; border-top: 1px solid var(--line); }
.foot a { color: var(--muted); }

/* motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .window { animation: rise .55s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .06s; }
  .hero-copy > *:nth-child(3) { animation-delay: .12s; }
  .hero-copy > *:nth-child(4) { animation-delay: .18s; }
  .window { animation-delay: .15s; }
  .win-body > * { animation: rise .45s ease-out both; }
  .win-body > *:nth-child(1) { animation-delay: .35s; }
  .win-body > *:nth-child(2) { animation-delay: .6s; }
  .win-body > *:nth-child(3) { animation-delay: .85s; }
  .win-body > *:nth-child(4) { animation-delay: 1.1s; }
  .win-body > *:nth-child(5) { animation-delay: 1.35s; }
  @keyframes rise { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
}

/* responsive */
@media (max-width: 1080px) {
  .crew-grid { grid-template-columns: repeat(3, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .rules { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  body { font-size: 17px; }
  .wrap { width: min(1200px, 100% - 40px); }
  .nav nav a:not(.nav-cta) { display: none; }
  .hero-in { grid-template-columns: 1fr; gap: 44px; padding: 36px 0 72px; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: -24px; }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pain, .demo, .crew, .run, .trust, .loop, .switch, .results, .setup, .faq { padding-top: 96px; }
  .cols, .shots, .loop, .switch, .setup, .faq { grid-template-columns: 1fr; gap: 28px; }
  .crew-grid { grid-template-columns: 1fr 1fr; }
  .bar em { font-size: 11px; }
  .tr { grid-template-columns: 1fr; gap: 4px; }
  .tr.th { display: none; }
  .final-card { padding: 52px 28px; }
  .foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  h1 { font-size: 40px; }
  .stats strong { font-size: 36px; }
  .stats div { padding: 22px 18px; }
  .crew-grid, .timeline, .rules { grid-template-columns: 1fr; }
  .bar { display: none; }
  .term pre { font-size: 12px; padding: 18px; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .row-events, .approve { margin-left: 0; padding-left: 0; }
  .approve { padding: 12px; }
  .ap-by { margin-left: 0; width: 100%; }
  .col { padding: 26px 22px; }
  dl { grid-template-columns: 1fr; }
  dd { border-top: 0; padding-top: 0; }
}

/* Build notes (blog) */
.post { max-width: 720px; padding: 64px 0 120px; }
.post h1 { font-size: clamp(36px, 5.5vw, 56px); }
.post h2 { font-size: 30px; margin: 56px 0 16px; max-width: none; }
.post p, .post li { color: #23231f; }
.post pre { background: #141412; color: #eee; padding: 18px 20px; border-radius: 12px; overflow-x: auto; font-size: 14px; line-height: 1.5; }
.post pre code { background: none; padding: 0; color: inherit; }
.post blockquote { margin: 24px 0; padding: 4px 20px; border-left: 3px solid var(--accent); background: #f1efe9; border-radius: 0 10px 10px 0; }
.post img { border: 1px solid var(--line); border-radius: 14px; margin: 24px 0; }
