:root {
  --bg: #fbfaf8;
  --bg-soft: #f3f1ed;
  --card: #ffffff;
  --text: #1c1b1f;
  --muted: #5f5d66;
  --border: #e6e3de;
  --brand: #f54a00;
  --brand-ink: #ffffff;
  --brand-soft: #fff1e8;
  --dark: #141317;
  --dark-text: #f4f2ee;
  --dark-muted: #aaa6b2;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 12px 40px -12px rgb(0 0 0 / 0.18);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111014;
    --bg-soft: #18171c;
    --card: #1c1b21;
    --text: #f2f0ec;
    --muted: #a5a2ad;
    --border: #2b2a31;
    --brand: #ff6a1f;
    --brand-ink: #160c06;
    --brand-soft: #2a1a10;
    --dark: #0b0a0d;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 48px -12px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.88em; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px; padding: 0.05em 0.35em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in oklab, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; }
.brand.small { font-size: 15px; gap: 8px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 640px) { .nav-links { display: none; } .nav-inner .btn { margin-left: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 10px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid var(--border); background: var(--card); transition: transform 0.15s, background 0.15s, border-color 0.15s; }
.btn:hover { transform: translateY(-1px); border-color: color-mix(in oklab, var(--text) 25%, var(--border)); }
.btn-small { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); box-shadow: 0 6px 20px -6px color-mix(in oklab, var(--brand) 60%, transparent); }
.btn-primary:hover { background: color-mix(in oklab, var(--brand) 90%, black); border-color: transparent; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); border-color: transparent; }
.gh { width: 18px; height: 18px; }

/* Hero */
.hero { padding: 88px 0 40px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); font-size: 14px; font-weight: 500; color: var(--muted); }
.eyebrow.plain { padding: 0; border: 0; background: none; color: var(--brand); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; margin-bottom: 12px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; margin: 0 auto 22px; max-width: 13.5em; text-wrap: balance; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 62ch; margin: 0 auto 32px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.frame { margin: 0; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.frame-bar span { margin: 0 auto; font-size: 12px; color: var(--muted); font-family: 'JetBrains Mono', monospace; padding-right: 48px; }
.hero-frame { margin-top: 56px; }

/* Sections */
section { padding: 72px 0; }
.section-title { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 750; margin: 0 0 32px; max-width: 24ch; }
.pains .section-title { max-width: 30ch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* Features */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; margin: 56px 0 88px; }
.feature.flip .feature-text { order: 2; }
.feature h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 14px; }
.feature p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; gap: 24px; margin: 40px 0 56px; } .feature.flip .feature-text { order: 0; } }
.small-features { gap: 32px 40px; padding-top: 16px; border-top: 1px solid var(--border); }
.small-features h4 { margin: 16px 0 6px; font-size: 16px; }
.small-features p { margin: 0; color: var(--muted); font-size: 15px; }

/* Agents */
.agents { background: var(--dark); color: var(--dark-text); }
.agents-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 960px) { .agents-inner { grid-template-columns: 1fr; } }
.agents .section-title { color: var(--dark-text); }
.on-dark { color: var(--dark-muted); margin-left: 0; }
.eyebrow.on-dark { color: #ff7a33; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 30px; color: var(--dark-muted); font-size: 16px; }
.checks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: #ff6a1f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23160c06' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.checks b { color: var(--dark-text); font-weight: 600; }
.agents code { background: #26242c; border-color: #34313b; color: var(--dark-text); }
.terminal { background: #1b1a20; border: 1px solid #2f2c36; border-radius: var(--radius); box-shadow: 0 24px 60px -20px rgb(0 0 0 / 0.7); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-bottom: 1px solid #2f2c36; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3742; }
.term-bar span { margin: 0 auto; padding-right: 48px; font: 12px 'JetBrains Mono', monospace; color: #8d8996; }
.terminal pre { margin: 0; padding: 22px 24px; font: 14px/1.7 'JetBrains Mono', ui-monospace, monospace; color: #d9d6df; white-space: pre-wrap; overflow-x: auto; }
.terminal .you { color: #ff7a33; font-weight: 700; }
.terminal .ag { color: #7aa2f7; }
.terminal .ok { color: #9ece6a; }
.terminal .link { color: #7dcfff; text-decoration: underline; text-underline-offset: 3px; }

/* Own it */
.step { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; margin-bottom: 14px; }

/* Origin */
.origin { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.origin .lede { margin-left: 0; }
@media (max-width: 900px) { .origin { grid-template-columns: 1fr; } .origin > div { order: -1; } }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-inner a { margin-left: auto; text-decoration: none; }
.footer-inner a:hover { color: var(--text); }
.term-note { margin: 0; padding: 0 24px 16px; font-size: 12px; color: #6f6b78; }
