/* ============================================================
   MemKings — site shell
   Colors, type, and spacing all live in :root so they're easy
   to tweak in one place.
   ============================================================ */
:root {
  --bg: #050605;
  --bg-2: #0b0d0b;
  --panel: #0f120f;
  --line: #1e241e;
  --text: #f2f5f2;
  --muted: #9aa49a;
  --neon: #6dff2e;
  --neon-2: #3fd60f;
  --neon-glow: rgba(109, 255, 46, .45);
  --radius: 4px;
  --wrap: 1240px;
  --font-display: "Anton", "Impact", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-script: "Permanent Marker", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; line-height: .95; margin: 0; letter-spacing: .01em; }
p { margin: 0; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.neon { color: var(--neon); text-shadow: 0 0 28px var(--neon-glow); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .38em; text-transform: uppercase; color: var(--neon); }
.script { font-family: var(--font-script); color: rgba(255,255,255,.18); line-height: 1; transform: rotate(-8deg); pointer-events: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--radius); border: 1px solid transparent;
  font: 700 14px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--neon); color: #041000; box-shadow: 0 0 0 0 var(--neon-glow); }
.btn-primary:hover { box-shadow: 0 0 24px var(--neon-glow); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: var(--text); }
.btn-ghost:hover { border-color: var(--neon); }
.btn-ghost .play { color: var(--neon); width: 20px; height: 20px; }
.btn-ghost:hover .play { transform: none; }
.btn-outline { border-color: var(--neon); color: var(--neon); }
.btn-outline:hover { background: var(--neon); color: #041000; }
.btn-sm { padding: 10px 16px; font-size: 12px; }
.btn-block { width: 100%; }

/* ---------- Image placeholders (swap for real <img> later) ---------- */
.ph {
  position: relative; background:
    radial-gradient(ellipse at 50% 60%, rgba(109,255,46,.14), transparent 65%),
    repeating-linear-gradient(135deg, #0d100d 0 14px, #111511 14px 28px);
  border: 1px dashed #263026; border-radius: var(--radius);
}
.ph[data-label]::after {
  content: attr(data-label); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font: 600 11px/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  color: #6f7a6f; text-align: center; width: 80%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5,6,5,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 32px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-crown { width: 44px; height: 34px; color: var(--neon); filter: drop-shadow(0 0 8px var(--neon-glow)); }
.logo-text { font: italic 400 28px/1 var(--font-display); color: var(--neon); letter-spacing: .02em; display: flex; flex-direction: column; }
.logo-text small { font: 600 8px/1 var(--font-body); color: var(--muted); letter-spacing: .4em; text-transform: uppercase; margin-top: 4px; font-style: normal; }

.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #cfd6cf; position: relative; padding: 6px 0; }
.main-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--neon); transition: right .25s; }
.main-nav a:not(.btn):hover, .main-nav a.active { color: var(--neon); }
.main-nav a:not(.btn):hover::after, .main-nav a.active::after { right: 0; }
.nav-cta-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { background: none; border: 0; color: var(--text); width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; position: relative; border-radius: var(--radius); }
.icon-btn:hover { color: var(--neon); }
.icon-btn svg { width: 20px; height: 20px; }
.badge { position: absolute; top: 4px; right: 2px; background: var(--neon); color: #041000; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; }
.header-actions .btn { margin-left: 10px; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 50% 60% at 72% 45%, rgba(109,255,46,.18), transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 100%, rgba(109,255,46,.08), transparent 70%),
    linear-gradient(180deg, #070907, var(--bg));
}
.hero-bg::after { /* subtle grid texture */
  content: ""; position: absolute; inset: 0; opacity: .25;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(56px, 8.4vw, 116px); margin: 18px 0 16px; }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: .5em; text-transform: uppercase; margin-bottom: 22px; }
.lede { color: #c9d0c9; max-width: 480px; font-size: 17px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-visual { position: relative; }
.ph-hero { aspect-ratio: 1 / 1; border-color: rgba(109,255,46,.35); box-shadow: 0 0 80px rgba(109,255,46,.12), inset 0 0 60px rgba(0,0,0,.6); }
.hero-script { position: absolute; right: -8px; top: -18px; font-size: 40px; text-align: right; }

.trust-row { list-style: none; padding: 32px 0 0; margin: 48px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-row li { display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #cfd6cf; line-height: 1.4; }
.trust-row svg { width: 34px; height: 34px; color: var(--neon); }

/* ---------- Club ---------- */
.club { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.club-grid { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.club-intro h2 { font-size: 48px; margin: 14px 0 18px; }
.club-intro p:not(.eyebrow) { color: var(--muted); margin-bottom: 28px; }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tier {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 24px 16px 18px; background: var(--panel); border: 1px solid rgba(109,255,46,.35); border-radius: var(--radius);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.tier:hover { transform: translateY(-6px); border-color: var(--neon); box-shadow: 0 0 36px rgba(109,255,46,.22); }
.tier-crown { width: 26px; height: 20px; color: var(--neon); }
.tier h3 { font-size: 30px; color: var(--neon); margin-top: 10px; }
.price { font: 400 26px/1 var(--font-display); margin: 8px 0 16px; }
.price span { font-size: 18px; color: var(--muted); }
.ph-tier { width: 100%; aspect-ratio: 4 / 3; margin-bottom: 16px; }
.tier-desc { font-size: 13px; color: #c3cbc3; flex: 1; margin-bottom: 18px; line-height: 1.5; }
.tier-featured { border-color: var(--neon); box-shadow: 0 0 28px rgba(109,255,46,.18); }
.tier-flag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--neon); color: #041000; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--radius); }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillar { position: relative; min-height: 440px; display: flex; align-items: flex-end; overflow: hidden; border-right: 1px solid var(--line); }
.pillar:last-child { border-right: 0; }
.ph-fill { position: absolute; inset: 0; border: 0; border-radius: 0; transition: transform .6s; }
.ph-fill::after { top: 24%; }
.pillar:hover .ph-fill { transform: scale(1.05); }
.pillar::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.92) 85%); }
.pillar-body { position: relative; z-index: 2; padding: 28px; }
.pillar h3 { font-size: 30px; margin-bottom: 10px; }
.pillar p { color: #c3cbc3; font-size: 14px; margin-bottom: 20px; max-width: 280px; }
.live-tag { position: absolute; z-index: 2; top: 18px; right: 18px; display: flex; align-items: center; gap: 6px; background: #e3242b; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 4px 9px; border-radius: var(--radius); }
.live-tag i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .2; } }

/* ---------- Community ---------- */
.community { position: relative; padding: 88px 0; overflow: hidden; border-bottom: 1px solid var(--line); }
.collage { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr; gap: 6px; opacity: .35; filter: grayscale(1); }
.collage .ph { border-radius: 0; border: 0; }
.community::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(5,6,5,.95) 25%, rgba(5,6,5,.55) 60%, rgba(5,6,5,.9)); }
.community-row { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto 340px; gap: 40px; align-items: center; }
.community h2 { font-size: clamp(40px, 5vw, 60px); margin-bottom: 14px; }
.community p { color: #c3cbc3; }
.community-script { font-size: 54px; color: rgba(255,255,255,.75); }
.quote { margin: 0; padding: 28px; background: rgba(10,13,10,.85); border: 1px solid var(--neon); border-radius: var(--radius); box-shadow: 0 0 30px rgba(109,255,46,.15); }
.quote blockquote { margin: 0 0 16px; font-size: 16px; line-height: 1.5; }
.quote blockquote::before { content: "\201C"; display: block; font: 400 48px/0.6 var(--font-display); color: var(--neon); margin-bottom: 10px; }
.quote figcaption { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.stars { color: var(--neon); font-size: 18px; letter-spacing: 3px; }

/* ---------- Newsletter ---------- */
.newsletter { padding: 56px 0; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.newsletter-row { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.newsletter h2 { font-size: 40px; margin-bottom: 8px; }
.newsletter p { color: var(--muted); }
.signup { position: relative; display: flex; gap: 10px; flex: 1; max-width: 520px; min-width: 280px; }
.signup input { flex: 1; min-width: 0; background: #0a0c0a; border: 1px solid #2c342c; border-radius: var(--radius); color: var(--text); padding: 0 18px; font: inherit; font-size: 14px; height: 50px; }
.signup input:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(109,255,46,.15); }
.signup-done { display: none; position: absolute; top: calc(100% + 8px); left: 0; color: var(--neon) !important; font-size: 13px; }
.signup.done .signup-done { display: block; }

/* ---------- Footer ---------- */
.site-footer { padding: 44px 0 24px; }
.footer-row { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; position: relative; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; margin-left: auto; }
.footer-nav a, .legal a { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #b8c0b8; }
.footer-nav a:hover, .legal a:hover { color: var(--neon); }
.socials { display: flex; gap: 8px; }
.socials a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); font-size: 11px; font-weight: 700; color: #cfd6cf; }
.socials a:hover { border-color: var(--neon); color: var(--neon); }
.footer-script { font-size: 26px; color: var(--neon); opacity: .85; }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.legal-links { display: flex; gap: 22px; flex-wrap: wrap; }
.legal a { text-transform: none; letter-spacing: 0; font-weight: 500; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .main-nav { gap: 20px; }
  .club-grid { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(2) { border-right: 0; }
  .pillar:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .community-row { grid-template-columns: 1fr 340px; }
  .community-script { display: none; }
}

@media (max-width: 960px) {
  .menu-toggle { display: grid; }
  .hide-sm { display: none; }
  .main-nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(5,6,5,.97); border-bottom: 1px solid var(--line); padding: 8px 24px 24px;
    transform: translateY(-110%); opacity: 0; pointer-events: none; transition: transform .3s, opacity .3s;
  }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .main-nav a::after { display: none; }
  .nav-cta-mobile { display: inline-flex; margin-top: 20px; }
  .header-actions { margin-left: auto; }
  .main-nav { margin-left: 0; }

  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .community-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .header-row { height: 64px; gap: 12px; }
  .main-nav { inset: 64px 0 auto 0; padding: 8px 16px 24px; }
  .logo-crown { width: 34px; height: 26px; }
  .logo-text { font-size: 22px; }
  .icon-btn { width: 36px; }
  .header-actions .icon-btn[aria-label="Search"], .header-actions .icon-btn[aria-label="Account"] { display: none; }
  .kicker { letter-spacing: .3em; font-size: 12px; }
  .cta-row .btn { flex: 1 1 100%; }
  .hero-script { font-size: 28px; }
  .tiers { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--line); min-height: 380px; }
  .club-intro h2 { font-size: 40px; }
  .signup { flex-direction: column; }
  .signup input { flex: none; width: 100%; }
  .signup .btn { height: 50px; }
  .footer-nav { margin-left: 0; }
  .footer-script { display: none; }
}
