:root {
  --bg-deep: #0b0b0f;
  --bg-warm: #1a1218;
  --accent: #ff5c73;
  --accent-soft: rgba(255, 92, 115, 0.35);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.52);
  --glass: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
}

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

html {
  height: 100%;
}

body {
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ── Background ── */

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255, 92, 115, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(255, 140, 120, 0.08), transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-warm) 45%, #120e14 100%);
}

/* ── Glass nav ── */

.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(680px, calc(100% - 32px));
  padding: 12px 20px;
  border-radius: 999px;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.nav-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  opacity: 0.9;
  position: relative;
}

.nav-mark::after {
  content: "";
  position: absolute;
  inset: 7px 9px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 2px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

/* ── Hero ── */

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding: 120px 24px 80px;
  text-align: center;
}

.hero-copy {
  max-width: 520px;
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 180, 190, 0.95);
}

.subcopy {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ── App Store badge ── */

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  background: #ffffff;
  color: #0b0b0f;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.app-store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.app-store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  font-size: 1.05rem;
}

.app-store-text small {
  font-size: 0.65rem;
  font-weight: 500;
  opacity: 0.65;
}

.launch-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ── Device mockup ── */

.hero-device {
  perspective: 1200px;
}

.device {
  width: 260px;
  height: 540px;
  padding: 10px;
  border-radius: 40px;
  background: linear-gradient(145deg, #2a2628, #121014);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 80px rgba(0, 0, 0, 0.55),
    0 0 60px var(--accent-soft);
  transform: rotateX(2deg);
}

.device-island {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 24px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}

.device {
  position: relative;
}

.device-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  background: #0e0c10;
}

.device-wallpaper {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 92, 115, 0.25), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(80, 40, 60, 0.4), transparent 50%),
    linear-gradient(160deg, #1a1018, #0a0a0d);
}

.device-widget {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 100px;
  height: 130px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.widget-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ff5c73 0%, #c44d68 40%, #3d2030 100%);
}

.widget-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.82) 100%);
}

.widget-body {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.widget-from {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2px;
}

.widget-track {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.widget-artist {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 6px;
}

.widget-action {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

/* ── Footer ── */

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 20px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer a:hover {
  color: rgba(255, 255, 255, 0.55);
}

/* ── Legal pages ── */

.legal-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.legal-page .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 28px 0 10px;
}

.legal-page p,
.legal-page li {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  font-size: 0.95rem;
}

.legal-page ul {
  padding-left: 1.25rem;
  margin: 8px 0;
}

.legal-page a {
  color: var(--accent);
}

.nav-legal {
  display: flex;
  gap: 20px;
}

.legal-back {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-back a {
  color: rgba(255, 255, 255, 0.55);
}

.legal-back a:hover {
  color: var(--text);
}

.legal-page h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 20px 0 8px;
  color: rgba(255, 255, 255, 0.85);
}

/* ── Responsive ── */

@media (min-width: 900px) {
  .hero {
    flex-direction: row;
    text-align: left;
    justify-content: center;
    gap: 80px;
    padding-top: 100px;
  }

  .hero-copy {
    max-width: 440px;
    flex-shrink: 0;
  }

  .hero-device {
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .device {
    width: 230px;
    height: 480px;
  }

  .footer {
    position: static;
    padding-bottom: 32px;
  }

  .hero {
    padding-bottom: 24px;
  }
}
