/* ============================================================
   Averlo — warm editorial light theme
   Tokens verbatim from DESIGN.md (source: averlo.xyz)
   ============================================================ */

:root {
  --bg: #faf9f5;
  --surface: #ffffff;
  --surface-warm: #f4f3ee;
  --surface-soft: #fbfbf9;
  --border: #e6e4dd;
  --border-subtle: #eeece6;
  --text: #191816;
  --text-muted: #6b6861;
  --text-light: #94918a;
  --clay: #d97757;
  --clay-hover: #c46445;
  --clay-soft: #fbf1ed;
  --success: #2b7a4b;

  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', Menlo, monospace;

  --nav-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--clay); color: #fff; }

img { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Scroll progress */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 200;
  pointer-events: none;
}
.progress-bar {
  height: 100%;
  width: 100%;
  background: var(--clay);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------------- Navigation ---------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 245, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-nav.scrolled {
  background: rgba(250, 249, 245, 0.94);
  box-shadow: 0 8px 24px rgba(25, 24, 22, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.2px;
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  transition: transform 0.4s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.15s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s var(--ease), box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-1.5px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--text);
  color: #fff;
  box-shadow: 0 1px 2px rgba(25, 24, 22, 0.18);
}
.btn-primary:hover {
  background: #2e2c29;
  box-shadow: 0 6px 18px rgba(25, 24, 22, 0.16);
}

.btn-clay {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 1px 2px rgba(217, 119, 87, 0.25);
}
.btn-clay:hover {
  background: var(--clay-hover);
  box-shadow: 0 6px 18px rgba(217, 119, 87, 0.28);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--surface-warm);
  border-color: #d6d3c9;
}

.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-block { width: 100%; }

.btn-arrow {
  transition: transform 0.25s var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------------- Hero ---------------- */
.hero {
  padding-top: 96px;
  padding-bottom: 64px;
  text-align: left;
  position: relative;
  overflow-x: clip;
}
/* soft warm glow behind hero — restrained, paper not gradient-soup */
.hero::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(217, 119, 87, 0.07) 0%, rgba(217, 119, 87, 0) 62%);
  pointer-events: none;
  z-index: -1;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--clay);
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 0.2px;
}
.hero-meta .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clay);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(44px, 6.4vw, 68px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 24px;
  max-width: 820px;
}
.hero-title em {
  font-style: italic;
  color: var(--clay);
}

/* word-reveal machinery (JS splits into .w > .wi) */
.hero-title .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.hero-title .wi {
  display: inline-block;
  transform: translateY(112%);
  transition: transform 0.9s var(--ease);
  transition-delay: var(--wd, 0ms);
}
.hero-title.go .wi { transform: translateY(0); }

.hero-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.meta-tags {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12.5px;
  color: var(--text-light);
  font-family: var(--font-mono);
  flex-wrap: wrap;
}
.meta-tags .sep { color: var(--border); }

/* ---------------- Canvas Frame Showcase ---------------- */
.showcase-frame {
  perspective: 1400px;
  margin-bottom: 24px;
}

