/* Song in the Air — Landing Page
   Palette: deep eggplant + amber glow (matches the app).
   Typography: Fraunces serif for statements, Inter sans for UI.
*/

:root {
  --ink:       #050208;
  --midnight:  #0E081A;
  --eclipse:   #120A22;
  --royal:     #1B1136;
  --imperial:  #241428;
  --pearl:     #EDE6DA;
  --mist:      rgba(237, 230, 218, 0.6);
  --rain:      rgba(237, 230, 218, 0.42);
  --neon:      #FFA060;
  --electric:  #FF6B2E;
  --amber-soft: rgba(255, 160, 96, 0.14);
  --amber-hard: rgba(255, 107, 46, 0.85);
  --hairline:   rgba(255, 160, 96, 0.16);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 44rem;
  --wrap-wide: 60rem;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--eclipse);
  color: var(--pearl);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  overflow-x: hidden;
}

a { color: var(--neon); text-decoration: none; transition: color .2s ease; }
a:hover { color: #FFCE9C; }

img, svg { display: block; max-width: 100%; }

/* ─── HEADER ─────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(14, 8, 26, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.mark-row {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--pearl);
}
.mark {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  filter: drop-shadow(0 0 10px rgba(255, 144, 64, 0.35));
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.nav {
  display: flex;
  gap: clamp(0.8rem, 2vw, 1.8rem);
  align-items: center;
  font-size: 0.92rem;
  color: var(--mist);
}
.nav a { color: var(--mist); }
.nav a:hover { color: var(--pearl); }
.nav-cta {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--amber-hard);
  border-radius: 999px;
  color: var(--neon) !important;
}
.nav-cta:hover { background: var(--amber-soft); }

@media (max-width: 640px) {
  .nav a:not(.nav-cta) { display: none; }
}

/* ─── COMMON WRAPPERS ────────────────────────────────────────────── */

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2rem);
}
.wrap-wide {
  max-width: var(--wrap-wide);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 1.4rem;
  max-width: 22ch;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--neon);
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  margin-bottom: 2rem;
}

.mono {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.93em;
  color: var(--neon);
  letter-spacing: 0.02em;
}

.muted { color: var(--mist); }
.closer { color: var(--mist); font-style: normal; }

/* ─── HERO ──────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(6rem, 14vh, 12rem) 0 clamp(4rem, 10vh, 8rem);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 144, 64, 0.14), transparent 55%),
    radial-gradient(ellipse at 50% 40%, #2E1749 0%, #120A22 55%, #0D061A 100%);
}
.hero-orb {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(255, 206, 122, 0.14) 0%, rgba(255, 144, 64, 0.06) 20%, transparent 55%);
  filter: blur(8px);
}
.hero-orb::before,
.hero-orb::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 1px solid rgba(255, 160, 96, 0.22);
  animation: pulse 6s ease-in-out infinite;
}
.hero-orb::before { width: 340px; height: 340px; opacity: 0.85; }
.hero-orb::after  { width: 560px; height: 560px; opacity: 0.45; animation-delay: 1.5s; }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%      { transform: scale(1.04); opacity: 0.85; }
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2rem);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.2rem;
}
.hero-title em {
  font-style: italic;
  color: var(--neon);
}
.hero-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--mist);
  margin: 0 0 2.5rem;
  letter-spacing: 0.005em;
}

/* CTA row */
.cta-row {
  display: inline-flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, #FF6B2E 0%, #FFA060 50%, #FFCE9C 100%);
  color: #180A26;
  box-shadow: 0 0 40px rgba(255, 144, 64, 0.42);
  border-color: rgba(255, 200, 140, 0.5);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 60px rgba(255, 144, 64, 0.55); color: #0D061A; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--pearl);
  border-color: var(--hairline);
}
.btn-ghost:hover { background: var(--amber-soft); color: var(--pearl); }
.btn.is-placeholder { position: relative; }
.btn.is-placeholder::after {
  content: "soon";
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  padding: 0.15rem 0.45rem;
  background: var(--electric);
  color: #0D061A;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─── HERO ICON  ───────────────────────────────────────────────── */

.hero-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
.hero-icon img {
  width: clamp(96px, 13vw, 148px);
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 22.37%; /* iOS squircle approximation */
  box-shadow:
    0 0 60px rgba(255, 144, 64, 0.35),
    0 0 140px rgba(255, 107, 46, 0.18),
    0 8px 40px rgba(0, 0, 0, 0.6);
}

/* ─── STORY  ───────────────────────────────────────────────────── */

.story {
  padding: clamp(5rem, 10vh, 8rem) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  text-align: left;
}
.lede {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1.35;
  color: var(--pearl);
  margin: 0 0 0.6rem;
  max-width: 32ch;
}
.lede-emph {
  color: var(--neon);
  font-style: italic;
  margin-bottom: 2.5rem;
}
.anti-list {
  list-style: none;
  padding: 1.4rem 0;
  margin: 1.5rem 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--mist);
}
.anti-list li { padding: 0.35rem 0; }

