/* ============================================================
   RPG Studio — landing styles
   Palette: deep ink + candle gold + arcane violet
   ============================================================ */

:root {
  --bg: #0b0a12;
  --bg-2: #100e1b;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ece8f4;
  --text-2: #b3adc4;
  --text-3: #7f7894;
  --gold: #e8b45c;
  --gold-2: #f5d28a;
  --violet: #8b7cf6;
  --violet-2: #b8adff;
  --rose: #f08fb0;
  --teal: #5fd4c4;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1180px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

html, body { overflow-x: hidden; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

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

/* ---------- Atmosphere (background) ---------- */
.sky {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(139, 124, 246, 0.22), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(232, 180, 92, 0.13), transparent 60%),
    radial-gradient(800px 800px at 60% 110%, rgba(240, 143, 176, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 40%);
}
.sky::after {
  content: ""; position: absolute; inset: 0; opacity: 0.35; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
.stars {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.7;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff 60%, transparent 61%),
    radial-gradient(1px 1px at 38% 6%, #fff 60%, transparent 61%),
    radial-gradient(1.6px 1.6px at 72% 22%, #ffe7b3 60%, transparent 61%),
    radial-gradient(1px 1px at 88% 44%, #fff 60%, transparent 61%),
    radial-gradient(1.4px 1.4px at 55% 62%, #d8d0ff 60%, transparent 61%),
    radial-gradient(1px 1px at 22% 80%, #fff 60%, transparent 61%),
    radial-gradient(1.2px 1.2px at 5% 50%, #fff 60%, transparent 61%),
    radial-gradient(1px 1px at 95% 85%, #fff 60%, transparent 61%),
    radial-gradient(1.4px 1.4px at 65% 92%, #ffe7b3 60%, transparent 61%),
    radial-gradient(1px 1px at 45% 35%, #fff 60%, transparent 61%);
  background-size: 100% 100%;
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.45; } to { opacity: 0.85; } }

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.h1 { font-size: clamp(2.6rem, 6.2vw, 4.9rem); }
.h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.h3 { font-size: 1.5rem; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--text-2); max-width: 58ch; }
.muted { color: var(--text-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold); opacity: 0.7; }
.gradient-text {
  background: linear-gradient(95deg, var(--gold-2) 0%, var(--gold) 35%, var(--violet-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head .lead { margin-top: 16px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  border: 1px solid transparent; transition: transform .2s 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(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  color: #1a1206;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 60%, #d99a3d);
  box-shadow: 0 10px 30px rgba(232, 180, 92, 0.25), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-primary:hover { box-shadow: 0 14px 40px rgba(232, 180, 92, 0.38), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-ghost {
  color: var(--text); background: var(--surface); border-color: var(--border-strong);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,.28); }
.btn-lg { padding: 17px 30px; font-size: 1.05rem; }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.nav.is-scrolled {
  background: rgba(11, 10, 18, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: 0.01em; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--violet), #5b4fd6);
  box-shadow: 0 6px 18px rgba(139, 124, 246, 0.4), inset 0 1px 0 rgba(255,255,255,.3);
}
.brand-mark svg { width: 20px; height: 20px; color: #fff; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.95rem; color: var(--text-2); transition: color .2s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: inline-flex; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); align-items: center; justify-content: center; color: var(--text); transition: background .2s;
}
.nav-toggle:hover { background: var(--surface-2); }
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Drawer (apps + site) ---------- */
.backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(5,4,10,.6); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; z-index: 90; width: min(320px, 86vw); display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 18px; overflow-y: auto; background: linear-gradient(180deg, #14111f, #0e0c18); border-right: 1px solid var(--border-strong); box-shadow: 20px 0 60px rgba(0,0,0,.5); transform: translateX(-102%); transition: transform .32s cubic-bezier(.2,.8,.2,1); visibility: hidden; }
.drawer.is-open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 14px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.drawer-head .brand { font-size: 1.3rem; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--text-2); background: none; border: 0; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 22px; height: 22px; }
.drawer-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 600; padding: 12px 10px 6px; }
.drawer-list { display: flex; flex-direction: column; gap: 6px; }
.drawer-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid transparent; }
.drawer-item.is-live { background: rgba(139,124,246,.14); border-color: rgba(139,124,246,.38); }
.drawer-item.is-live:hover { background: rgba(139,124,246,.22); }
.drawer-item.is-soon { opacity: .75; }
.drawer-item .ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.drawer-item.is-live .ic { color: #fff; background: linear-gradient(135deg, var(--violet), #5b4fd6); border-color: transparent; }
.drawer-item .ic svg { width: 20px; height: 20px; }
.drawer-item .txt { min-width: 0; flex: 1; }
.drawer-item b { display: block; font-weight: 600; font-size: .98rem; }
.drawer-item .txt span { display: block; font-size: .8rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-item .go { flex: none; color: var(--gold); }
.drawer-item .go svg { width: 18px; height: 18px; }
.drawer-item .soon { flex: none; font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(232,180,92,.4); }
.drawer-links { display: flex; flex-direction: column; }
.drawer-links a { padding: 10px 12px; border-radius: 10px; color: var(--text-2); font-size: .98rem; }
.drawer-links a:hover, .drawer-links a.is-active { color: var(--text); background: var(--surface-2); }

/* Full-screen app (single-file build only) */
.app-host { position: fixed; inset: 0; z-index: 100; background: #0a0a11; }
.app-host[hidden] { display: none; }
.app-host iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Hero ---------- */
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/worlds/hero-bg.png") center 60% / cover no-repeat;
  image-rendering: pixelated; opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.6) 55%, transparent 100%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.6) 55%, transparent 100%);
}
.hero-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 500px at 70% 40%, transparent, var(--bg) 85%); }
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(60px, 8vw, 110px); }
.hero .container {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-copy .h1 { margin-bottom: 22px; }
.hero-copy .lead { margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 20px; color: var(--text-3); font-size: 0.9rem; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--teal); }

/* Story console mock */
.console-wrap { position: relative; max-width: 880px; margin-inline: auto; }
.console-wrap::before {
  content: ""; position: absolute; inset: -12% -8%; z-index: -1; filter: blur(60px); opacity: .6;
  background: radial-gradient(closest-side, rgba(139,124,246,.55), transparent 70%);
}
.console {
  border: 1px solid var(--border-strong); border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, rgba(24, 21, 38, 0.95), rgba(14, 12, 24, 0.95));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
}
.console-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: .8rem; color: var(--text-3);
}
.console-bar .dots { display: flex; gap: 6px; }
.console-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.12); }
.console-bar .dots i:first-child { background: #f26d6d; }
.console-bar .dots i:nth-child(2) { background: #f5c451; }
.console-bar .dots i:nth-child(3) { background: #63d38e; }
.console-bar .tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.console-bar .tag svg { width: 12px; height: 12px; color: var(--gold); }
.console-body { display: grid; grid-template-columns: 1fr 190px; min-height: 380px; }
.console-story { padding: 22px 24px; font-family: var(--font-display); font-size: 1.22rem; line-height: 1.5; color: #e9e3f5; }
.console-story .narration { min-height: 8.5em; }
.console-story .action { margin-top: 14px; padding: 10px 14px; border-left: 3px solid var(--gold); background: rgba(232,180,92,.08); border-radius: 0 10px 10px 0; font-family: var(--font-body); font-size: .92rem; color: var(--gold-2); }
.console-story .action b { font-weight: 600; opacity: .7; margin-right: 6px; }
.caret { display: inline-block; width: 2px; height: 1em; background: var(--gold); vertical-align: -0.15em; margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.console-side { border-left: 1px solid var(--border); padding: 18px 16px; display: flex; flex-direction: column; gap: 16px; background: rgba(255,255,255,.02); }
.console-side h4 { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.chips { display: flex; flex-direction: column; gap: 8px; }
.chip { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: .8rem; color: var(--text-2); }
.chip svg { width: 14px; height: 14px; flex: none; }
.chip.c-violet svg { color: var(--violet-2); }
.chip.c-gold svg { color: var(--gold); }
.chip.c-rose svg { color: var(--rose); }
.chip.c-teal svg { color: var(--teal); }
.console-input { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--border); background: rgba(0,0,0,.25); }
.console-input .field { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: .9rem; color: var(--text-3); }
.console-input .field svg { width: 16px; height: 16px; }
.console-input .go { display: grid; place-items: center; width: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1206; }
.console-input .go svg { width: 18px; height: 18px; }


/* Home hero */
.hero-home { padding: clamp(72px, 12vw, 150px) 0 clamp(64px, 10vw, 130px); text-align: center; }
.hero-home .hero-bg { opacity: .7; background-position: center 55%; }
.hero-home .hero-bg::after { background: radial-gradient(1000px 600px at 50% 40%, transparent, var(--bg) 92%); }
.hero-home .hero-home-inner { display: flex; flex-direction: column; align-items: center; grid-template-columns: none; }
.hero-home .h1 { max-width: 14ch; text-wrap: balance; margin-bottom: 18px; }
.hero-home .lead { margin-bottom: 30px; max-width: 34ch; text-wrap: balance; }
.hero-home .hero-actions { justify-content: center; margin-bottom: 0; }

/* Basics row */
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.basics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.basics li { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.basics li b { display: block; font-weight: 600; font-size: .98rem; }
.basics li span:last-child { display: block; font-size: .86rem; color: var(--text-2); }
.basic-icon { flex: none; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(139,124,246,.28), rgba(139,124,246,.08)); border: 1px solid rgba(139,124,246,.35); color: var(--violet-2); }
.basic-icon.gold { background: linear-gradient(135deg, rgba(232,180,92,.28), rgba(232,180,92,.08)); border-color: rgba(232,180,92,.35); color: var(--gold-2); }
.basic-icon.rose { background: linear-gradient(135deg, rgba(240,143,176,.28), rgba(240,143,176,.08)); border-color: rgba(240,143,176,.35); color: var(--rose); }
.basic-icon svg { width: 20px; height: 20px; }
.basics-more { margin-top: 18px; text-align: center; }
.basics-more a { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 600; font-size: .95rem; }
.basics-more svg { width: 16px; height: 16px; }
.pricing-note { margin-top: 20px; text-align: center; font-size: .86rem; color: var(--text-3); }
.pricing-note a { color: var(--gold); }

/* Sub-page head */
.page-head { padding: clamp(48px, 8vw, 96px) 0 8px; }
.page-head .lead { margin-top: 14px; }

/* Footer */
.footer { padding: 36px 0 28px; border-top: 1px solid var(--border); color: var(--text-3); font-size: .88rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--text-2); }
.footer-links a:hover { color: var(--text); }
.footer-copy { margin-top: 18px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); }
.socials svg { width: 17px; height: 17px; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 130px) 0; position: relative; }
.section-head { margin-bottom: 40px; }

/* Feature grid */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), rgba(139,124,246,.16), transparent 60%);
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-2); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(139,124,246,.28), rgba(139,124,246,.08));
  border: 1px solid rgba(139,124,246,.35); color: var(--violet-2);
}
.card-icon.gold { background: linear-gradient(135deg, rgba(232,180,92,.28), rgba(232,180,92,.08)); border-color: rgba(232,180,92,.35); color: var(--gold-2); }
.card-icon.rose { background: linear-gradient(135deg, rgba(240,143,176,.28), rgba(240,143,176,.08)); border-color: rgba(240,143,176,.35); color: var(--rose); }
.card-icon.teal { background: linear-gradient(135deg, rgba(95,212,196,.28), rgba(95,212,196,.08)); border-color: rgba(95,212,196,.35); color: var(--teal); }
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.18rem; margin-bottom: 10px; font-family: var(--font-body); font-weight: 600; }
.card p { color: var(--text-2); font-size: .96rem; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 32px 28px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step-num {
  font-family: var(--font-display); font-size: 3.4rem; line-height: 1; font-weight: 600;
  background: linear-gradient(180deg, var(--gold-2), rgba(232,180,92,.25));
  -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 18px;
}
.step h3 { font-family: var(--font-body); font-size: 1.15rem; margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: .96rem; }
.step::after {
  content: ""; position: absolute; top: 50%; right: -18px; width: 18px; height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}
.step:last-child::after { display: none; }

/* Worlds */
.worlds { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.world {
  position: relative; grid-column: span 4; min-height: 300px; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border); display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px; isolation: isolate;
}
.world.wide { grid-column: span 8; }
.world.half { grid-column: span 6; }
.world .art { position: absolute; inset: 0; z-index: -1; transition: transform .8s ease; }
.world:hover .art { transform: scale(1.05); }
.world .art img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; image-rendering: crisp-edges; }
.world::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,10,18,.15) 0%, rgba(11,10,18,.35) 45%, rgba(8,7,14,.95) 100%); }
.world .kicker { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; font-weight: 600; }
.world h3 { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.05; margin-bottom: 8px; }
.world p { color: var(--text-2); font-size: .94rem; max-width: 46ch; }

