/* ============================================
   AiCOM – Premium AI Startup Design System
   ============================================ */

:root {
  --bg-base: #02010a;
  --bg-elevated: #060615;
  --bg-card: #0b0b16;
  --bg-card-hover: #141024;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --accent-purple: #7c3aed;
  --accent-purple-deep: #5b21b6;
  --accent-purple-soft: #6d28d9;
  --gradient-primary: linear-gradient(135deg, #5b21b6 0%, #7c3aed 45%, #6d28d9 100%);
  --gradient-glow: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(76, 29, 149, 0.4), transparent 60%);
  --glow-purple: 0 0 60px rgba(76, 29, 149, 0.55);
  --accent-emerald: #10b981;
  --accent-cyan: #06b6d4;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- Animated background ---- */
.bg-gradient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  animation: bgGlowMove 20s ease-in-out infinite alternate;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
}

@keyframes bgGlowMove {
  0% {
    background:
      radial-gradient(ellipse 120% 80% at 72% -28%, rgba(99, 102, 241, 0.16) 0%, transparent 50%),
      radial-gradient(ellipse 80% 60% at 22% 48%, rgba(139, 92, 246, 0.09) 0%, transparent 50%),
      radial-gradient(ellipse 60% 80% at 88% 78%, rgba(6, 182, 212, 0.07) 0%, transparent 50%);
    opacity: 0.9;
  }
  100% {
    background:
      radial-gradient(ellipse 120% 80% at 68% -32%, rgba(99, 102, 241, 0.14) 0%, transparent 50%),
      radial-gradient(ellipse 80% 60% at 18% 52%, rgba(139, 92, 246, 0.07) 0%, transparent 50%),
      radial-gradient(ellipse 60% 80% at 92% 82%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    opacity: 1;
  }
}

/* ---- Layout ---- */
main, .navbar, .footer {
  position: relative;
  z-index: 1;
}

/* ---- Navbar ---- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.35rem;
}

.logo {
  height: 40px;
  width: auto;
  filter: grayscale(1) brightness(0) invert(1) drop-shadow(0 0 14px rgba(124, 58, 237, 0.6));
}

.logo-fallback {
  display: none;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(124, 58, 237, 0.8);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 28px;
  height: auto;
  border: none;
  background: transparent;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth), background-color var(--transition-smooth);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(2px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-2px) rotate(-45deg);
}

.nav-close {
  display: none;
}

.btn-nav-cta {
  padding: 10px 20px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.btn-nav-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 32px rgba(139, 92, 246, 0.55), 0 0 64px rgba(99, 102, 241, 0.2);
}

/* ---- Hero ---- */
.hero {
  padding: 80px 5% 120px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: #ffffff;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.65;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  padding: 16px 28px;
  background: var(--accent-purple);
  border-radius: var(--radius-md);
  border: 1px solid rgba(124, 58, 237, 0.8);
  font-weight: 600;
  font-size: 1rem;
  color: white;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.7), 0 0 0 1px rgba(15, 23, 42, 0.9), 0 0 24px rgba(76, 29, 149, 0.0);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), background-color var(--transition-smooth), border-color var(--transition-smooth);
}

.cta-primary:hover {
  transform: translateY(-3px);
  background: var(--accent-purple-deep);
  border-color: rgba(124, 58, 237, 1);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9), 0 0 0 1px rgba(15, 23, 42, 1), 0 0 40px rgba(76, 29, 149, 0.7);
}

.hero-link-primary,
.hero-link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 0.98rem;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  text-shadow: 0 0 10px rgba(76, 29, 149, 0.5);
  transition: color var(--transition-smooth), text-shadow var(--transition-smooth), transform var(--transition-smooth);
}

.hero-link-secondary {
  margin-left: 24px;
}

.hero-link-primary:hover,
.hero-link-secondary:hover {
  color: #ffffff;
  transform: translateY(-1px);
  text-shadow: 0 0 18px rgba(76, 29, 149, 0.9);
}

/* Hero visual – phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 5%;
}

/* Glow only during incoming call; fades out when booking is shown */
.phone-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  right: 0;
  top: 50%;
  transform: translate(20%, -50%);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(139, 92, 246, 0.12) 40%, transparent 70%);
  filter: blur(40px);
  animation: phoneGlowCycle 14s ease-in-out infinite;
}

@keyframes phoneGlowCycle {
  0%, 22% { opacity: 0.85; }
  25%, 76% { opacity: 0.15; }
  77%, 100% { opacity: 0.85; }
}

/* Pulsing incoming-call rings */
.phone-float-wrap {
  position: relative;
  animation: phoneFloat 6s ease-in-out infinite;
}

