/* ============================================
   voicemyjoi.ai Landing Page
   Premium Dark Theme with Dusty Rose Accent
   Linear-inspired refinements
   ============================================ */

/* CSS Custom Properties - Design Tokens */
:root {
  /* Background palette */
  --bg-base: #0d0d0d;
  --bg-surface: #131313;
  --bg-elevated: #1a1a1a;
  --bg-overlay: #222222;

  /* Border palette */
  --border-subtle: #1f1f1f;
  --border-default: #2a2a2a;
  --border-emphasis: #3a3a3a;

  /* Text palette */
  --text-primary: #f5f5f4;
  --text-secondary: #a1a1a1;
  --text-tertiary: #6b6b6b;
  --text-muted: #4a4a4a;

  /* Accent - dusty rose */
  --accent: #c9a0a0;
  --accent-hover: #d4b0b0;
  --accent-muted: rgba(201, 160, 160, 0.15);
  --accent-subtle: rgba(201, 160, 160, 0.08);

  /* Typography - matching main app */
  --font-display: 'Source Serif 4', Georgia, serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Pinyon Script', cursive;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Layout - unified container system */
  --container-max-width: 1100px;
  --container-padding: clamp(20px, 5vw, 48px);

  /* Timing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-base);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   LOGO COMPONENT
   Elegant wordmark with piecewise animation
   ============================================ */
.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-ui);
  font-weight: 300;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-voice,
.logo-joi,
.logo-ai {
  color: var(--text-primary);
}

.logo-my {
  color: var(--text-primary);
  margin-left: 0.08em;
}

.logo-joi {
  margin-left: 0.08em;
}

.logo-ai {
  color: var(--accent);
  margin-left: 0.04em;
}

/* Logo sizes */
.logo--nav {
  font-size: 1.25rem;
}

.logo--hero {
  font-size: clamp(3rem, 8vw, 5.5rem);
  margin: 0;
}

.logo--footer {
  font-size: 1.5rem;
}


/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) var(--container-padding);
  background: linear-gradient(to bottom, rgba(13, 13, 13, 0.98), rgba(13, 13, 13, 0));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--duration-normal) ease;
}

.nav.scrolled {
  background: rgba(13, 13, 13, 0.95);
}

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

.nav-logo {
  transition: opacity var(--duration-fast) ease;
}

.nav-logo:hover {
  opacity: 0.8;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

@media (max-width: 480px) {
  .nav-actions {
    gap: var(--space-md);
  }
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 400;
  transition: color var(--duration-fast) ease;
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 600px) {
  .btn-primary,
  .btn-secondary,
  .btn-ghost {
    font-size: 0.9375rem;
    padding: 0.625rem 1.25rem;
  }
}

.btn-primary {
  background-color: var(--accent);
  color: var(--bg-base);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 160, 160, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background-color: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.btn-secondary:hover {
  background-color: var(--bg-overlay);
  border-color: var(--border-emphasis);
}

.btn-secondary:active {
  background-color: var(--bg-elevated);
}

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

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-emphasis);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:active {
  background: transparent;
}

.btn-nav {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
}

@media (min-width: 600px) {
  .btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }
}

.btn-xl {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 500;
}

@media (min-width: 600px) {
  .btn-xl {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
  }
}

.btn-icon {
  width: 16px;
  height: 16px;
  transition: transform var(--duration-fast) ease;
}

.btn-ghost:hover .btn-icon {
  transform: translateY(2px);
}

