/* ============================================================
   Clavora — main.css
   Global design system, layout primitives, reusable components.
   Brand: green primary (#00ff88), dark theme, sharp/technical.
   ============================================================ */

:root {
  /* Palette */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --bg-elevated: #1f1f1f;
  --accent-primary: #00ff88;
  --accent-secondary: #0088ff;
  --accent-purple: #8b5cf6;
  --accent-pink: #ff3d8b;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #606060;
  --border: #222222;
  --border-hover: #333333;
  --success: #00ff88;
  --danger: #ff4757;

  /* Type */
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Sizing */
  --max-w: 1200px;
  --max-w-narrow: 920px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  /* Motion */
  --tx: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --tx-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Effects */
  --shadow-glow-green: 0 0 40px rgba(0, 255, 136, 0.25);
  --shadow-glow-green-strong: 0 0 60px rgba(0, 255, 136, 0.5);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   Reset + base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-primary); text-decoration: none; transition: color var(--tx); }
a:hover { color: #66ffb3; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; }
::selection { background: var(--accent-primary); color: var(--bg-primary); }

/* ============================================================
   Type scale
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
h1 { font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.625rem); }
h4 { font-size: 1.125rem; }
p { color: var(--text-secondary); }
.mono { font-family: var(--font-mono); }
.muted { color: var(--text-muted); }
.lead { font-size: 1.125rem; color: var(--text-secondary); max-width: 64ch; }

/* ============================================================
   Layout primitives
   ============================================================ */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-narrow { width: 100%; max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-sm { padding: clamp(40px, 6vw, 72px) 0; }
.section-divider { border-top: 1px solid var(--border); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.text-center { text-align: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   Accents and chips
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-primary);
  padding: 6px 12px;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 100px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-primary);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  padding: 5px 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.chip-success { color: var(--accent-primary); border-color: rgba(0, 255, 136, 0.3); background: rgba(0, 255, 136, 0.06); }
.chip-popular {
  position: absolute; top: -12px; right: 20px;
  background: var(--accent-primary); color: var(--bg-primary);
  padding: 4px 12px; border-radius: 100px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  padding: 13px 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--tx);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-primary);
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow-green);
}
.btn-primary:hover {
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-green-strong);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 14px;
}
.btn-ghost:hover { color: var(--accent-primary); }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn svg, .btn .arrow { transition: transform var(--tx); }
.btn:hover svg, .btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   Card
   ============================================================ */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--tx);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, transparent, transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--tx);
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.card:hover::before {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.3), transparent 50%);
  opacity: 1;
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 18px; font-size: 0.95rem; }
.card-link {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent-primary);
  display: inline-flex; gap: 6px; align-items: center;
}
.card-link::after { content: '→'; transition: transform var(--tx); }
.card:hover .card-link::after { transform: translateX(4px); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(120px, 16vw, 180px) 0 clamp(64px, 8vw, 100px);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 60% 50% at 30% 20%, rgba(0, 255, 136, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(0, 136, 255, 0.10), transparent 50%);
  filter: blur(40px);
  z-index: -1;
  animation: meshDrift 20s ease-in-out infinite alternate;
}
@keyframes meshDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, -20px); }
}
.hero h1 { margin-bottom: 24px; max-width: 18ch; }
.hero h1 .accent { color: var(--accent-primary); }
.hero .lead { margin-bottom: 36px; font-size: 1.2rem; max-width: 56ch; }
.hero-ctas { display: flex; gap: 14px; margin-bottom: 56px; flex-wrap: wrap; }

/* Stats bar */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  padding: 28px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  font-weight: 600;
  color: var(--accent-primary);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.825rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

/* ============================================================
   Marquee strip (animated badges / logos)
   ============================================================ */