/* Authors split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split .h2 { margin-bottom: 16px; }
.split .lead { margin-bottom: 28px; }
.list-check { display: grid; gap: 14px; }
.list-check li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.list-check svg { width: 20px; height: 20px; flex: none; color: var(--teal); margin-top: 2px; }
.list-check b { color: var(--text); font-weight: 600; }
.lorebook {
  position: relative; border-radius: 22px; border: 1px solid var(--border-strong); padding: 22px;
  background: linear-gradient(180deg, rgba(24,21,38,.9), rgba(14,12,24,.95)); box-shadow: var(--shadow);
}
.lorebook::before { content: ""; position: absolute; inset: -10%; z-index: -1; filter: blur(70px); opacity: .5; background: radial-gradient(closest-side, rgba(232,180,92,.45), transparent 70%); }
.lore-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.lore-head h4 { font-family: var(--font-display); font-size: 1.35rem; }
.lore-head span { font-size: .78rem; color: var(--text-3); }
.lore-entry { padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 10px; }
.lore-entry .name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.lore-entry .name svg { width: 15px; height: 15px; color: var(--gold); }
.lore-entry .keys { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.lore-entry .keys span { font-size: .72rem; padding: 3px 8px; border-radius: 6px; background: rgba(139,124,246,.16); color: var(--violet-2); border: 1px solid rgba(139,124,246,.3); }
.lore-entry p { font-size: .86rem; color: var(--text-2); }
.lore-meter { margin-top: 14px; }
.lore-meter .label { display: flex; justify-content: space-between; font-size: .78rem; color: var(--text-3); margin-bottom: 6px; }
.lore-meter .bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.lore-meter .bar i { display: block; height: 100%; width: 62%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--gold)); }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; padding: 32px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; }
.plan.featured { border-color: rgba(232,180,92,.5); background: linear-gradient(180deg, rgba(232,180,92,.08), rgba(255,255,255,.03)); box-shadow: 0 30px 80px rgba(232,180,92,.10); }
.plan .badge { position: absolute; top: -13px; left: 28px; padding: 5px 12px; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1206; }
.plan h3 { font-family: var(--font-body); font-size: 1.1rem; margin-bottom: 6px; }
.plan .desc { font-size: .92rem; color: var(--text-2); margin-bottom: 22px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 24px; }
.plan .price .num { font-family: var(--font-display); font-size: 3rem; line-height: 1; font-weight: 600; font-variant-numeric: lining-nums; }
.plan .price .cur { font-family: var(--font-body); font-size: 1.6rem; font-weight: 500; color: var(--gold-2); margin-left: 2px; }
.plan .price .per { color: var(--text-3); font-size: .9rem; }
.plan ul { display: grid; gap: 10px; margin-bottom: 28px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--text-2); }
.plan li svg { width: 17px; height: 17px; flex: none; color: var(--teal); margin-top: 3px; }
.plan .btn { width: 100%; }

/* FAQ */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .2s; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; font-weight: 600; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--text-3); transition: transform .25s; }
.faq details[open] summary svg { transform: rotate(180deg); color: var(--gold); }
.faq .answer { padding: 0 22px 22px; color: var(--text-2); font-size: .96rem; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px; border: 1px solid var(--border-strong);
  padding: clamp(48px, 7vw, 88px) clamp(24px, 6vw, 80px); text-align: center;
  background: linear-gradient(180deg, rgba(30,24,52,.9), rgba(16,13,28,.95));
  box-shadow: var(--shadow);
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .45;
  background: url("../img/worlds/cta-bg.png") center 20% / cover no-repeat; image-rendering: pixelated;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent); mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent);
}
.cta-band::before {
  content: ""; position: absolute; inset: -40% -10%; z-index: 1; pointer-events: none;
  background: radial-gradient(600px 300px at 50% 0%, rgba(139,124,246,.35), transparent 70%), radial-gradient(500px 300px at 80% 100%, rgba(232,180,92,.22), transparent 70%);
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band .h2 { margin-bottom: 14px; }
.cta-band .lead { margin: 0 auto 30px; }
.cta-band .hero-actions { justify-content: center; margin-bottom: 0; }


/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features-grid, .steps, .pricing { grid-template-columns: repeat(2, 1fr); }
  .basics { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .world, .world.wide, .world.half { grid-column: span 6; }
}
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .console-body { grid-template-columns: 1fr; }
  .console-side { border-left: 0; border-top: 1px solid var(--border); }
  .split { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-sm { padding: 9px 14px; font-size: .86rem; }
  .brand { font-size: 1.25rem; gap: 9px; }
  .brand-mark { width: 32px; height: 32px; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .features-grid, .steps, .pricing { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .section-tight { padding: 36px 0; }
  .plan { padding: 24px 22px; }
  .plan .price .num { font-size: 2.4rem; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .world, .world.wide, .world.half { grid-column: span 12; min-height: 240px; }
  .hero-actions .btn { width: 100%; }
  .console-story { font-size: 1.08rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drawer, .backdrop { transition: none; }
  .stars { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .caret { animation: none; }
}
