/* ============================================================
   StoryForge — TTRPG marketplace landing page
   Design system: dark high-fantasy, section-colored gradients,
   elegant serif display + clean sans body, engraved caps wordmark.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Cinzel:wght@600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* base palette — warm-leaning deep navy */
  --bg: #0a0d18;
  --bg-2: #0c1020;
  --ink: #f3efe6;
  --ink-soft: #c8cce0;
  --ink-mute: #8b91ad;
  --ink-faint: #5c6280;
  --line: rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.06);
  --card: rgba(255, 255, 255, 0.035);
  --card-2: rgba(255, 255, 255, 0.06);

  /* section accents (shared chroma/lightness, varied hue via oklch) */
  --purple: oklch(0.68 0.16 295);
  --purple-d: oklch(0.46 0.16 295);
  --green: oklch(0.70 0.13 168);
  --green-d: oklch(0.48 0.13 168);
  --gold: oklch(0.78 0.12 80);
  --gold-d: oklch(0.58 0.12 80);
  --blue: oklch(0.70 0.13 252);
  --blue-d: oklch(0.50 0.14 252);
  --ember: oklch(0.70 0.17 45);

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-logo: 'Cinzel', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;

  --maxw: 1200px;
  --radius: 18px;
  --radius-lg: 26px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.lede {
  color: var(--ink-soft);
  font-size: 1.2rem;
  line-height: 1.55;
  text-wrap: pretty;
}

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
section { position: relative; }
.section-pad { padding: clamp(80px, 11vw, 150px) 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn-light { background: #f4f1ea; color: #14131a; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.btn-light:hover { box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.btn-ghost { background: rgba(255,255,255,0.07); color: var(--ink); border-color: var(--line); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-accent {
  color: #fff;
  background: linear-gradient(180deg, color-mix(in oklch, var(--acc) 88%, white), var(--acc));
  box-shadow: 0 10px 30px -8px color-mix(in oklch, var(--acc) 70%, transparent);
}
.btn-accent:hover { box-shadow: 0 16px 40px -8px color-mix(in oklch, var(--acc) 80%, transparent); }
.btn-sm { padding: 10px 18px; font-size: .92rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  transition: background .3s ease, border-color .3s ease, padding .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 13, 24, 0.82);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line-soft);
  padding: 12px 32px;
}
.nav-logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-logo); font-weight: 800; font-size: 1.18rem; letter-spacing: 0.04em; }
.brand-seal {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  font-family: var(--font-logo); font-weight: 800; font-size: .82rem; letter-spacing: 0;
  color: #1a1206;
  background: linear-gradient(150deg, #f4d79a, #c9963f 55%, #9a6b27);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 4px 14px rgba(180,120,40,.35);
}
.nav-links { display: flex; gap: 34px; font-weight: 600; font-size: .98rem; color: var(--ink-soft); }
.nav-links a { position: relative; transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-login { font-weight: 700; font-size: .96rem; color: var(--ink-soft); }
.nav-login:hover { color: var(--ink); }
.nav-toggle { display: none; }

/* ---------- atmospheric helpers ---------- */
.glow {
  position: absolute; border-radius: 50%; filter: blur(80px);
  pointer-events: none; z-index: 0; opacity: .5;
}
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* ---------- image placeholder ---------- */
.ph {
  position: relative; overflow: hidden;
  border-radius: 14px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 10px, rgba(255,255,255,.015) 10px 20px),
    color-mix(in oklch, var(--acc, #6a6f8c) 16%, #0d1120);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink-mute);
}
.ph span {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(0,0,0,.35); border: 1px solid var(--line);
  text-align: center; max-width: 80%;
}
.ph.portrait { aspect-ratio: 3 / 4; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  --acc: var(--blue);
  position: relative; padding: 168px 0 90px;
  text-align: center; isolation: isolate;
  background:
    radial-gradient(120% 90% at 50% -10%, #1b2b52 0%, #101a35 38%, var(--bg) 78%);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    /* legibility wash behind headline + search */
    radial-gradient(86% 68% at 50% 44%, rgba(6,8,16,.74), transparent 76%),
    /* vertical ghost: melts into page bg at bottom */
    linear-gradient(180deg, rgba(7,10,20,.70) 0%, rgba(7,10,20,.46) 24%, rgba(7,10,20,.86) 66%, var(--bg) 96%),
    /* recolor the whole scene into brand blue — kills the warm cast */
    linear-gradient(0deg, rgba(26,46,104,.92), rgba(26,46,104,.92)),
    /* darken */
    linear-gradient(180deg, rgba(9,14,34,.60), rgba(7,11,28,.74)),
    /* the artwork itself */
    url('assets/hero-bg.jpg') center top / cover no-repeat,
    var(--bg);
  background-blend-mode: normal, normal, color, multiply, normal;
}
/* keep the beacon glow alive at the top */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(42% 30% at 50% 16%, rgba(120,170,255,.22), transparent 70%);
  pointer-events: none;
}
.hero-ridge {
  position: absolute; left: 0; right: 0; bottom: 0; height: 42%; z-index: -1;
  background:
    linear-gradient(180deg, transparent, rgba(7,9,18,.0) 0%, var(--bg) 92%),
    repeating-linear-gradient(95deg, rgba(40,60,110,.18) 0 2px, transparent 2px 60px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%);
          mask-image: linear-gradient(180deg, transparent, #000 60%);
}
.badge-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 18px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  font-weight: 600; font-size: .9rem; color: var(--ink-soft);
  backdrop-filter: blur(8px);
}
.badge-pill svg { width: 16px; height: 16px; color: var(--gold); }
.hero-seal {
  width: 96px; height: 96px; margin: 30px auto 26px; position: relative;
  display: grid; place-items: center;
}
.hero-seal .ring {
  position: absolute; inset: 0; animation: spin 38s linear infinite;
}
.hero-seal .ring text { fill: var(--ink-mute); font-family: var(--font-body); font-size: 8.5px; font-weight: 700; letter-spacing: .32em; }
.hero-seal .mono {
  font-family: var(--font-logo); font-weight: 800; font-size: 1.9rem;
  color: #cfe0ff; text-shadow: 0 0 22px rgba(120,160,255,.55);
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero h1 {
  font-size: clamp(2.8rem, 6.2vw, 4.7rem);
  line-height: 1.12;
  margin: 0 auto; max-width: 14ch;
  padding-bottom: 0.12em;
}
.hero .lede { max-width: 34ch; margin: 30px auto 0; }
.hero-search {
  margin: 34px auto 0; max-width: 560px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.07); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 7px 7px 20px; backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px -20px rgba(0,0,0,.7);
}
.hero-search svg { width: 19px; height: 19px; color: var(--ink-mute); flex: none; }
.hero-search input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--ink); font-family: var(--font-body); font-size: 1.02rem;
}
.hero-search input::placeholder { color: var(--ink-mute); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.hero-social { margin-top: 30px; display: flex; align-items: center; justify-content: center; gap: 13px; color: var(--ink-mute); font-weight: 600; font-size: .96rem; }
.avatars { display: flex; }
.avatars .ph { width: 34px; height: 34px; border-radius: 50%; margin-left: -10px; border: 2px solid var(--bg); }
.avatars .ph:first-child { margin-left: 0; }
.avatars .ph span { display: none; }

/* floating product mockups */
.hero-stage { position: relative; max-width: 1080px; margin: 64px auto 0; height: 360px; }
.float-card {
  position: absolute; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 40px 90px -30px rgba(0,0,0,.85);
  background: #0e1326;
}
.float-card .ph { border: none; border-radius: 0; height: 100%; }
@media (max-width: 880px) { .hero-stage { display: none; } }

/* ============================================================
   PRODUCT CARD (marketplace item)
   ============================================================ */
.prod {
  border-radius: var(--radius); overflow: hidden; background: #0e1326;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.prod:hover { transform: translateY(-5px); border-color: color-mix(in oklch, var(--acc) 50%, var(--line)); box-shadow: 0 26px 60px -30px rgba(0,0,0,.8); }
.prod-cover { aspect-ratio: 4 / 5; position: relative; }
.prod-cover .ph { border: none; border-radius: 0; height: 100%; }
.prod-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; color: #fff;
  background: color-mix(in oklch, var(--acc) 75%, #000); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(4px);
}
.prod-body { padding: 16px 17px 17px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.prod-body h4 { font-size: 1.06rem; font-weight: 700; line-height: 1.25; }
.prod-by { color: var(--ink-mute); font-size: .86rem; }
.prod-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; }
.prod-price { font-weight: 800; font-size: 1.05rem; }
.prod-rate { display: inline-flex; align-items: center; gap: 5px; color: var(--gold); font-size: .85rem; font-weight: 600; }
.prod-rate svg { width: 14px; height: 14px; }

/* ============================================================
   STATS BAND
   ============================================================ */
.statband { text-align: center; background: radial-gradient(80% 120% at 50% 0%, #0e1326, var(--bg) 70%); }
.statband .dicon { width: 46px; height: 46px; margin: 0 auto 26px; color: var(--blue); opacity: .9; }
.statband h2 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); max-width: 20ch; margin: 18px auto 0; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  max-width: 920px; margin: 64px auto 0;
}
.stat .n { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem, 5vw, 4rem); color: transparent;
  background: linear-gradient(180deg, #cfe0ff, var(--blue)); -webkit-background-clip: text; background-clip: text; line-height: 1; }
.stat .l { margin-top: 8px; font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); }
@media (max-width: 760px){ .stats { grid-template-columns: repeat(2,1fr); gap: 38px 20px; } }

/* ============================================================
   FEATURE SHOWCASE (alternating)
   ============================================================ */
.feature { overflow: hidden; isolation: isolate; }
.feature .glow { width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; }
.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.feature.rev .feature-copy { order: 2; }
.feature-eyebrow { color: var(--acc); }
.feature-eyebrow svg { width: 18px; height: 18px; }
.feature h2 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 18px 0 0; max-width: 13ch; }
.feature .lede { margin-top: 20px; max-width: 42ch; }
.feature-cta { margin-top: 30px; }
.badge-new { font-size: .62rem; font-weight: 800; letter-spacing: .12em; padding: 3px 8px; border-radius: 6px;
  color: color-mix(in oklch, var(--acc) 30%, #1a1206); background: var(--acc); margin-left: 10px; vertical-align: middle; }

.feature-art { position: relative; }
.feature-art .app {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 50px 110px -40px rgba(0,0,0,.9);
  background: #0c1020;
}
.feature-art .app .ph { border: none; border-radius: 0; aspect-ratio: 4/3; }
.feature-art .hero-portrait {
  position: absolute; right: -22px; bottom: -34px; width: 38%; z-index: 3;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.6));
}
.quote-card {
  position: absolute; z-index: 4; max-width: 270px;
  background: color-mix(in oklch, var(--acc) 14%, rgba(12,16,32,.78));
  border: 1px solid color-mix(in oklch, var(--acc) 40%, var(--line));
  border-radius: 16px; padding: 16px 18px; backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.7);
}
.quote-card p { font-style: italic; font-size: .96rem; color: var(--ink); }
.quote-card cite { display: block; margin-top: 9px; font-style: normal; font-size: .82rem; color: var(--ink-mute); }
.quote-card.br { right: -10px; bottom: -40px; }
.quote-card.bl { left: -16px; bottom: -36px; }

/* feature chips */
.chips { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 60px; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-soft); font-weight: 600; }
.chip svg { width: 17px; height: 17px; color: var(--acc); flex: none; }
.chip:nth-child(odd) { color: var(--ink); }

