/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f8f9fb;
  --bg-alt: #f1f3f7;
  --bg-light: #f8f9fb;
  --fg: #1a1f36;
  --fg-muted: #6b7280;
  --fg-dim: #9ca3af;
  --accent: #ff6b35;
  --accent-dark: #e85a28;
  --accent-dim: rgba(255,107,53,0.08);
  --border: #e5e7eb;
  --surface: #ffffff;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== TOPBAR ===== */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #ffffff;
  box-shadow: 0 1px 0 var(--border);
  height: 56px;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.5px;
}
.nav-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: var(--font-body);
}

/* ===== HERO ===== */
.hero {
  padding: 100px 32px 80px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-family: var(--font-body);
}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--fg);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 440px;
  font-family: var(--font-body);
}
.ops-diagram {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
}

/* ===== HERO DEMO WIDGET ===== */
/* Animated SMS→AI→Log demo that loops in the hero */
.hd-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  background: #0f0f0f;
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(255,107,53,0.18),
    0 8px 48px rgba(0,0,0,0.55),
    0 2px 12px rgba(0,0,0,0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
}

/* Top chrome bar */
.hd-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: #191919;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.hd-rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4444;
  box-shadow: 0 0 6px rgba(255,68,68,0.7);
  animation: hd-blink 2s ease-in-out infinite;
}
@keyframes hd-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hd-chrome-title {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
  flex: 1;
}
.hd-chrome-time {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}

/* Scenes */
.hd-scene {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: opacity 0.3s ease;
}
.hd-scene--hidden {
  display: none;
}
.hd-scene--active {
  display: flex;
}
.hd-scene-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
}

/* SMS scene */
.hd-sms-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
}
.hd-sms-bubble {
  align-self: flex-start;
  max-width: 82%;
  background: #2a2a2a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px 14px 14px 14px;
  padding: 10px 14px;
  font-size: 12px;
  color: #e8e8e8;
  line-height: 1.55;
  min-height: 38px;
}
.hd-cursor {
  display: inline-block;
  width: 2px;
  background: var(--accent);
  margin-left: 1px;
  vertical-align: text-bottom;
  height: 14px;
  animation: hd-caret 0.8s steps(1) infinite;
}
@keyframes hd-caret {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.hd-sms-meta {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  padding-left: 2px;
}

/* AI analyzing scene */
.hd-ai-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.hd-ai-dots {
  display: flex;
  gap: 8px;
}
.hd-ai-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: hd-dot-bounce 1.2s ease-in-out infinite;
}
.hd-ai-dots span:nth-child(2) { animation-delay: 0.2s; }
.hd-ai-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes hd-dot-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.6; }
  40% { transform: translateY(-8px); opacity: 1; }
}
.hd-ai-bars {
  width: 100%;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.hd-ai-bar {
  height: 6px;
  background: rgba(255,107,53,0.25);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.hd-ai-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: hd-scan 1.4s ease-in-out infinite;
}
@keyframes hd-scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* Log fields scene */
.hd-log-fields {
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: hidden;
}
.hd-field {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 7px;
  padding: 7px 10px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.hd-field--hidden {
  opacity: 0;
  transform: translateY(8px);
}
.hd-field-key {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  min-width: 80px;
  padding-top: 1px;
  flex-shrink: 0;
}
.hd-field-val {
  font-size: 11px;
  color: #e0e0e0;
  line-height: 1.45;
  flex: 1;
}
.hd-field-tag {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  align-self: center;
}
.hd-field-tag--warn {
  background: rgba(250,204,21,0.15);
  color: #facc15;
}
.hd-field-tag--flag {
  background: rgba(239,68,68,0.15);
  color: #f87171;
}

/* End card scene */
.hd-endcard {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.hd-endcard-logo {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -1px;
}
.hd-endcard-tagline {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}
.hd-endcard-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #4ade80;
  margin-top: 6px;
}

/* Controls bar at bottom */
.hd-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(0,0,0,0.4);
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.hd-replay-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,107,53,0.12);
  border: 1px solid rgba(255,107,53,0.3);
  border-radius: 5px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.15s, border-color 0.15s;
  letter-spacing: 0.3px;
}
.hd-replay-btn:hover {
  background: rgba(255,107,53,0.2);
  border-color: var(--accent);
}
.hd-full-demo-link {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.15s;
}
.hd-full-demo-link:hover {
  color: var(--fg-muted);
}

