:root {
  --ink: #07100d;
  --ink-2: #0a1511;
  --panel: #0d1a15;
  --panel-2: #11231b;
  --text: #eef8ee;
  --muted: #9eb4a7;
  --muted-2: #6f8578;
  --accent: #b9f36a;
  --accent-2: #6ee7c8;
  --pink: #f0a6c8;
  --orange: #ffb86b;
  --line: rgba(238, 248, 238, 0.12);
  --line-strong: rgba(238, 248, 238, 0.2);
  --radius: 22px;
  --max: 1180px;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Aptos", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --display: "Aptos Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(110, 231, 200, 0.12), transparent 62%),
    radial-gradient(700px 460px at 8% 18%, rgba(185, 243, 106, 0.07), transparent 60%),
    var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(238, 248, 238, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 248, 238, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
  z-index: -1;
}

::selection { background: var(--accent); color: var(--ink); }

a { color: inherit; }

code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--accent);
  background: rgba(185, 243, 106, 0.07);
  border: 1px solid rgba(185, 243, 106, 0.14);
  border-radius: 6px;
  padding: 0.08em 0.34em;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--accent);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  background: linear-gradient(to bottom, rgba(7, 16, 13, 0.94), rgba(7, 16, 13, 0.55) 75%, transparent);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { display: block; border-radius: 9px; }

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 18px;
  font-size: 13.5px;
  color: var(--muted);
}
.nav a {
  text-decoration: none;
  transition: color 0.18s ease;
}
.nav a:hover, .nav a:focus-visible { color: var(--text); }
.nav-github {
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 13px;
  font-weight: 700;
}
.nav-github:hover { border-color: var(--accent); color: var(--accent); }
.lang {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
}

main { display: block; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 54px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  min-height: calc(100vh - 90px);
  padding: 54px 0 78px;
}

.eyebrow, .kicker {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(185, 243, 106, 0.55);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(185, 243, 106, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(185, 243, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(185, 243, 106, 0); }
}

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin: 0;
}
h1 {
  font-size: clamp(3.2rem, 6.7vw, 5.4rem);
  font-weight: 800;
}
h1 em {
  font-style: normal;
  color: var(--accent);
}
h2 {
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  font-weight: 800;
}
h3 { font-size: 1.08rem; letter-spacing: -0.02em; line-height: 1.25; }

.lede {
  max-width: 560px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: var(--ink); }
.button-primary:hover { background: #d0ff8a; }
.button-ghost {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(238, 248, 238, 0.03);
}
.button-ghost:hover { border-color: var(--accent); color: var(--accent); }
.button-small { min-height: 38px; padding: 0 15px; font-size: 12.5px; background: var(--accent); color: var(--ink); white-space: nowrap; }

.trust-line {
  margin: 18px 0 0;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.badges li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}
.badges li::before { content: "✓"; color: var(--accent); margin-right: 6px; }

/* Inbox comparison */
.hero-demo { min-width: 0; }
.setup-grid > *, .why-grid > *, .cta-copy, .cta-terminal { min-width: 0; }
section[id], #start { scroll-margin-top: 84px; }
.demo-top, .demo-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.demo-top { margin-bottom: 10px; }
.demo-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 16, 13, 0.55);
}
.demo-toggle button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 5px 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.demo-toggle button[aria-pressed="true"] { background: var(--accent); color: var(--ink); }
.demo-foot { margin-top: 12px; flex-wrap: wrap; justify-content: flex-start; gap: 16px; letter-spacing: 0.02em; text-transform: none; font-size: 11px; }
.mini-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; }
.mini-dot.green { background: var(--accent); }
.mini-dot.pink { background: var(--pink); }
.mini-dot.orange { background: var(--orange); }

.demo-plan {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 16, 13, 0.55);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
}
.demo-plan-file { color: var(--accent); font-weight: 700; }
.demo-plan-status { margin-left: auto; color: var(--accent); }

.inbox-compare {
  position: relative;
  height: 430px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  isolation: isolate;
}
.inbox {
  position: absolute;
  inset: 0;
  padding: 18px 18px 46px;
  background: var(--panel);
}
.inbox-before { z-index: 1; }
.inbox-after {
  z-index: 2;
  background: linear-gradient(160deg, #0b1a13, #0d2017);
}
.inbox[hidden] { display: none; }
.inbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 13px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}
.inbox-head span:first-child { color: var(--text); font-weight: 800; }

