:root {
  --bg: #f6f6f2;
  --surface: #ffffff;
  --ink: #141613;
  --ink-2: #5b5f58;
  --line: #e4e4dd;
  --night: #0d100e;
  --night-2: #161a17;
  --green: #95bf47;
  --green-deep: #3d6b14;
  --amber: #e7a32b;
  --blue: #4a8fe0;
  --display: "Bricolage Grotesque", "Helvetica Neue", sans-serif;
  --body: "Figtree", "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --w: min(1160px, 100% - 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; }
section { width: var(--w); margin: 0 auto; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 28px;
  padding: 14px max(24px, calc((100% - 1160px) / 2));
  background: color-mix(in srgb, var(--night) 88%, transparent); backdrop-filter: blur(12px); color: #e9ebe6;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.nav nav a { text-decoration: none; color: #a9ada5; transition: color .2s; }
.nav nav a:hover { color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 18px var(--display); text-decoration: none; letter-spacing: -0.01em; }
.mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--green); color: var(--night); font: italic 600 18px/1 Georgia, serif; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px; border-radius: 12px; font: 600 16px var(--body); text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn.small { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.nav .btn { background: var(--green); color: var(--night); }
.btn.light { background: #fff; color: var(--night); box-shadow: 0 8px 30px -10px rgba(149,191,71,.5); }
.btn.ghost-light { color: #e9ebe6; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.outline { box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }

/* Hero */
.hero { width: 100%; position: relative; overflow: hidden; background: var(--night); color: #f2f3ef; padding: 96px 24px 0; text-align: center; }
.hero { background: radial-gradient(ellipse 60% 45% at 50% 100%, rgba(149,191,71,.24), transparent 70%), var(--night); }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.scene { display: block; width: min(720px, 100%); aspect-ratio: 640 / 210; margin: -30px auto 26px; }
.hero-copy { position: relative; max-width: 1040px; margin: 0 auto; }
h1 { font-size: clamp(44px, 6.6vw, 84px); line-height: 1.02; }
h1 span { color: var(--green); }
.lede { font-size: 21px; color: #b9bdb4; max-width: 560px; margin: 24px auto 32px; }
.ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fine { font-size: 13.5px; color: #8b9087; margin-top: 18px; }

/* App window mock */
.window { background: #fbfbf9; color: var(--ink); border-radius: 16px; box-shadow: 0 40px 100px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08); overflow: hidden; text-align: left; }
.hero-window { position: relative; max-width: 1000px; margin: 64px auto 0; border-radius: 16px 16px 0 0; }
.titlebar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #1a1d1b; }
.titlebar i { width: 11px; height: 11px; border-radius: 50%; background: #3b3f3a; }
.runner { margin-left: auto; font: 600 12px var(--body); color: var(--night); background: #d4f5b4; padding: 3px 10px; border-radius: 8px; }
.app { display: grid; grid-template-columns: 230px 1fr; min-height: 380px; }
.side { background: #f0f0ec; padding: 14px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; border-right: 1px solid var(--line); }
.side .new { background: var(--ink); color: #fff; border-radius: 9px; padding: 8px 12px; font-size: 13.5px; margin-bottom: 10px; }
.side .group { font-size: 12px; color: var(--ink-2); margin: 10px 0 2px; }
.side .t { padding: 5px 8px 5px 22px; border-radius: 8px; position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .t::before { content: ""; position: absolute; left: 8px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: #b9bcb4; }
.side .t.live { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.side .t.live::before { background: var(--blue); animation: pulse 1.6s infinite; }
.side .t.done::before { background: var(--green); }
.side .t.wait::before { background: var(--amber); }
.chat { padding: 22px 26px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; }
.msg.you { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.msg.agent { background: #fff; border: 1px solid var(--line); }
.step { display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.step .k { font: 500 11px var(--mono); text-transform: uppercase; color: var(--ink-2); width: 56px; }
.step .ok { margin-left: auto; color: var(--green-deep); font-size: 12px; font-weight: 600; }
.step, .msg { opacity: 0; transform: translateY(6px); animation: in .35s forwards; }
.msg.you:first-child { opacity: 1; transform: none; animation: none; }

/* Quote */
.quote { padding: 110px 0 40px; text-align: center; }
.quote p { font: 700 clamp(26px, 3.4vw, 40px)/1.2 var(--display); letter-spacing: -0.02em; max-width: 860px; margin: 0 auto; }
.quote span { color: var(--green-deep); }

/* Features */
.feature { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; padding: 90px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature.flip .copy { order: 2; }
.feature > *, .free > *, .team > *, .lane > * { min-width: 0; }
.kicker { font: 600 13px var(--body); color: var(--green-deep); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 12px; }
.feature h2, .control h2, .free h2, .download h2, .faq h2 { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.08; }
.feature .copy > p:last-child { color: var(--ink-2); font-size: 18.5px; margin: 18px 0 0; }
.visual > div { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 24px 60px -36px rgba(20,22,19,.35); }

.feature.dark { width: 100%; padding: 100px max(24px, calc((100% - 1160px) / 2)); background: var(--night); color: #f2f3ef; border: 0; }
.feature.dark .copy > p:last-child { color: #b0b4ab; }
.feature.dark .kicker { color: var(--green); }
.feature.dark .visual > div { background: var(--night-2); border-color: #262b27; box-shadow: none; }

.lanes { display: flex; flex-direction: column; gap: 10px; }
.lane { display: grid; grid-template-columns: 14px 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.lane b { font-weight: 600; }
.lane em { grid-column: 2; font: normal 12.5px var(--mono); color: var(--ink-2); }
.lane .pill { grid-row: 1 / 3; grid-column: 3; }
.dot { width: 9px; height: 9px; border-radius: 50%; grid-row: 1 / 3; }
.dot.run { background: var(--blue); animation: pulse 1.6s infinite; }
.dot.ok { background: var(--green); }
.dot.ask { background: var(--amber); }
.pill { font: 600 12px var(--body); padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.pill.run { background: #e3efff; color: #164b8a; }
.pill.ok { background: #e2f5cd; color: var(--green-deep); }
.pill.ask { background: #fdf0d5; color: #7a5200; }

.picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.field { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.field small { display: block; font-size: 12px; color: var(--ink-2); }
.field b { font-weight: 600; font-size: 15px; }
.kit, .agents { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.kit span { font: 500 13px var(--mono); padding: 5px 10px; border-radius: 8px; background: #f2f2ee; }
.agents span { flex: 1; text-align: center; padding: 12px; border-radius: 12px; border: 1px solid var(--line); font-weight: 600; }
.agents .on { background: var(--ink); color: #fff; border-color: var(--ink); }

.setup { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.setup .row { padding: 10px 14px; border-radius: 10px; background: #1d221e; }
.setup .ok { color: #cfe8b0; }
.setup .warn { color: #f3cf86; }
.approve { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.eta { color: #8b9087; font-size: 14px; }

.team { display: grid; grid-template-columns: auto 60px 1fr; align-items: center; }
.node { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-weight: 600; background: #fff; }
.node small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-2); }
.node.lead { background: var(--ink); color: #fff; border-color: var(--ink); }
.node.lead small { color: #b0b4ab; }
.node.ok { box-shadow: inset 4px 0 0 var(--green); }
.node.run { box-shadow: inset 4px 0 0 var(--blue); }
.node.gate { border-style: dashed; box-shadow: inset 4px 0 0 var(--amber); }
.wires { height: 180px; display: flex; flex-direction: column; justify-content: space-around; }
.wires i { height: 2px; background: repeating-linear-gradient(90deg, #b9bcb4 0 6px, transparent 6px 11px); }
.crew { display: flex; flex-direction: column; gap: 12px; }

.loops { display: flex; flex-direction: column; gap: 10px; }
.loop { display: grid; grid-template-columns: 1fr auto; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.loop b { font-weight: 600; }
.loop span:not(.pill) { grid-column: 1; font-size: 13.5px; color: var(--ink-2); }
.loop .pill { grid-row: 1 / 3; grid-column: 2; align-self: center; }
.saving { margin-top: 4px; padding: 12px 14px; border-radius: 12px; background: #eff7e4; color: var(--green-deep); font-size: 14.5px; }

.visual .phone { width: 300px; margin: 0 auto; border-radius: 34px; padding: 14px; background: var(--night); border: 0; display: flex; flex-direction: column; gap: 10px; }
.ph-top { display: flex; justify-content: space-between; align-items: center; color: #fff; font-size: 14px; padding: 8px 6px 4px; }
.ph-msg { padding: 10px 12px; border-radius: 14px; font-size: 14px; }
.ph-msg.agent { background: #fff; }
.ph-msg.you { background: #2b302c; color: #fff; align-self: flex-end; max-width: 85%; }
.ph-ask { display: flex; gap: 8px; }
.ph-ask .btn { flex: 1; }
.ph-ask .btn.dark { background: var(--green); color: var(--night); }
.ph-ask .btn.outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px #3a403b; }
.ph-input { margin-top: 30px; padding: 12px; border-radius: 12px; background: #fff; color: #8b9087; font-size: 14px; }

.diff .file { font: 500 14px var(--mono); display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.diff .file span { color: var(--ink-2); }
.diff .code { margin: 12px 0; font: 13.5px/1.9 var(--mono); white-space: pre; overflow-x: auto; }
.diff .add { display: block; background: #e7f6d8; color: #2c5a0c; }
.diff .del { display: block; background: #fde6e3; color: #8e1b14; }
.diff .ctx { display: block; color: var(--ink-2); }
.actions { display: flex; gap: 8px; justify-content: flex-end; }

/* Control */
.control { padding: 100px 0; border-top: 1px solid var(--line); }
.control .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 44px; }
.control h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: -0.01em; }
.control p { color: var(--ink-2); margin: 0; font-size: 16px; }
.control .grid > div { border-top: 2px solid var(--ink); padding-top: 18px; }

/* Free */
.free { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 90px 48px; margin-bottom: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.free p { color: var(--ink-2); font-size: 18.5px; margin: 16px 0 0; }
.free ul { list-style: none; margin: 0; padding: 0; }
.free li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.free li:last-child { border-bottom: 0; }
.free li span { color: var(--ink-2); text-align: right; }

/* Download */
.download { padding: 80px 0 40px; text-align: center; }
.downloads { display: flex; gap: 16px; justify-content: center; margin: 36px 0 12px; flex-wrap: wrap; }
.dl { width: 320px; display: grid; grid-template-columns: 1fr auto; text-align: left; padding: 22px 24px; border-radius: 18px; background: var(--night); color: #f2f3ef; text-decoration: none; position: relative; transition: transform .2s, box-shadow .2s; }
.dl:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }
.dl::after { content: "↓"; position: absolute; right: 22px; top: 18px; font: 600 24px var(--mono); color: var(--green); }
.dl-os { font: 700 30px/1.1 var(--display); grid-column: 1 / -1; }
.dl-meta { font-size: 14px; color: #a9ada5; }
.dl-size { font: 500 12px var(--mono); color: #a9ada5; align-self: end; }
.dl.off { background: #e9e9e3; color: var(--ink-2); pointer-events: none; }
.dl.off::after { content: ""; }
.download .fine { color: var(--ink-2); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 48px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; color: var(--ink-2); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: var(--night); font: 700 15px var(--display); margin-bottom: 14px; }
.steps b { color: var(--ink); }
.first-run { max-width: 720px; margin: 28px auto 0; text-align: left; color: var(--ink-2); font-size: 15px; }
.first-run summary { cursor: pointer; font-weight: 600; color: var(--ink); text-align: center; }
code { font: 13px var(--mono); background: #ececE6; padding: 2px 6px; border-radius: 5px; }

/* FAQ */
.faq { max-width: 820px; padding: 60px 0 110px; }
.faq h2 { margin-bottom: 24px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font: 600 19px var(--body); list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--ink-2); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink-2); margin: 10px 0 0; }

footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 28px max(24px, calc((100% - 1160px) / 2)); background: var(--night); color: #8b9087; font-size: 14px; }
footer .brand { color: #f2f3ef; }

/* Motion */
/* Research: why agents that run overnight matter */
.research { padding: 110px 0 90px; }
.research-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.research-head h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.08; }
.research-head > p:last-child { color: var(--ink-2); font-size: 19px; margin: 18px 0 0; }
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.chart { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: 0 24px 60px -40px rgba(20,22,19,.35); display: flex; flex-direction: column; gap: 14px; }
.chart figcaption b { display: block; font: 700 21px/1.2 var(--display); letter-spacing: -.01em; }
.chart figcaption span { display: block; color: var(--ink-2); font-size: 15px; margin-top: 6px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart.clock { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 40px; background: var(--night); color: #f2f3ef; border-color: #262b27; padding: 34px 40px; }
.chart.clock svg { width: min(340px, 42%); flex: none; }
.chart.clock figcaption b { font-size: clamp(26px, 3vw, 38px); }
.chart.clock figcaption span { color: #b0b4ab; font-size: 17px; max-width: 460px; }
.legend { list-style: none; padding: 0; margin: 18px 0 0; display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: #c9cdc5; }
.legend li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.legend .server::before { background: var(--green); } .legend .laptop::before { background: var(--amber); }
.sources { margin: 22px auto 0; max-width: 900px; text-align: center; font-size: 12.5px; color: var(--ink-2); }
.sources a { color: var(--ink-2); }
/* chart parts */
.ck-track { fill: none; stroke: #262b27; }
.ck-arc { fill: none; stroke-linecap: round; transition: stroke-dashoffset 2.2s cubic-bezier(.3,.7,.2,1); }
.ck-tick { stroke: #3a423b; } .ck-hour { fill: #8b9087; font: 500 11px var(--mono); }
.ck-big { fill: #f2f3ef; font: 700 54px var(--display); } .ck-small { fill: #8b9087; font: 500 12px var(--body); }
.hz-grid { stroke: var(--line); } .hz-axis { fill: var(--ink-2); font: 500 11px var(--mono); }
.hz-band { fill: #eef4e3; } .hz-band-label { fill: var(--green-deep); font: 600 12px var(--body); }
.hz-line { fill: none; stroke: var(--green-deep); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transition: stroke-dashoffset 2.4s cubic-bezier(.3,.7,.2,1) .2s; }
.hz-area { fill: url(#hzfill); opacity: 0; transition: opacity 1.2s 1.6s; }
.hz-dot { fill: var(--surface); stroke: var(--green-deep); stroke-width: 2.5; opacity: 0; transition: opacity .4s; }
.hz-label { fill: var(--ink); font: 600 12px var(--body); opacity: 0; transition: opacity .6s 2.2s; } .hz-label tspan.m { fill: var(--ink-2); font-weight: 400; }
.st-label { fill: var(--ink); font: 500 13px var(--body); } .st-sub { fill: var(--ink-2); font: 400 11px var(--body); }
.st-zero { stroke: #c9cbc3; stroke-dasharray: 3 4; }
.st-bar { transition: width 1.4s cubic-bezier(.3,.7,.2,1), x 1.4s cubic-bezier(.3,.7,.2,1); }
.st-val { font: 700 14px var(--display); opacity: 0; transition: opacity .5s 1.2s; }
.chart.on .hz-area, .chart.on .hz-dot, .chart.on .hz-label, .chart.on .st-val { opacity: 1; }
@media (max-width: 900px) {
  .charts { grid-template-columns: 1fr; }
  .chart.clock { flex-direction: column; padding: 28px 22px; }
  .chart.clock svg { width: min(300px, 100%); }
}
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.on { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: .08s; }
.hero .reveal:nth-child(3) { transition-delay: .16s; }
.hero .reveal:nth-child(4) { transition-delay: .24s; }
.hero-window.reveal { transition-delay: .3s; }
@keyframes in { to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .reveal, .step, .msg { opacity: 1; transform: none; transition: none; animation: none; } }

@media (max-width: 900px) {
  .hero { padding-top: 72px; }
  .lane em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dl { width: 100%; }
  .nav nav { gap: 16px; }
  .feature, .free { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .copy { order: 0; }
  .free { padding: 40px 24px; }
  .control .grid, .steps { grid-template-columns: 1fr 1fr; }
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .picker { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .control .grid, .steps { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; gap: 12px; }
  .wires { display: none; }
}
footer a { color: #c9cdc5; text-decoration: none; }
footer a:hover { color: #fff; }
.chart figcaption b span { display: inline; margin: 0; color: inherit; font: inherit; }
/* Phones: the header keeps the logo, Docs and Download; the other links are in the footer. */
@media (max-width: 640px) {
  .nav { gap: 14px; padding: 10px 16px; }
  .nav nav { gap: 14px; font-size: 14px; }
  .nav nav a:not(:first-child) { display: none; }
  .nav .btn.small { padding: 8px 12px; font-size: 13px; }
  .brand { font-size: 16px; }
}