.incoming-call-pulses {
  position: absolute;
  inset: -30px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseRingsPhase 14s steps(1) infinite;
}

.pulse-ring {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.5);
  opacity: 0;
  animation: incomingPulse 2.5s ease-out infinite;
}

.pulse-ring:nth-child(1) { animation-delay: 0s; }
.pulse-ring:nth-child(2) { animation-delay: 0.4s; }
.pulse-ring:nth-child(3) { animation-delay: 0.8s; }

@keyframes pulseRingsPhase {
  0%, 22% { opacity: 1; pointer-events: none; }
  22.01%, 100% { opacity: 0; pointer-events: none; }
}

@keyframes incomingPulse {
  0% {
    transform: scale(0.5);
    opacity: 0.6;
    border-color: rgba(16, 185, 129, 0.5);
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
    border-color: rgba(16, 185, 129, 0);
  }
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.phone-mockup {
  position: relative;
  width: 280px;
  height: 560px;
  background: #1a1a1f;
  border-radius: 36px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 0 0 1px rgba(255,255,255,0.05),
    0 25px 50px -12px rgba(0, 0, 0, 0.6),
    0 0 80px -20px rgba(99, 102, 241, 0.4);
  overflow: visible;
  /* Horizontal shake only during incoming call phase */
  animation: phoneVibrateShake 4.5s ease-in-out infinite;
}

@keyframes phoneVibrateShake {
  0%, 100% { transform: translateX(0); }
  4%, 8%, 12%, 16%, 20% { transform: translateX(1px); }
  6%, 10%, 14%, 18%, 22% { transform: translateX(-1px); }
  24%, 100% { transform: translateX(0); }
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #0d0d10;
  border-radius: 0 0 20px 20px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #0a0a0e;
  border-radius: 33px;
  overflow: hidden;
  position: relative;
}

.phone-ui {
  position: absolute;
  inset: 0;
  padding: 44px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease-in-out;
}

/* Cycle: 1 Incoming (vibrate) → 2 AI answering (still) → 3 Booking (still) → back. 14s. */
.phone-ui.call-ui {
  z-index: 1;
  animation: phoneShowCall 4.5s ease-in-out infinite;
}

.phone-ui.answer-ui {
  z-index: 2;
  animation: phoneShowAnswer 4.5s ease-in-out infinite;
}

.phone-ui.calendar-ui {
  z-index: 3;
  animation: phoneShowCalendar 4.5s ease-in-out infinite;
}

@keyframes phoneShowCall {
  0%, 22% { opacity: 1; }   /* ≈ 0–1.0s of 4.5s */
  24%, 100% { opacity: 0; }
}

@keyframes phoneShowAnswer {
  0%, 22% { opacity: 0; }
  22.01%, 40% { opacity: 1; }  /* ≈ 1.0–1.8s of 4.5s */
  42%, 100% { opacity: 0; }
}

@keyframes phoneShowCalendar {
  0%, 40% { opacity: 0; }
  40.01%, 100% { opacity: 1; }  /* ≈ 1.8–4.5s */
}

.answer-ui {
  justify-content: center;
  align-items: center;
}

.answer-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-emerald);
  text-align: center;
  margin: 0;
  padding: 0 24px;
}