.marquee {
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 36px;
  animation: marquee 40s linear infinite;
}
.marquee-item {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.marquee-item::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   Pricing table + cards
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 48px;
}
.pricing-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  position: relative;
  transition: all var(--tx);
}
.pricing-card.featured {
  border-color: var(--accent-primary);
  background: linear-gradient(180deg, rgba(0, 255, 136, 0.04), var(--bg-secondary));
  box-shadow: var(--shadow-glow-green);
}
.pricing-card:hover { transform: translateY(-4px); border-color: var(--border-hover); }
.pricing-card.featured:hover { border-color: var(--accent-primary); }
.pricing-tier { font-family: var(--font-mono); font-size: 0.875rem; color: var(--accent-primary); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.pricing-price { font-family: var(--font-mono); font-size: 2.25rem; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; line-height: 1.1; }
.pricing-price-period { font-size: 0.9rem; color: var(--text-muted); }
.pricing-desc { color: var(--text-secondary); margin: 16px 0 22px; font-size: 0.9rem; }
.pricing-features { list-style: none; margin: 0 0 28px; }
.pricing-features li { padding: 7px 0; font-size: 0.9rem; color: var(--text-secondary); border-bottom: 1px solid var(--border); display: flex; gap: 10px; }
.pricing-features li::before { content: '✓'; color: var(--accent-primary); font-weight: 700; }
.pricing-features li:last-child { border-bottom: none; }
.pricing-card .btn { width: 100%; justify-content: center; }

/* Comparison table */
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin-top: 32px;
}
.compare th, .compare td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare th {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 500;
  background: var(--bg-secondary);
  position: sticky; top: 70px;
}
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare tr:hover td { background: rgba(0, 255, 136, 0.02); }
.compare .yes { color: var(--accent-primary); font-weight: 700; }
.compare .no { color: var(--text-muted); }
.compare .featured-col { color: var(--accent-primary); }

/* ============================================================
   Steps / How it works
   ============================================================ */
.steps { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.step {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: var(--accent-primary);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.step h3 { margin-bottom: 12px; }
.step p { font-size: 0.95rem; }

/* ============================================================
   Pain points list
   ============================================================ */
.pain-list { list-style: none; max-width: 60ch; margin: 0 auto; }
.pain-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1.05rem;
  display: flex; gap: 14px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity var(--tx-slow), transform var(--tx-slow);
}
.pain-list li.visible { opacity: 1; transform: translateX(0); }
.pain-list li::before { content: '✕'; color: var(--danger); font-weight: 700; flex-shrink: 0; }
.pain-conclusion { text-align: center; margin-top: 40px; font-size: 1.25rem; color: var(--text-primary); font-weight: 600; }
.pain-conclusion .accent { color: var(--accent-primary); }

/* ============================================================
   Cost comparison (AI Agent pitch)
   ============================================================ */
.cost-compare { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cost-col {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.cost-col.bad { border-color: rgba(255, 71, 87, 0.3); }
.cost-col.good { border-color: rgba(0, 255, 136, 0.3); }
.cost-col h3 { margin-bottom: 20px; font-size: 1.125rem; }
.cost-col.bad h3 { color: var(--danger); }
.cost-col.good h3 { color: var(--accent-primary); }
.cost-row {
  display: flex; justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
.cost-row span:first-child { color: var(--text-secondary); }
.cost-row span:last-child { color: var(--text-primary); font-weight: 500; }
.cost-note { font-size: 0.9rem; color: var(--text-muted); margin-top: 20px; font-style: italic; }

/* ============================================================
   Industry grid
   ============================================================ */
.industries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.industry {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  transition: all var(--tx);
}
.industry:hover { border-color: var(--accent-primary); transform: translateY(-2px); }
.industry-icon { font-size: 1.75rem; margin-bottom: 10px; display: block; }
.industry-label { font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; }

/* ============================================================
   Final CTA
   ============================================================ */
.final-cta {
  text-align: center;
  padding: clamp(80px, 12vw, 140px) 24px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0, 255, 136, 0.10), transparent 60%),
    var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.final-cta h2 { margin-bottom: 18px; }
.final-cta p { max-width: 56ch; margin: 0 auto 32px; font-size: 1.1rem; }
.final-cta-note { font-family: var(--font-mono); font-size: 0.825rem; color: var(--text-muted); margin-top: 20px; }

/* ============================================================
   Form
   ============================================================ */
.form { display: grid; gap: 16px; max-width: 580px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row.single { grid-template-columns: 1fr; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color var(--tx);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.15);
}
.field textarea { min-height: 110px; resize: vertical; }
.field-check { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 6px 0; }
.field-check input { width: 18px; height: 18px; accent-color: var(--accent-primary); }
.field-check span { color: var(--text-secondary); font-size: 0.95rem; }
.form-grid-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 18px; }

/* ============================================================
   ROI calculator
   ============================================================ */
.roi-layout { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (max-width: 880px) { .roi-layout { grid-template-columns: 1fr; } }
.roi-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.roi-panel.results { background: linear-gradient(180deg, rgba(0, 255, 136, 0.03), var(--bg-secondary)); }
.roi-field { margin-bottom: 28px; }
.roi-field label { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.825rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 12px; }
.roi-field label .value { color: var(--accent-primary); font-weight: 600; font-size: 0.95rem; letter-spacing: 0; text-transform: none; }
.roi-field input[type=range] {
  -webkit-appearance: none;
  width: 100%; height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  outline: none;
}
.roi-field input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px;
  background: var(--accent-primary);
  border-radius: 50%; cursor: pointer;
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.5);
  transition: transform var(--tx);
}
.roi-field input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.roi-field input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px;
  background: var(--accent-primary);
  border-radius: 50%; cursor: pointer; border: 0;
}
.roi-line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-family: var(--font-mono); }
.roi-line span:first-child { color: var(--text-secondary); font-size: 0.9rem; }
.roi-line span:last-child { color: var(--text-primary); font-weight: 500; font-size: 0.95rem; }
.roi-line.divider { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 18px; }
.roi-line.total span:last-child { color: var(--accent-primary); font-size: 1.05rem; font-weight: 600; }
.roi-savings { background: rgba(0, 255, 136, 0.06); border: 1px solid rgba(0, 255, 136, 0.2); border-radius: 10px; padding: 20px; margin-top: 20px; }
.roi-savings .roi-line { border-bottom-color: rgba(0, 255, 136, 0.15); }
.roi-cta { margin-top: 22px; }
.roi-cta .btn { width: 100%; justify-content: center; }
.roi-recommended { font-size: 1.05rem; font-weight: 600; color: var(--accent-primary); margin: 16px 0 4px; }

