/* rewamp — Retro Wave Media Player
   Brand tokens: Night #160A1E · Magenta #F0388F · Plum #4A0E36
   Sunset #FF9E3D · Cyan #38D6E0 · Light #F4F1FF */

:root {
  --night: #160a1e;
  --night-2: #1e0f2a;
  --plum: #4a0e36;
  --magenta: #f0388f;
  --sunset: #ff9e3d;
  --cyan: #38d6e0;
  --light: #f4f1ff;
  --muted: #b7a9c9;
  --line: rgba(244, 241, 255, 0.08);
  --card: rgba(244, 241, 255, 0.03);
  --card-hover: rgba(244, 241, 255, 0.06);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", ui-monospace, "JetBrains Mono", "Menlo", monospace;

  --maxw: 1120px;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--night);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient synthwave backdrop — restrained */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 50% 8%, rgba(240, 56, 143, 0.14), transparent 70%),
    radial-gradient(50% 40% at 85% 0%, rgba(56, 214, 224, 0.06), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, #120817 100%);
}
/* faint horizon grid */
body::after {
  content: "";
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 42vh;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(240, 56, 143, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 56, 143, 0.10) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: perspective(340px) rotateX(62deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.7), transparent 80%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.7), transparent 80%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--magenta);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(22, 10, 30, 0.62);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; }
.brand img { width: 26px; height: 26px; }
.brand span { font-size: 1.15rem; }
.brand b { color: var(--magenta); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { color: var(--muted); font-size: 0.92rem; transition: color 0.2s; }
.nav__links a:hover { color: var(--light); }
.nav__cta { margin-left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--magenta);
  color: #fff;
  box-shadow: 0 8px 30px rgba(240, 56, 143, 0.35);
}
.btn--primary:hover { box-shadow: 0 10px 40px rgba(240, 56, 143, 0.5); }
.btn--ghost {
  background: var(--card);
  border-color: var(--line);
  color: var(--light);
}
.btn--ghost:hover { background: var(--card-hover); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn small { font-weight: 400; opacity: 0.75; font-size: 0.78rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 72px; text-align: center; }
.hero__sun {
  width: 128px;
  height: 128px;
  margin: 0 auto 26px;
  filter: drop-shadow(0 12px 44px rgba(240, 56, 143, 0.45));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 6px 0 4px;
}
.hero h1 em { font-style: normal; color: var(--magenta); }
.hero__tag {
  font-family: var(--font-mono);
  font-size: clamp(0.82rem, 2.4vw, 1rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 22px;
}
.hero__lead {
  max-width: 640px;
  margin: 0 auto 34px;
  font-size: clamp(1.02rem, 2.4vw, 1.22rem);
  color: var(--muted);
}
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__note { margin-top: 16px; font-size: 0.82rem; color: var(--muted); font-family: var(--font-mono); }

/* animated EQ under hero */
.eq { display: flex; align-items: flex-end; justify-content: center; gap: 5px; height: 46px; margin: 40px auto 0; }
.eq span {
  width: 6px;
  background: linear-gradient(var(--magenta), var(--sunset));
  border-radius: 3px;
  animation: eq 1.1s ease-in-out infinite;
}
@keyframes eq { 0%,100% { height: 8px; } 50% { height: 42px; } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 76px 0; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section__head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 10px 0 12px;
}
.section__head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Features ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.feature:hover { transform: translateY(-4px); background: var(--card-hover); border-color: rgba(240,56,143,0.3); }
.feature__ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(240, 56, 143, 0.12);
  color: var(--magenta);
  margin-bottom: 18px;
}
.feature__ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.18rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Sources ---------- */
.sources { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(0,0,0,0.15); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--card);
}
.chip b { color: var(--cyan); font-weight: 600; }

/* ---------- Download ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 760px; margin: 0 auto; }
.dl-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dl-card__ico { width: 52px; height: 52px; margin-bottom: 16px; color: var(--light); }
.dl-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.dl-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; }
.dl-card .btn { width: 100%; justify-content: center; }
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 158, 61, 0.14);
  color: var(--sunset);
  margin-bottom: 14px;
}
.dl__meta { text-align: center; margin-top: 20px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }

/* per-architecture picker */
.arch { width: 100%; margin-top: 14px; text-align: left; }
.arch > summary {
  list-style: none;
  cursor: pointer;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 6px;
  transition: color 0.2s;
}
.arch > summary::-webkit-details-marker { display: none; }
.arch > summary:hover { color: var(--light); }
.arch > summary::after { content: " ▾"; opacity: 0.6; }
.arch[open] > summary::after { content: " ▴"; }
.arch__list { list-style: none; margin: 10px 0 0; display: grid; gap: 6px; }
.arch__list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  transition: background 0.2s, border-color 0.2s;
}
.arch__list a:hover { background: var(--card-hover); border-color: rgba(240,56,143,0.3); }
.arch__list small { color: var(--muted); font-size: 0.72rem; font-weight: 400; text-align: right; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer .brand span { font-size: 1rem; }
.footer__links { display: flex; gap: 22px; }
.footer__links a { color: var(--muted); font-size: 0.88rem; }
.footer__links a:hover { color: var(--light); }
.footer__copy { color: var(--muted); font-size: 0.82rem; font-family: var(--font-mono); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav__links a:not(.nav__cta) { display: none; }
  .grid, .dl-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__sun, .eq span { animation: none; }
}