/* Responsive: full-width on mobile */
@media (max-width: 900px) {
  .hd-wrap {
    max-width: 100%;
  }
}
/* ===== END HERO DEMO WIDGET ===== */

/* ===== STATS ===== */
.stats {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 40px 32px;
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
}
.stat-item {
  flex: 1;
}
.stat-value {
  display: block;
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}
.stat-divider {
  width: 1px;
  height: 64px;
  background: var(--border);
  flex-shrink: 0;
}

/* ===== FEATURES ===== */
.features {
  background: #ffffff;
  padding: 100px 32px;
}
.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 16px;
  font-family: var(--font-body);
}
.section-heading {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--fg);
  margin-bottom: 56px;
  max-width: 680px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: #e5e7eb;
}
.feature-card {
  background: #ffffff;
  padding: 40px 36px;
  border: 1px solid transparent;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: background 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  background: #fafbfc;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(255,107,53,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.feature-card h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
.howitworks {
  background: #f8f9fb;
  padding: 100px 32px;
  border-top: 1px solid var(--border);
}
.howitworks-inner {
  max-width: 900px;
  margin: 0 auto;
}
.howitworks .section-heading {
  color: var(--fg);
}
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.step {
  flex: 1;
  padding: 0 32px;
}
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; }
.step-num {
  display: block;
  font-family: var(--font-head);
  font-size: 56px;
  font-weight: 800;
  color: #e5e7eb;
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: 20px;
}
.step-content h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.step-content p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.7;
}
.step-connector {
  width: 48px;
  flex-shrink: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  margin-top: 28px;
}

/* ===== PROBLEM ===== */
.problem {
  background: #ffffff;
  padding: 100px 32px;
  border-top: 1px solid var(--border);
}
.problem-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.problem-text h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 24px;
}
.problem-text p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.problem-card {
  background: #f8f9fb;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.problem-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--fg-muted);
}
.problem-item svg {
  flex-shrink: 0;
}

/* ===== VISION ===== */
.vision {
  background: var(--accent);
  padding: 100px 32px;
}
.vision-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.vision h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 800;
  color: white;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 28px;
}
.vision p {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 16px;
}

/* ===== PRICING ===== */
.pricing {
  background: #f8f9fb;
  padding: 100px 32px;
  border-top: 1px solid var(--border);
}
.pricing-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.pricing-heading {
  color: var(--fg);
  margin-bottom: 64px;
}
.pricing-heading-accent {
  color: var(--accent);
}
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 72px;
}
.pricing-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.pricing-card--featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(255,107,53,0.04) 0%, #ffffff 60%);
}
.pricing-card-header {
  margin-bottom: 28px;
}
.pricing-popular-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.pricing-tier-label {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.pricing-tier-sub {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 16px;
}
.pricing-badge-row {
  margin-bottom: 16px;
}
.pricing-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
}
.pricing-badge--nolock {
  background: rgba(74,222,128,0.12);
  color: #4ade80;
  border: 1px solid rgba(74,222,128,0.25);
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.pricing-amount {
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -2px;
  line-height: 1;
}
.pricing-period {
  font-size: 14px;
  color: var(--fg-muted);
}
.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
  flex: 1;
}
.pricing-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.5;
}
.pricing-check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 1px;
}
.pricing-roadmap {
  font-size: 12px;
  color: var(--fg-dim);
}
.pricing-cta {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  letter-spacing: -0.2px;
}
.pricing-cta--primary {
  background: var(--accent);
  color: white;
}
.pricing-cta--primary:hover {
  background: var(--accent-dark);
}
.pricing-cta--enterprise {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.pricing-cta--enterprise:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* FAQ */
.pricing-faq {
  max-width: 760px;
  margin: 0 auto;
}
.pricing-faq-heading {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}
.faq-item + .faq-item {
  margin-top: 4px;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
  list-style: none;
  gap: 16px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  font-size: 20px;
  color: var(--fg-dim);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s;
}
.faq-item[open] .faq-q::after {
  content: '−';
}
.faq-a {
  padding: 0 24px 18px;
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ===== PRICING RESPONSIVE ===== */
@media (max-width: 900px) {
  .pricing-cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .pricing { padding: 60px 20px; }
  .pricing-amount { font-size: 36px; }
}

/* Nav link style */
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
  font-family: var(--font-body);
}
.nav-link:hover {
  color: var(--fg);
}

/* ===== FOOTER ===== */
footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 40px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-wordmark {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--fg);
  display: block;
  margin-bottom: 4px;
}
.footer-desc {
  font-size: 12px;
  color: var(--fg-dim);
}
.footer-links {
  font-size: 12px;
  color: var(--fg-dim);
}