/* ============================================
   HERO SECTION - Linear style with bg image
   ============================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  padding: clamp(120px, 20vh, 200px) var(--container-padding) var(--space-4xl);
  overflow: hidden;
}

/* Hero background image - faded into background */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg-image {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 75%;
  max-width: 1000px;
  height: auto;
  opacity: 0;
  transform: translateX(20px) translateZ(0);
  mask-image:
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 25%),
    linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0) 85%);
  -webkit-mask-image:
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 25%),
    linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0) 85%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  animation: imageReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Hero content - aligned with nav */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container-max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-headline {
  font-family: var(--font-ui);
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 var(--space-lg);
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(8px) translateZ(0);
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  animation: fadeInUp 0.6s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

/* Inline logo in headline */
.logo--inline {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.hero-subheadline {
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 var(--space-xl);
  max-width: 480px;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(8px) translateZ(0);
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  animation: fadeInUp 0.6s cubic-bezier(0.33, 1, 0.68, 1) 0.1s forwards;
}

.hero-subheadline br {
  display: none;
}

.hero-headline em,
.hero-subheadline em {
  font-style: italic;
  color: var(--accent);
}

.hero-period {
  color: var(--text-primary);
  font-style: normal;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  opacity: 0;
  transform: translateY(8px) translateZ(0);
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  animation: fadeInUp 0.6s cubic-bezier(0.33, 1, 0.68, 1) 0.2s forwards;
}

/* Large screens: allow headline to stay on one line if it fits */
@media (min-width: 900px) {
  .hero-headline {
    white-space: nowrap;
  }
  .hero-subheadline br {
    display: inline;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px) translateZ(0);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateZ(0);
  }
}

@keyframes imageReveal {
  from {
    opacity: 0;
    transform: translateX(20px) translateZ(0);
  }
  to {
    opacity: 0.55;
    transform: translateX(0) translateZ(0);
  }
}

/* ============================================
   SECTIONS - Base Styles
   ============================================ */
.section {
  padding: var(--space-3xl) var(--container-padding);
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-4xl) var(--container-padding);
  }
}

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

.section-inner--narrow {
  max-width: 800px;
}

.section-title {
  font-family: var(--font-ui);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 var(--space-sm);
  color: var(--text-primary);
  text-wrap: balance;
}

@media (min-width: 600px) {
  .section-title {
    margin-bottom: var(--space-md);
  }
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-tertiary);
  margin: 0 0 var(--space-2xl);
}

@media (min-width: 600px) {
  .section-subtitle {
    font-size: 1.125rem;
    margin-bottom: var(--space-3xl);
  }
}

.text-center { text-align: center; }
.text-accent { color: var(--accent); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

/* ============================================
   AUDIO QUALITY SECTION
   ============================================ */
.section--quality {
  background: linear-gradient(to bottom, var(--bg-base), var(--bg-surface));
}

.section--quality .section-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

@media (min-width: 900px) {
  .section--quality .section-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
  }
}

.quality-content {
  text-align: center;
}

@media (min-width: 900px) {
  .quality-content {
    text-align: left;
  }
}

.quality-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: var(--space-md) 0 var(--space-lg);
}

@media (min-width: 600px) {
  .quality-description {
    font-size: 1.125rem;
    margin: var(--space-lg) 0 var(--space-xl);
  }
}

.quality-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) var(--space-lg);
}

@media (min-width: 900px) {
  .quality-trust {
    flex-direction: column;
    gap: var(--space-md);
    justify-content: flex-start;
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-tertiary);
  font-size: 0.8125rem;
}

@media (min-width: 600px) {
  .trust-item {
    gap: var(--space-md);
    font-size: 0.9375rem;
  }
}

.trust-icon {
  color: var(--accent);
  opacity: 0.8;
}

.trust-icon svg {
  width: 18px;
  height: 18px;
}

@media (min-width: 600px) {
  .trust-icon svg {
    width: 24px;
    height: 24px;
  }
}

/* Waveform visualization */
.waveform-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-2xl);
}

.waveform {
  width: 100%;
  max-width: 400px;
  height: 80px;
}

.waveform-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
}

/* CSS-only animated waveform */
.waveform-visual::before {
  content: '';
  display: flex;
  gap: 4px;
  height: 60px;
  align-items: center;
}

.waveform-visual {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.waveform-visual::after {
  content: '';
  display: block;
  width: 300px;
  height: 60px;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 4px,
    var(--accent) 4px,
    var(--accent) 6px
  );
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Cpath d='M0 10 Q5 5, 10 10 T20 10 T30 10 T40 10 T50 10 T60 10 T70 10 T80 10 T90 10 T100 10' fill='none' stroke='black' stroke-width='8'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Cpath d='M0 10 Q5 5, 10 10 T20 10 T30 10 T40 10 T50 10 T60 10 T70 10 T80 10 T90 10 T100 10' fill='none' stroke='black' stroke-width='8'/%3E%3C/svg%3E");
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  animation: waveformPulse 3s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes waveformPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
  50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* ============================================
   AUDIO SAMPLES SECTION
   ============================================ */
.section--samples {
  background: var(--bg-surface);
}

.samples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

@media (min-width: 1000px) {
  .samples-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

.sample-card {
  background: linear-gradient(135deg, var(--bg-elevated) 0%, rgba(28, 28, 28, 0.8) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: var(--space-lg);
  transition: border-color var(--duration-normal) ease, transform var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
  position: relative;
  overflow: hidden;
}

/* Subtle gradient accent on top edge */
.sample-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-muted), transparent);
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
}

