/* Meme City landing. Tokens from Meme City / After Dark v1.0 (07-Developer-Kit/brand.css). */

@font-face { font-family: "Anton"; src: url("assets/fonts/anton-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --mc-city-ink: #0B0D17;
  --mc-moon: #F4EFE4;
  --mc-city-gold: #FACC15;
  --mc-pool-gold: #FFE793;
  --mc-electric-sky: #38BDF8;
  --mc-night-pink: #F472B6;
  --mc-night-violet: #A78BFA;

  --ink-2: #121526;
  --ink-3: #1A1E33;
  --line: rgba(244, 239, 228, 0.12);
  --moon-dim: #C9C4BA;
  --neon: linear-gradient(90deg, var(--mc-electric-sky), var(--mc-night-violet) 36%, var(--mc-night-pink) 70%, var(--mc-city-gold));

  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mc-city-ink);
  color: var(--mc-moon);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow-wrap { max-width: 780px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--mc-city-gold); color: var(--mc-city-ink); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--mc-electric-sky); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-family: var(--body); font-weight: 700; font-size: 16px; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-gold { background: var(--mc-city-gold); color: var(--mc-city-ink); box-shadow: 0 0 0 0 rgba(250, 204, 21, 0); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 8px 28px -8px rgba(250, 204, 21, 0.55); }
.btn-ghost { color: var(--mc-moon); border: 1.5px solid rgba(244, 239, 228, 0.35); background: rgba(11, 13, 23, 0.35); }
.btn-ghost:hover { border-color: var(--mc-moon); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 23, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
/* Horizontal wordmark: 120 pt minimum width; the link padding holds 0.15H clear space. */
.header-logo { display: block; padding: 5px 0; flex: none; }
.header-logo img { width: 168px; height: auto; }
.header-nav { display: flex; gap: 28px; margin-left: auto; }
.header-nav a { color: var(--moon-dim); text-decoration: none; font-weight: 600; font-size: 14px; }
.header-nav a:hover, .header-nav a[aria-current="page"] { color: var(--mc-moon); }
@media (max-width: 820px) {
  .header-nav { display: none; }
  .header-inner > .btn { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(92vh, 900px);
  display: flex; align-items: center;
  padding: 72px 0 88px;
  text-align: center;
}
.hero-plate {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 13, 23, 0.55) 0%, rgba(11, 13, 23, 0.35) 40%, rgba(11, 13, 23, 0.92) 88%, var(--mc-city-ink) 100%),
    radial-gradient(ellipse 60% 55% at 50% 45%, rgba(11, 13, 23, 0.1), rgba(11, 13, 23, 0.6)),
    url("assets/img/city-atmosphere.webp") center 40% / cover no-repeat;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--moon-dim);
}
/* Hero badge: 144 pt minimum; padding holds 0.15H clear space around the art. */
.hero-logo { margin: 0; padding: clamp(22px, 4vw, 48px); }
.hero-logo img { width: clamp(220px, 34vw, 400px); height: auto; }
.tagline {
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em;
  font-size: clamp(18px, 2.2vw, 24px);
}
.hero-copy {
  max-width: 560px; margin-top: 18px;
  color: var(--moon-dim); font-size: clamp(17px, 1.6vw, 19px);
}
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
.fine { margin-top: 18px; font-size: 14px; color: var(--moon-dim); }

/* Brand entrance: once, 650 ms, opacity 0 -> 1 and scale 0.97 -> 1, eased out. */
@keyframes mc-enter { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
.mc-brand-animation { animation: mc-enter 650ms cubic-bezier(0.16, 1, 0.3, 1) both; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--ink-2); border-block: 1px solid var(--line); }
.kicker {
  font-weight: 600; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mc-city-gold); margin-bottom: 14px;
}
.display {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(38px, 5.4vw, 64px); line-height: 1.02;
  text-transform: uppercase; letter-spacing: 0.005em;
}
.lede { margin-top: 20px; font-size: clamp(17px, 1.5vw, 19px); color: var(--moon-dim); max-width: 620px; }
.lede.narrow { max-width: 520px; }

/* How it plays */
.verbs {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.verb {
  position: relative; padding: 32px 28px 30px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.verb::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--neon);
}
.verb-num { font-family: var(--display); font-size: 18px; color: var(--mc-night-violet); }
.verb-title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: 48px; line-height: 1; margin: 8px 0 14px;
}
.verb p { color: var(--moon-dim); }
.verb p.verb-note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--mc-moon); }
@media (max-width: 860px) { .verbs { grid-template-columns: 1fr; } }