/* ===== DEMO SECTION ===== */
.demo-section {
  background: #f8f9fb;
  padding: 100px 32px;
  border-top: 1px solid var(--border);
}
.demo-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.demo-header {
  text-align: center;
  margin-bottom: 64px;
}
.demo-heading {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--fg);
  margin-top: 8px;
}
.demo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.demo-panel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.demo-label {
  margin-bottom: 20px;
}
.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(255,107,53,0.08);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(255,107,53,0.15);
}
.demo-badge--interactive {
  background: rgba(74,222,128,0.08);
  color: #16a34a;
}

/* Pre-loaded note card */
.demo-note-card {
  margin-bottom: 24px;
}
.demo-note-img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.demo-note-caption {
  text-align: center;
  font-size: 12px;
  color: var(--fg-dim);
  margin-top: 10px;
}

/* AI parse animation */
.demo-parse-area {
  min-height: 120px;
}
.demo-replay-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg-muted);
  font-size: 12px;
  padding: 6px 12px;
  cursor: pointer;
  margin-bottom: 16px;
  transition: border-color 0.15s, color 0.15s;
  font-family: var(--font-body);
}
.demo-replay-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.demo-thinking-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 16px;
}
.demo-thinking-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: demo-pulse 1s ease-in-out infinite;
}
@keyframes demo-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

/* Result form fields */
.demo-result-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity 0.3s;
}
.demo-form-field {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.demo-form-field.demo-field-visible {
  opacity: 1;
  transform: translateY(0);
}
.demo-form-field--next {
  border-color: rgba(74,222,128,0.3);
  background: rgba(74,222,128,0.04);
}
.demo-field-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--fg-dim);
  min-width: 90px;
  padding-top: 1px;
}
.demo-field-value {
  font-size: 14px;
  color: var(--fg);
  line-height: 1.5;
}
.demo-cta-text {
  text-align: center;
  font-size: 14px;
  color: var(--fg-muted);
  margin-top: 28px;
  margin-bottom: 12px;
}
.demo-cta-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: white;
  border-radius: 8px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.demo-cta-btn:hover {
  background: var(--accent-dark);
}

/* === Interactive Demo === */
.demo-mode-tabs {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 20px;
}
.demo-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.15s, color 0.15s;
}
.demo-tab.active {
  background: var(--accent);
  color: white;
}
.demo-input-panel {
  margin-bottom: 16px;
}

/* Upload zone */
.demo-upload-zone {
  display: block;
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  color: var(--fg-muted);
}
.demo-upload-zone:hover,
.demo-upload-zone--drag {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.demo-upload-input {
  display: none;
}
.demo-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.demo-upload-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}
.demo-upload-sub {
  font-size: 12px;
  color: var(--fg-dim);
}
.demo-upload-preview {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.demo-preview-img {
  width: 100%;
  display: block;
}

/* Textarea */
.demo-textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 14px;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.15s;
}
.demo-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* Generate button */
.demo-generate-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s, opacity 0.15s;
  margin-bottom: 16px;
}
.demo-generate-btn:hover:not(:disabled) {
  background: var(--accent-dark);
}
.demo-generate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Live result */
.demo-live-result {
  background: var(--bg);
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 12px;
}
.demo-live-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #4ade80;
  margin-bottom: 12px;
}
.demo-live-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.demo-live-field {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.demo-live-field .demo-field-label {
  min-width: 80px;
}

/* Error */
.demo-error {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-muted);
  font-size: 13px;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
}
.demo-error a {
  color: var(--accent);
}

/* Disclaimer */
.demo-disclaimer {
  text-align: center;
  font-size: 12px;
  color: var(--fg-dim);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .stats-inner { flex-direction: column; gap: 32px; }
  .stat-divider { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .problem-inner { grid-template-columns: 1fr; gap: 48px; }
  .steps { flex-direction: column; }
  .step { padding: 0 0 32px; }
  .step-connector { display: none; }
}

@media (max-width: 600px) {
  .hero, .features, .howitworks, .problem, .vision { padding: 60px 20px; }
  .hero-headline { font-size: 36px; letter-spacing: -1px; }
  .footer-inner { flex-direction: column; gap: 16px; align-items: flex-start; }
}