/* Shared chrome + tokens for all ServiceAI pages. */
:root {
  --ink: #0C0C0C;
  --soot: #1F1F1F;
  --soot-2: #181818;
  --carbon: #2E2E2E;
  --carbon-2: #3a3a3a;
  --smoke: #8E8E8E;
  --bone: #E6E6E3;
  --paper: #FFFFFF;
  --flame-300: #FFD66B;
  --flame-500: #F57A2B;
  --flame-600: #E55A1A;
  --flame-glow: rgba(245,122,43,0.35);
  --signal: #4ADE80;
  --alert: #F87171;
  --maxw: 1280px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--ink); color: var(--paper); font-family: "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { max-width: 100%; display: block; }

.mono { font-family: "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.04em; }
.muted { color: var(--smoke); }
.flame-word { background: linear-gradient(180deg, var(--flame-300), var(--flame-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot.live { background: var(--signal); box-shadow: 0 0 0 0 rgba(74,222,128,0.6); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.55); } 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.eyebrow { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--smoke); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--flame-500); border-radius: 1px; }

/* ── Nav ─────────────────────────────── */
.nav-wrap { position: sticky; top: 0; z-index: 40; background: rgba(12,12,12,0.78); backdrop-filter: blur(20px); border-bottom: 1px solid var(--carbon); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 32px; max-width: var(--maxw); margin: 0 auto; }
.nav-left { display: flex; align-items: center; gap: 12px; }
.nav-logo { width: 28px; height: 28px; }
.nav-word { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.nav-word .ai, .foot-brand .ai, .wordmark .ai {
  background: linear-gradient(180deg, var(--flame-300), var(--flame-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-mid { display: flex; gap: 28px; }
.nav-mid a { font-size: 13px; color: var(--bone); transition: color .15s; }
.nav-mid a:hover, .nav-mid a.active { color: var(--paper); }
.nav-mid a.active { position: relative; }
.nav-mid a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 1px; background: var(--flame-500); }
.nav-right { display: flex; gap: 10px; align-items: center; }

.btn-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: 13px; border: 1px solid transparent; transition: all .15s; white-space: nowrap; }
.btn-pill.lg { padding: 13px 22px; font-size: 14px; gap: 10px; }
.btn-pill.flame { background: var(--flame-500); color: #1a0a00; box-shadow: 0 0 32px var(--flame-glow); }
.btn-pill.flame:hover { background: var(--flame-600); }
.btn-pill.ghost { background: transparent; color: var(--paper); border-color: var(--carbon); }
.btn-pill.ghost:hover { border-color: var(--carbon-2); background: rgba(255,255,255,0.03); }
.btn-pill.dark { background: var(--soot-2); border-color: var(--carbon); color: var(--bone); }
.btn-pill.dark:hover { background: var(--soot); color: var(--paper); }

/* ── Page header ─────────────────────────────── */
.page-hero { max-width: var(--maxw); margin: 0 auto; padding: 80px 32px 56px; }
.page-hero h1 { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 80px; line-height: 0.98; letter-spacing: -0.04em; margin-top: 18px; max-width: 920px; }
.page-hero p.lede { color: var(--bone); font-size: 17px; line-height: 1.55; margin-top: 22px; max-width: 600px; }

/* ── Section common ─────────────────────────────── */
.sec { max-width: var(--maxw); margin: 0 auto; padding: 96px 32px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 56px; padding-bottom: 24px; border-bottom: 1px solid var(--carbon); }
.sec-head-left { display: flex; gap: 20px; align-items: flex-start; }
.sec-num { font-size: 12px; color: var(--smoke); padding-top: 8px; min-width: 28px; font-family: "JetBrains Mono", monospace; }
.sec-kicker { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--smoke); letter-spacing: 0.18em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; }
.sec-kicker::before { content: ""; width: 8px; height: 8px; background: var(--flame-500); border-radius: 1px; }
.sec-title { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 48px; line-height: 1.05; letter-spacing: -0.03em; margin-top: 10px; max-width: 720px; }
.sec-sub { color: var(--smoke); font-size: 15px; line-height: 1.55; max-width: 480px; text-align: right; }

/* ── CTA banner ─────────────────────────────── */
.cta-banner { position: relative; padding: 80px 64px; border: 1px solid rgba(245,122,43,0.3); border-radius: 16px; background: radial-gradient(ellipse at top, rgba(245,122,43,0.18), transparent 60%), var(--soot-2); overflow: hidden; }
.cta-grain { position: absolute; inset: 0; background: repeating-linear-gradient(45deg, transparent 0, transparent 2px, rgba(255,255,255,0.015) 2px, rgba(255,255,255,0.015) 3px); pointer-events: none; }
.cta-inner { position: relative; max-width: 720px; }
.cta-title { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 56px; line-height: 1.05; letter-spacing: -0.03em; margin-top: 16px; }
.cta-sub { color: var(--bone); font-size: 16px; line-height: 1.55; margin-top: 20px; max-width: 580px; }
.cta-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────── */
.foot { max-width: var(--maxw); margin: 0 auto; padding: 64px 32px 32px; border-top: 1px solid var(--carbon); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 16px; }
.foot-brand img { width: 24px; height: 24px; }
.foot-tag { color: var(--smoke); font-size: 13px; margin-top: 14px; line-height: 1.55; max-width: 280px; }
.foot-h { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--smoke); letter-spacing: 0.18em; margin-bottom: 18px; }
.foot-grid > div > a { display: block; color: var(--bone); font-size: 13px; padding: 6px 0; transition: color .15s; }
.foot-grid > div > a:hover { color: var(--paper); }
.foot-bot { padding-top: 24px; border-top: 1px solid var(--carbon); color: var(--smoke); font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.12em; display: flex; justify-content: space-between; }

/* ── Nav hamburger + drawer ─────────────────────────────── */
.nav-hamburger { display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 8px 9px; cursor: pointer; border: 1px solid var(--carbon); border-radius: 6px; background: none; }
.nav-hamburger span { display: block; width: 18px; height: 1.5px; background: var(--bone); border-radius: 1px; transition: all .2s; }
.nav-drawer { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.nav-drawer.open { pointer-events: auto; }
.nav-drawer-bg { position: absolute; inset: 0; background: rgba(0,0,0,0.65); opacity: 0; transition: opacity .22s; }
.nav-drawer.open .nav-drawer-bg { opacity: 1; }
.nav-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 88vw); background: var(--soot); border-left: 1px solid var(--carbon); padding: 20px; display: flex; flex-direction: column; gap: 0; transform: translateX(100%); transition: transform .26s cubic-bezier(0.32,0,0.67,0); }
.nav-drawer.open .nav-drawer-panel { transform: translateX(0); }
.nav-drawer-close { align-self: flex-end; padding: 8px; color: var(--smoke); cursor: pointer; margin-bottom: 12px; background: none; border: 1px solid var(--carbon); border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.nav-drawer-link { display: block; padding: 15px 4px; font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: 17px; color: var(--bone); border-bottom: 1px solid var(--carbon); transition: color .15s; }
.nav-drawer-link:hover { color: var(--paper); }
.nav-drawer-cta { display: flex; align-items: center; justify-content: center; padding: 14px 22px; border-radius: 999px; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 15px; background: var(--flame-500); color: #1a0a00; margin-top: 20px; box-shadow: 0 0 32px var(--flame-glow); }

/* ── Mobile-first responsive — base is 375px ────────────── */

/* Shared mobile base overrides */
.nav { padding: 12px 20px; }
.nav-mid { display: none; }
.nav-right .btn-pill:not(.flame) { display: none; }

.page-hero { padding: 48px 20px 36px; }
.page-hero h1 { font-size: 36px; line-height: 1.05; letter-spacing: -0.03em; }
.page-hero p.lede { font-size: 15px; }

.sec { padding: 56px 20px; }
.sec-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 36px; }
.sec-head-left { flex-direction: column; gap: 8px; }
.sec-title { font-size: 28px; letter-spacing: -0.02em; }
.sec-sub { text-align: left; max-width: 100%; }

.cta-banner { padding: 40px 24px; border-radius: 12px; }
.cta-title { font-size: 32px; }
.cta-sub { font-size: 14px; }
.cta-actions { flex-direction: column; align-items: flex-start; }

.foot { padding: 48px 20px 24px; }
.foot-grid { grid-template-columns: 1fr; gap: 32px; }
.foot-bot { flex-direction: column; gap: 8px; }

.btn-pill { white-space: nowrap; }
.btn-pill.lg { width: 100%; justify-content: center; }

/* ── 480px+ ── */
@media (min-width: 480px) {
  .page-hero h1 { font-size: 44px; }
  .sec-title { font-size: 32px; }
  .cta-title { font-size: 40px; }
  .btn-pill.lg { width: auto; }
}

/* ── 640px (tablet) ── */
@media (min-width: 640px) {
  .nav { padding: 14px 24px; }
  .page-hero { padding: 64px 32px 48px; }
  .page-hero h1 { font-size: 52px; }
  .sec { padding: 72px 32px; }
  .sec-title { font-size: 36px; }
  .cta-banner { padding: 56px 48px; }
  .cta-title { font-size: 48px; }
  .cta-actions { flex-direction: row; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ── 980px (desktop) ── */
@media (min-width: 980px) {
  .nav { padding: 14px 32px; }
  .nav-mid { display: flex; }
  .nav-right .btn-pill { display: inline-flex; }
  .page-hero { padding: 80px 32px 56px; }
  .page-hero h1 { font-size: 80px; }
  .page-hero p.lede { font-size: 17px; }
  .sec { padding: 96px 32px; }
  .sec-head { flex-direction: row; align-items: flex-end; }
  .sec-head-left { flex-direction: row; gap: 20px; align-items: flex-start; }
  .sec-title { font-size: 48px; }
  .sec-sub { text-align: right; max-width: 480px; }
  .cta-banner { padding: 80px 64px; }
  .cta-title { font-size: 56px; }
  .foot { padding: 64px 32px 32px; }
  .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1fr; gap: 32px; }
  .foot-bot { flex-direction: row; }
}