.call-ui .call-header {
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.call-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.call-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(6, 182, 212, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.call-avatar-icon {
  color: rgba(255, 255, 255, 0.9);
}

.call-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.call-status {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.call-actions {
  display: flex;
  gap: 24px;
}

.call-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: default;
}

.call-btn.decline {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.call-btn.accept {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  animation: acceptBtnGlow 1.8s ease-in-out infinite;
}

@keyframes acceptBtnGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 0 20px 4px rgba(16, 185, 129, 0.5), 0 0 30px 8px rgba(16, 185, 129, 0.2);
  }
}

.calendar-ui {
  justify-content: flex-start;
  padding-top: 72px;
  align-items: stretch;
}

.calendar-ui .cal-header {
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calendar-ui .cal-day {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  padding: 0 2px;
}

.calendar-ui .cal-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cal-event {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  transition: opacity 0.2s ease;
}

.cal-event-dim {
  opacity: 0.6;
}

.cal-event-time {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 38px;
  flex-shrink: 0;
}

.cal-event-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

.cal-event-new {
  background: rgba(16, 185, 129, 0.12);
  border-left-color: var(--accent-emerald);
  animation: calNewEventIn 4.5s ease-out infinite;
}

@keyframes calNewEventIn {
  /* Wait while calendar view appears */
  0%, 48% { opacity: 0; transform: translateY(-8px); }
  /* AI booking animates into place */
  52% { opacity: 1; transform: translateY(0); }
  /* Stay visible as final state until loop restarts */
  52.01%, 100% { opacity: 1; transform: translateY(0); }
}

.cal-event-new-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cal-event-new .cal-event-time {
  color: var(--accent-cyan);
}

.cal-event-new .cal-event-title {
  font-weight: 600;
  color: var(--text);
}

.cal-event-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cal-event-badge {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent-emerald);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 4px;
}

/* ---- Section shared ---- */
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.section-title-center,
.section-desc-center {
  text-align: center;
}

.section-desc-center {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Demo section ---- */
.demo {
  padding: 140px 5%;
  position: relative;
  overflow: hidden;
}

.demo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 20% 50%, rgba(6, 182, 212, 0.06) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.demo .demo-inner {
  position: relative;
  z-index: 1;
}

.demo-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.demo-content {
  max-width: 480px;
}

.demo-content .section-desc {
  margin-top: 16px;
}

.demo-phone-inline {
  text-align: right;
}

.demo-number {
  display: inline-block;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-purple);
  text-decoration: none;
  transition: color var(--transition-smooth), text-shadow var(--transition-smooth), transform var(--transition-smooth);
}

.demo-number:hover {
  color: var(--accent-purple);
  text-shadow: 0 0 36px rgba(76, 29, 149, 0.6);
  transform: scale(1.02);
}

.demo-hint {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ---- ROI section ---- */
.roi {
  padding: 120px 5%;
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}

.roi::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.roi .roi-inner {
  position: relative;
  z-index: 1;
}

.roi-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 80px;
  align-items: start;
}

.roi-copy .section-title {
  margin-bottom: 16px;
}

.roi-copy .section-desc {
  margin-bottom: 28px;
}

.roi-stats-inline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.roi-stat-inline strong {
  color: var(--text);
  font-weight: 600;
}

/* Revenue growth block (heading, text, chart – no box) */
.roi-growth-block {
  margin-top: 40px;
}

.roi-growth-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.roi-growth-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.roi-chart-wrap {
  max-width: 100%;
}

.roi-chart {
  width: 100%;
  height: auto;
  max-height: 140px;
  display: block;
}

.roi-chart-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  filter: url(#roi-glow);
}

.roi-copy.revealed .roi-chart-path {
  stroke-dashoffset: 0;
}

.roi-chart-dot {
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.roi-copy.revealed .roi-chart-dot:nth-child(4) { transition-delay: 0.8s; }
.roi-copy.revealed .roi-chart-dot:nth-child(5) { transition-delay: 0.95s; }
.roi-copy.revealed .roi-chart-dot:nth-child(6) { transition-delay: 1.1s; }
.roi-copy.revealed .roi-chart-dot:nth-child(7) { transition-delay: 1.25s; }

.roi-copy.revealed .roi-chart-dot {
  opacity: 1;
  transform: scale(1);
}

.roi-chart-label {
  fill: #e5e7ff;
  font-size: 10px;
  opacity: 0;
  text-shadow: 0 0 12px rgba(124, 58, 237, 0.8);
  transition: opacity 0.6s ease-out 1.1s;
}

.roi-copy.revealed .roi-chart-label {
  opacity: 1;
}

/* Calculator widget */
.roi-widget {
  position: sticky;
  top: 100px;
}

.calculator-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.calculator-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(139, 92, 246, 0.2), 0 0 40px rgba(139, 92, 246, 0.15);
}

.calculator-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text);
}

.calculator-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calc-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.calc-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-base);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

/* Remove number input spinner arrows */
.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calc-input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.calc-input::placeholder {
  color: var(--text-dim);
}

.calc-input:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.calc-input:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.calc-btn {
  width: 100%;
  margin-top: 24px;
  padding: 14px 24px;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.calc-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 32px rgba(139, 92, 246, 0.55), 0 0 56px rgba(99, 102, 241, 0.22);
}

.calc-result {
  margin-top: 20px;
  padding: 16px;
  background: rgba(185, 28, 28, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  color: #f87171;
  min-height: 52px;
  display: flex;
  align-items: center;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.1);
}

.calc-result:empty {
  display: none;
}

/* ---- How it works ---- */
.how {
  padding: 140px 5%;
  position: relative;
  overflow: hidden;
}

.how::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(99, 102, 241, 0.06) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.how .how-inner {
  position: relative;
  z-index: 1;
}

.how-inner {
  max-width: 720px;
  margin: 0 auto;
}

.how-header {
  margin-bottom: 64px;
}

