/* ============================================================
   INTERVIEWAI — STYLES
   Palette: Volcanic Glass (#1A1A1A, #333, #FF6B2B, #FFB088)
   Fonts: Clash Display + Newsreader + Space Mono
   ============================================================ */

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

:root {
  --bg:        #0E0E0E;
  --bg-2:      #141414;
  --bg-3:      #1A1A1A;
  --bg-4:      #222222;
  --border:    rgba(255,255,255,0.07);
  --border-2:  rgba(255,255,255,0.12);
  --text:      #F0EDE8;
  --text-2:    #A09A92;
  --text-3:    #6B6560;
  --accent:    #FF6B2B;
  --accent-2:  #FFB088;
  --accent-glow: rgba(255,107,43,0.25);
  --radius:    12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, .nav-logo, .plan-name, .step-num {
  font-family: 'Clash Display', sans-serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

em { font-family: 'Newsreader', serif; font-style: italic; font-weight: 300; }

.section-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 1rem;
}

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

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: 'Clash Display', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: var(--transition);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); }
.btn-primary:hover::before { opacity: 1; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-2);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: 'Clash Display', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover { color: var(--text); border-color: var(--accent); background: rgba(255,107,43,0.05); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  font-family: 'Clash Display', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-2);
  transition: var(--transition);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: rgba(255,107,43,0.05); }

.btn-lg { padding: 1rem 2rem; font-size: 1rem; border-radius: 10px; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: 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; }

/* ── SECTION HEADER ── */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  color: var(--text);
}
.section-title em { color: var(--accent-2); }
.section-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(14,14,14,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  flex-shrink: 0;
}
.logo-accent { color: var(--accent); }
.logo-icon { display: flex; align-items: center; }

.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.nav-links a {
  font-family: 'Clash Display', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-2);
  transition: var(--transition);
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 2rem;
}
.nav-cta .btn-ghost { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.nav-cta .btn-primary { padding: 0.55rem 1.1rem; font-size: 0.85rem; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(14,14,14,0.97);
  border-top: 1px solid var(--border);
  padding: 1rem 2rem 1.5rem;
}
.nav-mobile a {
  font-family: 'Clash Display', sans-serif;
  font-size: 1rem;
  color: var(--text-2);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.nav-mobile a:hover { color: var(--accent); }
.nav-mobile .btn-primary { margin-top: 1rem; justify-content: center; }
.nav-mobile.open { display: flex; }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 8rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.hero-bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,107,43,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,43,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
}

.hero-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,107,43,0.12), transparent 70%);
  top: -100px; left: -100px;
  animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,176,136,0.08), transparent 70%);
  bottom: 0; right: 10%;
  animation: orbFloat 10s ease-in-out infinite reverse;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(123,104,238,0.06), transparent 70%);
  top: 40%; left: 40%;
  animation: orbFloat 12s ease-in-out infinite 2s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

.hero-inner { display: flex; flex-direction: column; gap: 1.5rem; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,107,43,0.08);
  border: 1px solid rgba(255,107,43,0.2);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent-2);
  letter-spacing: 0.05em;
  width: fit-content;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  color: var(--text);
  line-height: 1.05;
}
.hero-title em { color: var(--accent-2); display: block; }
.title-outline {
  -webkit-text-stroke: 1.5px var(--accent);
  color: transparent;
  display: block;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 480px;
  line-height: 1.8;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.stat-unit { font-size: 1.2rem; color: var(--accent); display: inline; }
.stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}
.stat-divider { width: 1px; height: 40px; background: var(--border-2); }

/* Hero Demo Card */
.hero-demo { display: flex; align-items: center; justify-content: center; }

