/* ============================================
   Listener — Website Styles
   Dark, elegant, serif-forward. Matches the app.
   ============================================ */

:root {
  --bg: #000000;
  --bg-elevated: #111111;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --text-primary: #f0ece4;
  --text-secondary: #8a8680;
  --text-muted: #5a5650;
  --accent: #f0ece4;
  --accent-glow: rgba(240, 236, 228, 0.06);
  --border: rgba(240, 236, 228, 0.08);
  --border-light: rgba(240, 236, 228, 0.12);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- Navigation ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--text-primary) !important;
  color: var(--bg) !important;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 500 !important;
  transition: opacity 0.2s !important;
}

.nav-cta:hover {
  opacity: 0.9;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 24px;
  flex-direction: column;
  gap: 24px;
  z-index: 99;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: 400;
}

/* ---- Hero ---- */

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

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(240, 236, 228, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 80px;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-store-badge svg {
  height: 48px;
  width: auto;
  transition: opacity 0.2s;
}

.app-store-badge:hover svg {
  opacity: 0.9;
}

.app-store-badge-large svg {
  height: 56px;
}

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-phone {
  flex-shrink: 0;
}

/* ---- Phone Frame ---- */

.phone-frame {
  width: 280px;
  background: var(--bg);
  border-radius: 40px;
  border: 2px solid var(--border-light);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(240, 236, 228, 0.03),
    0 25px 60px rgba(0, 0, 0, 0.6),
    0 0 120px rgba(240, 236, 228, 0.03);
}

.phone-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.phone-frame-small {
  width: 220px;
}

.phone-frame-gallery {
  width: 240px;
  flex-shrink: 0;
}

/* ---- Stats ---- */

.stats {
  padding: 60px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-number {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  color: var(--text-primary);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

/* ---- Sections ---- */

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 64px;
  line-height: 1.7;
}

/* ---- Features ---- */

.features {
  padding: 120px 24px;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: background 0.3s, border-color 0.3s;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- How It Works ---- */

.how-it-works {
  padding: 120px 24px;
  background: var(--bg-elevated);
}

.steps {
  display: flex;
  gap: 48px;
  justify-content: center;
  align-items: flex-start;
}

.step {
  flex: 1;
  max-width: 320px;
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  font-family: var(--serif);
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.step-phone {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.step h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 10px;
}

.step p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- Screenshots ---- */

.screenshots {
  padding: 120px 0;
}

.screenshots .section-inner {
  max-width: none;
  padding: 0;
}

.screenshots .section-title {
  padding: 0 24px;
}

.screenshot-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 24px;
}

.screenshot-scroll::-webkit-scrollbar {
  display: none;
}

.screenshot-track {
  display: flex;
  gap: 28px;
  padding: 20px 0 40px;
  width: max-content;
}

.screenshot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 240px;
}

.screenshot-caption {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
  max-width: 220px;
}

/* ---- Pricing ---- */

.pricing {
  padding: 120px 24px;
  background: var(--bg-elevated);
}

.pricing-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
}

.pricing-card {
  flex: 1;
  max-width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  position: relative;
}

.pricing-card-pro {
  border-color: var(--border-light);
  background: linear-gradient(180deg, #1f1f1f 0%, var(--bg-card) 100%);
}

.pro-badge {
  position: absolute;
  top: -12px;
  left: 32px;
  background: var(--text-primary);
  color: var(--bg);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pricing-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 8px;
}

.price {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 500;
  margin-bottom: 28px;
}

.price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-card li {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.pricing-card li:last-child {
  border-bottom: none;
}

.pricing-card li::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--text-muted);
  border-radius: 50%;
  margin-right: 12px;
  vertical-align: middle;
}

.pricing-cta {
  display: block;
  text-align: center;
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: opacity 0.2s;
  background: var(--text-primary);
  color: var(--bg);
}

.pricing-cta:hover {
  opacity: 0.9;
}

.pricing-cta-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.pricing-cta-secondary:hover {
  background: var(--accent-glow);
}

/* ---- Final CTA ---- */

.final-cta {
  padding: 120px 24px;
  text-align: center;
}

.final-cta h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  margin-bottom: 12px;
}

.final-cta p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

/* ---- Footer ---- */

.footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--text-secondary);
}

.footer-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s;
}

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

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

/* ---- Animations ---- */

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

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

/* Stagger children in feature grid */
.feature-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.feature-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.feature-grid .fade-in:nth-child(4) { transition-delay: 0.3s; }
.feature-grid .fade-in:nth-child(5) { transition-delay: 0.4s; }
.feature-grid .fade-in:nth-child(6) { transition-delay: 0.5s; }

.steps .fade-in:nth-child(2) { transition-delay: 0.15s; }
.steps .fade-in:nth-child(3) { transition-delay: 0.3s; }

/* ---- Responsive ---- */

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu.open { display: flex; }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 48px;
  }

  .hero-subtitle {
    margin: 0 auto 40px;
  }

  .hero-actions {
    justify-content: center;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .stats-inner {
    flex-wrap: wrap;
    gap: 32px;
  }

  .stat-divider {
    display: none;
  }

  .stats-inner {
    justify-content: space-around;
  }

  .pricing-cards {
    flex-direction: column;
    align-items: center;
  }

  .pricing-card {
    max-width: 100%;
    width: 100%;
  }

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

@media (max-width: 600px) {
  .hero {
    padding: 100px 20px 60px;
    min-height: auto;
  }

  .phone-frame {
    width: 220px;
    border-radius: 32px;
  }

  .phone-frame-small {
    width: 180px;
  }

  .phone-frame-gallery {
    width: 200px;
  }

  .stats-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .feature-card {
    padding: 28px 24px;
  }

  .features,
  .how-it-works,
  .screenshots,
  .pricing,
  .final-cta {
    padding: 80px 20px;
  }

  .screenshots {
    padding: 80px 0;
  }

  .pricing-card {
    padding: 32px 24px;
  }
}
