/* AllTheMuse — Apple-inspired premium light system. Warm amber accent, used sparingly. No gradients. */

:root {
  --bg: #fbfbfd;
  --bg-soft: #f5f5f7;
  --surface: #ffffff;
  --line: #e8e8ed;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --faint: #a1a1a6;
  --amber: #e8930c;
  --amber-ink: #7a4d05;
  --amber-soft: #fdf3e0;
  --cta: #1d1d1f;
  --radius: 18px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 18px 60px rgba(0, 0, 0, 0.10);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* ===== DESIGN TOKENS — one hand, one system =====
     Radius scale:  10 / 14 / 18 / 22 / 26 / pill(999px)
     Shadow scale:  sm (resting) → lg (lifted) → xl (modal)
     Type scale:    hero 3–5.4rem / h2 2–3.4 / h3 1.3 /
                    body 1–1.15 / small 0.9 / caption 0.78 — tight tracking
     Motion:        --ease (standard), --ease-spring (playful pop).
                    Transform/opacity only. 150–400ms. Never linear. */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 22px;
  --r-2xl: 26px;
  --r-pill: 999px;
  --sh-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --sh-md: 0 8px 30px rgba(0, 0, 0, 0.06);
  --sh-lg: 0 18px 60px rgba(0, 0, 0, 0.10);
  --sh-xl: 0 30px 90px rgba(0, 0, 0, 0.16);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-spring: cubic-bezier(0.2, 0.9, 0.3, 1.25);
  --focus-ring: 0 0 0 3px rgba(232, 147, 12, 0.35);
}

/* Beautiful, consistent focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

section { scroll-margin-top: 76px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Type ---------- */
h1, h2, h3 { line-height: 1.06; letter-spacing: -0.03em; font-weight: 700; }
h1 { font-size: clamp(3rem, 8vw, 5.4rem); }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 0.8rem; }

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--amber-ink);
  margin-bottom: 1.1rem;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 7rem 1.5rem;
}

.section-sub { color: var(--muted); max-width: 600px; margin-bottom: 3rem; font-size: 1.15rem; line-height: 1.6; }

/* ---------- Buttons: ONE system ----------
   .btn-primary  near-black pill, white text   (main actions)
   .btn-secondary white pill, 1px border        (alternative actions)
   .btn-ghost     text only                     (quiet / tertiary)
   Sizes: default 44px · .btn-sm 36px · .btn-lg 52px · .btn-block full width */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0 1.6rem;
  border-radius: var(--r-pill); border: none; cursor: pointer;
  font-family: var(--font); font-weight: 600; font-size: 0.95rem; line-height: 1;
  text-decoration: none; text-align: center; white-space: nowrap;
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform 0.16s var(--ease), box-shadow 0.2s var(--ease), background 0.16s var(--ease), opacity 0.16s var(--ease), color 0.16s var(--ease);
}
.btn, .btn-primary {
  background: var(--cta); color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}
.btn:hover, .btn-primary:hover {
  background: #000; color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}
.btn:active, .btn-primary:active { transform: scale(0.97); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14); }
.btn-secondary {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
}
.btn-secondary:hover {
  background: var(--surface); color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10);
}
.btn-secondary:active { transform: scale(0.97); }
.btn-ghost {
  background: transparent; color: var(--ink);
  box-shadow: none; padding: 0 1rem;
}
.btn-ghost:hover { background: rgba(0, 0, 0, 0.05); color: var(--ink); transform: none; box-shadow: none; }
.btn-ghost:active { transform: scale(0.97); background: rgba(0, 0, 0, 0.08); }
.btn-lg { min-height: 52px; padding: 0 2.4rem; font-size: 1.02rem; }
.btn-sm { min-height: 36px; padding: 0 1.15rem; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn:disabled, .btn.disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; box-shadow: none; }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn.loading { pointer-events: none; opacity: 0.8; }
.btn.loading::after {
  content: ""; width: 1rem; height: 1rem; border-radius: 50%; flex: none;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
  animation: btnSpin 0.7s linear infinite;
}
.btn-secondary.loading::after, .btn-ghost.loading::after {
  border-color: rgba(0, 0, 0, 0.15); border-top-color: var(--ink);
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 251, 253, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0.85rem 1.5rem;
  display: flex; align-items: center; gap: 2rem;
}
.logo { font-weight: 700; font-size: 1.3rem; text-decoration: none; letter-spacing: -0.02em; }
.logo-dot { color: var(--amber); }
.nav-links { display: flex; gap: 1.8rem; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.92rem; opacity: 0.85; transition: opacity 0.15s ease; }
.nav-links a:hover { opacity: 1; }
.nav .btn { margin-left: 0.5rem; }

