/* ===== AniMuse landing — design tokens ===== */
:root {
  --coral: #FF726F;
  --coral-2: #FF9A6B;
  --pink: #F75C9F;
  --purple: #9E5CF7;
  --bg: #0B0B0D;
  --bg-2: #111114;
  --card: rgba(255, 255, 255, 0.045);
  --card-brd: rgba(255, 255, 255, 0.09);
  --text: #F4F4F6;
  --muted: #A6A6B0;
  --radius: 22px;
  --maxw: 1180px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .nav__brand, .grad-text {
  font-family: "Sora", "Inter", sans-serif;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--coral); font-weight: 600; }

/* ===== Animated aurora background ===== */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(120% 80% at 50% -10%, #16121a 0%, var(--bg) 55%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.blob-1 {
  width: 620px; height: 620px;
  background: var(--coral);
  top: -180px; left: -120px;
  animation: drift1 22s var(--ease) infinite alternate;
}
.blob-2 {
  width: 540px; height: 540px;
  background: var(--purple);
  top: 10%; right: -160px;
  animation: drift2 26s var(--ease) infinite alternate;
}
.blob-3 {
  width: 480px; height: 480px;
  background: var(--pink);
  bottom: -200px; left: 30%;
  animation: drift3 30s var(--ease) infinite alternate;
}
@keyframes drift1 { to { transform: translate(140px, 120px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-120px, 80px) scale(1.1); } }
@keyframes drift3 { to { transform: translate(80px, -120px) scale(1.2); } }

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(100% 60% at 50% 0%, #000 30%, transparent 80%);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(135deg, var(--coral), var(--coral-2));
  color: #2a0b0a;
  box-shadow: 0 12px 30px -10px rgba(255, 114, 111, 0.6);
}
.btn--primary:hover { box-shadow: 0 18px 40px -10px rgba(255, 114, 111, 0.75); }
.btn--ghost {
  background: rgba(255,255,255,0.05);
  border-color: var(--card-brd);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); }
.btn--full { width: 100%; justify-content: center; }
.btn--lg { padding: 17px 30px; font-size: 1.05rem; }

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(18px, 5vw, 44px);
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--card-brd);
}
.nav__brand {
  display: flex; align-items: center; gap: 5px;
  font-weight: 700; font-size: 1.18rem;
}
.nav__logo { width: 30px; height: 30px; border-radius: 8px; }
/* Recolor the silhouette logo to flat white in the nav & footer (the artwork has a
   transparent background, so brightness(0)+invert(1) yields a clean white shape). */
.nav__logo, .footer__brand img { filter: brightness(0) invert(1); }
.nav__links { display: flex; gap: 30px; font-size: 0.95rem; color: var(--muted); }
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { padding: 9px 18px; }

@media (max-width: 820px) {
  .nav__links { display: none; }
}

/* ===== Layout ===== */
main { max-width: 100%; }
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(70px, 11vw, 130px) clamp(18px, 5vw, 28px);
}
.section__head { max-width: 680px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 14px;
}
.section__head h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); line-height: 1.1; }
.section__head p { color: var(--muted); margin-top: 16px; font-size: 1.06rem; }

.grad-text {
  background: linear-gradient(110deg, var(--coral) 0%, var(--pink) 45%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Hero ===== */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(130px, 18vw, 190px) clamp(18px, 5vw, 28px) clamp(50px, 8vw, 90px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-brd);
  font-size: 0.85rem; color: var(--muted);
  margin-bottom: 26px;
}
.pill__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 0 rgba(255,114,111,.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,114,111,.6); }
  70% { box-shadow: 0 0 0 10px rgba(255,114,111,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,114,111,0); }
}
.hero__title { font-size: clamp(2.4rem, 6vw, 4.1rem); line-height: 1.04; font-weight: 800; }
.hero__sub { color: var(--muted); font-size: 1.12rem; margin-top: 22px; max-width: 520px; }
.hero__actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero__meta {
  display: flex; align-items: center; gap: 22px;
  margin-top: 42px;
}
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta strong { font-family: "Sora"; font-size: 1.5rem; }
.hero__meta span { font-size: 0.82rem; color: var(--muted); }
.hero__meta-div { width: 1px; height: 34px; background: var(--card-brd); }