@media (max-width: 880px) {
  .feature-grid { grid-template-columns: 1fr; gap: 54px; }
  .feature.rev .feature-copy { order: 0; }
  .feature h2, .feature .lede { max-width: none; }
  .feature-art .hero-portrait { width: 30%; }
}

/* ============================================================
   AUDIENCE CARDS
   ============================================================ */
.audience { text-align: center; }
.audience h2 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); margin-top: 16px; }
.aud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 64px; }
.aud-card {
  position: relative; border-radius: 20px; overflow: hidden; text-align: left;
  border: 1px solid color-mix(in oklch, var(--acc) 38%, var(--line));
  background: linear-gradient(180deg, color-mix(in oklch, var(--acc) 12%, #0c1020), #0a0d18 78%);
  padding: 0; min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .2s ease;
}
.aud-card:nth-child(even) { transform: translateY(18px) rotate(-1.2deg); }
.aud-card:nth-child(odd) { transform: rotate(1deg); }
.aud-card:hover { transform: translateY(-6px) rotate(0deg); }
.aud-art { position: absolute; inset: 0; z-index: 0; }
.aud-art .ph { height: 100%; border: none; border-radius: 0; background:
  repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 10px, rgba(255,255,255,.012) 10px 20px),
  linear-gradient(180deg, color-mix(in oklch, var(--acc) 22%, #0d1120), #0a0d18); }
.aud-glow { position: absolute; top: -10%; left: 50%; transform: translateX(-50%); width: 80%; height: 50%;
  background: radial-gradient(circle, color-mix(in oklch, var(--acc) 55%, transparent), transparent 70%); filter: blur(30px); z-index: 1; }
.aud-text { position: relative; z-index: 2; padding: 22px;
  background: linear-gradient(180deg, transparent, rgba(8,10,18,.86) 38%); }
.aud-text h3 { font-size: 1.4rem; font-weight: 800; }
.aud-text p { color: var(--ink-soft); font-size: .96rem; margin-top: 7px; }
@media (max-width: 880px){ .aud-grid { grid-template-columns: repeat(2,1fr); }
  .aud-card { transform: none !important; min-height: 360px; } }
@media (max-width: 520px){ .aud-grid { grid-template-columns: 1fr; } }

/* ============================================================
   BENTO
   ============================================================ */
.bento-head { text-align: center; }
.bento-head h2 { font-size: clamp(2.4rem, 5.2vw, 4rem); margin-top: 16px; }
.bento {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px;
  gap: 18px; margin-top: 60px;
}
.bento-cell {
  border-radius: 20px; border: 1px solid var(--line); padding: 26px;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.bento-cell h3 { font-size: 1.3rem; font-weight: 800; }
.bento-cell p { color: var(--ink-soft); font-size: .96rem; margin-top: 8px; max-width: 30ch; }
.bento-cell .visual { margin-top: auto; }
.bento-cell.acc-purple { --acc: var(--purple); background: linear-gradient(180deg, color-mix(in oklch, var(--purple) 16%, #0c1020), var(--card)); border-color: color-mix(in oklch, var(--purple) 35%, var(--line)); }
.bento-cell.acc-green { --acc: var(--green); background: linear-gradient(180deg, color-mix(in oklch, var(--green) 15%, #0c1020), var(--card)); border-color: color-mix(in oklch, var(--green) 32%, var(--line)); }
.bento-cell.acc-gold { --acc: var(--gold); background: linear-gradient(180deg, color-mix(in oklch, var(--gold) 14%, #0c1020), var(--card)); border-color: color-mix(in oklch, var(--gold) 30%, var(--line)); }
.bento-cell.acc-blue { --acc: var(--blue); background: linear-gradient(180deg, color-mix(in oklch, var(--blue) 15%, #0c1020), var(--card)); border-color: color-mix(in oklch, var(--blue) 32%, var(--line)); }
.span2 { grid-column: span 2; }
.bento-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; color: var(--acc, var(--ink));
  background: color-mix(in oklch, var(--acc, #888) 18%, transparent); border: 1px solid color-mix(in oklch, var(--acc, #888) 35%, var(--line)); }
.bento-icon svg { width: 28px; height: 28px; }
.mini-tree { font-size: .82rem; color: var(--ink-mute); line-height: 2; font-family: var(--font-body); }
.mini-tree .row { display: flex; align-items: center; gap: 8px; padding: 2px 8px; border-radius: 7px; }
.mini-tree .row.active { background: rgba(255,255,255,.06); color: var(--ink); }
.secret-blur { filter: blur(4px); opacity: .6; user-select: none; }
@media (max-width: 880px){ .bento { grid-template-columns: repeat(2,1fr); } .span2 { grid-column: span 2; } }
@media (max-width: 520px){ .bento { grid-template-columns: 1fr; grid-auto-rows: auto; } .span2 { grid-column: span 1; } .bento-cell { min-height: 220px; } }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi { position: relative; overflow: hidden; }
.testi-head { text-align: center; }
.testi-head h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-top: 14px; }
.testi-grid { columns: 3; column-gap: 20px; margin-top: 56px; }
.testi-card {
  break-inside: avoid; margin-bottom: 20px;
  border-radius: 16px; border: 1px solid var(--line); padding: 22px 22px;
  background: rgba(255,255,255,.04); backdrop-filter: blur(4px);
}
.testi-card p { font-style: italic; color: var(--ink); font-size: 1.02rem; line-height: 1.5; }
.testi-card cite { display: block; margin-top: 14px; font-style: normal; color: var(--ink-mute); font-weight: 600; font-size: .9rem; }
@media (max-width: 880px){ .testi-grid { columns: 2; } }
@media (max-width: 560px){ .testi-grid { columns: 1; } }

/* ============================================================
   COMMUNITY
   ============================================================ */
.community { --acc: var(--purple); text-align: center; overflow: hidden; isolation: isolate;
  background: radial-gradient(80% 90% at 50% 0%, color-mix(in oklch, var(--purple) 34%, #0c1020), var(--bg) 72%); }
.community h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-top: 14px; color: transparent;
  background: linear-gradient(180deg, #eadcff, var(--purple)); -webkit-background-clip: text; background-clip: text; }
.community .eyebrow { color: color-mix(in oklch, var(--purple) 60%, white); }
.community .lede { max-width: 56ch; margin: 22px auto 0; }
.comm-cta { display: flex; gap: 14px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.creator-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 18px; margin-top: 64px;
  overflow-x: auto; padding-bottom: 14px; scrollbar-width: thin; }
.creator-card { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 5/4; text-align: left; }
.creator-card .ph { height: 100%; border: none; border-radius: 0; }
.creator-card .meta { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 16px;
  background: linear-gradient(180deg, transparent, rgba(8,8,16,.9)); }
.creator-card .meta h4 { font-weight: 800; font-size: 1.05rem; }
.creator-card .meta span { color: var(--ink-mute); font-size: .85rem; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing { text-align: center; background: radial-gradient(70% 90% at 50% 10%, #0e1326, var(--bg) 70%); }
.pricing h2 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-top: 14px; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 880px; margin: 60px auto 0; text-align: left; }
.price-card { border-radius: 22px; border: 1px solid var(--line); padding: 34px; background: linear-gradient(180deg, var(--card-2), transparent); position: relative; }
.price-card.feat { border-color: color-mix(in oklch, var(--gold) 55%, var(--line)); background: linear-gradient(180deg, color-mix(in oklch, var(--gold) 9%, #0c1020), transparent 80%); box-shadow: 0 30px 70px -36px color-mix(in oklch, var(--gold) 60%, transparent); }
.price-top { display: flex; align-items: flex-start; justify-content: space-between; }
.price-card h3 { font-size: 1.5rem; font-weight: 800; }
.price-card .sub { color: var(--ink-mute); margin-top: 4px; }
.price-amt { font-family: var(--font-display); font-weight: 600; font-size: 2.6rem; margin: 22px 0 4px; }
.price-amt small { font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: var(--ink-mute); }
.price-amt .was { color: var(--ink-faint); text-decoration: line-through; font-size: 1.6rem; margin-right: 8px; }
.price-line { height: 1px; background: var(--line); margin: 20px 0; }
.price-feats { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.price-feats li { display: flex; align-items: center; gap: 11px; color: var(--ink-soft); font-size: .98rem; }
.price-feats svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.toggle { display: inline-flex; align-items: center; gap: 9px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; color: var(--ink-mute); }
.toggle .sw { width: 40px; height: 22px; border-radius: 999px; background: color-mix(in oklch, var(--gold) 60%, #333); position: relative; }
.toggle .sw::after { content:""; position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.price-note { color: var(--ink-mute); font-size: .92rem; margin-top: 30px; }
@media (max-width: 760px){ .price-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: linear-gradient(180deg, var(--bg), #110b20 60%, var(--bg)); }
.faq-head { text-align: center; }
.faq-head h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.faq-head p { color: var(--ink-soft); margin-top: 14px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 54px; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; color: var(--ink);
  font-family: var(--font-body); font-weight: 700; font-size: 1.08rem; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-q svg { width: 20px; height: 20px; color: var(--ink-mute); flex: none; transition: transform .25s ease; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 24px 22px; color: var(--ink-soft); line-height: 1.6; }
@media (max-width: 760px){ .faq-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FINAL CTA + FOOTER
   ============================================================ */
.final { --acc: var(--ember); text-align: center; position: relative; overflow: hidden;
  padding: clamp(90px, 13vw, 170px) 0 0; }
.final-bg { position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(70% 90% at 50% 18%, rgba(220,110,46,.5), transparent 62%),
    radial-gradient(90% 70% at 50% 0%, rgba(150,40,30,.55), transparent 60%),
    linear-gradient(180deg, #2a0f14, #0a0d18 86%); }
.final-bg::after { content:""; position: absolute; inset: 0;
  background: repeating-linear-gradient(88deg, rgba(60,30,40,.4) 0 2px, transparent 2px 70px);
  -webkit-mask-image: radial-gradient(70% 90% at 50% 20%, #000, transparent 70%); mask-image: radial-gradient(70% 90% at 50% 20%, #000, transparent 70%); opacity: .5; }
.final .inner { position: relative; z-index: 2; }
.final .logo-stack { font-family: var(--font-logo); font-weight: 800; line-height: .9; letter-spacing: .04em;
  font-size: clamp(2.2rem, 5vw, 3.4rem); color: #f7e6c8; text-shadow: 0 4px 30px rgba(255,180,90,.4); margin-bottom: 8px; }
.final h2 { font-size: clamp(3rem, 7.5vw, 5.6rem); margin: 8px 0 0; }
.final .lede { max-width: 40ch; margin: 22px auto 0; color: #f3e3d0; }
.final-cta { margin-top: 34px; }

.footer { position: relative; z-index: 2; padding: 90px 0 40px; }
.foot-news { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; padding-bottom: 40px; }
.foot-news h3 { font-size: 1.7rem; font-weight: 800; max-width: 16ch; }
.foot-news p { color: var(--ink-mute); margin-top: 12px; max-width: 44ch; }
.news-form { display: flex; gap: 10px; }
.news-form input { flex: 1; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--ink); font-family: var(--font-body); font-size: 1rem; outline: none; }
.news-form input::placeholder { color: var(--ink-mute); }
.foot-bar { border-top: 1px solid var(--line); padding-top: 26px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.foot-nav { display: flex; gap: 26px; font-weight: 600; color: var(--ink-soft); }
.foot-nav a:hover { color: var(--ink); }
.foot-meta { display: flex; align-items: center; gap: 16px; color: var(--ink-mute); font-size: .92rem; }
.foot-social { display: flex; gap: 14px; }
.foot-social a { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--ink-soft); }
.foot-social a:hover { color: var(--ink); background: rgba(255,255,255,.1); }
.foot-social svg { width: 17px; height: 17px; }
@media (max-width: 760px){ .foot-news { grid-template-columns: 1fr; gap: 30px; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); 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; } .hero-seal .ring { animation: none; } }

/* mobile nav */
@media (max-width: 880px){
  .nav-links, .nav-login { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ============================================================
   CYCLING GHOSTED SECTION BACKGROUNDS (LegendKeeper-style)
   JS (bg-cycle.js) injects .sbg-layer + .sbg-dots into any
   element with [data-bg-cycle].
   ============================================================ */
.sbg-layer { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.sbg-img {
  position: absolute; inset: -2%;
  background-size: cover; background-position: center 28%;
  background-repeat: no-repeat;
  opacity: var(--sbg-op, .5);
  transition: opacity .8s ease;
}
/* color wash to fuse art with the section accent */
.sbg-layer::before {
  content: ""; position: absolute; inset: 0;
  background: var(--sbg-tint, transparent);
  mix-blend-mode: multiply; opacity: .55;
}
/* TOP melt — hero: art sits up high, dissolves down into --bg */
.sbg-top::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,11,20,.40) 0%, rgba(8,11,20,.20) 24%, rgba(8,11,20,.66) 62%, var(--bg) 95%),
    radial-gradient(125% 80% at 50% 10%, transparent 32%, rgba(8,11,20,.55) 100%);
}
/* BAND melt — mid sections: art is a band that fades top & bottom */
.sbg-band::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(10,13,24,.62) 26%, rgba(10,13,24,.60) 74%, var(--bg) 100%),
    radial-gradient(130% 105% at 50% 50%, transparent 30%, rgba(8,11,20,.5) 100%);
}

/* dots */
.sbg-dots {
  position: absolute; z-index: 6; display: flex; gap: 9px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(8,10,18,.5); border: 1px solid var(--line);
  backdrop-filter: blur(10px); box-shadow: 0 8px 24px -10px rgba(0,0,0,.6);
}
.sbg-dots-center { bottom: 22px; left: 50%; transform: translateX(-50%); }
.sbg-dots-tr { top: 88px; right: 26px; }
.sbg-dots-br { bottom: 26px; right: 26px; }
.sbg-dot {
  width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.32); transition: transform .15s ease, background .15s ease;
}
.sbg-dot:hover { background: rgba(255,255,255,.62); transform: scale(1.25); }
.sbg-dot.on { background: var(--gold); transform: scale(1.3); box-shadow: 0 0 0 3px color-mix(in oklch, var(--gold) 28%, transparent); }

/* keep section content above the art */
.hero > .wrap { position: relative; z-index: 2; }
.feature > .wrap { position: relative; z-index: 2; }

/* hero text legibility over imagery */
.hero[data-bg-cycle] h1 { text-shadow: 0 2px 34px rgba(0,0,0,.55), 0 1px 4px rgba(0,0,0,.4); }
.hero[data-bg-cycle] .lede { text-shadow: 0 1px 16px rgba(0,0,0,.6); }
.hero[data-bg-cycle] .hero-seal .mono { text-shadow: 0 0 26px rgba(120,160,255,.7), 0 2px 10px rgba(0,0,0,.6); }

/* final CTA: let art glow through the ember wash */
.final[data-bg-cycle] .sbg-layer { z-index: 0; }
.final[data-bg-cycle] .final-bg {
  z-index: 1;
  background:
    radial-gradient(70% 90% at 50% 18%, rgba(220,110,46,.52), transparent 62%),
    radial-gradient(90% 70% at 50% 0%, rgba(150,40,30,.5), transparent 60%),
    linear-gradient(180deg, rgba(42,15,20,.55), rgba(10,13,24,.92) 88%);
}
.final[data-bg-cycle] .sbg-img { opacity: var(--sbg-op, .55); mix-blend-mode: screen; }

@media (max-width: 880px){
  .sbg-dots-tr { top: auto; bottom: 18px; right: 50%; transform: translateX(50%); }
}
@media (prefers-reduced-motion: reduce){ .sbg-img { transition: none; } }