/* ---------- Hero ---------- */
.hero { padding: 6.5rem 1.5rem 0; text-align: center; overflow: hidden; }
.hero-inner { max-width: 860px; margin: 0 auto; }
.hero .kicker { margin-bottom: 1.2rem; }
.hero .subhead { color: var(--muted); font-size: clamp(1.15rem, 2.6vw, 1.45rem); margin: 1.4rem auto 2.4rem; max-width: 640px; line-height: 1.55; }
.hero-ctas { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.6rem; }

.waitlist-form { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.waitlist-form input[type="email"] {
  background: var(--surface);
  border: 1px solid #d2d2d7;
  color: var(--ink);
  border-radius: 980px;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  width: min(340px, 100%);
  font-family: var(--font);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.waitlist-form input[type="email"]:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(232, 147, 12, 0.15); }
.waitlist-form input[type="email"]::placeholder { color: var(--faint); }
.form-note { width: 100%; font-size: 0.92rem; min-height: 1.4em; }
.form-note.ok { color: var(--amber-ink); font-weight: 600; }
.form-note.err { color: #c9342c; }
.hero-form { margin-bottom: 4rem; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 0.5rem 0 4.5rem; }
.marquee-track {
  display: flex; gap: 1.1rem; width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
  width: 190px; height: 190px; object-fit: cover;
  border-radius: 22px; box-shadow: var(--shadow);
  background: var(--bg-soft);
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Proof ---------- */
.proof { background: var(--bg-soft); }
.proof-inner {
  max-width: 1120px; margin: 0 auto; padding: 2.2rem 1.5rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center;
}
.proof-item strong { display: block; font-size: 1.9rem; color: var(--ink); letter-spacing: -0.02em; font-weight: 700; }
.proof-item span { color: var(--muted); font-size: 0.88rem; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3rem; }
.step {
  background: var(--surface);
  border-radius: 22px; padding: 2.6rem 2rem;
  box-shadow: var(--shadow);
  text-align: left;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--amber-ink);
  background: var(--amber-soft); border-radius: 999px;
  width: 2.6rem; height: 2.6rem;
  margin-bottom: 1.3rem; font-size: 1rem;
}
.step h3 { margin-bottom: 0.6rem; font-size: 1.35rem; }
.step p { color: var(--muted); font-size: 1rem; line-height: 1.6; }

/* ---------- Gallery ---------- */
.gallery { background: var(--bg-soft); }
.masonry { columns: 4 240px; column-gap: 1.2rem; }
.card {
  display: block; width: 100%; text-align: left;
  background: var(--surface);
  border-radius: 22px; overflow: hidden; cursor: pointer;
  margin-bottom: 1.2rem; break-inside: avoid;
  font-family: var(--font); color: var(--ink); padding: 0; border: none;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--shadow-lg); }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f0f0f2; }
.card-meta { display: flex; justify-content: space-between; align-items: center; padding: 0.85rem 1.1rem 1rem; }
.tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  background: var(--amber-soft); color: var(--amber-ink);
  padding: 0.3rem 0.7rem; border-radius: 999px;
}
.creator { color: var(--faint); font-size: 0.85rem; }

/* ---------- Packs ---------- */
.pack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pack {
  background: var(--surface);
  border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.pack:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pack img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f0f0f2; }
