/* AudioSnip — Web Design System
   Colors extracted from app palette (src/constants/theme.ts)
   Dark-first studio aesthetic. Teal accent. Warm highlight. */

:root {
  --canvas: #0B1020;
  --surface: #131A2D;
  --surface-elevated: #1A2238;
  --glass: rgba(19, 26, 45, 0.72);
  --text-primary: #F5F7FB;
  --text-secondary: #98A2B3;
  --text-muted: #4A5568;
  --border: #26324B;
  --accent: #32D7C4;
  --accent-pressed: #1CB8A8;
  --accent-soft: rgba(50, 215, 196, 0.12);
  --highlight: #FF9A62;
  --highlight-soft: rgba(255, 154, 98, 0.12);
  --success: #36D399;
  --error: #FF6B6B;
  --radius: 16px;
  --radius-sm: 10px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  background: var(--canvas);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-pressed); }

/* ─── Layout ─────────────────────────────────────── */

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

.container--narrow {
  max-width: 720px;
}

/* ─── Navigation ─────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(11, 16, 32, 0.82);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text-primary);
  text-decoration: none;
}

.nav__brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav__links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ─── Hero ───────────────────────────────────────── */

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

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(50, 215, 196, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  margin-bottom: 32px;
  box-shadow:
    0 0 0 1px rgba(50, 215, 196, 0.15),
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(50, 215, 196, 0.06);
  animation: iconFloat 6s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero__title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero__title span {
  background: linear-gradient(135deg, var(--accent) 0%, #5BE8D5 50%, var(--highlight) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(17px, 2.5vw, 20px);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
}

.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(50, 215, 196, 0.25);
  background: var(--accent-pressed);
  color: #fff;
}

.hero__cta svg {
  width: 20px;
  height: 20px;
}

/* "Coming Soon" state: muted, non-interactive variant of the hero CTA.
   Used pre-launch while the App Store listing is still pending. */
.hero__cta--coming {
  background: var(--surface-elevated);
  color: var(--text-primary);
  border: 1px dashed var(--accent);
  cursor: default;
  padding: 14px 24px;
  gap: 10px;
}

.hero__cta--coming:hover {
  transform: none;
  box-shadow: none;
  background: var(--surface-elevated);
  color: var(--text-primary);
}

.hero__cta-kicker {
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 13px;
}

.hero__cta-sep {
  opacity: 0.5;
}

.hero__cta-sub {
  font-weight: 500;
  font-size: 14px;
  color: var(--text-secondary);
}

.hero__badge {
  display: inline-block;
  background: var(--surface-elevated);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  margin-top: 24px;
}

/* ─── Features ───────────────────────────────────── */

.features {
  padding: 100px 24px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(50, 215, 196, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
}

.feature-card__icon--warm {
  background: var(--highlight-soft);
}

.feature-card__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ─── Section Headers ────────────────────────────── */

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header__title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

/* ─── How It Works ───────────────────────────────── */

.steps {
  padding: 80px 24px 100px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
  counter-reset: step;
}

.step {
  text-align: center;
  counter-increment: step;
}

.step__number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

.step__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ─── Privacy Strip ──────────────────────────────── */

.privacy-strip {
  padding: 60px 24px;
  text-align: center;
}

.privacy-strip__inner {
  max-width: 560px;
  margin: 0 auto;
}

.privacy-strip__icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.privacy-strip__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.privacy-strip__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ─── Footer ─────────────────────────────────────── */

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

.footer__links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  list-style: none;
}

.footer__links a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

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

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

/* ─── Legal Pages ────────────────────────────────── */

.legal {
  padding: 120px 24px 80px;
}

.legal h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.legal__updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.legal p, .legal li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal li {
  margin-bottom: 6px;
}

.legal strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ─── Responsive ─────────────────────────────────── */

@media (max-width: 640px) {
  .hero { padding: 100px 20px 60px; }
  .hero__icon { width: 88px; height: 88px; border-radius: 22px; }
  .features { padding: 60px 20px; }
  .steps { padding: 60px 20px; }
  .nav__links { gap: 16px; }
  .nav__links a { font-size: 13px; }
}

/* ─── Animations ─────────────────────────────────── */

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

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

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