.demo-card {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,107,43,0.05);
  position: relative;
  overflow: hidden;
}
.demo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.demo-dots { display: flex; gap: 5px; }
.demo-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bg-4);
}
.demo-dots span:nth-child(1) { background: #FF5F57; }
.demo-dots span:nth-child(2) { background: #FFBD2E; }
.demo-dots span:nth-child(3) { background: #28CA41; }
.demo-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-3);
  flex: 1;
  text-align: center;
}
.demo-live {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: #28CA41;
  letter-spacing: 0.1em;
}
.live-dot {
  width: 6px; height: 6px;
  background: #28CA41;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

.demo-avatar-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.ai-avatar {
  position: relative;
  width: 60px; height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.avatar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,107,43,0.3);
  animation: ringPulse 2s ease-in-out infinite;
}
.ring-1 { width: 60px; height: 60px; animation-delay: 0s; }
.ring-2 { width: 75px; height: 75px; animation-delay: 0.4s; opacity: 0.6; }
.ring-3 { width: 90px; height: 90px; animation-delay: 0.8s; opacity: 0.3; }
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.05); opacity: 1; }
}
.avatar-face {
  width: 48px; height: 48px;
  background: rgba(255,107,43,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,107,43,0.2);
  z-index: 1;
}
.ai-name {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.ai-name strong {
  font-family: 'Clash Display', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
}
.ai-speaking {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}
.ai-speaking span {
  display: block;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  animation: speakBar 1.2s ease-in-out infinite;
}
.ai-speaking span:nth-child(1) { height: 6px; animation-delay: 0s; }
.ai-speaking span:nth-child(2) { height: 12px; animation-delay: 0.1s; }
.ai-speaking span:nth-child(3) { height: 8px; animation-delay: 0.2s; }
.ai-speaking span:nth-child(4) { height: 14px; animation-delay: 0.3s; }
.ai-speaking span:nth-child(5) { height: 6px; animation-delay: 0.4s; }
@keyframes speakBar {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

.demo-bubble {
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 4px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  min-height: 70px;
}
.demo-bubble p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
  font-style: italic;
}

.demo-user-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,107,43,0.05);
  border: 1px solid rgba(255,107,43,0.15);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.user-mic {
  width: 32px; height: 32px;
  background: rgba(255,107,43,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.user-waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  height: 20px;
}
.user-waveform span {
  display: block;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  animation: waveAnim 0.8s ease-in-out infinite;
}
.user-waveform span:nth-child(1) { height: 6px; animation-delay: 0s; }
.user-waveform span:nth-child(2) { height: 14px; animation-delay: 0.1s; }
.user-waveform span:nth-child(3) { height: 10px; animation-delay: 0.15s; }
.user-waveform span:nth-child(4) { height: 18px; animation-delay: 0.2s; }
.user-waveform span:nth-child(5) { height: 8px; animation-delay: 0.25s; }
.user-waveform span:nth-child(6) { height: 16px; animation-delay: 0.3s; }
.user-waveform span:nth-child(7) { height: 12px; animation-delay: 0.35s; }
.user-waveform span:nth-child(8) { height: 6px; animation-delay: 0.4s; }
@keyframes waveAnim {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}
.user-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--accent-2);
  white-space: nowrap;
}

.demo-feedback {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.feedback-chip {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  letter-spacing: 0.03em;
}
.feedback-chip.good {
  background: rgba(40,202,65,0.1);
  border: 1px solid rgba(40,202,65,0.25);
  color: #28CA41;
}
.feedback-chip.warn {
  background: rgba(255,189,46,0.1);
  border: 1px solid rgba(255,189,46,0.25);
  color: #FFBD2E;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ══════════════════════════════════════════
   LOGOS BAR
══════════════════════════════════════════ */
.logos-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
  overflow: hidden;
  background: var(--bg-2);
}
.logos-label {
  text-align: center;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.logos-track { overflow: hidden; }
.logos-inner {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: logoScroll 20s linear infinite;
}
.logos-inner span {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-3);
  white-space: nowrap;
  letter-spacing: 0.05em;
  transition: var(--transition);
}
.logos-inner span:hover { color: var(--accent); }
@keyframes logoScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════
   FEATURES
══════════════════════════════════════════ */
.features {
  padding: 8rem 0;
  background: var(--bg);
}

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

.feature-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,107,43,0.05), transparent 60%);
  opacity: 0;
  transition: var(--transition);
}
.feature-card:hover { border-color: rgba(255,107,43,0.3); transform: translateY(-4px); }
.feature-card:hover::before { opacity: 1; }