.pack-body { padding: 1.5rem 1.5rem 1.6rem; }
.pack-body h3 { font-size: 1.4rem; margin: 0.6rem 0 0.4rem; }
.pack-body p { color: var(--muted); font-size: 0.98rem; margin-bottom: 1.2rem; line-height: 1.55; }
.pack-row { display: flex; justify-content: space-between; align-items: center; }
.price { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Founding ---------- */
.founding { background: var(--bg-soft); }
.founding-inner {
  text-align: center; max-width: 880px; margin: 0 auto;
  background: #1d1d1f; color: #f5f5f7;
  border-radius: 28px; padding: 4.5rem 2.5rem;
  box-shadow: var(--shadow-lg);
}
.founding-inner .kicker { color: var(--amber); }
.founding-inner h2 { color: #fff; }
.founding-sub { font-size: 1.15rem; margin: 1.1rem auto 2.2rem; max-width: 600px; color: #c7c7cc; line-height: 1.6; }
.founding-fine { margin-top: 1.4rem; font-size: 0.88rem; color: #8e8e93; font-weight: 500; }

/* ---------- FAQ ---------- */
.faq-inner { max-width: 780px; }
.faq-list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  color: var(--ink); font-family: var(--font); font-size: 1.08rem; font-weight: 600;
  padding: 1.3rem 1.6rem; display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; text-align: left; letter-spacing: -0.01em;
}
.faq-q::after { content: "+"; color: var(--faint); font-size: 1.6rem; font-weight: 300; flex-shrink: 0; transition: transform 0.2s ease; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.28s ease; }
.faq-a p { padding: 0 1.6rem 1.5rem; color: var(--muted); line-height: 1.65; }

/* ---------- Final CTA ---------- */
.final-cta { background: var(--bg-soft); text-align: center; }
.final-inner { max-width: 700px; }
.final-inner h2 { font-size: clamp(2.4rem, 6vw, 3.8rem); margin-bottom: 1.1rem; }
.final-inner p { color: var(--muted); margin-bottom: 2.2rem; font-size: 1.12rem; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 3.5rem 1.5rem 2rem; }
.footer-brand p { color: var(--muted); margin-top: 0.6rem; font-size: 0.95rem; }
.footer-links { display: flex; gap: 1.6rem; margin: 1.6rem 0; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.92rem; }
.footer-links a:hover { color: var(--ink); }
.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  border-top: 1px solid var(--line); padding-top: 1.5rem;
  color: var(--faint); font-size: 0.86rem;
}
.footer-base a { color: var(--faint); text-decoration: none; }
.footer-base a:hover { color: var(--ink); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1.2rem; }
.lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(8px); }
.lightbox-panel {
  position: relative; background: var(--surface);
  border-radius: 24px; overflow: hidden; max-width: 560px; width: 100%;
  box-shadow: var(--shadow-lg);
}
.lightbox-panel img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f0f0f2; }
.lightbox-info { padding: 1.5rem 1.7rem 1.7rem; }
.lightbox-info h3 { font-size: 1.55rem; margin-bottom: 0.45rem; }
.lightbox-info p { margin-bottom: 1.2rem; display: flex; gap: 0.7rem; align-items: center; }
.lightbox-info p.lightbox-desc { display: block; color: var(--muted); font-size: 0.98rem; line-height: 1.6; margin-bottom: 1.4rem; }
.lightbox-close {
  position: absolute; top: 0.8rem; right: 0.8rem;
  background: rgba(0, 0, 0, 0.45); color: #fff; border: none; border-radius: 50%;
  width: 2.4rem; height: 2.4rem; font-size: 1.35rem; cursor: pointer; line-height: 1;
  backdrop-filter: blur(6px);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  background: #1d1d1f; color: #fff; font-weight: 600; font-size: 0.95rem;
  padding: 0.9rem 1.7rem; border-radius: 980px; z-index: 120;
  box-shadow: var(--shadow-lg);
  max-width: calc(100vw - 3rem); text-align: center;
}
.toast[hidden] { display: none; }

