/* ===========================
   HARMONIC — Landing Page CSS
   =========================== */

:root {
  --bg:        #0D0D0F;
  --surface:   #1A1A1E;
  --surface2:  #222228;
  --accent:    #7B5CF5;
  --accent-dim: rgba(123, 92, 245, 0.15);
  --accent2:   #00E5A0;
  --text:      #F2F2F7;
  --muted:     #6B6B7A;
  --border:    rgba(255,255,255,0.08);
  --radius:    12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===========================
   TYPOGRAPHY
   =========================== */

h1, h2, h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ===========================
   LAYOUT
   =========================== */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #6a4de0;
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(123,92,245,0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 14px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(123,92,245,0.3);
}

.btn-sm:hover {
  background: rgba(123,92,245,0.25);
  border-color: var(--accent);
}

/* ===========================
   HEADER
   =========================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(13,13,15,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* ===========================
   HERO
   =========================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

#waveform-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(0,229,160,0.1);
  border: 1px solid rgba(0,229,160,0.3);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent2);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-h1 {
  font-size: clamp(48px, 8vw, 84px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #F2F2F7 0%, #a0a0b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(17px, 2.5vw, 21px);
  color: #a0a0b8;
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* ===========================
   EMAIL FORM
   =========================== */

.email-form {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.email-form-row {
  display: flex;
  gap: 10px;
}

.email-input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
}

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

.email-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(123,92,245,0.15);
}

.form-message {
  margin-top: 12px;
  font-size: 14px;
  min-height: 20px;
}

.form-message.success {
  color: var(--accent2);
}

.form-message.error {
  color: #ff6b6b;
}

.social-count {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

/* ===========================
   HERO SCROLL HINT
   =========================== */

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ===========================
   FEATURES
   =========================== */

.features {
  padding: 100px 0;
  background: var(--bg);
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(123,92,245,0.4);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-desc {
  font-size: 14px;
  color: #a0a0b8;
  line-height: 1.65;
}

/* ===========================
   DIFFERENTIATOR BANNER
   =========================== */

.diff-banner {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.diff-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 64px;
}

.diff-accent {
  color: var(--accent);
}

.diff-compare {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.compare-col {
  flex: 1;
}

.compare-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.compare-label--accent {
  color: var(--accent);
}

.compare-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compare-list li {
  font-size: 15px;
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}

.compare-list--bad li {
  color: #a0a0b8;
}

.compare-list--bad li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: #ff6b6b;
  font-size: 12px;
  top: 2px;
}

.compare-list--good li {
  color: var(--text);
}

.compare-list--good li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent2);
  font-size: 12px;
  top: 2px;
}

.compare-divider {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--muted);
  padding-top: 40px;
  flex-shrink: 0;
}

/* ===========================
   SOCIAL PROOF
   =========================== */

.social-proof {
  padding: 100px 0;
  background: var(--bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  font-style: normal;
}

.testimonial p {
  font-size: 15px;
  color: #c8c8d8;
  line-height: 1.7;
  margin-bottom: 16px;
}

.testimonial p::before {
  content: '"';
  color: var(--accent);
  font-size: 28px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
  line-height: 1;
}

.testimonial cite {
  font-size: 13px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

/* ===========================
   BOTTOM CTA
   =========================== */

.cta-bottom {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg) 0%, #110f1a 100%);
  text-align: center;
}

.cta-h2 {
  font-size: clamp(36px, 6vw, 60px);
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 18px;
  color: #a0a0b8;
  margin-bottom: 40px;
}

.cta-fine {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

/* ===========================
   FOOTER
   =========================== */

.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

/* ===========================
   SCROLL ANIMATIONS
   =========================== */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger for grid children */
.features-grid .feature-card:nth-child(1) { transition-delay: 0.05s; }
.features-grid .feature-card:nth-child(2) { transition-delay: 0.10s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.15s; }
.features-grid .feature-card:nth-child(4) { transition-delay: 0.20s; }
.features-grid .feature-card:nth-child(5) { transition-delay: 0.25s; }
.features-grid .feature-card:nth-child(6) { transition-delay: 0.30s; }

.testimonials-grid .testimonial:nth-child(1) { transition-delay: 0.05s; }
.testimonials-grid .testimonial:nth-child(2) { transition-delay: 0.12s; }
.testimonials-grid .testimonial:nth-child(3) { transition-delay: 0.18s; }

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .email-form-row {
    flex-direction: column;
  }

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

  .diff-compare {
    flex-direction: column;
    gap: 32px;
  }

  .compare-divider {
    text-align: center;
    padding: 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