/* ============================================================
   Toggle (monthly/annual)
   ============================================================ */
.toggle { display: inline-flex; align-items: center; gap: 12px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 100px; padding: 4px; }
.toggle button { padding: 8px 18px; border-radius: 100px; font-family: var(--font-mono); font-size: 0.825rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); transition: all var(--tx); }
.toggle button.active { background: var(--accent-primary); color: var(--bg-primary); font-weight: 600; }
.toggle-save { color: var(--accent-primary); margin-left: 4px; font-size: 0.75rem; font-family: var(--font-mono); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item summary { padding: 22px 24px; cursor: pointer; font-weight: 500; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--accent-primary); font-size: 1.5rem; transition: transform var(--tx); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--text-secondary); line-height: 1.7; }

/* ============================================================
   Scroll-reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--tx-slow), transform var(--tx-slow); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }

/* ============================================================
   Chatbot widget (loaded by chatbot.js)
   ============================================================ */
.cl-bot-launcher {
  position: fixed; right: 24px; bottom: 24px; z-index: 9000;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent-primary); color: var(--bg-primary);
  font-size: 1.5rem; cursor: pointer;
  box-shadow: var(--shadow-glow-green-strong);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--tx);
}
.cl-bot-launcher:hover { transform: scale(1.07); }
.cl-bot-panel {
  position: fixed; right: 24px; bottom: 96px; z-index: 9000;
  width: min(360px, calc(100vw - 32px));
  max-height: min(540px, calc(100vh - 120px));
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}
.cl-bot-panel.open { display: flex; }
.cl-bot-head { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.cl-bot-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-primary); box-shadow: 0 0 8px var(--accent-primary); }
.cl-bot-head .name { font-weight: 600; font-size: 0.95rem; }
.cl-bot-head .status { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); margin-left: auto; }
.cl-bot-body { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.cl-msg { max-width: 80%; padding: 10px 14px; border-radius: 12px; font-size: 0.9rem; line-height: 1.5; }
.cl-msg.bot { background: var(--bg-tertiary); color: var(--text-primary); align-self: flex-start; border-bottom-left-radius: 4px; }
.cl-msg.user { background: var(--accent-primary); color: var(--bg-primary); align-self: flex-end; border-bottom-right-radius: 4px; }
.cl-bot-foot { padding: 12px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.cl-bot-foot input { flex: 1; background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; color: var(--text-primary); font-size: 0.9rem; }
.cl-bot-foot button { background: var(--accent-primary); color: var(--bg-primary); padding: 0 14px; border-radius: 8px; font-weight: 600; }
.cl-bot-suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cl-bot-suggestions button { font-family: var(--font-mono); font-size: 0.75rem; padding: 6px 10px; background: var(--bg-tertiary); border: 1px solid var(--border); color: var(--text-secondary); border-radius: 100px; }
.cl-bot-suggestions button:hover { color: var(--accent-primary); border-color: var(--accent-primary); }

/* ============================================================
   Responsive tweaks
   ============================================================ */
@media (max-width: 720px) {
  .form-row { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .compare { font-size: 0.85rem; }
  .compare th, .compare td { padding: 10px 8px; }
}