.feature-card--large {
  grid-column: span 2;
}

.feature-icon {
  width: 52px; height: 52px;
  background: rgba(255,107,43,0.08);
  border: 1px solid rgba(255,107,43,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.7;
}

.feature-visual { margin-top: 1.5rem; }

.mini-waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
}
.mini-waveform span {
  flex: 1;
  background: linear-gradient(to top, var(--accent), var(--accent-2));
  border-radius: 3px;
  animation: miniWave 1.5s ease-in-out infinite;
}
.mini-waveform span:nth-child(1) { height: 30%; animation-delay: 0s; }
.mini-waveform span:nth-child(2) { height: 70%; animation-delay: 0.1s; }
.mini-waveform span:nth-child(3) { height: 50%; animation-delay: 0.2s; }
.mini-waveform span:nth-child(4) { height: 90%; animation-delay: 0.3s; }
.mini-waveform span:nth-child(5) { height: 60%; animation-delay: 0.4s; }
.mini-waveform span:nth-child(6) { height: 40%; animation-delay: 0.5s; }
.mini-waveform span:nth-child(7) { height: 80%; animation-delay: 0.6s; }
.mini-waveform span:nth-child(8) { height: 55%; animation-delay: 0.7s; }
.mini-waveform span:nth-child(9) { height: 35%; animation-delay: 0.8s; }
.mini-waveform span:nth-child(10) { height: 65%; animation-delay: 0.9s; }
@keyframes miniWave {
  0%, 100% { transform: scaleY(0.5); opacity: 0.6; }
  50% { transform: scaleY(1); opacity: 1; }
}

.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 50px;
}
.chart-bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(to top, var(--accent), var(--accent-2));
  border-radius: 4px 4px 0 0;
  opacity: 0.7;
  transition: var(--transition);
}
.chart-bar:hover { opacity: 1; }

/* ══════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════ */
.how-it-works {
  padding: 8rem 0;
  background: var(--bg-2);
  position: relative;
}

.steps-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}
.steps-line {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  transform: translateX(-50%);
}

.step {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 3rem;
}
.step--reverse { direction: rtl; }
.step--reverse > * { direction: ltr; }

.step-num {
  font-family: 'Clash Display', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(255,107,43,0.08);
  border: 1px solid rgba(255,107,43,0.2);
  border-radius: 50%;
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-content h3 {
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.step-content p {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.8;
}

.step-visual { display: flex; justify-content: center; }

.step-card {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 1.25rem;
  width: 220px;
}
.step-card--dark { background: var(--bg-4); }

.step-card-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.tag-pill {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  border: 1px solid var(--border-2);
  color: var(--text-3);
  white-space: nowrap;
}
.tag-pill.active {
  background: rgba(255,107,43,0.1);
  border-color: rgba(255,107,43,0.3);
  color: var(--accent-2);
}

.mini-avatar {
  position: relative;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.mini-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(255,107,43,0.3);
  animation: ringPulse 2s ease-in-out infinite;
}
.mini-quote {
  font-size: 0.8rem;
  color: var(--text-2);
  font-style: italic;
  line-height: 1.5;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-3);
}
.score-row span:first-child { width: 65px; flex-shrink: 0; }
.score-row span:last-child { width: 24px; text-align: right; color: var(--accent-2); }
.score-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-4);
  border-radius: 2px;
  overflow: hidden;
}
.score-fill {
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  animation: fillBar 1.5s ease-out forwards;
}
@keyframes fillBar {
  from { width: 0; }
  to { width: var(--w); }
}

/* ══════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════ */
.testimonials {
  padding: 8rem 0;
  background: var(--bg);
  overflow: hidden;
}

.carousel-wrapper { position: relative; }

.carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.testimonial-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  min-width: calc(33.333% - 1rem);
  flex-shrink: 0;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px; right: 1.5rem;
  font-family: 'Newsreader', serif;
  font-size: 8rem;
  color: rgba(255,107,43,0.06);
  line-height: 1;
  pointer-events: none;
}
.testimonial-card:hover { border-color: rgba(255,107,43,0.25); transform: translateY(-4px); }

.tcard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.tcard-stars { color: var(--accent); font-size: 0.85rem; letter-spacing: 2px; }
.tcard-company {
  font-family: 'Clash Display', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 1.5rem;
  border: none;
  padding: 0;
}

.tcard-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.tcard-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Clash Display', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.tcard-author strong {
  display: block;
  font-family: 'Clash Display', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
}
.tcard-author span {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-3);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.carousel-btn {
  width: 44px; height: 44px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  cursor: pointer;
  transition: var(--transition);
}
.carousel-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(255,107,43,0.05); }

.carousel-dots { display: flex; gap: 0.5rem; }
.carousel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--bg-4);
  border: 1px solid var(--border-2);
  cursor: pointer;
  transition: var(--transition);
}
.carousel-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  width: 20px;
  border-radius: 3px;
}

/* ══════════════════════════════════════════
   PRICING
══════════════════════════════════════════ */
.pricing {
  padding: 8rem 0;
  background: var(--bg-2);
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}
.toggle-label {
  font-family: 'Clash Display', sans-serif;
  font-size: 0.9rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.toggle-label.active { color: var(--text); }
.save-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  background: rgba(40,202,65,0.1);
  border: 1px solid rgba(40,202,65,0.25);
  color: #28CA41;
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

.toggle-switch {
  width: 48px; height: 26px;
  background: var(--bg-4);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}
.toggle-switch.on { background: var(--accent); border-color: var(--accent); }
.toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.toggle-switch.on .toggle-thumb { transform: translateX(22px); }

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

.pricing-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: var(--transition);
}
.pricing-card:hover { border-color: rgba(255,107,43,0.2); transform: translateY(-4px); }

.pricing-card--featured {
  background: linear-gradient(135deg, rgba(255,107,43,0.08), rgba(255,176,136,0.04));
  border-color: rgba(255,107,43,0.3);
  transform: scale(1.03);
  box-shadow: 0 20px 60px rgba(255,107,43,0.1);
}
.pricing-card--featured:hover { transform: scale(1.03) translateY(-4px); }

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.plan-name {
  font-size: 1rem;
  color: var(--text-2);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  margin-bottom: 0.75rem;
}
.price-currency {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.2rem;
  color: var(--text-2);
  align-self: flex-start;
  margin-top: 0.5rem;
}
.price-amount {
  font-family: 'Clash Display', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  transition: var(--transition);
}
.price-period {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-3);
}

.plan-desc {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-2);
}
.plan-features li.disabled { color: var(--text-3); }
.plan-features li svg { flex-shrink: 0; }

/* ══════════════════════════════════════════
   CTA BANNER
══════════════════════════════════════════ */
.cta-banner {
  padding: 8rem 0;
  text-align: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.cta-orb {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,107,43,0.12), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-banner h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--text);
  margin-bottom: 1rem;
}
.cta-banner h2 em { color: var(--accent-2); }
.cta-banner p {
  font-size: 1.05rem;
  color: var(--text-2);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 5rem 0 2rem;
}

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

.footer-brand .nav-logo { margin-bottom: 1rem; display: inline-flex; }
.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}
.footer-social a {
  width: 36px; height: 36px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: var(--transition);
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }

.footer-col h4 {
  font-family: 'Clash Display', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a {
  font-size: 0.88rem;
  color: var(--text-3);
  transition: var(--transition);
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-3);
}

/* ══════════════════════════════════════════
   AI CHAT WIDGET
══════════════════════════════════════════ */
.chat-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
}