.canvas-showcase {
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  will-change: transform;
}
.canvas-showcase:hover {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.03);
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: #fdfdfb;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.window-dots { display: flex; gap: 6px; }
.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d8d6ce;
  transition: background 0.2s ease;
}
.canvas-showcase:hover .window-dots span:nth-child(1) { background: #e8a29a; }
.canvas-showcase:hover .window-dots span:nth-child(2) { background: #e8cf9a; }
.canvas-showcase:hover .window-dots span:nth-child(3) { background: #a9cfae; }

.window-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.window-status {
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease-in-out infinite;
}
.status-dot-clay { background: var(--clay); }

.canvas-viewport {
  height: 520px;
  position: relative;
  background-color: #fbfbf8;
  background-image: radial-gradient(#e5e3db 1px, transparent 1px);
  background-size: 24px 24px;
  overflow: hidden;
}

.connection-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.march { animation: march 1.4s linear infinite; }
.march-slow { animation-duration: 2.2s; }
@keyframes march {
  to { stroke-dashoffset: -18; }
}

/* ---------------- Canvas Agent Tiles ---------------- */
.agent-tile {
  position: absolute;
  width: 290px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  font-size: 12px;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s ease;
  will-change: transform;
}
.agent-tile:hover {
  border-color: #cfccc2;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.07);
}

.tile-claude { top: 60px; left: 60px; animation: float-a 7s ease-in-out infinite; }
.tile-codex  { top: 90px; right: 80px; animation: float-b 8.5s ease-in-out infinite; }
.tile-webkit { bottom: 70px; left: 320px; width: 280px; animation: float-c 9.5s ease-in-out infinite; }

@keyframes float-a { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes float-b { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes float-c { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.tile-header {
  padding: 9px 12px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  color: var(--text);
}

.tile-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--clay);
  background: var(--clay-soft);
  padding: 2px 6px;
  border-radius: 4px;
}
.tag-success { color: var(--success); background: #eef7f1; }
.tag-neutral { color: var(--text); background: var(--surface-warm); }

.tile-body {
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #3b3a36;
  line-height: 1.55;
  background: #fff;
}
.tile-body code { color: var(--text-muted); }
.tile-body .highlight { color: var(--clay); font-weight: 500; }
.tile-body .success { color: var(--success); }
.term-status { margin-top: 6px; color: var(--text-muted); }
.term-muted { color: var(--text-light); margin-top: 4px; }

.term-cmd { min-height: 1em; }
.caret {
  display: inline-block;
  width: 6px;
  height: 12px;
  background: var(--clay);
  margin-left: 2px;
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.tile-body-center {
  text-align: center;
  padding: 20px;
}
.preview-url { font-weight: 500; color: var(--text); }
.preview-note {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Voice pill */
.canvas-voice-pill {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  max-width: calc(100% - 40px);
  overflow: hidden;
  animation: float-a 6s ease-in-out infinite;
}
.canvas-voice-pill em { font-style: italic; color: var(--text); }

.waveform {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 14px;
}
.waveform i {
  width: 2.5px;
  height: 100%;
  background: var(--clay);
  border-radius: 2px;
  transform-origin: 50% 50%;
  animation: wave 1.1s ease-in-out infinite;
}
.waveform i:nth-child(2) { animation-delay: 0.15s; }
.waveform i:nth-child(3) { animation-delay: 0.3s; }
.waveform i:nth-child(4) { animation-delay: 0.45s; }
.waveform i:nth-child(5) { animation-delay: 0.6s; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

/* ---------------- Stats strip ---------------- */
.stats-strip {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-top: 72px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 44px;
  padding-bottom: 44px;
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 46px;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.stat-unit {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--clay);
  letter-spacing: 0;
}
.stat-prefix { color: var(--clay); }
.stat-label {
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 200px;
  line-height: 1.5;
}

/* ---------------- Essay Section ---------------- */
.essay-section {
  padding-top: 96px;
  padding-bottom: 96px;
}

.section-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--clay);
  font-weight: 600;
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

.essay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.essay-lead {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.6vw, 38px);
  line-height: 1.22;
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.3px;
}
.essay-lead em { font-style: italic; color: var(--clay); }

.essay-body p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.essay-body p:last-child { margin-bottom: 0; }

/* ---------------- Capabilities ---------------- */
.principles-section {
  padding-top: 96px;
  padding-bottom: 96px;
  border-top: 1px solid var(--border-subtle);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.principle-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.principle-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.45s var(--ease);
}
.principle-card:hover {
  border-color: #cfccc2;
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(25, 24, 22, 0.06);
}
.principle-card:hover::after { transform: scaleX(1); }

.principle-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--clay);
  margin-bottom: 18px;
}

.principle-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
  color: var(--text);
}

.principle-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------------- Pricing ---------------- */
.pricing-section {
  padding-top: 96px;
  padding-bottom: 108px;
  border-top: 1px solid var(--border-subtle);
}

.pricing-header { margin-bottom: 48px; }

.pricing-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.4vw, 44px);
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.pricing-header p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 540px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 860px;
}

.pricing-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.pricing-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(25, 24, 22, 0.07);
}

.pricing-box.featured { border: 1.5px solid var(--text); }

.founder-badge {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.pricing-box h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.pricing-box .subtext {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 28px;
}
.pricing-amount .price {
  font-size: 42px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -1px;
}
.pricing-amount .period {
  font-size: 13px;
  color: var(--text-muted);
}

.pricing-list {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}
.pricing-list li {
  font-size: 13.5px;
  color: #3b3a36;
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.pricing-list li::before {
  content: "—";
  color: var(--clay);
  font-weight: 600;
  flex-shrink: 0;
}

/* ---------------- Final CTA ---------------- */
.final-cta {
  position: relative;
  border-top: 1px solid var(--border-subtle);
  background:
    linear-gradient(180deg, rgba(250, 249, 245, 0.86), rgba(250, 249, 245, 0.94)),
    url("assets/canvas.jpg") center / cover no-repeat;
  overflow: hidden;
}
.final-cta-inner {
  padding-top: 108px;
  padding-bottom: 108px;
  text-align: center;
}
.final-cta h2 {
  font-family: var(--font-serif);
  font-size: clamp(38px, 5.4vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.4px;
  margin-bottom: 18px;
}
.final-cta h2 em { font-style: italic; color: var(--clay); }
.final-cta p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 36px;
}
.final-cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------------- Footer ---------------- */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0;
  font-size: 13px;
  color: var(--text-light);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand .brand-mark { width: 20px; height: 20px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--text); }

/* ---------------- Modal ---------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(25, 24, 22, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.modal-backdrop[hidden] { display: none; }
.modal-backdrop.open { opacity: 1; }

.modal-content {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 100%;
  max-width: 440px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
  position: relative;
  transform: translateY(14px) scale(0.97);
  transition: transform 0.32s var(--ease);
}
.modal-backdrop.open .modal-content { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s ease;
}
.modal-close:hover { color: var(--text); }

.modal-content h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 6px;
}
.modal-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.input-group { margin-bottom: 18px; }
.input-label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.input-field {
  width: 100%;
  background: #faf9f5;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.input-field:focus {
  border-color: var(--text);
  background: #fff;
}

/* ---------------- Toast ---------------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 16px);
  background: var(--text);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(25, 24, 22, 0.22);
  z-index: 1200;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
  pointer-events: none;
  max-width: calc(100vw - 40px);
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------------- Scroll reveals ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease) var(--d, 0ms),
    transform 0.7s var(--ease) var(--d, 0ms);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
}

@media (max-width: 820px) {
  .hero { padding-top: 64px; padding-bottom: 48px; }
  .hero-title { font-size: clamp(38px, 9vw, 44px); }
  .essay-grid { grid-template-columns: 1fr; gap: 32px; }
  .principles-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .nav-links a { display: none; }

  .canvas-viewport { height: auto; padding: 20px; display: grid; gap: 14px; }
  .agent-tile {
    position: static;
    width: 100% !important;
    animation: none;
  }
  .connection-svg { display: none; }
  .canvas-voice-pill {
    position: static;
    transform: none;
    animation: none;
    white-space: normal;
    max-width: 100%;
  }
  .window-status { display: none; }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .stat-num { font-size: 38px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .final-cta-inner { padding-top: 72px; padding-bottom: 72px; }
}

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }

  .reveal { opacity: 1; transform: none; }
  .hero-title .wi { transform: none; }
  .caret { display: none; }
}
