:root {
  --bg: #f6f4ef; --panel: #fffdfa; --line: #e4e0d7; --text: #1e2228; --muted: #6c727c;
  --accent: #5f83bd; --accent-ink: #3f6299; --accent-soft: #edf3fb; --good: #3c8a61;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --nav-bg: rgb(246 244 239 / 82%); --bar: #efece5; --body: #3d434c; --tree: #1f2329;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #15171a; --panel: #1f2227; --line: #30343b; --text: #ebe8e1; --muted: #9ba1aa;
  --accent: #5f83bd; --accent-ink: #a9c3ec; --accent-soft: #233149; --good: #6cbf8f;
  --nav-bg: rgb(21 23 26 / 82%); --bar: #262a30; --body: #c9cbd0; --tree: #0f1114;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.04; letter-spacing: -0.045em; }
h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -0.035em; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 640px; margin: 22px auto 0; }
.fine { font-size: 13.5px; color: var(--muted); }
kbd { font: 13px var(--mono); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; background: var(--panel); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; padding: 13px 22px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font-weight: 600; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; }
.button:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgb(30 34 40 / 8%); }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-ink); }
.button.small { padding: 8px 14px; font-size: 14px; }
.button.wide { width: 100%; }
.button[aria-disabled="true"] { opacity: 0.6; pointer-events: none; }

.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px; padding: 14px max(24px, calc((100vw - 1160px) / 2)); background: var(--nav-bg); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; letter-spacing: -0.02em; }
.logo img { border-radius: 7px; }
.nav nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.nav nav a { text-decoration: none; color: var(--muted); }
.nav nav a:hover { color: var(--text); }
.theme-toggle { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); display: grid; place-items: center; cursor: pointer; padding: 0; }
.theme-toggle svg { width: 18px; height: 18px; }
:root[data-theme="dark"] .theme-toggle .sun, :root:not([data-theme="dark"]) .theme-toggle .moon { display: none; }

