/* ═══════════════════════════════════════
   AnchorDesk — Custom Theme
   ═══════════════════════════════════════ */

/* Color tokens */
:root {
  --bg:         #0F1520;
  --surface:    #1A2336;
  --surface-2:  #222D44;
  --border:     rgba(255,255,255,0.07);
  --amber:      #E6A23C;
  --amber-dim:  rgba(230,162,60,0.15);
  --teal:       #4DD4C8;
  --teal-dim:   rgba(77,212,200,0.12);
  --text:       #E4E8EF;
  --text-dim:   #7A8499;
  --text-muted: #4A5368;
  --font-head:  'Syne', sans-serif;
  --font-body:  'DM Sans', sans-serif;
  --radius:     10px;
  --max-w:      1120px;
  --section-pad: 96px;
}

/* ── Reset & Base ─────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* ── Text selection ─────────────────── */
::selection { background: var(--amber); color: var(--bg); }

/* ── Custom scrollbar ────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ══════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: rgba(15,21,32,0.8);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 24px 80px;
  position: relative;
  overflow: hidden;
}

/* ambient glow */
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(230,162,60,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(77,212,200,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 28px;
}
.hero-headline em {
  font-style: normal;
  color: var(--amber);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 36px;
}

.hero-agents {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.agent-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--teal-dim);
  border: 1px solid rgba(77,212,200,0.2);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--teal);
}

/* Hero Visual — Anchor Orb + Agent Cards */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.anchor-orb {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.anchor-orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--amber);
  opacity: 0.25;
  animation: ring-pulse 4s ease-in-out infinite;
}
.anchor-orb-ring-1 { width: 180px; height: 180px; animation-delay: 0s; }
.anchor-orb-ring-2 { width: 140px; height: 140px; opacity: 0.4; animation-delay: 0.6s; }
.anchor-orb-ring-3 { width: 100px; height: 100px; opacity: 0.6; animation-delay: 1.2s; }

@keyframes ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.25; }
  50% { transform: scale(1.08); opacity: 0.5; }
}

.anchor-orb-core {
  width: 80px;
  height: 80px;
  background: var(--surface);
  border: 1px solid rgba(230,162,60,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(230,162,60,0.2), inset 0 0 20px rgba(230,162,60,0.05);
  position: relative;
  z-index: 1;
}

.agent-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 340px;
}

.agent-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}
.agent-card-active {
  border-color: rgba(230,162,60,0.3);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(230,162,60,0.05) 100%);
}

.agent-card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--amber);
  animation: dot-blink 2s ease-in-out infinite;
}
.agent-card-dot-teal { background: var(--teal); box-shadow: 0 0 8px var(--teal); animation-delay: 0.4s; }
.agent-card-dot-amber { background: var(--amber); animation-delay: 0.8s; }

@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.agent-card-body {
  flex: 1;
}
.agent-card-name {
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-head);
  color: var(--text);
}
.agent-card-status {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 1px;
}
.agent-card-spike {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--teal);
  padding: 4px 10px;
  background: var(--teal-dim);
  border-radius: 20px;
}
.spike-delta { font-size: 0.6rem; }

/* Hero Stats Row */
.hero-stats {
  max-width: var(--max-w);
  margin: 72px auto 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.stat {
  flex: 1;
  text-align: center;
  padding: 0 16px;
}
.stat-value {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--amber);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 4px;
}
.stat-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   SECTIONS — Shared
   ══════════════════════════════════════ */
section { padding: var(--section-pad) 24px; }

.section-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 64px;
}
.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
  padding: 4px 12px;
  border: 1px solid rgba(230,162,60,0.25);
  border-radius: 20px;
}
.section-header h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ══════════════════════════════════════
   AUTOMATIONS GRID
   ══════════════════════════════════════ */
.automations {
  background: var(--surface);
}
.auto-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.auto-card {
  padding: 28px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.25s ease;
}
.auto-card:hover {
  border-color: rgba(230,162,60,0.25);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}
.auto-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.auto-card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 10px;
}
.auto-card p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ══════════════════════════════════════
   WHO IT'S FOR
   ══════════════════════════════════════ */