.how-header .section-desc {
  margin-top: 12px;
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.step-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 20px 0 48px;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth), transform var(--transition-smooth);
}

.step-item:hover {
  background: rgba(139, 92, 246, 0.04);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.08);
  transform: translateX(4px);
}

.step-item:last-child {
  padding-bottom: 20px;
  border-bottom: none;
}

.step-num {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.12);
  border-radius: 50%;
}

.step-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}

.step-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ---- Features ---- */
.features {
  padding: 120px 5%;
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}

.features::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(59, 130, 246, 0.07) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.features .features-inner {
  position: relative;
  z-index: 1;
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.features .section-title-center {
  margin-bottom: 12px;
}

.features .section-desc-center {
  margin-bottom: 56px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 24px 22px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(76, 29, 149, 0.45);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(76, 29, 149, 0.2), 0 0 36px rgba(76, 29, 149, 0.18);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(76, 29, 149, 0.3), rgba(37, 18, 94, 0.1));
  border: 1px solid rgba(76, 29, 149, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent-purple);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---- Listen section ---- */
.listen {
  padding: 120px 5%;
  position: relative;
  overflow: hidden;
}

.listen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.listen .listen-inner {
  position: relative;
  z-index: 1;
}

/* ---- Trust & Security ---- */
.trust {
  padding: 120px 5%;
  position: relative;
  overflow: hidden;
}

.trust::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(124, 58, 237, 0.12), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.trust-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.trust-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: flex-start;
}

.trust-item {
  text-align: left;
}

.trust-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.trust-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .trust-item {
    text-align: center;
  }
}

.listen-inner {
  max-width: 640px;
  margin: 0 auto;
}

.listen .section-title-center {
  margin-bottom: 12px;
}

.listen .section-desc-center {
  margin-bottom: 40px;
}

.audio-card {
  position: relative;
}

.audio-card-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.12) 0%, transparent 60%);
  filter: blur(30px);
  pointer-events: none;
}

.audio-player {
  position: relative;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.audio-player:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(139, 92, 246, 0.15), 0 0 40px rgba(139, 92, 246, 0.15);
}

.audio-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.audio-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.audio-duration {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.audio-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.audio-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.4);
}

.audio-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.55), 0 0 48px rgba(99, 102, 241, 0.25);
}

.audio-progress-wrap {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.audio-progress {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  border-radius: 4px;
  transition: width 0.1s linear;
}

.audio-time {
  font-size: 0.85rem;
  color: var(--text-muted);
  min-width: 40px;
  text-align: right;
}

.audio-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.audio-note code {
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8em;
}

/* ---- Final CTA ---- */
.final-cta {
  padding: 120px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.final-cta .final-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.final-headline {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.final-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.final-number {
  display: inline-block;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-purple);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color var(--transition-smooth), text-shadow var(--transition-smooth), transform var(--transition-smooth);
}

.final-number:hover {
  color: var(--accent-purple);
  text-shadow: 0 0 40px rgba(76, 29, 149, 0.5);
  transform: scale(1.02);
}

.cta-primary-large {
  padding: 18px 36px;
  font-size: 1.05rem;
}

/* ---- Footer ---- */
.footer {
  padding: 32px 5%;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ---- Scroll-in animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  transform: translateX(-36px);
}

.reveal-left.revealed {
  transform: translateX(0);
}

.reveal-right {
  transform: translateX(36px);
}

.reveal-right.revealed {
  transform: translateX(0);
}

.reveal.reveal-left.revealed,
.reveal.reveal-right.revealed {
  transform: translateX(0) translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-cta-row {
    justify-content: center;
  }

  .hero-visual {
    justify-content: center;
    padding-right: 0;
  }

  .phone-glow {
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
  }

  .roi-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .roi-widget {
    position: static;
    max-width: 400px;
    margin: 0 auto;
  }

  .demo-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .demo-content {
    max-width: 100%;
  }

  .demo-phone-inline {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    gap: 16px;
  }

  .phone-mockup {
    width: 260px;
    height: 520px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    order: 3;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: transparent;
    border: none;
    border-radius: 0;
    margin-top: 10px;
    padding: 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height var(--transition-smooth), opacity var(--transition-smooth), transform var(--transition-smooth), padding var(--transition-smooth);
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 10px 12px;
    font-size: 1rem;
    color: #ffffff;
    text-shadow: 0 0 18px rgba(76, 29, 149, 0.6);
  }

  .nav-links.is-open {
    max-height: 320px;
    opacity: 1;
    transform: translateY(0);
    padding: 18px 0 8px;
  }

  .nav-close {
    display: none;
  }
}