.mail-row {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px 4px;
  border-bottom: 1px solid rgba(238, 248, 238, 0.06);
}
.mail-row b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 600;
}
.mail-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted-2);
  font-size: 10.5px;
}
.mail-time { color: var(--muted-2); font-family: var(--mono); font-size: 9.5px; }
.mail-important { background: rgba(185, 243, 106, 0.055); }
.mail-important b { color: var(--accent); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-pink { background: var(--pink); }
.dot-purple { background: #b9a4ff; }
.dot-orange { background: var(--orange); }
.dot-green { background: var(--accent); }

.folder-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 4px;
  color: var(--muted);
  font-size: 11.5px;
  border-bottom: 1px solid rgba(238, 248, 238, 0.06);
}
.folder-icon { color: var(--accent); font-size: 10px; }
.folder-count { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--muted-2); }
.after-note {
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(185, 243, 106, 0.25);
  border-radius: 10px;
  background: rgba(185, 243, 106, 0.06);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10.5px;
}
.check { color: var(--accent); font-weight: 900; margin-right: 6px; }

/* Marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(238, 248, 238, 0.02);
  padding: 13px 0;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  animation: marquee 32s linear infinite;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
}
.marquee-track span:nth-child(2n) { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 104px 0;
}
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p:not(.kicker) { color: var(--muted); max-width: 620px; margin: 18px 0 0; }
.section-split { border-top: 1px solid var(--line); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(238, 248, 238, 0.045), rgba(238, 248, 238, 0.015));
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -90px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 243, 106, 0.13), transparent 70%);
  pointer-events: none;
}
.card:hover { border-color: rgba(185, 243, 106, 0.34); transform: translateY(-3px); }
.card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 30px;
  border: 1px solid rgba(185, 243, 106, 0.24);
  border-radius: 12px;
  background: rgba(185, 243, 106, 0.07);
  color: var(--accent);
}
.card-icon svg, .safety-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card p { color: var(--muted); margin: 10px 0 0; font-size: 13.5px; }

/* Setup */
.setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: start;
}
.steps { list-style: none; padding: 0; margin: 0; }
.steps li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding-top: 3px;
}
.steps h3 { margin-bottom: 7px; }
.steps p { margin: 0; color: var(--muted); font-size: 13.5px; }

.terminal {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  overflow: hidden;
  background: #060d0a;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(238, 248, 238, 0.035);
}
.terminal-bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); }
.terminal-bar span:first-child { background: #f08c8c; }
.terminal-bar span:nth-child(2) { background: var(--orange); }
.terminal-bar span:nth-child(3) { background: var(--accent); }
.terminal-bar em { margin-left: 8px; color: var(--muted-2); font-family: var(--mono); font-size: 10px; font-style: normal; }
.terminal pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  color: #d7e8d8;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.9;
}
.terminal .prompt { color: var(--accent); margin-right: 8px; }
.terminal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px 16px;
  flex-wrap: wrap;
}
.terminal-actions a { color: var(--muted); font-size: 11.5px; text-decoration: none; }
.terminal-actions a:hover { color: var(--accent); }
.copy-button {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(238, 248, 238, 0.05);
  color: var(--text);
  padding: 7px 13px;
  font-family: var(--mono);
  font-size: 10.5px;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.copy-button:hover { border-color: var(--accent); color: var(--accent); }
.terminal-caption { color: var(--muted-2); font-family: var(--mono); font-size: 10px; }

.agent-note {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  padding: 20px 22px;
  border: 1px solid rgba(110, 231, 200, 0.22);
  border-radius: 16px;
  background: rgba(110, 231, 200, 0.055);
}
.agent-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-2);
  color: var(--ink);
  font-size: 18px;
}
.agent-note p { margin: 0; color: var(--muted); font-size: 13.5px; }
.agent-note b { color: var(--text); }
.agent-note .button { margin-left: auto; }

/* Providers */
.provider-shell {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(238, 248, 238, 0.02);
  overflow: hidden;
}
.provider-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.provider-tabs button {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 8px 13px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.provider-tabs button:hover { color: var(--text); background: rgba(238, 248, 238, 0.05); }
.provider-tabs button[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.provider-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: start;
  padding: 30px;
}
.provider-panel[hidden] { display: none; }
.provider-tag {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.provider-panel h3 { font-size: 1.4rem; }
.provider-panel p { color: var(--muted); max-width: 640px; margin: 10px 0 0; font-size: 13.5px; }
.provider-meta {
  display: grid;
  gap: 9px;
  min-width: 190px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 16, 13, 0.35);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}
.provider-meta span { display: flex; justify-content: space-between; gap: 14px; }
.provider-meta b { color: var(--text); font-weight: 600; }
.provider-foot { color: var(--muted-2); font-size: 12px; margin: 18px 0 0; }
.provider-foot a { color: var(--accent); text-decoration: none; }

/* Safety */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.safety-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(238, 248, 238, 0.025);
}
.safety-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(185, 243, 106, 0.1);
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
}
.safety-card h3 { font-size: 0.98rem; }
.safety-card p { margin: 8px 0 0; color: var(--muted); font-size: 12.8px; }
.safety-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 184, 107, 0.22);
  border-radius: 14px;
  background: rgba(255, 184, 107, 0.05);
}
.safety-note p { margin: 0; color: var(--muted); font-size: 12.8px; }
.safety-note b { color: var(--orange); }
.safety-note a { color: var(--accent); text-decoration: none; }

