/* =================================================================
   Soundify — product showcase page
   ================================================================= */

:root {
  /* Surfaces */
  --bg: #0b0c13;
  --bg-elevated: #10121b;
  --surface: #161825;
  --surface-2: #1c1f2e;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --text: #f4f5fa;
  --text-dim: #9a9db3;
  --text-faint: #676a80;

  /* Brand accents (from the Soundify app icon) */
  --accent-orange: #ff8a4c;
  --accent-pink: #ff4d7a;
  --accent-teal: #2ee6a6;
  --accent-yellow: #ffc247;
  --grad-cta: linear-gradient(135deg, #ff9a4c 0%, #ff4d7a 100%);
  --grad-text: linear-gradient(135deg, #ffc247 0%, #ff6b4a 45%, #ff3d77 75%, #2ee6a6 100%);

  /* Layout */
  --max-width: 1120px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glow: 0 30px 80px -20px rgba(255, 77, 122, 0.35);
  --shadow-card: 0 20px 50px -25px rgba(0, 0, 0, 0.6);

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--surface);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow { max-width: 760px; }

section { position: relative; }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.btn-primary {
  background: transparent;
  padding: 0;
}
.btn-primary img { border-radius: 8px; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-lg img { width: 172px; height: auto; }
.btn-sm {
  background: var(--grad-cta);
  color: #16121a;
  padding: 9px 18px;
  font-size: 14px;
  box-shadow: 0 8px 20px -8px rgba(255, 77, 122, 0.55);
}
.btn-sm:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(255, 77, 122, 0.7); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 12, 19, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(11, 12, 19, 0.88);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-mark { border-radius: 8px; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  color: var(--text-dim);
}
.main-nav a { transition: color 0.2s ease; }
.main-nav a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 640px;
  background:
    radial-gradient(600px 320px at 18% 20%, rgba(255, 138, 76, 0.22), transparent 60%),
    radial-gradient(560px 320px at 82% 10%, rgba(46, 230, 166, 0.16), transparent 60%),
    radial-gradient(500px 300px at 55% 45%, rgba(255, 77, 122, 0.18), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 750;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 52ch;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-faint);
}

.window-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.window-frame--glow {
  box-shadow: var(--shadow-glow), var(--shadow-card);
}
.window-frame img { width: 100%; height: auto; }

.hero-visual { position: relative; }

/* ---------- Stat strip ---------- */
.stat-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 30px 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.stat-icon { font-size: 22px; line-height: 1; }
.stat strong { display: block; font-size: 14.5px; margin-bottom: 2px; }
.stat p { font-size: 13px; color: var(--text-faint); }

/* ---------- Section heads ---------- */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.015em;
  font-weight: 700;
  margin-bottom: 14px;
}
.section-sub { color: var(--text-dim); font-size: 16px; }

/* ---------- Features ---------- */
.features { padding: 120px 0; }
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: center;
  padding: 56px 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--border); }
.feature-row--reverse { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.feature-row--reverse .feature-visual { order: 2; }
.feature-row--reverse .feature-copy { order: 1; }

.feature-copy h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: -0.015em;
  font-weight: 700;
  margin-bottom: 14px;
}
.feature-copy p { color: var(--text-dim); font-size: 15.5px; margin-bottom: 20px; }

.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--text);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--grad-cta);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ---------- Why ---------- */
.why { padding: 0 0 120px; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}
.why-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 20px;
  margin-bottom: 18px;
}
.why-icon--teal { background: rgba(46, 230, 166, 0.14); }
.why-icon--orange { background: rgba(255, 138, 76, 0.14); }
.why-icon--pink { background: rgba(255, 77, 122, 0.14); }
.why-icon--yellow { background: rgba(255, 194, 71, 0.14); }
.why-card h3 { font-size: 17px; font-weight: 650; margin-bottom: 10px; }
.why-card p { font-size: 14px; color: var(--text-dim); }

/* ---------- FAQ ---------- */
.faq { padding: 0 0 120px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 22px;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-size: 15.5px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--text-faint);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  color: var(--text-dim);
  font-size: 14.5px;
  padding-bottom: 18px;
  max-width: 64ch;
}

/* ---------- Final CTA ---------- */
.cta-final {
  padding: 100px 0 120px;
  text-align: center;
}
.cta-final-inner { max-width: 560px; margin: 0 auto; }
.cta-final h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.cta-final p { color: var(--text-dim); font-size: 16px; margin-bottom: 30px; }
.cta-final .btn-lg { margin: 0 auto; }
.cta-final-meta { margin-top: 16px; font-size: 13px; color: var(--text-faint); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
  background: var(--bg-elevated);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-name { display: block; font-weight: 700; font-size: 15px; }
.footer-brand p { font-size: 13px; color: var(--text-faint); margin-top: 2px; }
.footer-links { display: flex; gap: 24px; font-size: 14px; color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 12.5px;
  color: var(--text-faint);
}

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 640px; }
  .feature-row,
  .feature-row--reverse { grid-template-columns: 1fr; gap: 32px; }
  .feature-row--reverse .feature-visual,
  .feature-row--reverse .feature-copy { order: initial; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
    gap: 4px;
  }
  .main-nav.is-open a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .main-nav.is-open a:last-child { border-bottom: none; }

  .hero { padding: 56px 0 60px; }
  .hero-actions { align-items: stretch; }
  .btn-primary img { width: 100%; height: auto; }
  .btn-lg img { width: 100%; }

  .features { padding: 72px 0; }
  .why { padding: 0 0 72px; }
  .faq { padding: 0 0 72px; }
  .cta-final { padding: 72px 0 88px; }

  .why-grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 40px; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 18px; }
}
