:root {
  --bg: #07070a;
  --bg2: #0d0d12;
  --panel: #12121a;
  --line: rgba(255,255,255,.08);
  --text: #f4f4f6;
  --muted: #9a9aa6;
  --accent: #ff1d00;
  --accent2: #ff6a3d;
  --green: #22c55e;
  --amber: #f59e0b;
  --radius: 18px;
  --sans: -apple-system, "SF Pro Text", system-ui, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: .92em; background: rgba(255,255,255,.06); padding: .1em .4em; border-radius: 6px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--accent); padding: 8px 12px; z-index: 99; }

/* nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding: 14px 28px; backdrop-filter: blur(18px) saturate(1.3);
  background: linear-gradient(to bottom, rgba(7,7,10,.85), rgba(7,7,10,.35));
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font: 700 18px var(--display); letter-spacing: -.01em; }
.brand img { display: block; width: 40px; height: 40px; border-radius: 0; }
.links { display: flex; gap: 26px; justify-content: center; font-size: 14px; color: var(--muted); }
.links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.burger { display: none; }

.btn, .ghost {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px;
  padding: 10px 18px; font: 600 14px var(--sans); white-space: nowrap;
  transition: transform .2s, box-shadow .3s, background .2s;
}
.btn { background: var(--accent); color: #fff; box-shadow: 0 0 0 1px rgba(255,29,0,.4), 0 10px 40px rgba(255,29,0,.35); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,29,0,.6), 0 16px 50px rgba(255,29,0,.5); }
.ghost { color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.ghost:hover { background: rgba(255,255,255,.1); color: var(--accent); }
.big { padding: 14px 24px; font-size: 16px; }
.kbd { font: 500 12px var(--mono); background: rgba(0,0,0,.25); padding: 2px 7px; border-radius: 6px; }

/* hero (veil darkness measured 10.0% lower than the original .15/.85/.2 over a white backdrop) */
.hero { position: relative; min-height: 100vh; padding: 150px 24px 40px; overflow: hidden; }
#rain { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 35%, rgba(7,7,10,.1238), rgba(7,7,10,.7013) 80%),
    linear-gradient(to bottom, rgba(7,7,10,.165), var(--bg) 95%);
}
.hero-inner { position: relative; z-index: 2; max-width: 980px; margin: 0 auto; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px var(--mono);
  color: var(--muted); border: 1px solid var(--line); background: rgba(13,13,18,.6);
  padding: 6px 14px; border-radius: 999px; backdrop-filter: blur(8px);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
h1 {
  font: 800 clamp(40px, 7vw, 88px)/1.02 var(--display); letter-spacing: -.035em;
  margin: 26px 0 20px; text-shadow: 0 2px 40px rgba(0,0,0,.6);
}
.lede { font-size: clamp(16px, 1.6vw, 20px); color: #d3d3da; max-width: 720px; margin: 0 auto 30px; text-shadow: 0 1px 20px rgba(0,0,0,.8); }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.proof { list-style: none; padding: 0; margin: 34px auto 0; display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.proof b { color: var(--text); font: 700 16px var(--display); margin-right: 6px; }
.hero-shot { position: relative; z-index: 2; max-width: 1180px; margin: 70px auto 0; perspective: 1600px; }
.shot-frame {
  border-radius: var(--radius); border: 1px solid rgba(255,255,255,.12); background: var(--bg2);
  box-shadow: 0 40px 120px rgba(0,0,0,.8), 0 0 0 1px rgba(255,29,0,.08), 0 0 120px rgba(255,29,0,.15);
  transform: rotateX(8deg); transform-origin: top; transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
  overflow: hidden;
}
.hero-shot.in .shot-frame { transform: rotateX(0deg); }
.shot-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #16161e; }
.shot-bar span { width: 11px; height: 11px; border-radius: 50%; background: #3a3a46; }
.shot-bar span:nth-child(1) { background: #ff5f57; } .shot-bar span:nth-child(2) { background: #febc2e; } .shot-bar span:nth-child(3) { background: #28c840; }
.shot-bar em { margin-left: 10px; font: 500 12px var(--mono); color: var(--muted); font-style: normal; }

/* sections */
.section { position: relative; max-width: 1180px; margin: 0 auto; padding: 120px 24px; }
.h2 { font: 800 clamp(32px, 4.6vw, 56px)/1.05 var(--display); letter-spacing: -.03em; margin: 0 0 14px; }
.accent { color: var(--accent); }
.sub { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 0 40px; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 24px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); width: fit-content; }
.tabs button {
  border: 0; background: transparent; color: var(--muted); font: 600 14px var(--sans);
  padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: all .25s;
}
.tabs button[aria-selected="true"] { background: #fff; color: #000; }
.tabs button:hover { color: var(--accent); }
.tabpane { display: none; grid-template-columns: 1fr 1.25fr; gap: 36px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel), var(--bg2)); padding: 36px; }
.tabpane.is-on { display: grid; animation: fadeUp .5s both; }
.tabpane h3 { font: 700 28px/1.15 var(--display); letter-spacing: -.02em; margin: 0 0 12px; }
.tabpane p { color: #c9c9d2; }
.tabpane ul { color: var(--muted); padding-left: 18px; }
.tabpane li { margin: 6px 0; }
.tp-shot { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.tp-shot.code { background: #0a0a0f; padding: 22px; }
.tp-shot pre { margin: 0; font: 13.5px/1.6 var(--mono); color: #c7f9cc; white-space: pre-wrap; }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  background: radial-gradient(120% 120% at 0% 0%, rgba(255,29,0,.12), transparent 50%), var(--panel);
  transition: transform .4s, border-color .3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,29,0,.35); }
.card h3 { font: 700 19px var(--display); margin: 0 0 8px; letter-spacing: -.01em; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.span2 { grid-column: span 2; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.agent-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.agent-grid li { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 14px 16px; font-weight: 600; }
.agent-grid i { font-style: normal; color: var(--accent); width: 22px; text-align: center; }

.video-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 120px rgba(0,0,0,.8), 0 0 120px rgba(255,29,0,.12); background: #000; }
.video-frame video { width: 100%; aspect-ratio: 16/9; }

.table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.tr { display: grid; grid-template-columns: 1.2fr 1fr 1fr; padding: 16px 22px; border-top: 1px solid var(--line); }
.tr.th { border-top: 0; background: var(--bg2); color: var(--muted); font-weight: 600; }
.tr.th span:nth-child(2) { color: var(--accent); }
.ok { color: var(--green); } .part { color: var(--amber); } .no { color: var(--muted); }

.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font: 600 18px var(--display); list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 10px 0 0; }

.cta-card {
  text-align: center; border: 1px solid rgba(255,29,0,.3); border-radius: 28px; padding: 64px 32px;
  background: radial-gradient(60% 80% at 50% 0%, rgba(255,29,0,.25), transparent 70%), var(--panel);
  box-shadow: 0 0 160px rgba(255,29,0,.15);
}
.cta-card img { margin: 0 auto 18px; border-radius: 18px; }
.cta-card .sub { margin: 0 auto 28px; }
.install { display: flex; align-items: center; gap: 10px; max-width: 100%; margin: 24px auto 0; width: fit-content; padding: 8px 8px 8px 16px; border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 12px; background: rgba(255,255,255,.03); }
.install code { background: none; padding: 0; margin: 0; line-height: 1.4; font: 500 13px var(--mono); color: var(--text, #eee); white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.install code::before { content: "$ "; color: var(--muted); }
.install-copy { flex: none; margin: 0; font: 600 12px var(--mono); padding: 7px 12px; border-radius: 8px; border: 0; cursor: pointer; background: #FF1D00; color: #fff; }
.install-copy:active { transform: scale(.97); }

.footer { max-width: 1180px; margin: 0 auto; padding: 40px 24px 60px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.fcol a { display: block; margin: 6px 0; }
.fcol h4 { margin: 0 0 8px; color: var(--text); }
.copy { grid-column: 1 / -1; margin: 20px 0 0; font-size: 12.5px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .shot-frame { transform: none; } }

@media (max-width: 900px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .links { display: none; }
  .links.open { display: flex; position: fixed; inset: 60px 0 auto 0; flex-direction: column; background: rgba(7,7,10,.96); padding: 20px 28px; gap: 18px; font-size: 18px; }
  .nav-cta .ghost { display: none; }
  .burger { display: grid; gap: 5px; background: none; border: 0; padding: 6px; }
  .burger span { width: 22px; height: 2px; background: #fff; }
  .tabpane, .split { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .span2 { grid-column: span 2; }
  .footer { grid-template-columns: 1fr 1fr; }
  .section { padding: 80px 16px; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; } .span2 { grid-column: auto; }
  .tr { grid-template-columns: 1fr; gap: 4px; }
  .agent-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
}

img { height: auto; }
.shot-frame img { width: 100%; }

/* ---------- day / night switch ---------- */
.theme-switch {
  position: relative; flex: none; width: 54px; height: 30px; padding: 0; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255,255,255,.06); transition: background .25s, border-color .25s;
}
.theme-switch .knob {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: #1d1d26; color: #f4f4f6;
  box-shadow: 0 1px 3px rgba(0,0,0,.4); transition: transform .25s cubic-bezier(.2,.7,.2,1), background .25s, color .25s;
}
.theme-switch svg { width: 13px; height: 13px; }
.theme-switch .moon { display: none; }
[data-theme="light"] .theme-switch .moon { display: block; }
[data-theme="light"] .theme-switch .sun { display: none; }
[data-theme="light"] .theme-switch .knob { transform: translateX(24px); background: var(--accent); color: #fff; }
.theme-switch:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
@media (prefers-reduced-motion: reduce) { .theme-switch .knob { transition: none; } }

/* ---------- day theme (reference: light gray dotted page, #FAFAFA cards, #DE5A35 pill) ---------- */
[data-theme="light"] {
  --bg: #e3e3e3;
  --bg2: #f2f2f2;
  --panel: #fafafa;
  --line: rgba(14,14,14,.09);
  --text: #0e0e0e;
  --muted: #5c5c63;
  --accent: #ff1d00;
  --accent2: #c41500;
  color-scheme: light;
}
[data-theme="light"] body {
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15'%3E%3Ccircle cx='12.5' cy='12.5' r='0.8' fill='%23d1d1d1'/%3E%3C/svg%3E");
  background-size: 15px 15px;
}
[data-theme="light"] code { background: rgba(14,14,14,.06); }
[data-theme="light"] .nav { background: linear-gradient(to bottom, rgba(227,227,227,.92), rgba(227,227,227,.55)); }
[data-theme="light"] .nav.scrolled { background: rgba(227,227,227,.92); }
[data-theme="light"] .theme-switch { background: #fafafa; border-color: rgba(14,14,14,.12); }
[data-theme="light"] .btn { color: #fff; box-shadow: 0 0 0 1px rgba(255,29,0,.4), 0 10px 30px rgba(255,29,0,.28); }
[data-theme="light"] .btn:hover { box-shadow: 0 0 0 1px rgba(255,29,0,.6), 0 14px 40px rgba(255,29,0,.38); }
[data-theme="light"] .ghost { background: #fafafa; color: var(--accent); border: 1.5px solid var(--accent); }
[data-theme="light"] .ghost:hover { background: #fff; }
[data-theme="light"] .kbd { background: rgba(255,255,255,.22); }
[data-theme="light"] .hero { background: #ff1d00; }
/* day: no dimmer over the red hero; the white rain keeps the dark theme's full trail fade (hero.js) */
[data-theme="light"] .hero-veil { display: none; }
/* 49% of the dark theme's dimmer, rain only (1 - .49 x the dark veil's alpha); the center behind the headline is left undimmed */
[data-theme="light"] #rain {
  -webkit-mask-image: radial-gradient(60% 50% at 50% 35%, #000, rgb(0 0 0 / .6564) 80%), linear-gradient(to bottom, rgb(0 0 0 / .9192), rgb(0 0 0 / .51) 95%);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(60% 50% at 50% 35%, #000, rgb(0 0 0 / .6564) 80%), linear-gradient(to bottom, rgb(0 0 0 / .9192), rgb(0 0 0 / .51) 95%);
  mask-composite: intersect;
}
[data-theme="light"] .hero h1, [data-theme="light"] .hero .lede { color: #0e0e0e; text-shadow: none; }
[data-theme="light"] .hero .btn { background: #fafafa; color: var(--accent); box-shadow: 0 10px 30px rgba(14,14,14,.18); }
[data-theme="light"] h1 { text-shadow: 0 2px 30px rgba(227,227,227,.9); }
[data-theme="light"] .lede { color: #2b2b30; text-shadow: 0 1px 16px rgba(227,227,227,.95); }
[data-theme="light"] .shot-frame { border-color: rgba(14,14,14,.12); box-shadow: 0 30px 80px rgba(14,14,14,.22), 0 0 0 1px rgba(255,29,0,.08); }
[data-theme="light"] .tabs { background: #fafafa; border: 0; border-radius: 999px; padding: 8px; gap: 10px; box-shadow: none; }
[data-theme="light"] .tabs button { color: #0e0e0e; font: 400 13px/15.5px var(--sans); border-radius: 999px; padding: 8px 16px; }
[data-theme="light"] .tabs button[aria-selected="true"] { background: var(--accent); color: #fafafa; }
[data-theme="light"] .tabs button:hover { color: var(--accent); }
[data-theme="light"] .tabs button[aria-selected="true"]:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--accent); }
[data-theme="light"] .tabpane { background: #fafafa; border-color: rgba(14,14,14,.08); }
[data-theme="light"] .tabpane p { color: #33333a; }
[data-theme="light"] .tp-shot { box-shadow: 0 20px 50px rgba(14,14,14,.18); }
[data-theme="light"] .card { background: #fafafa; }
[data-theme="light"] .card:hover { border-color: rgba(255,29,0,.45); }
[data-theme="light"] .video-frame { box-shadow: 0 30px 80px rgba(14,14,14,.22); }
[data-theme="light"] .cta-card { background: radial-gradient(60% 80% at 50% 0%, rgba(255,29,0,.16), transparent 70%), #fafafa; border-color: rgba(255,29,0,.3); box-shadow: 0 20px 60px rgba(14,14,14,.08); }
[data-theme="light"] .install { background: #fff; border-color: rgba(14,14,14,.1); }
[data-theme="light"] .install-copy { background: var(--accent); }
[data-theme="light"] .burger span { background: #0e0e0e; }
@media (max-width: 900px) { [data-theme="light"] .links.open { background: rgba(227,227,227,.97); } }

/* focus rings use the accent everywhere (replaces the browser default blue) */
a:focus-visible, button:focus-visible, [role="tab"]:focus-visible, summary:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.dl-more { margin: 18px auto 0; font-size: 14px; }
.dl-more a { color: var(--accent); }
.install[hidden] { display: none; }
/* day: headline in accent red with a 4px white outline; paint-order draws the 8px stroke under the fill so 4px shows outside each glyph */
[data-theme="light"] .hero h1 { color: var(--accent); text-shadow: none; -webkit-text-stroke: 8px #fff; paint-order: stroke fill; }
/* day: lede in bold white on the red hero */
[data-theme="light"] .hero .lede { color: #fff; font-weight: 700; text-shadow: 0 1px 2px rgb(90 8 0 / .55), 0 0 14px rgb(90 8 0 / .35); }
/* hero lede at 1.12x its original size (16-20px -> 17.92-22.4px) */
.hero .lede { font-size: clamp(17.92px, 1.792vw, 22.4px); }
[data-theme="light"] .hero .lede { font-weight: 400; }