/* ===== Phone mock ===== */
.hero__device { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative;
  width: min(300px, 80vw);
  background: linear-gradient(160deg, #1c1c22, #0c0c10);
  border-radius: 44px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.08);
  z-index: 2;
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 50% { transform: translateY(-14px); } }
.phone__screen {
  position: relative;
  width: 100%;
  /* Match the screenshots' exact aspect ratio (1284×2778) so they fill the
     screen with no crop and no letterbox; the phone height follows from this. */
  aspect-ratio: 1284 / 2778;
  border-radius: 34px;
  background: #0b0b0d;
  overflow: hidden;
}
.phone__glow {
  position: absolute; inset: -30px;
  background: radial-gradient(50% 40% at 50% 45%, rgba(255,114,111,.35), transparent 70%);
  filter: blur(20px); z-index: 1;
}

/* Screenshot carousel inside the phone */
.shots { position: absolute; inset: 0; }
.shot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.shot.is-active { opacity: 1; transform: none; }

.phone__dots {
  position: absolute;
  bottom: -34px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 4;
}
.phone__dots button {
  width: 7px; height: 7px; border-radius: 50%; padding: 0;
  border: none; cursor: pointer;
  background: rgba(255,255,255,0.4);
  transition: background .3s, width .3s;
}
.phone__dots button.is-active { background: var(--coral); width: 20px; border-radius: 4px; }

/* ===== Trust strip ===== */
.strip {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px clamp(18px, 5vw, 28px);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 14px 22px;
  color: var(--muted); font-size: 0.92rem; font-weight: 500;
  border-top: 1px solid var(--card-brd);
  border-bottom: 1px solid var(--card-brd);
}
.strip__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--coral); opacity: .6; }

/* ===== Feature grid ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .35s var(--ease), border-color .35s, background .35s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(140% 90% at 0% 0%, rgba(255,114,111,.1), transparent 50%);
  opacity: 0; transition: opacity .35s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(255,114,111,.35); background: rgba(255,255,255,0.06); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  color: #fff; margin-bottom: 18px;
}
.icon-feed { background: linear-gradient(135deg, var(--coral), var(--coral-2)); }
.icon-verdict { background: linear-gradient(135deg, #ffb14d, var(--coral)); }
.icon-profile { background: linear-gradient(135deg, var(--pink), var(--coral)); }
.icon-seasons { background: linear-gradient(135deg, var(--purple), var(--pink)); }
.icon-reviews { background: linear-gradient(135deg, #5cc8ff, var(--purple)); }
.icon-swipe { background: linear-gradient(135deg, var(--coral-2), var(--pink)); }
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.96rem; }

@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

/* ===== Showcase rows ===== */
.showcase {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(50px, 8vw, 90px) clamp(18px, 5vw, 28px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}
.showcase__copy h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.1; }
.showcase__copy p { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }
.showcase--rev .showcase__copy { order: 2; }
@media (max-width: 820px) {
  .showcase, .showcase--rev { grid-template-columns: 1fr; }
  .showcase--rev .showcase__copy { order: 0; }
}

.verdict-big {
  background: linear-gradient(160deg, rgba(255,114,111,.12), rgba(158,92,247,.08));
  border: 1px solid var(--card-brd);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.7);
}
.verdict-big__badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--coral), var(--coral-2));
  color: #2a0b0a; font-weight: 700; font-size: 0.85rem;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 16px;
}
.verdict-big h3 { font-size: 1.6rem; margin-bottom: 16px; }
.verdict-big ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.verdict-big li { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 0.98rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.hit { background: #4ade80; box-shadow: 0 0 12px rgba(74,222,128,.6); }
.dot.miss { background: #f59e8a; box-shadow: 0 0 12px rgba(245,158,138,.5); }
.verdict-big__foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--card-brd); color: var(--muted); font-size: 0.85rem; }

/* ===== Taste panel ===== */
.taste-panel {
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: var(--radius);
  padding: 26px 28px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.7);
}
.taste-row { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 14px; font-size: 0.92rem; }
.taste-row i {
  display: block; height: 9px; border-radius: 6px;
  /* width + background are set in JS from data-score using the app's match ramp */
  width: 0;
  background: #5a5a66;
  transition: width 1s var(--ease);
}

/* ===== Pro ===== */
.pro__cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 22px; max-width: 820px; margin: 0 auto;
}
.plan {
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}
/* Pin each plan's button to the bottom so Get started and Go Pro align across
   cards even when their feature lists differ in height. */
