/* =========================================
   ALLIANZAAI — STYLES.CSS
   Dark luxury design system
========================================= */

/* ---------- IMPORTS & VARIABLES ---------- */
:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --surface-2: #16161f;
  --border: #2a1a1a;
  --primary: #e63030;
  --primary-bright: #ff4444;
  --primary-deep: #c0392b;
  --text: #f0e8e8;
  --muted: #8a7070;
  --white: #ffffff;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --shadow-red: 0 0 30px rgba(230, 48, 48, 0.25);
  --shadow-red-lg: 0 0 60px rgba(230, 48, 48, 0.35);
  --glow-red: 0 0 20px rgba(230, 48, 48, 0.5);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 16px;
  --radius-sm: 8px;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul { list-style: none; }

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

/* ---------- CURSOR ---------- */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: background 0.2s, width 0.2s, height 0.2s;
  box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(230, 48, 48, 0.5);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor-ring.hovering {
  width: 56px;
  height: 56px;
  border-color: var(--primary);
  box-shadow: 0 0 16px rgba(230, 48, 48, 0.3);
}

/* ---------- GRAIN OVERLAY ---------- */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ---------- LAYOUT ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 120px 0;
  position: relative;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.05rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: var(--white);
  box-shadow: 0 4px 24px rgba(230, 48, 48, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-bright), var(--primary));
  box-shadow: 0 8px 40px rgba(230, 48, 48, 0.5);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.full-width { width: 100%; justify-content: center; }

/* ---------- SECTION LABELS ---------- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.2rem;
  position: relative;
  padding-left: 20px;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 2px;
  background: var(--primary);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 4rem;
}

.accent-word {
  color: var(--primary);
  font-style: italic;
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  transition: background 0.4s, backdrop-filter 0.4s, border-bottom 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
}

.logo-main { color: var(--text); }
.logo-ai { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  cursor: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta { margin-left: auto; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
  margin-left: auto;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 1rem 2rem;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}

.mobile-menu a {
  padding: 0.85rem 0;
  font-size: 1rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child { border-bottom: none; margin-top: 1rem; }
.mobile-menu.open { display: flex; }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

/* Animated blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
}

.blob-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(200, 30, 30, 0.7), transparent 70%);
  top: -200px; right: -200px;
  animation: blobFloat1 14s ease-in-out infinite;
}

.blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(192, 57, 43, 0.6), transparent 70%);
  bottom: -150px; left: -100px;
  animation: blobFloat2 18s ease-in-out infinite;
}

.blob-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.5), transparent 70%);
  top: 30%; left: 35%;
  animation: blobFloat3 11s ease-in-out infinite;
}

.blob-4 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(230, 48, 48, 0.5), transparent 70%);
  top: 60%; right: 20%;
  animation: blobFloat4 16s ease-in-out infinite;
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(-40px, 60px) scale(1.08); }
  66% { transform: translate(30px, -30px) scale(0.94); }
}
@keyframes blobFloat2 {
  0%, 100% { transform: translate(0,0) scale(1); }
  40% { transform: translate(60px, -50px) scale(1.1); }
  70% { transform: translate(-20px, 30px) scale(0.9); }
}
@keyframes blobFloat3 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-30px, 40px) scale(1.12); }
}
@keyframes blobFloat4 {
  0%, 100% { transform: translate(0,0) scale(1); }
  35% { transform: translate(20px, -60px) scale(0.88); }
  65% { transform: translate(-40px, 20px) scale(1.06); }
}

/* Grid overlay */
.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(230, 48, 48, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 48, 48, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(230, 48, 48, 0.08);
  border: 1px solid rgba(230, 48, 48, 0.2);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 1.8rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(230, 48, 48, 0.6); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(230, 48, 48, 0); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.8rem;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-footnote {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Phone frame */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 280px;
  height: 560px;
  background: var(--surface);
  border-radius: 40px;
  border: 2px solid #2a2035;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 40px 100px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 0 40px rgba(230, 48, 48, 0.1);
  animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-12px) rotate(0.5deg); }
  66% { transform: translateY(-6px) rotate(-0.3deg); }
}