.sample-card:hover {
  border-color: var(--border-default);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.5);
}

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

.sample-card.playing {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 16px 48px -12px rgba(201, 160, 160, 0.25);
}

.sample-card.playing::before {
  opacity: 1;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* Header with title and duration */
.sample-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xs);
}

.sample-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.sample-duration {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  background: var(--bg-overlay);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Description */
.sample-desc {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin: 0 0 var(--space-lg);
  min-height: 2.25em;
}

/* Player controls */
.sample-player {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.sample-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: var(--bg-base);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--duration-fast) ease, background-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
  box-shadow: 0 2px 8px rgba(201, 160, 160, 0.3);
}

.sample-play:hover {
  background: var(--accent-hover);
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(201, 160, 160, 0.4);
}

.sample-play:active {
  transform: scale(0.95);
}

.sample-play .pause-icon {
  display: none;
}

.sample-card.playing .sample-play .play-icon {
  display: none;
}

.sample-card.playing .sample-play .pause-icon {
  display: block;
}

/* Track container with waveform and slider */
.sample-track {
  flex: 1;
  position: relative;
  height: 32px;
  display: flex;
  align-items: center;
}

/* Decorative waveform background - simple bars */
.sample-waveform {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  pointer-events: none;
  overflow: hidden;
}

/* Generate waveform bars with gradient */
.sample-waveform::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    var(--border-default) 0%,
    var(--border-emphasis) 50%,
    var(--border-default) 100%
  );
  mask-image: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 1px,
    black 1px,
    black 3px
  );
  -webkit-mask-image: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 1px,
    black 1px,
    black 3px
  );
  opacity: 0.6;
}

/* Add visual variety with a second layer */
.sample-waveform::after {
  content: '';
  position: absolute;
  inset: 4px 0;
  background: var(--border-default);
  mask-image:
    repeating-linear-gradient(90deg, transparent 0px, transparent 3px, black 3px, black 5px),
    linear-gradient(0deg, transparent 0%, black 30%, black 70%, transparent 100%);
  -webkit-mask-image:
    repeating-linear-gradient(90deg, transparent 0px, transparent 3px, black 3px, black 5px),
    linear-gradient(0deg, transparent 0%, black 30%, black 70%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
  opacity: 0.4;
}

/* Progress fill */
.sample-progress {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  pointer-events: none;
  z-index: 1;
}

/* Custom range slider */
.sample-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  z-index: 2;
}

/* Show a thumb on hover - position controlled by JS via --thumb-position */
.sample-track {
  --thumb-position: 0%;
}

.sample-track::after {
  content: '';
  position: absolute;
  left: var(--thumb-position);
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 14px;
  height: 14px;
  background: var(--accent);
  border: 2px solid var(--bg-base);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
  pointer-events: none;
  z-index: 3;
}

.sample-card:hover .sample-track::after,
.sample-card.playing .sample-track::after {
  transform: translate(-50%, -50%) scale(1);
}

.sample-card.playing .sample-track::after {
  box-shadow: 0 2px 12px rgba(201, 160, 160, 0.5);
}

/* Current time display */
.sample-time {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 28px;
  text-align: right;
}

/* Playing state enhancements */
.sample-card.playing .sample-waveform::before,
.sample-card.playing .sample-waveform::after {
  opacity: 0.7;
}

.sample-card.playing .sample-progress {
  box-shadow: 0 0 8px var(--accent-muted);
}

/* ============================================
   PLATFORMS SECTION
   ============================================ */
.section--platforms {
  padding: var(--space-2xl) var(--container-padding);
  background: var(--bg-base);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
  .section--platforms {
    padding: var(--space-3xl) var(--container-padding);
  }
}

.platforms-title {
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 var(--space-lg);
}