.whoisitfor {
  background: var(--bg);
}
.who-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.who-left h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  margin-top: 16px;
  margin-bottom: 20px;
}
.who-sub {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 40px;
}
.who-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.who-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.who-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
  margin-top: 8px;
}
.who-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.who-item p {
  font-size: 0.83rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Loss Counter */
.loss-counter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
}
.loss-header {
  margin-bottom: 20px;
}
.loss-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.loss-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.loss-bar-wrap {
  display: grid;
  grid-template-columns: 180px 1fr 32px;
  align-items: center;
  gap: 12px;
}
.loss-bar-label {
  font-size: 0.78rem;
  color: var(--text-dim);
}
.loss-bar {
  height: 6px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
}
.loss-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--amber) 0%, rgba(230,162,60,0.5) 100%);
  transition: width 1s ease;
}
.loss-bar-fill-amber { background: linear-gradient(90deg, var(--amber) 0%, rgba(230,162,60,0.5) 100%); }
.loss-bar-fill-teal { background: linear-gradient(90deg, var(--teal) 0%, rgba(77,212,200,0.4) 100%); }
.loss-bar-val {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
  text-align: right;
}
.loss-total {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.loss-total-label {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.loss-total-value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  color: #FF6B6B;
}

.who-cta-box {
  padding: 20px 24px;
  background: var(--amber-dim);
  border: 1px solid rgba(230,162,60,0.2);
  border-radius: 12px;
}
.who-cta-box p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.who-cta-box strong {
  color: var(--text);
}

/* ══════════════════════════════════════
   PRICING
   ══════════════════════════════════════ */
.pricing {
  background: var(--surface);
}
.pricing-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pricing-card {
  padding: 32px 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
}
.pricing-card-featured {
  border-color: rgba(230,162,60,0.4);
  background: linear-gradient(180deg, rgba(230,162,60,0.06) 0%, var(--bg) 100%);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--amber);
  padding: 3px 14px;
  border-radius: 20px;
}
.pricing-tier {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.pricing-price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.pricing-period {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-dim);
}
.pricing-monthly {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.pricing-mlabel {
  font-size: 0.78rem;
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex: 1;
}
.pricing-features li {
  font-size: 0.85rem;
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
}
.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.7;
}
.pricing-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.pricing-proof {
  max-width: 380px;
  margin: 48px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px 32px;
  background: var(--amber-dim);
  border: 1px solid rgba(230,162,60,0.2);
  border-radius: 12px;
}
.proof-stat { text-align: center; }
.proof-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  color: var(--text);
}
.proof-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 2px;
}
.proof-equals {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dim);
}
.proof-result {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  color: var(--amber);
}
.proof-mo {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ══════════════════════════════════════
   CLOSING
   ══════════════════════════════════════ */
.closing {
  background: var(--bg);
  text-align: center;
}
.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}
.closing-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 28px;
}
.closing-headline {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 28px;
}
.closing-headline em {
  font-style: normal;
  color: var(--amber);
}
.closing-body {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 20px;
}
.closing-proof {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.cp-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
}

/* ══════════════════════════════════════
   DEMO WIDGET
   ══════════════════════════════════════ */
.demo-section {
  background: var(--bg);
  padding: var(--section-pad) 24px;
}
.demo-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.demo-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.demo-headline {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 14px;
  margin-top: 12px;
}
.demo-sub {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 28px;
}
.demo-toggles {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.demo-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.demo-toggle:hover {
  border-color: rgba(230,162,60,0.3);
  color: var(--text);
}
.demo-toggle-active {
  border-color: var(--amber);
  background: var(--amber-dim);
  color: var(--amber);
}

/* ── Chat Layout ────────────────────── */
.demo-chat-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

/* ── Context Panel ─────────────────── */
.demo-context {
  position: sticky;
  top: 72px;
}
.demo-context-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
}
.demo-context-hidden { display: none; }

