/* muverai.com — landing + legal. Palette mirrors src/theme/index.ts. */

@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --bg: #000000;
  --surface: #3a1826;
  --bordo: #681d32;
  --berry: #9b3152;
  --text: #f7f0e6;
  --muted: #c9b7ae;
  --ice: #bfe4e8;
  --border: #4a2536;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: var(--ice); }
img { display: block; max-width: 100%; }

/* ---------- Landing ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* bordo / berry glow, in place of Udio's purple */
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -30% auto;
  height: 90%;
  z-index: -1;
  background:
    radial-gradient(50% 45% at 50% 35%, rgba(155, 49, 82, 0.55), transparent 70%),
    radial-gradient(40% 40% at 20% 60%, rgba(104, 29, 50, 0.6), transparent 70%),
    radial-gradient(35% 35% at 85% 65%, rgba(191, 228, 232, 0.10), transparent 70%);
  filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(16px, 4vw, 40px);
}
.nav img { height: 34px; width: auto; }

.hero-copy {
  min-width: 0;
  width: 100%;
  text-align: center;
  padding: clamp(24px, 6vh, 64px) 16px 0;
  max-width: 920px;
  margin: 0 auto;
}
.hero-copy h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(32px, 6.2vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero-copy h1 span { display: block; }
.hero-copy h1 em { font-style: normal; color: var(--ice); white-space: nowrap; }
.hero-copy p {
  margin: 18px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 19px);
}

/* genre chips — a slow marquee; the list is duplicated in HTML for the loop */
.chips {
  margin: 26px auto 0;
  max-width: 640px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.chips ul {
  display: flex;
  gap: 10px;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: marquee 32s linear infinite;
}
.chips li {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(58, 24, 38, 0.6);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

.cta {
  display: inline-block;
  margin-top: 30px;
  border-radius: 12px;
  transition: transform 0.15s ease;
}
.cta:hover { transform: translateY(-2px); }
.cta:focus-visible { outline: 2px solid var(--ice); outline-offset: 4px; }
.cta img { height: 56px; width: auto; }

/* tilted phones */
.phones {
  position: relative;
  flex: 1;
  min-height: 520px;
  margin-top: clamp(32px, 6vh, 64px);
}
.phone {
  position: absolute;
  left: 50%;
  top: 0;
  width: clamp(210px, 27vw, 290px);
  aspect-ratio: 9 / 19.5;
  padding: 9px;
  border-radius: 44px;
  background: linear-gradient(145deg, #2a1a22, #0d0709);
  box-shadow:
    0 0 0 1.5px #3b2a31,
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 90px rgba(155, 49, 82, 0.25);
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 36px;
}
.phone--main {
  z-index: 2;
  transform: translateX(-50%) rotate(-14deg);
}
.phone--left {
  z-index: 1;
  transform: translateX(-138%) translateY(90px) rotate(-14deg) scale(0.86);
  opacity: 0.85;
}
.phone--right {
  z-index: 1;
  transform: translateX(42%) translateY(120px) rotate(-14deg) scale(0.86);
  opacity: 0.85;
}

.site-footer {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  padding: 22px 16px 28px;
  border-top: 1px solid #1c1014;
  background: var(--bg);
  color: var(--muted);
  font-size: 14px;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 640px) {
  .nav img { height: 28px; }
  .cta img { height: 52px; }
  .phones { min-height: 440px; }
  .phone { width: 200px; border-radius: 36px; padding: 7px; }
  .phone img { border-radius: 30px; }
  .phone--left { transform: translateX(-125%) translateY(80px) rotate(-14deg) scale(0.82); }
  .phone--right { transform: translateX(28%) translateY(110px) rotate(-14deg) scale(0.82); }
}

@media (prefers-reduced-motion: reduce) {
  .chips ul { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .chips li[aria-hidden="true"] { display: none; }
  .chips { -webkit-mask-image: none; mask-image: none; }
  .cta { transition: none; }
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 64px;
  font-size: 17px;
  line-height: 1.65;
}
.legal h1 { font-size: 1.9rem; line-height: 1.2; margin: 1.5rem 0 0.5rem; font-weight: 800; }
.legal h2 { font-size: 1.25rem; margin: 2.25rem 0 0.75rem; font-weight: 800; }
.legal .lead, .legal .muted { color: var(--muted); }
.legal .lead { font-size: 1rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border: 1px solid var(--border); }
.legal th { background: var(--surface); }
.legal .table-wrap { overflow-x: auto; }
.legal .callout { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.25rem; margin: 1rem 0; }
.legal .callout p { margin: 0; }
.legal-nav { padding: 20px 16px 0; max-width: 720px; margin: 0 auto; }
.legal-nav img { height: 28px; width: auto; }