@media (min-width: 600px) {
  .platforms-title {
    font-size: 0.875rem;
    margin-bottom: var(--space-xl);
  }
}

.platforms-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg) var(--space-2xl);
}

@media (min-width: 768px) {
  .platforms-logos {
    gap: var(--space-3xl);
  }
}

.platform-logo {
  opacity: 0.4;
  filter: grayscale(100%);
  transition: opacity var(--duration-normal) ease, filter var(--duration-normal) ease;
}

.platform-logo:hover {
  opacity: 0.8;
  filter: grayscale(0%);
}

.platform-placeholder {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

@media (min-width: 600px) {
  .platform-placeholder {
    font-size: 1.25rem;
  }
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.section--how-it-works {
  background: linear-gradient(to bottom, var(--bg-base), var(--bg-surface));
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
  position: relative;
}

/* Connecting line behind steps */
.steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-emphasis) 15%, var(--border-emphasis) 85%, transparent);
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: var(--bg-base);
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 1.25rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  position: relative;
  z-index: 1;
}

.step-title {
  font-family: var(--font-ui);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-sm);
  color: var(--text-primary);
}

.step-description {
  font-size: 0.9375rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin: 0;
  max-width: 240px;
  margin-left: auto;
  margin-right: auto;
}

.step-connector {
  display: none;
}

/* ============================================
   FEATURES SECTION - Linear-style floating UI
   ============================================ */
.section--features {
  background: var(--bg-base);
  overflow: hidden;
}

.features-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
}

@media (min-width: 900px) {
  .features-grid {
    gap: var(--space-4xl);
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .feature-item {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-2xl);
    align-items: center;
  }

  .feature-item:nth-child(even) {
    grid-template-columns: 1.5fr 1fr;
  }

  .feature-item:nth-child(even) .feature-text {
    order: 2;
  }

  .feature-item:nth-child(even) .feature-visual {
    order: 1;
  }
}

@media (min-width: 1024px) {
  .feature-item {
    grid-template-columns: 1fr 2fr;
    gap: var(--space-3xl);
  }

  .feature-item:nth-child(even) {
    grid-template-columns: 2fr 1fr;
  }
}

.feature-text {
  padding: 0;
}

@media (min-width: 768px) {
  .feature-text {
    padding: var(--space-lg) 0;
  }
}

.feature-title {
  font-family: var(--font-ui);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-sm);
  color: var(--text-primary);
}

@media (min-width: 600px) {
  .feature-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
  }
}

.feature-description {
  font-size: 0.9375rem;
  color: var(--text-tertiary);
  line-height: 1.7;
  margin: 0;
}

@media (min-width: 600px) {
  .feature-description {
    font-size: 1rem;
  }
}

/* Screenshot floating on background with edge fade */
.feature-visual {
  position: relative;
}

.feature-screenshot {
  position: relative;
  border-radius: 8px;
  overflow: visible;
}

.feature-screenshot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,1) 10%,
    rgba(0,0,0,1) 85%,
    rgba(0,0,0,0) 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,1) 10%,
    rgba(0,0,0,1) 85%,
    rgba(0,0,0,0) 100%
  );
}

/* Subtle glow effect behind screenshot */
.feature-screenshot::before {
  content: '';
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(
    ellipse at center,
    rgba(201, 160, 160, 0.08) 0%,
    transparent 70%
  );
  filter: blur(40px);
  z-index: -1;
}

/* ============================================
   PRICING SECTION - Matching Buy Credits page
   ============================================ */
.section--pricing {
  background: var(--bg-base);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
  }
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
}

@media (min-width: 600px) {
  .pricing-card {
    padding: var(--space-xl);
  }
}

.pricing-card:hover {
  border-color: var(--border-default);
}

.pricing-card--popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg-base);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 10px;
  white-space: nowrap;
}

.pricing-header {
  margin-bottom: var(--space-md);
}

@media (min-width: 600px) {
  .pricing-header {
    margin-bottom: var(--space-lg);
  }
}

.pricing-name {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 var(--space-xs);
  color: var(--text-primary);
}

@media (min-width: 600px) {
  .pricing-name {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
  }
}

.pricing-price {
  display: flex;
  align-items: baseline;
}

