/* =========================================
   Drift — Shared Styles
   ========================================= */

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

:root {
  --text-primary:    #ede8d8;
  --text-secondary:  rgba(200, 215, 255, 0.6);
  --accent-blue:     rgba(140, 170, 255, 0.6);
  --accent-warm:     rgba(255, 180, 100, 0.5);
  --card-bg:         rgba(0, 10, 30, 0.45);
  --card-border:     rgba(255, 255, 255, 0.15);
  --bg-dark:         #02050f;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, 'Times New Roman', Times, serif;
  color: var(--text-primary);
  background: var(--bg-dark);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ---- Background ---- */

#stars-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---- Layout ---- */

.page-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

.container--wide {
  max-width: 1100px;
}

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

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(2, 5, 15, 0.85) 0%, transparent 100%);
  backdrop-filter: blur(0px);
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: normal;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

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

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

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

/* ---- Typography ---- */

h1 {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: normal;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: normal;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h3 {
  font-size: 1.15rem;
  font-weight: normal;
  letter-spacing: 0.01em;
}

p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- Glass Card ---- */

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.15s;
}

.btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

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

.btn-primary {
  background: var(--text-primary);
  color: #04081a;
}

.btn-ghost {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  backdrop-filter: blur(12px);
}

/* ---- App Store Badge ---- */

.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text-primary);
  color: #04081a;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  transition: opacity 0.2s, transform 0.15s;
  font-size: 0.9rem;
}

.appstore-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.appstore-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.appstore-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.appstore-btn-text .sub {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.appstore-btn-text .main {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

/* ---- Section label ---- */

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* ---- Divider ---- */

.divider {
  width: 100%;
  height: 1px;
  background: var(--card-border);
  margin: 60px 0;
}

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

footer {
  margin-top: auto;
  padding: 48px 36px;
  border-top: 1px solid var(--card-border);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

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

.footer-meta {
  color: var(--text-secondary);
  font-size: 0.8rem;
  opacity: 0.6;
  line-height: 1.8;
}

/* ======================================
   Landing Page — Hero
   ====================================== */

.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 36px;
  font-style: italic;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- Phone Mockups ---- */

.phones-wrapper {
  margin-top: 64px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  padding: 0 20px;
  transform: translateX(0px);
}

.phone {
  position: relative;
  flex-shrink: 0;
}

.phone img {
  display: block;
  width: auto;
  height: clamp(540px, 72vh, 855px);
  border-radius: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.6),
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255,255,255,0.06);
}

.phone--center {
  width: clamp(200px, 28vw, 260px);
  z-index: 2;
}

.phone--left {
  width: clamp(160px, 22vw, 210px);
  transform: rotate(-7deg) translateX(28px) translateY(20px);
  z-index: 1;
  opacity: 0.7;
}

.phone--right {
  width: clamp(160px, 22vw, 210px);
  transform: rotate(7deg) translateX(-28px) translateY(20px);
  z-index: 1;
  opacity: 0.7;
}

/* ======================================
   Landing Page — Features
   ====================================== */

.features {
  padding: 80px 0;
}

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

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

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ======================================
   Landing Page — Sound List
   ====================================== */

.sounds {
  padding: 0 0 80px;
}

.sounds-header {
  text-align: center;
  margin-bottom: 40px;
}

.sounds-header h2 {
  margin-bottom: 8px;
}

.sounds-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.sound-chip {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sound-chip .sound-emoji {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.sound-chip-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sound-chip .sound-name {
  font-size: 0.85rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sound-chip .sound-desc {
  font-size: 0.7rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ======================================
   Support Page
   ====================================== */

.support-hero {
  padding-top: 140px;
  padding-bottom: 60px;
}

.support-hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 16px;
}

.support-hero p {
  font-size: 1.05rem;
  max-width: 560px;
}

/* ---- FAQ ---- */

.faq-section {
  padding-bottom: 60px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

details.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s;
}

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

details.faq-item summary {
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  color: var(--text-primary);
  user-select: none;
}

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

.faq-chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  transition: transform 0.25s ease;
}

details.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-body {
  padding: 0 24px 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ---- Contact ---- */

.contact-section {
  padding-bottom: 80px;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
}

.contact-card h2 {
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.contact-card p {
  margin-bottom: 28px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-blue);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--accent-blue);
  border-radius: 999px;
  padding: 12px 24px;
  transition: background 0.2s, opacity 0.2s;
}

.contact-email:hover {
  background: rgba(140, 170, 255, 0.1);
}

/* ======================================
   Privacy Page
   ====================================== */

.privacy-hero {
  padding-top: 140px;
  padding-bottom: 48px;
}

.privacy-hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 12px;
}

.privacy-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.privacy-body {
  padding-bottom: 80px;
}

.privacy-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 48px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.policy-section {
  margin-bottom: 40px;
}

.policy-section:last-child {
  margin-bottom: 0;
}

.policy-section h2 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.policy-section p {
  font-size: 0.95rem;
  line-height: 1.8;
}

.policy-section p + p {
  margin-top: 12px;
}

.policy-section a {
  color: var(--accent-blue);
  text-decoration: none;
}

.policy-section a:hover {
  text-decoration: underline;
}

.policy-divider {
  width: 100%;
  height: 1px;
  background: var(--card-border);
  margin: 36px 0;
}

/* ======================================
   Mountain Silhouette
   ====================================== */

.mountain-silhouette {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ======================================
   Responsive
   ====================================== */

@media (max-width: 768px) {
  nav {
    padding: 16px 20px;
  }

  .phones-wrapper {
    padding: 0;
  }

  .phone--left,
  .phone--right {
    display: none;
  }

  .phone--center {
    width: clamp(220px, 60vw, 300px);
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sounds-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .privacy-content {
    padding: 28px 20px;
  }

  .contact-card {
    padding: 28px 20px;
  }
}

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

  .hero {
    padding-top: 110px;
  }

  nav {
    padding: 14px 16px;
  }

  .container {
    padding: 0 16px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sounds-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