.security-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.security-strip span::before { content: "✓"; color: var(--accent); margin-right: 6px; }

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 34px;
  align-items: start;
}
.pillar-list { border-bottom: 1px solid var(--line); }
.pillar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.pillar-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(185, 243, 106, 0.24);
  border-radius: 12px;
  background: rgba(185, 243, 106, 0.07);
  color: var(--accent);
  font-size: 18px;
}
.pillar h3 { margin-bottom: 7px; }
.pillar p { margin: 0; color: var(--muted); font-size: 13.5px; }

.compare-card {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(7, 16, 13, 0.35);
}
.compare-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(185, 243, 106, 0.08);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.compare-head span:last-child { color: var(--accent); }
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(238, 248, 238, 0.06);
  font-size: 12.5px;
}
.compare-row span:first-child { color: var(--muted-2); }
.compare-row span:last-child { color: var(--text); }
.compare-row span:last-child::before { content: "✓"; color: var(--accent); margin-right: 7px; font-weight: 900; }
.compare-note { margin: 0; padding: 12px 18px; color: var(--muted-2); font-size: 10.5px; }

.section-link {
  margin: 22px 0 0;
  font-family: var(--mono);
  font-size: 11.5px;
}
.section-link a { color: var(--accent); text-decoration: none; }

.setup-note {
  margin: 22px 0 0;
  padding: 12px 16px;
  border-left: 2px solid var(--accent);
  background: rgba(185, 243, 106, 0.04);
  color: var(--muted);
  font-size: 12.5px;
}
.setup-note b { color: var(--text); }

.cta-note {
  margin: 16px 0 0;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.not-found { min-height: 70vh; display: grid; align-content: center; }
.not-found h1 { font-size: clamp(3rem, 9vw, 7rem); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  border-block: 1px solid var(--line);
}
.stat { padding: 34px 18px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(2rem, 3.3vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--accent);
}
.stat span { display: block; margin-top: 9px; color: var(--muted); font-size: 11.5px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  font-weight: 700;
  font-size: 14.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 17px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 18px;
  transition: transform 0.18s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); font-size: 13.5px; max-width: 780px; }

/* CTA */
.cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto 100px;
  padding: 42px;
  border: 1px solid rgba(185, 243, 106, 0.22);
  border-radius: 28px;
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(185, 243, 106, 0.1), transparent 65%),
    linear-gradient(145deg, rgba(185, 243, 106, 0.055), rgba(238, 248, 238, 0.015));
}
.cta h2 { font-size: clamp(2rem, 3.7vw, 3.5rem); }
.cta p:not(.kicker) { color: var(--muted); max-width: 520px; }

/* Footer */
.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  color: var(--muted-2);
  font-size: 12px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 800; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: flex-end; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-note { grid-column: 1 / -1; color: var(--muted-2); font-family: var(--mono); font-size: 10px; letter-spacing: 0.02em; }

/* Toast */
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  padding: 11px 16px;
  border: 1px solid rgba(185, 243, 106, 0.35);
  border-radius: 999px;
  background: #0b1a13;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* Reveal */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 0.65s ease both; }
}
@keyframes rise {
  from { transform: translateY(14px); }
  to { transform: none; }
}

@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 40px; }
  .hero-demo { max-width: 680px; }
  .card-grid, .safety-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setup-grid, .cta { grid-template-columns: minmax(0, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(4), .stat:nth-child(5) { border-top: 1px solid var(--line); }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .site-header { position: relative; align-items: flex-start; flex-direction: column; gap: 12px; }
  .lang { position: absolute; top: 18px; right: 0; }
  .nav { justify-content: flex-start; font-size: 12.5px; gap: 8px 12px; }
  .hero { padding-bottom: 56px; }
  h1 { font-size: clamp(2.8rem, 13vw, 4.6rem); }
  .inbox-compare { height: 390px; }
  .inbox { padding: 14px 14px 44px; }
  .mail-row { padding: 9px 2px; }
  .demo-plan { font-size: 9.5px; }
  .demo-plan-status { margin-left: 0; }
  .card-grid, .safety-grid { grid-template-columns: 1fr; }
  .compare-row { padding: 11px 14px; font-size: 12px; }
  .security-strip { font-size: 9px; }
  .terminal pre { white-space: pre-wrap; overflow-wrap: anywhere; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(3) { border-top: 1px solid var(--line); }
  .stat:nth-child(4), .stat:nth-child(5) { border-top: 1px solid var(--line); }
  .provider-panel { grid-template-columns: 1fr; padding: 22px; }
  .provider-meta { min-width: 0; }
  .agent-note { align-items: flex-start; flex-wrap: wrap; }
  .agent-note .button { margin-left: 54px; }
  .cta { padding: 28px 22px; margin-bottom: 64px; }
  .terminal pre { font-size: 10.5px; padding: 18px; }
  .section { padding: 76px 0; }
  .site-footer { padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