main { overflow: hidden; }
section { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.hero { text-align: center; padding-top: clamp(64px, 10vw, 120px); }
.cta { display: flex; gap: 12px; justify-content: center; margin: 34px 0 14px; flex-wrap: wrap; }
.window { margin: 60px auto 0; max-width: 1080px; border-radius: 16px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 50px 120px -30px rgb(30 34 40 / 30%), 0 12px 32px rgb(30 34 40 / 8%); }
.window-bar { display: flex; gap: 7px; padding: 12px 14px; background: var(--bar); border-bottom: 1px solid var(--line); }
.window-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ddd8cd; }
.window-bar span:first-child { background: #ee6a5f; } .window-bar span:nth-child(2) { background: #f5bf4f; } .window-bar span:nth-child(3) { background: #62c655; }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 70px 24px; }
.strip div { display: grid; gap: 4px; padding-left: 16px; border-left: 2px solid var(--accent-soft); }
.strip span { color: var(--muted); font-size: 15px; }

.feature { display: grid; gap: 34px; padding-top: 70px; padding-bottom: 70px; max-width: 1240px; }
.feature .copy { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(30px, 6vw, 90px); align-items: end; }
.feature .copy .eyebrow { grid-column: 1; }
.feature .copy h2 { grid-column: 1; }
.feature .copy p:not(.eyebrow) { grid-column: 2; grid-row: 1 / span 2; color: var(--muted); font-size: 18px; }
.media { margin: 0; cursor: zoom-in; transition: transform 0.25s, box-shadow 0.25s; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 30px 70px -30px rgb(30 34 40 / 28%); }

.media:hover { transform: translateY(-2px); box-shadow: 0 40px 90px -30px rgb(30 34 40 / 34%); }
.window img { cursor: zoom-in; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgb(20 22 26 / 78%); backdrop-filter: blur(6px); }
.lightbox-body img, .lightbox-body video { max-width: 96vw; max-height: 94vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 90px rgb(0 0 0 / 45%); cursor: zoom-out; }
.lightbox-close { position: fixed; top: 16px; right: 20px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgb(255 255 255 / 92%); font-size: 24px; line-height: 1; cursor: pointer; }
.lightbox[open] { animation: zoom-in 0.22s ease; }
@keyframes zoom-in { from { opacity: 0; transform: scale(0.96); } }

.agents { display: grid; grid-template-columns: 1fr 1.05fr; gap: 28px 60px; align-items: center; padding-top: 90px; padding-bottom: 40px; max-width: 1240px; }
.agents .copy p:not(.eyebrow) { color: var(--muted); margin-top: 16px; }
.guide-link { margin-top: 18px; }
.agents .agent-shot { grid-column: 1 / -1; }
.steps { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding-left: 38px; min-height: 26px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 13px; }
.agent-demo { background: var(--tree); color: #e7e3da; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px -30px rgb(30 34 40 / 45%); font-size: 15px; }
.agent-bar { display: flex; gap: 7px; align-items: center; padding: 12px 14px; border-bottom: 1px solid rgb(255 255 255 / 8%); }
.agent-bar span { width: 11px; height: 11px; border-radius: 50%; background: #3a3f47; }
.agent-bar em { margin-left: 8px; font-style: normal; font-size: 13px; color: #9ba1aa; }
.agent-log { display: grid; gap: 10px; padding: 20px; min-height: 360px; align-content: start; }
.agent-log .msg { margin: 0; padding: 10px 14px; border-radius: 14px; max-width: 88%; line-height: 1.5; }
.agent-log .user { justify-self: end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.agent-log .agent { background: rgb(255 255 255 / 7%); border-bottom-left-radius: 4px; }
.agent-log .agent b { color: #fff; font-weight: 600; }
.agent-log .call { margin: 0; font: 12.5px var(--mono); color: #8fb0e6; padding-left: 4px; }
.agent-log .call::before { content: "⚙ "; }
.agent-log .call.write { color: #8ed1a8; }
.agent-log .call span { color: #9ba1aa; margin-left: 6px; }
.agent-demo.playing .agent-log > * { opacity: 0; transform: translateY(6px); transition: opacity 0.35s ease, transform 0.35s ease; }
.agent-demo.playing .agent-log > .on { opacity: 1; transform: none; }

.files { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; padding-top: 90px; padding-bottom: 60px; }
.files .copy p:not(.eyebrow) { color: var(--muted); margin-top: 16px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li::before { content: "✓"; color: var(--good); font-weight: 700; margin-right: 10px; }
.tree { margin: 0; background: var(--tree); color: #e7e3da; border-radius: 16px; padding: 26px 28px; font: 14px/1.75 var(--mono); overflow-x: auto; box-shadow: 0 30px 70px -30px rgb(30 34 40 / 45%); }
.tree span { color: #8fb0e6; }

.shortcuts { display: flex; justify-content: center; gap: 40px; padding-top: 50px; padding-bottom: 30px; flex-wrap: wrap; }
.shortcuts div { display: flex; align-items: center; gap: 12px; color: var(--muted); }

.pricing { text-align: center; padding-top: 100px; padding-bottom: 60px; }
.price-card { margin: 36px auto 0; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 34px; display: grid; gap: 14px; text-align: left; box-shadow: 0 40px 90px -40px rgb(30 34 40 / 30%); }
.price { display: flex; align-items: baseline; gap: 10px; }
.price span { font-size: 56px; font-weight: 750; letter-spacing: -0.04em; }
.price small { color: var(--muted); font-size: 16px; }
.price-card .checks { margin: 4px 0 10px; }

.faq { max-width: 760px; padding-top: 60px; padding-bottom: 100px; display: grid; gap: 10px; }
.faq h2 { margin-bottom: 18px; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin-top: 10px; }

footer { display: flex; align-items: center; gap: 24px; padding: 30px max(24px, calc((100vw - 1160px) / 2)); border-top: 1px solid var(--line); flex-wrap: wrap; }
footer div { display: flex; align-items: center; gap: 8px; font-weight: 700; }
footer nav { display: flex; gap: 18px; font-size: 14px; color: var(--muted); }
footer .fine { margin-left: auto; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

.guide code { font: 13.5px var(--mono); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.guide .steps, .guide .checks { margin-bottom: 8px; }
.os-tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin: 14px 0 6px; }
.os-tabs button { border: 0; background: transparent; color: var(--muted); padding: 7px 14px; border-radius: 9px; font: inherit; font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s; }
.os-tabs button[aria-selected="true"] { background: var(--accent-soft); color: var(--accent-ink); }
.os-panel ul { padding-left: 20px; }
.legal { max-width: 760px; margin: 0 auto; padding: 70px 24px 100px; }
.legal h1 { font-size: 44px; margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--body); }
.legal p + p { margin-top: 12px; }

@media (max-width: 860px) {
  .nav nav { display: none; }
  .nav .button { margin-left: auto; }
  .strip { grid-template-columns: 1fr 1fr; }
  .files, .agents { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; }
  .feature { padding-top: 40px; padding-bottom: 40px; gap: 22px; }
  .feature .copy { grid-template-columns: 1fr; }
  .feature .copy p:not(.eyebrow) { grid-column: 1; grid-row: auto; margin-top: 14px; }
  footer .fine { margin-left: 0; }
}

/* 2026 motion and depth. Everything below is decoration; reduced motion turns it off. */
.hero { position: relative; isolation: isolate; }
.aurora { position: absolute; inset: -120px -10vw auto; height: 720px; z-index: -1; pointer-events: none; filter: blur(70px); opacity: 0.55; }
.aurora span { position: absolute; border-radius: 50%; mix-blend-mode: multiply; }
.aurora span:nth-child(1) { width: 520px; height: 420px; left: 12%; top: 40px; background: #c9dbf6; animation: drift-a 18s ease-in-out infinite alternate; }
.aurora span:nth-child(2) { width: 460px; height: 380px; right: 10%; top: 0; background: #e9dcf7; animation: drift-b 22s ease-in-out infinite alternate; }
.aurora span:nth-child(3) { width: 420px; height: 340px; left: 40%; top: 220px; background: #d8f0e4; animation: drift-c 26s ease-in-out infinite alternate; }
:root[data-theme="dark"] .aurora { opacity: 0.35; }
:root[data-theme="dark"] .aurora span { mix-blend-mode: screen; }
:root[data-theme="dark"] .aurora span:nth-child(1) { background: #27406b; }
:root[data-theme="dark"] .aurora span:nth-child(2) { background: #3d2b5c; }
:root[data-theme="dark"] .aurora span:nth-child(3) { background: #1f4a3a; }
@keyframes drift-a { to { transform: translate(80px, 40px) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-90px, 60px) scale(0.9); } }
@keyframes drift-c { to { transform: translate(40px, -50px) scale(1.2); } }

.headline .word { display: inline-block; animation: word-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes word-in { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } }
.hero > .eyebrow, .hero > .lede, .hero > .cta, .hero > .fine { animation: word-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero > .lede { animation-delay: 0.35s; }
.hero > .cta { animation-delay: 0.5s; }
.hero > .fine { animation-delay: 0.6s; }

.hero-window { transform-origin: 50% 0; transform: perspective(1600px) rotateX(var(--tilt, 14deg)) scale(var(--scale, 0.94)); transition: transform 0.12s linear; animation: window-in 1.2s 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; will-change: transform; }
@keyframes window-in { from { opacity: 0; translate: 0 60px; } }

.works-with { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 64px; overflow: hidden; }
.logos { display: flex; gap: 40px; white-space: nowrap; font-weight: 650; letter-spacing: -0.01em; color: var(--muted); font-size: 17px; animation: marquee 32s linear infinite; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
@keyframes marquee { from { transform: translateX(18%); } to { transform: translateX(-18%); } }

.button { position: relative; overflow: hidden; }
.button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 35%) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); pointer-events: none; }
.button:hover::after { transform: translateX(120%); }
.button.primary { background: linear-gradient(180deg, #6d90c8, var(--accent)); box-shadow: 0 1px 0 rgb(255 255 255 / 25%) inset, 0 10px 24px -10px rgb(63 98 153 / 70%); }

.reveal { opacity: 0; transform: translateY(28px) scale(0.985); filter: blur(6px); transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.9s; }
.reveal.shown { opacity: 1; transform: none; filter: none; }
.reveal .media { transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s; }
.reveal:not(.shown) .media { transform: scale(0.96); }
.strip div { transition: transform 0.3s; }
.strip.shown div { animation: word-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.strip.shown div:nth-child(2) { animation-delay: 0.08s; } .strip.shown div:nth-child(3) { animation-delay: 0.16s; } .strip.shown div:nth-child(4) { animation-delay: 0.24s; }
.price-card { transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s; }
.price-card:hover { transform: translateY(-4px); box-shadow: 0 50px 100px -40px rgb(30 34 40 / 40%); }
details { transition: border-color 0.2s, box-shadow 0.2s; }
details[open] { box-shadow: 0 12px 30px -18px rgb(30 34 40 / 25%); }
details[open] p { animation: word-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .aurora span, .logos, .headline .word, .hero > *, .hero-window, .strip.shown div, details[open] p { animation: none !important; }
  .hero-window { transform: none; }
  .reveal { filter: none; transform: none; }
}