.phone-notch {
  width: 90px;
  height: 20px;
  background: #050508;
  border-radius: 0 0 14px 14px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.phone-screen {
  padding: 8px 10px 16px;
  height: calc(100% - 20px);
  display: flex;
  flex-direction: column;
}

.phone-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.phone-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--primary-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.phone-status {
  font-size: 0.65rem;
  color: #4caf7d;
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4caf7d;
  animation: pulseDot 2s ease-in-out infinite;
}

.phone-messages {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 2px;
}

.phone-msg {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 0.72rem;
  line-height: 1.4;
  animation: msgSlideIn 0.4s ease forwards;
}

@keyframes msgSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.phone-msg.guest-msg {
  background: #202030;
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.phone-msg.ai-msg {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.phone-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: #202030;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  max-width: 60px;
}

.phone-typing span {
  width: 5px; height: 5px;
  background: var(--muted);
  border-radius: 50%;
  animation: typingDot 1.2s ease-in-out infinite;
}
.phone-typing span:nth-child(2) { animation-delay: 0.2s; }
.phone-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-4px); opacity: 1; }
}

/* Metric badges */
.metric-badge {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-red);
  z-index: 5;
}

.badge-tl {
  top: 40px;
  left: -50px;
  animation: badgeBob1 4s ease-in-out infinite;
}

.badge-br {
  bottom: 50px;
  right: -60px;
  animation: badgeBob2 5s ease-in-out infinite;
}

@keyframes badgeBob1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes badgeBob2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.metric-label {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 2px;
}

.metric-icon {
  font-size: 1.2rem;
}

/* ---------- TRUST BAR ---------- */
.trust-bar {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  background: rgba(17, 17, 24, 0.5);
}

.trust-label {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.trust-logo {
  display: flex;
  align-items: center;
}

.trust-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.stars {
  color: #f5c842;
  font-size: 1rem;
  letter-spacing: 2px;
}

/* ---------- PAIN SECTION ---------- */
.pain-section { background: linear-gradient(180deg, var(--bg) 0%, #0e0810 100%); }

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pain-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pain-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(230,48,48,0.5), transparent) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}

.pain-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-red);
}

.pain-card:hover::before { opacity: 1; }

.pain-emoji {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.pain-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.pain-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.pain-quote {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
  border-left: 2px solid var(--primary);
  padding-left: 1rem;
  line-height: 1.5;
}

/* ---------- HOW IT WORKS ---------- */
.hiw-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.hiw-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(16.66% + 20px);
  right: calc(16.66% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-deep), var(--primary));
  z-index: 0;
}

.hiw-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-line { display: none; }

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0 auto 1.5rem;
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

.step-number:hover,
.hiw-step:hover .step-number {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: scale(1.15);
  box-shadow: var(--glow-red);
}