/* Showcase */
.showcase { background: radial-gradient(ellipse 50% 60% at 25% 50%, rgba(167, 139, 250, 0.14), transparent 70%); }
.showcase-inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.phone { margin: 0; justify-self: center; width: min(340px, 78vw); }
.phone-frame {
  position: relative; padding: 10px; border-radius: 46px;
  background: linear-gradient(160deg, #2A2F4A, #10131F 40%, #1C2036);
  box-shadow: 0 0 0 1px rgba(244, 239, 228, 0.1), 0 40px 80px -30px rgba(56, 189, 248, 0.35), 0 30px 60px -20px rgba(244, 114, 182, 0.25);
}
.phone-frame img { border-radius: 36px; width: 100%; aspect-ratio: 739 / 1300; object-fit: cover; background: #05060C; }
.phone figcaption { margin-top: 14px; text-align: center; font-size: 13px; color: var(--moon-dim); letter-spacing: 0.04em; }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 16px; height: 17px;
  background: url("assets/brand/mc_star_gold.svg") center / contain no-repeat;
}
@media (max-width: 860px) {
  .showcase-inner { grid-template-columns: 1fr; }
  .showcase-copy { order: -1; }
}

/* The board */
.streets {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.streets li {
  padding: 8px 14px; border-radius: 8px;
  background: var(--mc-moon); color: var(--mc-city-ink);
  font-weight: 700; font-size: 14px; letter-spacing: 0.01em;
  box-shadow: inset 0 -3px 0 rgba(11, 13, 23, 0.14);
}
.streets li:nth-child(4n+1) { box-shadow: inset 0 -3px 0 var(--mc-night-violet); }
.streets li:nth-child(4n+2) { box-shadow: inset 0 -3px 0 var(--mc-night-pink); }
.streets li:nth-child(4n+3) { box-shadow: inset 0 -3px 0 var(--mc-electric-sky); }
.streets li:nth-child(4n)   { box-shadow: inset 0 -3px 0 var(--mc-city-gold); }

.tiles { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  padding: 28px; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
}
.tile h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 26px; line-height: 1.1; color: var(--accent); margin-bottom: 10px; }
.tile p { color: var(--moon-dim); font-size: 16px; }
.tile-gold   { --accent: var(--mc-city-gold); }
.tile-pink   { --accent: var(--mc-night-pink); }
.tile-sky    { --accent: var(--mc-electric-sky); }
.tile-violet { --accent: var(--mc-night-violet); }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .tiles { grid-template-columns: 1fr; } }

/* Long game */
.grid-3 { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card { background: var(--ink-2); padding: 32px 28px; }
.card h3 { font-weight: 700; font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--moon-dim); font-size: 16px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3 { grid-template-columns: 1fr; } }

/* Fair play */
.fair { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.rules { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rules li { padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--moon-dim); }
.rules strong { display: block; color: var(--mc-moon); font-size: 18px; margin-bottom: 4px; }
@media (max-width: 860px) { .fair { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-weight: 600; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; font-family: var(--body); font-weight: 400; font-size: 30px; line-height: 1; color: var(--mc-city-gold);
  transition: transform 160ms ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--moon-dim); max-width: 640px; }

/* Final CTA */
.final { position: relative; isolation: isolate; padding: clamp(88px, 12vw, 150px) 0 clamp(72px, 9vw, 110px); text-align: center; overflow: hidden; }
.final::before {
  content: ""; position: absolute; inset: auto 0 0; height: 70%;
  background: radial-gradient(ellipse 55% 80% at 50% 100%, rgba(244, 114, 182, 0.2), rgba(167, 139, 250, 0.1) 45%, transparent 75%);
  z-index: -1;
}
.final-skyline { width: 150px; margin: 0 auto 28px; opacity: 0.9; }
.final-inner { display: flex; flex-direction: column; align-items: center; gap: 32px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 56px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
/* Stacked wordmark: 72 pt minimum width. */
.footer-logo { width: 120px; margin: 12px; }
.footer-line { font-weight: 600; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 14px; font-weight: 600; }
.footer-links a { color: var(--moon-dim); text-decoration: none; }
.footer-links a:hover { color: var(--mc-moon); text-decoration: underline; }
.footer-legal { font-size: 13px; color: var(--moon-dim); }

.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; }

/* Legal pages (privacy.html, terms.html, generated by scripts/legal.py) */
.legal { padding-top: clamp(48px, 7vw, 88px); }
.doc { max-width: 760px; }
.doc .display { font-size: clamp(36px, 5vw, 56px); }
.doc-date { margin-top: 12px; color: var(--moon-dim); font-size: 15px; }
.doc h2 { margin: 40px 0 12px; font-size: 21px; font-weight: 700; scroll-margin-top: 84px; }
.doc p, .doc li { color: var(--moon-dim); }
.doc p + p, .doc ul + p, .doc p + ul { margin-top: 14px; }
.doc ul { margin: 14px 0 0; padding-left: 1.3em; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--mc-moon); text-underline-offset: 2px; }

/* Reduced motion: a still frame immediately. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mc-brand-animation { animation: none !important; transition: none !important; }
  .btn, .faq summary::after { transition: none; }
  .btn-gold:hover { transform: none; }
}