/* ─── PILLARS  ─────────────────────────────────────────────────── */

.pillar {
  padding: clamp(6rem, 12vh, 10rem) 0;
  text-align: left;
}
.pillar-alt {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 144, 64, 0.05), transparent 50%),
    linear-gradient(180deg, var(--midnight) 0%, var(--eclipse) 100%);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.pillar-index {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 1.2rem;
}
.three-beat {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--pearl);
  margin-top: 2rem;
  line-height: 1.5;
}
.three-beat span { display: inline-block; margin-right: 1rem; }
.three-beat span:not(:last-child)::after {
  content: "·";
  margin-left: 1rem;
  color: var(--neon);
  opacity: 0.6;
}

/* Pull quote — the record-shop line */
.pull-quote {
  margin: 2.5rem 0 0;
  padding: 2rem 1.5rem 2rem 2.2rem;
  border-left: 3px solid var(--neon);
  background: linear-gradient(90deg, rgba(255,160,96,0.06), transparent);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.35;
  color: var(--pearl);
}
.pull-quote em { color: var(--neon); font-style: italic; }

.joke {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--neon);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  margin: 0 0 1.5rem;
}

/* ─── WAITLIST  ────────────────────────────────────────────────── */

.waitlist {
  position: relative;
  padding: clamp(6rem, 12vh, 10rem) 0 clamp(8rem, 16vh, 14rem);
  text-align: left;
  background:
    radial-gradient(ellipse 140% 50% at 50% 118%, rgba(255, 107, 46, 0.35) 0%, rgba(255, 144, 64, 0.14) 20%, transparent 55%),
    linear-gradient(180deg, var(--midnight) 0%, var(--eclipse) 50%, #0D061A 100%);
  border-top: 1px solid var(--hairline);
  overflow: hidden;
}
.waitlist::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -320px;
  transform: translateX(-50%);
  width: 900px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 200, 140, 0.18) 0%, rgba(255, 144, 64, 0.08) 30%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.waitlist::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 160, 96, 0.6) 50%, transparent 100%);
  pointer-events: none;
}
.waitlist > .wrap { position: relative; z-index: 1; }