.price-amount {
  font-family: var(--font-ui);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

@media (min-width: 600px) {
  .price-amount {
    font-size: 2.25rem;
  }
}

.pricing-details {
  flex: 1;
  margin-bottom: var(--space-lg);
}

@media (min-width: 600px) {
  .pricing-details {
    margin-bottom: var(--space-xl);
  }
}

.pricing-credits {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

@media (min-width: 600px) {
  .pricing-credits {
    font-size: 0.9375rem;
  }
}

.credits-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

@media (min-width: 600px) {
  .credits-icon {
    width: 12px;
    height: 12px;
  }
}

.pricing-bonus {
  font-size: 0.8125rem;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

@media (min-width: 600px) {
  .pricing-bonus {
    font-size: 0.875rem;
  }
}

.pricing-desc {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin: var(--space-sm) 0 var(--space-xs);
  line-height: 1.4;
}

@media (min-width: 600px) {
  .pricing-desc {
    font-size: 0.875rem;
    margin-top: var(--space-md);
  }
}

.pricing-estimate {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (min-width: 600px) {
  .pricing-estimate {
    font-size: 0.8125rem;
  }
}

.pricing-cta {
  width: 100%;
  text-align: center;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
}

@media (min-width: 600px) {
  .pricing-cta {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
  }
}

.pricing-footer {
  text-align: center;
  margin-top: var(--space-2xl);
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

@media (min-width: 600px) {
  .pricing-footer {
    margin-top: var(--space-3xl);
    font-size: 0.875rem;
  }
}

.btc-icon {
  color: #f7931a;
  font-weight: 600;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.section--faq {
  background: var(--bg-surface);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

@media (min-width: 600px) {
  .faq-list {
    margin-top: var(--space-2xl);
  }
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color var(--duration-fast) ease;
}

@media (min-width: 600px) {
  .faq-item {
    border-radius: 12px;
  }
}

.faq-item:hover {
  border-color: var(--border-default);
}

.faq-item[open] {
  border-color: var(--accent);
}

.faq-question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md);
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  list-style: none;
  line-height: 1.4;
}

@media (min-width: 600px) {
  .faq-question {
    padding: var(--space-lg);
    font-size: 1rem;
    align-items: center;
  }
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  color: var(--text-muted);
  transition: transform var(--duration-fast) ease;
  flex-shrink: 0;
  margin-top: 2px;
}

@media (min-width: 600px) {
  .faq-icon {
    margin-top: 0;
  }
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-answer {
  padding: 0 var(--space-md) var(--space-md);
}

@media (min-width: 600px) {
  .faq-answer {
    padding: 0 var(--space-lg) var(--space-lg);
  }
}

.faq-answer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (min-width: 600px) {
  .faq-answer p {
    font-size: 0.9375rem;
  }
}

/* ============================================
   CTA SECTION
   ============================================ */
.section--cta {
  background: linear-gradient(to bottom, var(--bg-surface), var(--bg-base));
  padding: var(--space-3xl) var(--container-padding);
}

@media (min-width: 768px) {
  .section--cta {
    padding: var(--space-4xl) var(--container-padding);
  }
}

.cta-title {
  font-family: var(--font-ui);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-sm);
  color: var(--text-primary);
}

@media (min-width: 600px) {
  .cta-title {
    margin-bottom: var(--space-md);
  }
}

.cta-subtitle {
  font-size: 1rem;
  color: var(--text-tertiary);
  margin: 0 0 var(--space-xl);
}

@media (min-width: 600px) {
  .cta-subtitle {
    font-size: 1.125rem;
    margin-bottom: var(--space-2xl);
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-3xl) var(--container-padding) var(--space-lg);
}

@media (min-width: 768px) {
  .footer {
    padding: var(--space-4xl) var(--container-padding) var(--space-xl);
  }
}

.footer-inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

@media (min-width: 768px) {
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-4xl);
  }
}

.footer-brand {
  max-width: 300px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: var(--space-sm) 0 0;
}

@media (min-width: 600px) {
  .footer-tagline {
    font-size: 0.9375rem;
    margin-top: var(--space-md);
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl) var(--space-3xl);
}

@media (min-width: 600px) {
  .footer-links {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: var(--space-3xl);
  }
}

.footer-column {
  min-width: 100px;
}

.footer-heading {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 var(--space-md);
}

@media (min-width: 600px) {
  .footer-heading {
    font-size: 0.75rem;
    margin-bottom: var(--space-lg);
  }
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin-bottom: var(--space-xs);
}

@media (min-width: 600px) {
  .footer-list li {
    margin-bottom: var(--space-sm);
  }
}

.footer-list a {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  transition: color var(--duration-fast) ease;
}

@media (min-width: 600px) {
  .footer-list a {
    font-size: 0.9375rem;
  }
}

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

.footer-bottom {
  max-width: var(--container-max-width);
  margin: var(--space-2xl) auto 0;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
  .footer-bottom {
    margin-top: var(--space-4xl);
    padding-top: var(--space-xl);
  }
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (min-width: 600px) {
  .footer-bottom p {
    font-size: 0.875rem;
  }
}

/* ============================================
   AGE VERIFICATION PROMPT
   ============================================ */
.age-prompt-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.age-prompt-overlay.visible {
  opacity: 1;
}

.age-prompt {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: var(--space-lg);
  max-width: 340px;
  width: 100%;
  text-align: center;
}

@media (min-width: 600px) {
  .age-prompt {
    padding: var(--space-xl);
    max-width: 360px;
  }
}

.age-prompt p {
  margin: 0 0 var(--space-lg);
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

@media (min-width: 600px) {
  .age-prompt p {
    font-size: 0.9375rem;
  }
}

.age-prompt-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

@media (min-width: 400px) {
  .age-prompt-buttons {
    flex-direction: row;
    gap: var(--space-md);
    justify-content: center;
  }
}

.age-prompt .age-confirm {
  background: var(--accent);
  color: var(--bg-base);
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.age-prompt .age-confirm:hover {
  background: var(--accent-hover);
}

.age-prompt .age-cancel {
  background: transparent;
  color: var(--text-tertiary);
  border: 1px solid var(--border-default);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.age-prompt .age-cancel:hover {
  border-color: var(--border-emphasis);
  color: var(--text-secondary);
}

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

/* Tablet breakpoint */
@media (max-width: 1024px) {
  .section--quality .section-inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .waveform-visual {
    order: -1;
  }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-bottom: var(--space-3xl);
  }

  .hero-bg-image {
    width: 100%;
    max-width: none;
    right: -20%;
    bottom: auto;
    top: 50%;
    opacity: 0.2;
    mask-image:
      linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,0.5) 100%),
      linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
    -webkit-mask-image:
      linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,0.5) 100%),
      linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
  }

  /* Steps section - vertical on mobile */
  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .steps::before {
    display: none;
  }

  .step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: var(--space-md);
    text-align: left;
  }

  .step-number {
    margin: 0;
    grid-row: span 2;
    align-self: start;
  }

  .step-title {
    margin: 0;
    align-self: end;
  }

  .step-description {
    max-width: none;
    margin: 0;
    align-self: start;
  }

  /* Platforms section */
  .platforms-logos {
    gap: var(--space-lg) var(--space-xl);
  }

  .platform-placeholder {
    font-size: 1rem;
  }

  /* FAQ section */
  .faq-question {
    padding: var(--space-md);
    font-size: 0.9375rem;
  }

  .faq-answer {
    padding: 0 var(--space-md) var(--space-md);
  }
}

/* Small mobile */
@media (max-width: 480px) {
  :root {
    --space-4xl: 64px;
  }

  .nav-actions {
    gap: var(--space-sm);
  }

  .nav-link {
    display: none;
  }

  .btn-nav {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn-lg,
  .hero-cta .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: var(--space-2xl);
  }

  /* Sample cards - compact on small screens */
  .samples-grid {
    grid-template-columns: 1fr;
  }

  .sample-card {
    padding: var(--space-md);
  }

  .sample-label {
    font-size: 0.9375rem;
  }

  .sample-desc {
    font-size: 0.75rem;
    margin-bottom: var(--space-md);
  }

  .sample-play {
    width: 36px;
    height: 36px;
  }

  .sample-play svg {
    width: 16px;
    height: 16px;
  }

  .sample-track {
    height: 28px;
  }

  /* Platforms - stack vertically */
  .platforms-logos {
    flex-direction: column;
    gap: var(--space-md);
  }
}