.chat-fab {
  width: 60px; height: 60px;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(255,107,43,0.4);
  transition: var(--transition);
  position: relative;
}
.chat-fab:hover { transform: scale(1.1); box-shadow: 0 12px 40px rgba(255,107,43,0.5); }

.fab-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255,107,43,0.4);
  animation: fabPulse 2s ease-in-out infinite;
}
@keyframes fabPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 0; }
}

.chat-panel {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 360px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  overflow: hidden;
  display: none;
  flex-direction: column;
  max-height: 520px;
  animation: panelSlide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.chat-panel.open { display: flex; }
@keyframes panelSlide {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-4);
}
.chat-ai-info { display: flex; align-items: center; gap: 0.75rem; }
.chat-ai-avatar {
  width: 38px; height: 38px;
  background: rgba(255,107,43,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid rgba(255,107,43,0.2);
}
.chat-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(255,107,43,0.3);
  animation: ringPulse 2s ease-in-out infinite;
}
.chat-ai-info strong {
  display: block;
  font-family: 'Clash Display', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
}
.chat-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: var(--text-3);
}
.status-dot {
  width: 6px; height: 6px;
  background: #28CA41;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
.chat-close-btn {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 4px;
  transition: var(--transition);
  border-radius: 4px;
}
.chat-close-btn:hover { color: var(--text); background: var(--bg-3); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-4) transparent;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 2px; }

.chat-msg {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.6;
}
.chat-msg.ai {
  background: var(--bg-4);
  border: 1px solid var(--border);
  color: var(--text-2);
  align-self: flex-start;
  border-radius: 4px 12px 12px 12px;
}
.chat-msg.ai p + p { margin-top: 0.4rem; }
.chat-msg.user {
  background: var(--accent);
  color: white;
  align-self: flex-end;
  border-radius: 12px 4px 12px 12px;
}
.chat-msg.typing {
  background: var(--bg-4);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-radius: 4px 12px 12px 12px;
  padding: 0.75rem 1rem;
}
.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 16px;
}
.typing-dots span {
  width: 6px; height: 6px;
  background: var(--text-3);
  border-radius: 50%;
  animation: typingDot 1.2s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-4px); opacity: 1; }
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1.25rem 0.75rem;
}
.quick-reply {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255,107,43,0.06);
  border: 1px solid rgba(255,107,43,0.2);
  border-radius: 100px;
  color: var(--accent-2);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.03em;
}
.quick-reply:hover { background: rgba(255,107,43,0.12); border-color: var(--accent); }

.chat-input-area {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--bg-4);
}
#chatInput {
  flex: 1;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  font-family: 'Newsreader', serif;
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  transition: var(--transition);
}
#chatInput::placeholder { color: var(--text-3); }
#chatInput:focus { border-color: var(--accent); }

.chat-send-btn {
  width: 38px; height: 38px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.chat-send-btn:hover { background: #e55a1f; transform: scale(1.05); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 7rem 2rem 4rem;
  }
  .hero-inner { align-items: center; }
  .hero-sub { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-demo { order: -1; }
  .hero-scroll-hint { display: none; }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-card--large { grid-column: span 2; }

  .steps-line { display: none; }
  .step, .step--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    text-align: center;
    gap: 1.5rem;
  }
  .step-num { margin: 0 auto; }
  .step-visual { justify-content: center; }

  .testimonial-card { min-width: calc(50% - 0.75rem); }

  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pricing-card--featured { transform: none; }
  .pricing-card--featured:hover { transform: translateY(-4px); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .hero-title { font-size: clamp(2.2rem, 8vw, 3rem); }

  .features-grid { grid-template-columns: 1fr; }
  .feature-card--large { grid-column: span 1; }

  .testimonial-card { min-width: calc(100% - 0); }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .chat-panel { width: 320px; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .hero { padding: 6rem 1.25rem 3rem; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .stat-divider { width: 40px; height: 1px; }
  .chat-widget { bottom: 1rem; right: 1rem; }
  .chat-panel { width: calc(100vw - 2rem); right: -1rem; }
}