/* Nightfall wash — Story section corner glow */
.story {
  position: relative;
  overflow: hidden;
}
.story::after {
  content: "";
  position: absolute;
  right: -220px;
  bottom: -220px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 144, 64, 0.10) 0%, rgba(255, 107, 46, 0.04) 30%, transparent 70%);
  pointer-events: none;
}
/* Horizon glow at bottom of Library pillar (Pillar 02) */
#library.pillar {
  position: relative;
  overflow: hidden;
}
#library.pillar::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -80px;
  transform: translateX(-50%);
  width: 140%;
  height: 200px;
  background: radial-gradient(ellipse at center, rgba(255, 144, 64, 0.14) 0%, transparent 60%);
  pointer-events: none;
  filter: blur(12px);
}
.waitlist-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 2rem 0 1rem;
}
.waitlist-form input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--pearl);
  font: 500 1rem var(--font-body);
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.waitlist-form input[type="email"]::placeholder { color: var(--rain); }
.waitlist-form input[type="email"]:focus {
  border-color: var(--neon);
  background: rgba(255, 160, 96, 0.06);
}
.wl-status {
  min-height: 1.4rem;
  font-size: 0.92rem;
  color: var(--mist);
  margin: 0.4rem 0 0;
}
.wl-status.is-ok    { color: #7BE0A0; }
.wl-status.is-fail  { color: #F58A6A; }

/* App-Store badges (Apple-style SVG) */
.badge-row {
  display: flex;
  gap: 0.9rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.app-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 11px;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  opacity: 0.92;
}
.app-badge:hover {
  transform: translateY(-1px);
  opacity: 1;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
}
.app-badge-svg {
  height: 54px;
  width: auto;
  display: block;
}

/* ─── KILLER FEATURES GRID  ────────────────────────────────────── */

.features {
  padding: clamp(6rem, 12vh, 10rem) 0;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(255, 144, 64, 0.06), transparent 55%),
    var(--eclipse);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}
.feature {
  padding: 1.7rem 1.5rem 1.6rem;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,144,64,0.03) 100%);
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.feature:hover {
  border-color: var(--amber-hard);
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(255,144,64,0.05) 0%, rgba(255,144,64,0.10) 100%);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  color: var(--neon);
  background: rgba(255, 160, 96, 0.08);
  border: 1px solid var(--hairline);
  margin-bottom: 1.1rem;
}
.feature h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 0 0 0.6rem;
  color: var(--pearl);
}
.feature p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--mist);
  line-height: 1.55;
}

/* ─── SIGNAL RINGS (background — Built for listening)  ─────────── */

.pillar-rings {
  position: relative;
  overflow: hidden;
}
.signal-rings {
  position: absolute;
  right: -160px;
  top: 50%;
  transform: translateY(-50%);
  width: 720px;
  height: 720px;
  pointer-events: none;
  opacity: 0.55;
}
.signal-rings::before,
.signal-rings::after,
.signal-rings > span {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 1px solid rgba(255, 160, 96, 0.35);
}
.signal-rings::before { width: 200px; height: 200px; border-width: 2px; box-shadow: 0 0 60px rgba(255, 144, 64, 0.4); }
.signal-rings::after  { width: 380px; height: 380px; opacity: 0.6; }
@media (max-width: 640px) {
  .signal-rings { right: -260px; opacity: 0.35; }
}

/* Additional outer rings via ::marker trick — use nested pseudos via body backdrop */
.pillar-rings::before {
  content: "";
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translate(50%, -50%);
  width: 560px;
  height: 560px;
  border-radius: 50%;
  border: 1px solid rgba(255, 160, 96, 0.16);
  pointer-events: none;
}
.pillar-rings::after {
  content: "";
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translate(50%, -50%);
  width: 780px;
  height: 780px;
  border-radius: 50%;
  border: 1px solid rgba(255, 160, 96, 0.09);
  pointer-events: none;
}

/* ─── FOOTER  ──────────────────────────────────────────────────── */

.site-footer {
  padding: 3.5rem 0 5rem;
  background: var(--ink);
  color: var(--mist);
  font-size: 0.9rem;
  border-top: 1px solid var(--hairline);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  color: var(--pearl);
  font-size: 1rem;
  margin-bottom: 0.8rem;
}
.footer-mark {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}
.footer-meta { margin: 0 0 0.9rem; }
.footer-nav { display: flex; gap: 1.2rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.footer-nav a { color: var(--mist); }
.footer-nav a:hover { color: var(--neon); }
.footer-copy { color: var(--rain); font-size: 0.8rem; margin: 0; }

/* ─── ACCESSIBILITY ────────────────────────────────────────────── */

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-orb::before, .hero-orb::after { animation: none; }
}