.hiw-step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.hiw-step p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ---------- DEMO SECTION ---------- */
.demo-section { background: linear-gradient(180deg, var(--bg) 0%, #0c080c 100%); }

.demo-widget { max-width: 960px; margin: 0 auto; }

.macos-frame {
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid #2a2030;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), var(--shadow-red);
}

.macos-bar {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.macos-dots {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.macos-title {
  flex: 1;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.macos-right { width: 60px; }

.demo-content {
  display: grid;
  grid-template-columns: 1fr 340px;
  min-height: 500px;
}

/* Chat column */
.demo-chat-col {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 1rem;
}

.demo-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.demo-ai-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.demo-ai-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.demo-ai-status {
  font-size: 0.75rem;
  color: #4caf7d;
  display: flex;
  align-items: center;
  gap: 5px;
}

.demo-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
  max-height: 280px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.demo-msg {
  animation: msgSlideIn 0.4s ease forwards;
}

.msg-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.guest-msg .msg-bubble {
  background: #1e1e2e;
  color: var(--text);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.ai-msg .msg-bubble {
  background: linear-gradient(135deg, #8b0000, var(--primary));
  color: white;
  border-bottom-right-radius: 4px;
  margin-left: auto;
  box-shadow: 0 4px 16px rgba(230, 48, 48, 0.25);
}

.demo-typing-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  background: #1e1e2e;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  width: fit-content;
  animation: msgSlideIn 0.3s ease;
}

.demo-typing-indicator span {
  width: 6px; height: 6px;
  background: var(--muted);
  border-radius: 50%;
  animation: typingDot 1.2s ease-in-out infinite;
}
.demo-typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.demo-typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

.demo-input-row {
  display: flex;
  gap: 0.75rem;
}

.demo-input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  cursor: text;
}

.demo-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(230, 48, 48, 0.15);
}

.demo-input::placeholder { color: var(--muted); }

.demo-send {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: var(--transition);
  flex-shrink: 0;
}

.demo-send:hover {
  background: var(--primary-bright);
  box-shadow: var(--glow-red);
  transform: scale(1.05);
}

.demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--muted);
  cursor: none;
  transition: var(--transition);
}

.chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(230, 48, 48, 0.08);
}

/* Stats column */
.demo-stats-col {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: #0d0d14;
}

.stats-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-circle {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.stat-circle svg {
  width: 52px;
  height: 52px;
  transform: rotate(-90deg);
}

.stat-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-pct.secondary { color: var(--text); }

.stat-info {}

.stat-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.stat-desc {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 2px;
}

.stat-divider {
  height: 1px;
  background: var(--border);
}

.stat-topics {}

.stat-topic-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.topic-tag {
  background: rgba(230, 48, 48, 0.1);
  border: 1px solid rgba(230, 48, 48, 0.2);
  color: var(--primary);
  border-radius: 100px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: default;
  transition: var(--transition);
}

.topic-tag:hover {
  background: rgba(230, 48, 48, 0.2);
}

.stat-live-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: auto;
}

.live-dot {
  width: 8px; height: 8px;
  background: #4caf7d;
  border-radius: 50%;
  animation: pulseDot 2s infinite;
  flex-shrink: 0;
}

/* ---------- FEATURES SECTION ---------- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: rgba(230, 48, 48, 0.4);
  box-shadow: var(--shadow-red);
  transform: translateY(-4px);
}

.feature-card-inner {
  padding: 2.5rem;
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  background: rgba(230, 48, 48, 0.1);
  border: 1px solid rgba(230, 48, 48, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.feature-list li {
  font-size: 0.9rem;
  color: var(--muted);
  padding-left: 0.5rem;
  position: relative;
  transition: color 0.2s;
}

.feature-list li::first-letter {
  color: var(--primary);
}

.feature-card:hover .feature-list li {
  color: var(--text);
}

/* Feature preview panels */
.feature-preview {
  margin: 0 1.5rem 1.5rem;
  background: var(--surface-2);
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.mini-chat {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-msg {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.4;
  max-width: 90%;
}

.mini-msg.guest {
  background: #1e1e2e;
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

.mini-msg.ai {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
  max-width: 95%;
}

/* Call UI */
.call-ui {
  padding: 1.25rem;
}

.call-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.call-wave {
  display: flex;
  align-items: center;
  gap: 3px;
}

.call-wave span {
  display: block;
  width: 3px;
  background: var(--primary);
  border-radius: 2px;
  animation: wave 1s ease-in-out infinite;
}

.call-wave span:nth-child(1) { height: 12px; animation-delay: 0s; }
.call-wave span:nth-child(2) { height: 20px; animation-delay: 0.1s; }
.call-wave span:nth-child(3) { height: 28px; animation-delay: 0.2s; }
.call-wave span:nth-child(4) { height: 20px; animation-delay: 0.3s; }
.call-wave span:nth-child(5) { height: 12px; animation-delay: 0.4s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.6); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

.call-label {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
}

.call-transcript {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.transcript-line {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
  display: flex;
  gap: 6px;
}

.tsp-label {
  font-weight: 700;
  flex-shrink: 0;
  color: var(--primary);
}

.ai-line .tsp-label { color: var(--primary); }
.guest-line .tsp-label { color: var(--text); }

/* Feature sweep bar */
.feature-sweep {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-deep), var(--primary-bright));
  transition: width 0.4s ease;
}

.feature-card:hover .feature-sweep {
  width: 100%;
}

/* ---------- BEFORE / AFTER ---------- */
.ba-section { background: linear-gradient(180deg, var(--bg) 0%, #0f080f 100%); }

.ba-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: start;
}

.ba-col {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.ba-before { background: linear-gradient(135deg, #120a0a, var(--surface)); }
.ba-after { background: linear-gradient(135deg, #0a120a, var(--surface)); }

.ba-col-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}

.ba-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
}

.before-label {
  background: rgba(230, 48, 48, 0.15);
  color: var(--primary);
  border: 1px solid rgba(230, 48, 48, 0.3);
}

.after-label {
  background: rgba(76, 175, 125, 0.15);
  color: #4caf7d;
  border: 1px solid rgba(76, 175, 125, 0.3);
}

.ba-items {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ba-item {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  padding: 0.75rem;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.ba-item:hover { color: var(--text); }

.ba-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 60px;
  gap: 1rem;
}

.vs-line {
  width: 2px;
  flex: 1;
  min-height: 60px;
  background: linear-gradient(180deg, transparent, var(--border), transparent);
}

.vs-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: white;
  letter-spacing: 0.08em;
  box-shadow: var(--glow-red);
  flex-shrink: 0;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.testi-card:hover {
  transform: translateY(-6px);
  border-color: rgba(230, 48, 48, 0.3);
  box-shadow: var(--shadow-red);
}

.testi-quote-mark {
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--primary);
  line-height: 0.7;
  margin-bottom: 0.5rem;
  opacity: 0.2;
  position: absolute;
  top: 20px;
  right: 24px;
}

.testi-text {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.testi-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.testi-role {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

.testi-stars {
  color: #f5c842;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.testi-badge {
  display: inline-block;
  background: rgba(230, 48, 48, 0.1);
  border: 1px solid rgba(230, 48, 48, 0.25);
  color: var(--primary);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ---------- PRICING ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  transition: var(--transition);
  position: relative;
}

.price-card:hover {
  transform: translateY(-4px);
}

.price-featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-red-lg);
  transform: scale(1.04);
  background: linear-gradient(135deg, #120a0a, var(--surface));
}

.price-featured:hover { transform: scale(1.04) translateY(-4px); }

.price-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: var(--glow-red);
}

.price-tier {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1;
}

.price-currency {
  font-size: 1.5rem;
  vertical-align: super;
  margin-right: 4px;
  color: var(--primary);
}

.price-period {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 400;
}

.price-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  min-height: 50px;
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.price-features li {
  font-size: 0.88rem;
  color: var(--text);
}

.price-features li.muted {
  color: var(--muted);
  opacity: 0.5;
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.faq-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  transition: var(--transition);
}

.faq-card:hover {
  border-color: rgba(230, 48, 48, 0.3);
  transform: translateY(-3px);
}

.faq-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.faq-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- FINAL CTA ---------- */
.final-cta-section {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(230, 48, 48, 0.12), transparent 70%);
  pointer-events: none;
}

.final-cta-inner {
  position: relative;
  z-index: 2;
}

.final-cta-inner .section-label {
  display: inline-block;
}

.final-cta-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.final-cta-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 3rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.final-cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.white-glove {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 20px;
}

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 5rem 0 2.5rem;
  background: #070709;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 36px;
  height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: var(--transition);
}

.social-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  font-size: 0.82rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-sub { max-width: 100%; }
  .hero-ctas { justify-content: center; }
  .hero-visual { order: -1; }

  .badge-tl { left: 0; }
  .badge-br { right: 0; }

  .pain-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }

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

  .ba-vs {
    flex-direction: row;
    padding-top: 0;
  }

  .vs-line {
    width: auto;
    flex: 1;
    min-height: unset;
    height: 2px;
  }

  .demo-content { grid-template-columns: 1fr; }
  .demo-stats-col { border-left: none; border-top: 1px solid var(--border); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hiw-steps { grid-template-columns: 1fr; }
  .hiw-steps::before { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .mobile-menu-btn { display: flex; }

  .phone-frame { width: 240px; height: 480px; }
  .badge-tl, .badge-br { display: none; }
  .hero-badge { font-size: 0.7rem; }

  .trust-logos { gap: 1.5rem; }
  .price-featured { transform: scale(1); }
  .price-featured:hover { transform: translateY(-4px); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