.demo-context-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  line-height: 1;
}
.demo-context-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 4px;
}
.demo-context-role {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.demo-context-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.demo-context-badge-live {
  background: rgba(77,212,200,0.12);
  border: 1px solid rgba(77,212,200,0.25);
  color: var(--teal);
}
.demo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: dot-blink 2s ease-in-out infinite;
  flex-shrink: 0;
}
.demo-dot-green { background: #4CAF50; }

.demo-hints-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.demo-hint-chip {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 12px;
  margin-bottom: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s ease;
}
.demo-hint-chip:last-child { margin-bottom: 0; }
.demo-hint-chip:hover {
  border-color: rgba(230,162,60,0.3);
  color: var(--text);
  background: var(--surface-2);
}

/* ── Chat Window ───────────────────── */
.demo-chat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 480px;
  max-height: 600px;
}
.demo-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}
.demo-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--teal);
  background: linear-gradient(135deg, rgba(77,212,200,0.2), rgba(77,212,200,0.05));
  border: 1px solid rgba(77,212,200,0.25);
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.demo-chat-agent-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}
.demo-chat-agent-status {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

/* ── Messages ──────────────────────── */
.demo-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}
.demo-messages::-webkit-scrollbar { width: 4px; }
.demo-messages::-webkit-scrollbar-track { background: transparent; }
.demo-messages::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 2px; }

.demo-message {
  display: flex;
  max-width: 80%;
}
.demo-message-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.demo-message-assistant {
  align-self: flex-start;
}
.demo-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.6;
  white-space: pre-wrap;
}
.demo-message-assistant .demo-bubble {
  background: var(--surface-2);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.demo-message-user .demo-bubble {
  background: var(--amber-dim);
  border: 1px solid rgba(230,162,60,0.2);
  color: var(--text);
  border-bottom-right-radius: 4px;
}

/* Typing indicator */
.demo-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 16px;
}
.demo-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing-bounce 1.2s ease-in-out infinite;
}
.demo-typing span:nth-child(2) { animation-delay: 0.15s; }
.demo-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-6px); opacity: 1; }
}

/* Lead capture banner */
.demo-lead-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(77,212,200,0.08);
  border-top: 1px solid rgba(77,212,200,0.2);
  font-size: 0.8rem;
  color: var(--teal);
  font-weight: 500;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.demo-lead-banner-hidden {
  display: none;
}

/* ── Input Row ──────────────────────── */
.demo-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}
.demo-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease;
}
.demo-input:focus {
  border-color: rgba(230,162,60,0.4);
}
.demo-input::placeholder {
  color: var(--text-muted);
}
.demo-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--amber);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.demo-send:hover { background: #d4912c; transform: scale(1.05); }
.demo-send:disabled { cursor: not-allowed; transform: none; }

.demo-disclaimer {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 8px 16px;
  background: var(--bg);
  flex-shrink: 0;
}

/* ── Responsive ────────────────────── */
@media (max-width: 900px) {
  .demo-chat-wrap {
    grid-template-columns: 1fr;
  }
  .demo-context {
    position: static;
  }
  .demo-context-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 16px;
  }
  .demo-context-icon { font-size: 1.5rem; margin-bottom: 0; }
  .demo-context-hints { width: 100%; }
  .demo-hints-label { display: none; }
  .demo-hint-chip {
    display: inline-block;
    width: auto;
    margin-right: 6px;
    margin-bottom: 0;
  }
  .demo-chat { max-height: 500px; }
}

@media (max-width: 600px) {
  .demo-chat { min-height: 400px; max-height: 420px; }
  .demo-message { max-width: 90%; }
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dim);
}
.footer-brand p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.footer-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 900px) {
  :root { --section-pad: 64px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual { display: none; }

  .auto-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .who-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  :root { --section-pad: 48px; }

  .hero {
    padding-top: 72px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .stat-sep { display: none; }

  .auto-grid {
    grid-template-columns: 1fr;
  }

  .closing-proof {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .nav-tagline { display: none; }

  .loss-bar-wrap {
    grid-template-columns: 120px 1fr 28px;
  }
}

@media (max-width: 375px) {
  .hero-headline { font-size: 2rem; }
  .stat-value { font-size: 1.4rem; }
  .pricing-price { font-size: 2rem; }
}