.plan .btn { margin-top: auto; }
.plan--pro {
  background: linear-gradient(170deg, rgba(255,114,111,.14), rgba(158,92,247,.07));
  border-color: rgba(255,114,111,.4);
  box-shadow: 0 30px 70px -30px rgba(255,114,111,.4);
}
.plan h3 { font-size: 1.3rem; }
.plan__price { font-family: "Sora"; font-size: 2.2rem; font-weight: 800; margin: 8px 0 22px; }
.plan__price span { font-size: 0.95rem; font-weight: 500; color: var(--muted); margin-left: 8px; font-family: "Inter"; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.plan li { position: relative; padding-left: 26px; color: var(--muted); }
.plan li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--coral); font-weight: 700;
}
@media (max-width: 600px) { .pro__cards { grid-template-columns: 1fr; } }

/* ===== CTA ===== */
.cta {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) clamp(18px, 5vw, 28px) clamp(70px, 11vw, 120px);
}
.cta__inner {
  text-align: center;
  background: linear-gradient(160deg, rgba(255,114,111,.16), rgba(158,92,247,.1));
  border: 1px solid var(--card-brd);
  border-radius: 30px;
  padding: clamp(40px, 7vw, 70px) clamp(24px, 5vw, 40px);
  position: relative;
  overflow: hidden;
}
.cta__inner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 50% 0%, rgba(255,114,111,.25), transparent 70%);
}
.cta__logo { width: 84px; height: 84px; margin-bottom: 22px; position: relative; filter: drop-shadow(0 16px 30px rgba(255,114,111,.45)); }
.cta__inner h2 { font-size: clamp(2rem, 5vw, 3rem); position: relative; }
.cta__inner p { color: var(--muted); margin: 14px 0 30px; font-size: 1.1rem; position: relative; }
.cta__inner .btn { position: relative; }
.cta__note { position: relative; margin-top: 16px; font-size: 0.9rem; color: var(--muted); }
.cta__note[hidden] { display: none; }

/* Store button: pending (app not yet published) vs. live */
.btn.is-pending { opacity: 0.92; cursor: default; }
.btn.is-pending:hover { transform: none; }
.btn.is-pending .js-store-label { position: relative; }
.btn.is-pending .js-store-label::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px; margin-left: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: .55;
  animation: blink 1.4s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes blink { 50% { opacity: .15; } }

/* ===== Inline links ===== */
.link { color: var(--coral); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,114,111,.35); transition: border-color .2s; }
.link:hover { border-bottom-color: var(--coral); }

/* ===== Support page ===== */
.support-hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(130px, 17vw, 180px) clamp(18px, 5vw, 28px) clamp(20px, 4vw, 40px);
  text-align: center;
}
.support-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.05; }
.support-hero p { color: var(--muted); font-size: 1.12rem; max-width: 620px; margin: 18px auto 0; }
.support-hero__actions { display: flex; gap: 14px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.support-cards { padding-top: clamp(30px, 5vw, 50px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .grid--3 { grid-template-columns: 1fr; } }
.support-cards .card p { margin-top: 4px; }

/* FAQ accordion */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 14px;
}
.faq__item {
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .3s, background .3s;
}
.faq__item[open] { border-color: rgba(255,114,111,.35); background: rgba(255,255,255,0.06); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--coral);
  transition: transform .3s var(--ease);
  flex: none;
  line-height: 1;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 24px 22px; }
.faq__body p { color: var(--muted); font-size: 1rem; }

/* ===== Legal / long-form pages ===== */
.legal { padding-top: clamp(20px, 4vw, 40px); }
.legal__date { font-size: 0.9rem; color: var(--muted); margin-top: 14px; }
.legal__body {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 48px);
}
.legal__body h2 {
  font-size: 1.3rem;
  margin: 34px 0 12px;
  letter-spacing: -0.01em;
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body p { color: var(--muted); margin-bottom: 14px; }
.legal__body ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 0 0 18px; }
.legal__body li { position: relative; padding-left: 22px; color: var(--muted); }
.legal__body li::before {
  content: ""; position: absolute; left: 2px; top: 10px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--coral); opacity: .7;
}
.legal__body strong { color: var(--text); font-weight: 600; }

/* ===== Footer ===== */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px clamp(18px, 5vw, 28px) 60px;
  text-align: center;
  border-top: 1px solid var(--card-brd);
  color: var(--muted);
}
.footer__brand { display: inline-flex; align-items: center; gap: 9px; font-family: "Sora"; font-weight: 700; font-size: 1.1rem; color: var(--text); margin-bottom: 12px; }
.footer__brand img { width: 26px; height: 26px; border-radius: 7px; }
.footer p { font-size: 0.95rem; }
.footer__fine { font-size: 0.82rem; opacity: .7; margin-top: 10px; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__actions, .hero__meta { justify-content: center; }
  .hero__device { margin-top: 30px; }
}