/* ---------- Landing app links ---------- */
.nav-login {
  font-size: 0.92rem; font-weight: 600;
  color: var(--muted); text-decoration: none;
  margin-right: 0.4rem; white-space: nowrap;
}
.nav-login:hover { color: var(--ink); }
.view-all { text-align: center; margin-top: 2.2rem; }
.view-all a {
  font-weight: 700; color: var(--amber-ink);
  text-decoration: none; font-size: 1.05rem;
}
.view-all a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .pack-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-inner { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
  .section-inner { padding: 5rem 1.25rem; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-inner { gap: 1rem; }
  .nav .btn { margin-left: auto; }
  .pack-grid { grid-template-columns: 1fr; }
  .section-inner { padding: 4rem 1.2rem; }
  .hero { padding-top: 4rem; }
  .founding-inner { padding: 3rem 1.5rem; border-radius: 22px; }
}

/* ---------- Trending today strip ---------- */
.trending { background: var(--surface); }
.trending[hidden] { display: none; }
.trending-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
  margin-top: 2.4rem;
}
.trend-card {
  display: block; background: var(--bg-soft); border-radius: 20px; overflow: hidden;
  text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.trend-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.trend-card img, .trend-card video { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #f0f0f2; }
.trend-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  padding: 0.8rem 1rem;
}
.trend-name { font-weight: 700; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trend-loves { font-weight: 700; font-size: 0.9rem; color: #c2255c; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .trending-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
}

/* ============================================================
   v2 — MOTION, DEPTH & GAME (transform/opacity only)
   ============================================================ */

/* ---------- Scroll reveals + staggered entrances ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }
.stagger-in { opacity: 1; }
html.anim .stagger-in {
  opacity: 0;
  animation: cardIn 0.55s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* ---------- Hero cascade ----------
   Visible by default; the entrance animation only runs when JS opts in
   via <html class="anim">. Slow or disabled JS can never hide content. */
.h-fade { opacity: 1; }
html.anim .h-fade { opacity: 0; animation: heroIn 0.85s var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
.hero h1 { font-size: clamp(3.2rem, 9vw, 6rem); letter-spacing: -0.045em; }

/* ---------- Floating hero cards ---------- */
.hero { position: relative; }
.float-wrap { position: absolute; z-index: 1; pointer-events: none; will-change: transform; transition: transform 0.35s var(--ease); }
.fw-1 { left: 3%; top: 14%; }
.fw-2 { right: 4%; top: 9%; }
.fw-3 { right: 10%; bottom: 32%; }
.float-card {
  width: 148px; background: var(--surface); border-radius: 18px;
  box-shadow: var(--sh-lg); padding: 0.55rem;
  animation: floaty 6s ease-in-out infinite;
}
.fw-2 .float-card { animation-delay: -2s; width: 130px; }
.fw-3 .float-card { animation-delay: -4s; width: 118px; }
.float-card img { border-radius: 12px; width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.float-card span { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: -0.01em; padding: 0.5rem 0.25rem 0.2rem; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}
@media (max-width: 1100px) { .float-wrap { display: none; } }

/* ---------- Live ticker strip ---------- */
.live-strip {
  margin: 2.8rem auto 0; max-width: 1120px; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
/* Spacing is symmetric padding (not flex gap) so the -50% marquee loop is
   seamless, and every item gets a dot separator — items can never run together. */
.live-track { display: flex; width: max-content; padding: 0.85rem 0; animation: marquee 32s linear infinite; }
.live-track .tick { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0 1.7rem; position: relative; font-weight: 600; font-size: 0.92rem; color: var(--muted); white-space: nowrap; }
.live-track .tick + .tick::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px;
  margin-top: -2.5px; border-radius: 50%; background: var(--muted); opacity: 0.4;
}
.live-dot {
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: #30d158; display: inline-block; position: relative; flex: none;
}
.live-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: #30d158; opacity: 0.4;
  animation: pulseRing 1.8s ease-out infinite;
}
@keyframes pulseRing {
  from { transform: scale(0.6); opacity: 0.5; }
  to { transform: scale(1.5); opacity: 0; }
}

/* ---------- Marquee: small-card style ---------- */
.marquee-card {
  flex: none; width: 132px; border-radius: 18px; overflow: hidden;
  background: var(--surface); box-shadow: var(--sh-md);
}
.marquee-track .marquee-card img {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: 0; box-shadow: none; background: var(--bg-soft); display: block;
}

/* ---------- Game loop ---------- */
.loop { background: var(--bg); }
.loop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.6rem; }
.loop-card {
  background: var(--surface); border-radius: 22px; padding: 1.7rem 1.4rem;
  box-shadow: var(--sh-md); position: relative;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.loop-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.loop-icon { font-size: 2rem; display: block; margin-bottom: 0.9rem; }
.loop-card h3 { font-size: 1.15rem; margin-bottom: 0.45rem; }
.loop-card p { color: var(--muted); font-size: 0.93rem; line-height: 1.55; }
.loop-card:not(:last-child)::after {
  content: "→"; position: absolute; right: -0.9rem; top: 50%;
  transform: translateY(-50%); color: var(--faint); font-size: 1.2rem; z-index: 1;
}
@media (max-width: 900px) {
  .loop-grid { grid-template-columns: repeat(2, 1fr); }
  .loop-card:not(:last-child)::after { display: none; }
}
@media (max-width: 560px) { .loop-grid { grid-template-columns: 1fr; } }

/* ---------- Leaderboard preview ---------- */
.leaderboard { background: var(--bg-soft); }
.leaderboard[hidden] { display: none; }
.lb-table { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 2.2rem; max-width: 660px; }
.lb-row {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface); border-radius: 16px;
  padding: 0.65rem 1.1rem 0.65rem 0.7rem; box-shadow: var(--sh-sm);
  text-decoration: none; color: var(--ink);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.lb-row:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.lb-rank { font-weight: 800; font-size: 1.05rem; color: var(--faint); width: 2rem; text-align: center; font-variant-numeric: tabular-nums; flex: none; }
.lb-row:first-child .lb-rank { color: var(--amber); }
.lb-row img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex: none; }
.lb-name { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-votes { font-weight: 700; color: #c2255c; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Manifesto ---------- */
.manifesto { background: var(--ink); color: #fff; }
.manifesto .kicker { color: var(--amber); }
.manifesto-inner { text-align: center; max-width: 920px; }
.manifesto h2 { font-size: clamp(2.2rem, 6vw, 4.2rem); letter-spacing: -0.035em; margin-bottom: 1.4rem; }
.manifesto-inner p:last-child { color: #a1a1a6; font-size: 1.1rem; }

/* ---------- FAQ: beautiful ---------- */
.faq-list { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 2.4rem; }
.faq-item {
  background: var(--surface); border-radius: 18px; box-shadow: var(--sh-sm);
  overflow: hidden; transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.faq-item:hover { box-shadow: var(--sh-md); }
.faq-item.open { box-shadow: var(--sh-md); }

/* ---------- Landing cards: mini-card anatomy ---------- */
.card { border-radius: 20px; }
.card-img { display: block; overflow: hidden; position: relative; border-radius: 0; }
.card .card-img img { transition: transform 0.45s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { display: block; padding: 0.9rem 1.05rem 1rem; text-align: left; }
.card-name { display: block; font-weight: 700; font-size: 0.98rem; letter-spacing: -0.01em; margin-bottom: 0.25rem; }
.card-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.card .creator { color: var(--faint); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .tag {
  font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
  background: var(--bg-soft); color: var(--muted);
  padding: 0.28rem 0.65rem; border-radius: 999px; white-space: nowrap; flex: none;
}
.card .remix-fab {
  position: absolute; left: 50%; bottom: 0.7rem; z-index: 2;
  transform: translate(-50%, 10px); opacity: 0;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--ink); font-family: var(--font);
  font-weight: 700; font-size: 0.85rem; white-space: nowrap;
  padding: 0.5rem 1.15rem; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transition: opacity 0.22s ease, transform 0.22s ease;
  cursor: pointer;
}
.card:hover .remix-fab { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Trending: mini-cards ---------- */
.trend-card {
  display: block; background: var(--surface); border-radius: 20px; overflow: hidden;
  text-decoration: none; color: var(--ink);
  box-shadow: var(--sh-md);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.trend-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.trend-card .card-img img, .trend-card .card-img video {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #f0f0f2;
  transition: transform 0.45s var(--ease);
}
.trend-card:hover .card-img img, .trend-card:hover .card-img video { transform: scale(1.05); }
.trend-card .card-body { padding: 0.85rem 1rem 0.95rem; }
.trend-card .card-name { font-size: 0.93rem; }
.trend-loves { font-weight: 700; font-size: 0.88rem; color: #c2255c; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Landing mobile nav ---------- */
.nav-login { font-weight: 600; font-size: 0.92rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
.nav-login:hover { color: var(--amber-ink); }
.nav-burger {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 42px; height: 42px; background: none; border: none; cursor: pointer;
  margin-left: auto; padding: 9px; flex: none;
  -webkit-tap-highlight-color: transparent;
}
.nav-burger span {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--ink);
  transition: transform 0.22s var(--ease), opacity 0.18s var(--ease);
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-sheet {
  position: fixed; top: 59px; left: 0; right: 0; z-index: 150;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 1.4rem 1.3rem;
  display: flex; flex-direction: column;
  animation: sheetIn 0.25s var(--ease);
}
.nav-sheet[hidden] { display: none; }
.nav-sheet a {
  padding: 0.95rem 0.3rem; font-weight: 600; font-size: 1.04rem;
  text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line);
}
.nav-sheet a:last-child { border-bottom: none; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(-12px); } }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-login { display: none; }
}

/* ---------- Lightbox spring (landing) ---------- */
.lightbox-panel { animation: springIn 0.38s cubic-bezier(0.2, 0.9, 0.25, 1.12); }
@keyframes springIn {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Reduced motion: everything still ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .stagger-in, .h-fade { opacity: 1; animation: none; }
  .marquee-track, .live-track { animation: none !important; }
  .float-wrap { display: none; }
}

/* ================= THE WALL (landing) ================= */
.wall { background: var(--bg); padding: 4.5rem 0 3.5rem; }
.wall-head { margin-bottom: 1.6rem; }
.wall-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.035em; margin: 0.4rem 0 0.5rem; }
.wall-filters { display: flex; gap: 0.6rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.pill-filter {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  border-radius: var(--r-pill); padding: 0.6rem 1.25rem; font-family: var(--font);
  font-weight: 700; font-size: 0.9rem; cursor: pointer;
  transition: transform 0.16s var(--ease), background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.pill-filter:hover { transform: translateY(-1px); color: var(--ink); }
.pill-filter:active { transform: scale(0.96); }
.pill-filter.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill-filter .count { opacity: 0.65; font-weight: 600; margin-left: 0.25rem; }
.wall-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem;
}
@media (max-width: 900px) { .wall-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .wall-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; } }

/* Small cards: rounded image, name, badge. Caption lives INSIDE the card so
   hover transforms move image + text together. */
.wall-card {
  background: var(--surface); border-radius: 20px; overflow: hidden;
  box-shadow: var(--sh-sm); cursor: pointer; position: relative;
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), box-shadow 0.2s var(--ease);
  transition-delay: var(--d, 0ms);
  -webkit-tap-highlight-color: transparent;
}
.wall-card.in { opacity: 1; transform: none; }
.wall-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.wall-card:active { transform: scale(0.98); }
.wall-media { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bg-soft); }
.wall-media img, .wall-media video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.35s var(--ease);
}
.wall-card:hover .wall-media img, .wall-card:hover .wall-media video { transform: scale(1.04); }
.wall-body { padding: 0.8rem 0.95rem 0.95rem; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.wall-name { font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wall-badge {
  flex: none; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em;
  padding: 0.32rem 0.6rem; border-radius: var(--r-pill);
}
.wall-badge.free { background: var(--green-soft, #e5f6ea); color: var(--green-ink, #1d7a3a); }
.wall-badge.lock { background: var(--amber-soft); color: var(--amber-ink); }
/* Floating Remix pill — appears on hover / always visible on touch */
.wall-remix {
  position: absolute; left: 50%; bottom: 0.7rem; transform: translateX(-50%) translateY(8px);
  background: rgba(29, 29, 31, 0.88); color: #fff; border: none; cursor: pointer;
  font-family: var(--font); font-weight: 700; font-size: 0.8rem;
  padding: 0.5rem 1.05rem; border-radius: var(--r-pill);
  opacity: 0; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  white-space: nowrap;
}
.wall-card:hover .wall-remix, .wall-card:focus-within .wall-remix { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (hover: none) { .wall-remix { opacity: 1; transform: translateX(-50%) translateY(0); } }
.wall-remix:active { transform: translateX(-50%) scale(0.95); }
/* Premium lock state */
.wall-card.is-locked .wall-media img, .wall-card.is-locked .wall-media video { filter: blur(7px) saturate(0.85); }
.wall-lock-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.35rem;
  background: rgba(251, 251, 253, 0.28); color: var(--ink);
  font-weight: 800; font-size: 0.85rem; letter-spacing: -0.01em;
}
.wall-lock-overlay .lock-emoji { font-size: 1.6rem; }
/* Skeleton shimmer while the wall loads */
.skeleton-card {
  border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: var(--sh-sm);
}
.skeleton-media {
  aspect-ratio: 1; background: linear-gradient(100deg, var(--bg-soft) 40%, #ececf0 50%, var(--bg-soft) 60%);
  background-size: 200% 100%; animation: shimmer 1.3s linear infinite;
}
.skeleton-line { height: 0.85rem; border-radius: 6px; margin: 0.85rem 0.95rem; background: var(--bg-soft); }
.skeleton-line.short { width: 55%; margin-top: 0; }
@keyframes shimmer { from { background-position: 180% 0; } to { background-position: -20% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton-media { animation: none; } }
.wall-error {
  text-align: center; padding: 3rem 1rem; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.wall-error img { border-radius: 20px; }
.linklike {
  background: none; border: none; padding: 0; font: inherit; cursor: pointer;
  color: var(--amber-ink); font-weight: 700; text-decoration: underline;
}

/* ================= CONTEST RACE (landing) ================= */
.race { background: var(--bg-soft); padding: 4rem 0; }
.race-list { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.8rem; }
.race-row {
  display: flex; align-items: center; gap: 1rem; background: var(--surface);
  border-radius: 18px; padding: 0.7rem 1.1rem 0.7rem 0.7rem; box-shadow: var(--sh-sm);
  text-decoration: none; color: var(--ink);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.race-row:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.race-rank {
  width: 2.4rem; height: 2.4rem; flex: none; border-radius: 50%;
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem;
}
.race-row.leader .race-rank { background: var(--ink); color: #fff; }
.race-thumb { width: 3rem; height: 3rem; border-radius: 14px; object-fit: cover; flex: none; background: var(--bg-soft); }
.race-row > span:nth-child(3) { min-width: 0; flex: 1 1 auto; }
.race-name { font-weight: 700; letter-spacing: -0.01em; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.race-creator { color: var(--faint); font-size: 0.82rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.race-votes { margin-left: auto; font-weight: 800; color: var(--amber-ink); white-space: nowrap; }
.race-crown { font-size: 1.1rem; }
.race-empty { color: var(--muted); padding: 1.5rem 0; }

/* ================= PACKS TEASER (landing) ================= */
.packs { padding: 4rem 0; }
.packs-teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 1.8rem; }
@media (max-width: 760px) { .packs-teaser { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; } }
.pack-tease {
  background: var(--surface); border-radius: 20px; overflow: hidden; box-shadow: var(--sh-sm);
  text-decoration: none; color: var(--ink); display: block;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.pack-tease:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.pack-tease img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; background: var(--bg-soft); }
.pack-tease-body { padding: 1rem 1.1rem 1.15rem; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.pack-tease-name { font-weight: 700; letter-spacing: -0.01em; }
.pack-tease-price { flex: none; font-weight: 800; font-size: 0.85rem; color: var(--amber-ink); background: var(--amber-soft); padding: 0.35rem 0.7rem; border-radius: var(--r-pill); }

/* ================= WALL LIGHTBOX ================= */
.lightbox-media { border-radius: 16px; overflow: hidden; background: var(--bg-soft); }
.lightbox-media img, .lightbox-media video { width: 100%; display: block; aspect-ratio: 1; object-fit: cover; }
.lightbox .btn-row { display: flex; gap: 0.7rem; margin-top: 1.1rem; flex-wrap: wrap; }

/* Compact hero */
.hero-compact { padding: 4.2rem 0 2.6rem; }

/* Landing-only secondary nav links */
@media (max-width: 900px) { .nav-secondary { display: none; } }

/* Anchored sections clear the sticky nav */
#wall, #game, #race, #packs, #faq, #get-access { scroll-margin-top: 5rem; }
