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

:root {
  --bg:        #0a0a0f;
  --bg2:       #111118;
  --bg3:       #16161f;
  --accent:    #a855f7;
  --accent2:   #7c3aed;
  --glow:      rgba(168, 85, 247, 0.35);
  --text:      #f0f0f5;
  --text-muted:#8888aa;
  --border:    rgba(168, 85, 247, 0.2);
  --radius:    16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Nav ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 15, 0.85);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.4rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
  border: none;
}
.btn-sm { font-size: .85rem; padding: .45rem 1.1rem; }
.btn-lg { font-size: 1.1rem; padding: .85rem 2rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 0 20px var(--glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px var(--glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }

.btn-sm.btn {
  background: rgba(168, 85, 247, 0.15);
  color: var(--accent);
  border: 1px solid var(--border);
}
.btn-sm.btn:hover { background: rgba(168, 85, 247, 0.25); }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 2rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  gap: 4rem;
}
.hero-content { flex: 1; }
.hero-visual  { flex: 1; display: flex; justify-content: center; }

.hero-badge {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid var(--border);
  padding: .3rem .9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.glow {
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px var(--glow));
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Phone mockup ────────────────────────────────────── */
.phone-mockup {
  width: 240px;
  height: 490px;
  background: var(--bg3);
  border-radius: 36px;
  border: 2px solid var(--border);
  box-shadow: 0 0 60px var(--glow), 0 40px 80px rgba(0,0,0,.6);
  padding: 16px;
  animation: float 4s ease-in-out infinite;
  position: relative;
}
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 5px;
  background: var(--bg);
  border-radius: 3px;
}
.phone-screen {
  background: var(--bg2);
  border-radius: 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* mock player UI inside phone */
.mock-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  width: 100%;
  padding: 1rem;
}
.mock-vinyl {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #2a1a3e, #0a0a0f);
  border: 3px solid #333;
  display: flex; align-items: center; justify-content: center;
  animation: spin 4s linear infinite;
  box-shadow: 0 0 15px var(--glow);
}
.mock-vinyl-inner {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--bg2);
  border: 2px solid var(--accent);
}
.mock-title  { font-size: .55rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.mock-song   { font-size: .7rem; font-weight: 600; text-align: center; }
.mock-wave   { display: flex; align-items: flex-end; gap: 2px; height: 24px; }
.mock-wave span {
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  animation: bar 1s ease-in-out infinite alternate;
}
.mock-wave span:nth-child(1)  { height: 8px;  animation-delay: 0s; }
.mock-wave span:nth-child(2)  { height: 14px; animation-delay: .1s; }
.mock-wave span:nth-child(3)  { height: 20px; animation-delay: .05s; }
.mock-wave span:nth-child(4)  { height: 12px; animation-delay: .15s; }
.mock-wave span:nth-child(5)  { height: 18px; animation-delay: .2s; }
.mock-wave span:nth-child(6)  { height: 24px; animation-delay: .07s; }
.mock-wave span:nth-child(7)  { height: 16px; animation-delay: .12s; }
.mock-wave span:nth-child(8)  { height: 22px; animation-delay: .03s; }
.mock-wave span:nth-child(9)  { height: 10px; animation-delay: .18s; }
.mock-wave span:nth-child(10) { height: 20px; animation-delay: .08s; }
.mock-wave span:nth-child(11) { height: 14px; animation-delay: .22s; }
.mock-wave span:nth-child(12) { height: 8px;  animation-delay: .14s; }
.mock-wave span:nth-child(13) { height: 18px; animation-delay: .06s; }
.mock-wave span:nth-child(14) { height: 12px; animation-delay: .16s; }
.mock-wave span:nth-child(15) { height: 6px;  animation-delay: .25s; }

.mock-controls { display: flex; gap: 1.2rem; font-size: .9rem; color: var(--text-muted); margin-top: .2rem; }
.mock-play { color: var(--accent); font-size: 1.1rem; }

/* ── Features ────────────────────────────────────────── */
.features { padding: 5rem 2rem; background: var(--bg2); }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all .25s;
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--glow);
}
.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.feature-card p  { font-size: .95rem; color: var(--text-muted); line-height: 1.6; }

/* ── Screenshots ─────────────────────────────────────── */
.screenshots { padding: 5rem 2rem; }
.screenshots-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.screenshot-placeholder {
  width: 200px;
  height: 380px;
  background: var(--bg3);
  border: 2px dashed var(--border);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .85rem;
}
.screenshot-note {
  text-align: center;
  color: var(--text-muted);
  font-size: .85rem;
}

/* ── Download ────────────────────────────────────────── */
.download {
  padding: 6rem 2rem;
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}
.download::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(168,85,247,.12) 0%, transparent 70%);
  pointer-events: none;
}
.download-inner {
  text-align: center;
  position: relative;
}
.download-inner .hero-sub { margin: 0 auto 2.5rem; }
.download-note {
  margin-top: 1rem;
  font-size: .85rem;
  color: var(--text-muted);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover { background: rgba(168, 85, 247, 0.15); }
.btn-outline svg { vertical-align: middle; margin-right: .4rem; }
.download-beta {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.download-beta-label {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
}

/* ── Footer ──────────────────────────────────────────── */
.footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  font-size: .85rem;
  color: var(--text-muted);
}
.footer-copy { font-size: .8rem; }

.btn-disabled {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Animations ──────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes bar {
  from { transform: scaleY(.3); }
  to   { transform: scaleY(1); }
}

/* hero feature card — spans full width, glows */
.feature-card--hero {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(168,85,247,.15), rgba(124,58,237,.08));
  border-color: var(--accent);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.feature-card--hero .feature-icon { font-size: 2.8rem; flex-shrink: 0; }
.feature-card--hero h3 { font-size: 1.3rem; }


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

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-inner { padding: .75rem 1.25rem; }
  .nav-links { display: none; }

  .footer .nav-inner { flex-direction: column; gap: .5rem; text-align: center; }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 5rem 1.25rem 3rem;
    gap: 2.5rem;
  }
  .hero-sub { margin: 0 auto 2rem; font-size: 1rem; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .phone-mockup { width: 180px; height: 368px; }

  .section-inner { padding: 3rem 1.25rem; }
  .section-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }

  .features-grid { grid-template-columns: 1fr; gap: 1rem; }
  .feature-card { padding: 1.25rem; }

  .steps { flex-direction: column; gap: 1.5rem; }

  .screenshots-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }

  .download-inner { padding: 0 1.25rem; }
  .btn-lg { font-size: 1rem; padding: .75rem 1.5rem; width: 100%; text-align: center; justify-content: center; }
  .download-beta .btn { width: 100%; justify-content: center; }
}
