/* ── Reset & base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0f0b1e;
  --surface:  #1c1530;
  --surface2: #241e3a;
  --text:     #f0e6c8;
  --muted:    #9a8870;
  --gold:     #D4AF37;
  --gold-dim: #a0832a;
  --red:      #8b1a1a;
  --border:   #4a3a1e;
  --font:     'Segoe UI', system-ui, sans-serif;
  --radius:   8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--text); }

/* ── Utility ───────────────────────────────────────────────────────────────── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.1s;
}
.btn:hover  { opacity: 0.85; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary  { background: var(--gold); color: #0f0b1e; }
.btn-outline  { background: transparent; color: var(--gold); border: 2px solid var(--gold); }
.btn-ghost    { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--border); }

/* ── Header / Nav ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,11,30,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
  gap: 1rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
}
.nav-logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.nav-cta .btn { padding: 0.5rem 1.2rem; font-size: 0.88rem; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(212,175,55,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(139,26,26,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.3);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}
.hero h1 span { color: var(--gold); }
.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-cta .btn { padding: 0.9rem 2.2rem; font-size: 1rem; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}
.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
}
.hero-stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Section commons ───────────────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-alt { background: var(--surface); }

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* ── Features grid ─────────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.feature-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: border-color 0.2s, transform 0.15s;
}
.feature-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-3px);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── How it works ──────────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}
.step {
  text-align: center;
  padding: 0.5rem;
}
.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(212,175,55,0.12);
  border: 2px solid rgba(212,175,55,0.35);
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.step p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── CTA band ──────────────────────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--surface2) 0%, var(--surface) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 5rem 1.5rem;
}
.cta-band h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.cta-band h2 span { color: var(--gold); }
.cta-band p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 2rem;
}
.cta-band .hero-cta { margin-top: 0; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-brand img { width: 28px; height: 28px; border-radius: 4px; }
.footer-brand span { font-size: 0.9rem; color: var(--muted); }
.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--muted);
  font-size: 0.85rem;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }
#cookie-settings-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.85rem;
  font-family: inherit;
  padding: 0;
  transition: color 0.15s;
}
#cookie-settings-btn:hover { color: var(--text); }

/* ── Cookie banner ─────────────────────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, calc(100vw - 2rem));
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  z-index: 9000;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
#cookie-banner.hidden { display: none; }

.cookie-text { flex: 1; min-width: 200px; }
.cookie-text strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}
.cookie-text p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 0;
}
.cookie-text a { font-size: 0.82rem; }

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}
.cookie-actions .btn {
  padding: 0.5rem 1.1rem;
  font-size: 0.83rem;
}

/* ── Cookie preferences modal ──────────────────────────────────────────────── */
#cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0,0,0,0.65);
}
#cookie-modal.hidden { display: none; }

.cookie-modal-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 500px;
  width: 100%;
  padding: 2rem;
  max-height: 90vh;
  overflow-y: auto;
}
.cookie-modal-box h2 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.cookie-modal-box > p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  line-height: 1.55;
}
.cookie-category {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
}
.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-category h3 { font-size: 0.92rem; color: var(--text); }
.cookie-category p  { font-size: 0.82rem; color: var(--muted); margin-top: 0.35rem; line-height: 1.5; }

/* Toggle switch */
.toggle { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: #333;
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle input:checked + .toggle-track { background: var(--gold); }
.toggle input:disabled + .toggle-track { opacity: 0.5; cursor: not-allowed; }
.toggle-track::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: left 0.2s;
}
.toggle input:checked + .toggle-track::after { left: 21px; }

.always-on {
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.cookie-modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.cookie-modal-actions .btn {
  padding: 0.55rem 1.2rem;
  font-size: 0.88rem;
}

/* ── Privacy page ──────────────────────────────────────────────────────────── */
.privacy-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
}
.privacy-hero h1 { font-size: 2rem; color: var(--text); margin-bottom: 0.5rem; }
.privacy-hero p  { color: var(--muted); font-size: 0.9rem; }

.privacy-body {
  max-width: 720px;
  padding: 3rem 1.5rem;
  margin: 0 auto;
}
.privacy-body h2 {
  font-size: 1.25rem;
  color: var(--gold);
  margin: 2.5rem 0 0.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
}
.privacy-body p  { color: var(--muted); font-size: 0.92rem; line-height: 1.7; margin-bottom: 0.85rem; }
.privacy-body ul { color: var(--muted); font-size: 0.92rem; line-height: 1.7; padding-left: 1.5rem; margin-bottom: 0.85rem; }
.privacy-body li { margin-bottom: 0.3rem; }
.privacy-body strong { color: var(--text); }

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 1rem 0 1.5rem;
}
.cookie-table th {
  text-align: left;
  color: var(--gold);
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.cookie-table td {
  color: var(--muted);
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: top;
}
.cookie-table tr:hover td { background: rgba(255,255,255,0.02); }

.tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}
.tag-required  { background: rgba(139,26,26,0.25); color: #f08080; }
.tag-optional  { background: rgba(212,175,55,0.15); color: var(--gold); }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 4rem 0 3rem; }
  .hero-stats { gap: 2rem; }
  #cookie-banner { flex-direction: column; bottom: 0; border-radius: var(--radius) var(--radius) 0 0; width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ── Hero: image background ────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 8rem 0 5rem;
  text-align: center;
  overflow: hidden;
  /* remove old ::before radial gradient — replaced by real image + overlay */
}
.hero::before {
  /* keep gold/red ambient glows but tone down — image provides atmosphere */
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(212,175,55,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(139,26,26,0.04) 0%, transparent 60%);
}
.hero-bg-picture {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.55;
  display: block;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(15,11,30,0.85) 0%,
    rgba(15,11,30,0.4)  40%,
    transparent         100%
  );
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
}

/* ── Section A: Session / AI DM ─────────────────────────────────────────────── */
.section-session { padding: 5rem 0; }

.session-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.session-illustration {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.session-illustration picture,
.session-illustration img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.session-right .section-sub { margin-bottom: 2rem; }

/* Chat mock */
.chat-mock {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.chat-msg {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-left: 1rem;
}
.chat-dm {
  border-left: 3px solid var(--gold);
}
.chat-player {
  border-left: 3px solid rgba(240,230,200,0.5);
}
.chat-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.chat-dm .chat-label   { color: var(--gold); }
.chat-player .chat-label { color: var(--muted); }
.chat-msg p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.55;
  margin: 0;
}
.chat-dm p { font-style: italic; color: var(--text); }
.chat-player p { color: rgba(240,230,200,0.75); }

/* ── Section B: Branching Narratives ─────────────────────────────────────── */
.section-branches { padding: 5rem 0; }
.branches-header { text-align: center; margin-bottom: 3rem; }
.branches-header .section-sub { margin: 0 auto; }

.tree-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}
.story-tree-svg {
  width: 100%;
  max-width: 700px;
  height: auto;
  overflow: visible;
}

/* Pulse animation on the middle branch node */
@keyframes nodePulse {
  0%, 100% { stroke-opacity: 0.7; r: 50; }
  50%       { stroke-opacity: 1;   r: 53; }
}
.pulse-circle {
  stroke: var(--gold);
  stroke-opacity: 0.7;
  animation: nodePulse 2.4s ease-in-out infinite;
  transform-origin: 460px 170px;
}
@keyframes imageGlow {
  0%, 100% { opacity: 0.85; }
  50%       { opacity: 1; }
}
.pulse-image {
  animation: imageGlow 2.4s ease-in-out infinite;
}

/* ── Section C: Sessions Become Stories ─────────────────────────────────── */
.section-stories { padding: 5rem 0 6rem; }

.artifact-gallery {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  margin-top: 3rem;
  position: relative;
  min-height: 340px;
}

.artifact-panel {
  position: relative;
  flex: 0 0 auto;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

/* Book panel */
.artifact-book {
  width: 260px;
  background: #f5e6c8;
  color: #2a1a0a;
  padding: 1.75rem 1.5rem 1.25rem;
  transform: rotate(-3deg) translateY(20px);
  z-index: 1;
  margin-right: -30px;
  border: 1px solid #d4b896;
}
.book-text {
  font-family: Palatino, 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  font-size: 0.82rem;
  line-height: 1.75;
  color: #2a1a0a;
  margin-bottom: 1rem;
}
.book-caption {
  display: block;
  font-size: 0.72rem;
  color: #7a5a3a;
  font-style: italic;
  text-align: right;
  border-top: 1px solid #d4b896;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}

/* Scene painting panel */
.artifact-painting {
  width: 300px;
  z-index: 2;
  transform: rotate(1deg);
  overflow: hidden;
  border: 2px solid var(--border);
}
.artifact-painting img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* Video thumbnail panel */
.artifact-video {
  width: 280px;
  z-index: 1;
  transform: rotate(2deg) translateY(10px);
  margin-left: -30px;
}
.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 2px solid var(--border);
}
.video-img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.9);
}
.video-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: 0.4;
  mix-blend-mode: overlay;
}
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  pointer-events: none;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.7));
}
.video-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15,11,30,0.9) 0%, transparent 100%);
  color: var(--muted);
  font-size: 0.75rem;
  padding: 1rem 0.75rem 0.5rem;
  letter-spacing: 0.5px;
}

/* ── Feature Strip ──────────────────────────────────────────────────────────── */
.feature-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0;
  background: var(--surface);
}
.feature-strip-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 2.5rem;
}
.feature-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.feature-strip-item .strip-icon {
  color: var(--gold);
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.feature-strip-item span {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ── Responsive: Tablet (768px) ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .session-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .artifact-gallery {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    min-height: auto;
  }
  .artifact-book,
  .artifact-painting,
  .artifact-video {
    transform: rotate(0deg) !important;
    margin: 0 !important;
    width: 100%;
    max-width: 360px;
  }
  .artifact-book    { transform: rotate(-1deg) !important; }
  .artifact-painting { transform: rotate(0deg)  !important; }
  .artifact-video   { transform: rotate(1deg)   !important; }
}

/* ── Responsive: Mobile (640px) ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 5rem 0 3rem; }
  .hero-bg-img { object-position: 35% center; }

  .story-tree-svg { max-width: 100%; }

  .artifact-book,
  .artifact-painting,
  .artifact-video {
    max-width: 100%;
    transform: rotate(0deg) !important;
    margin: 0 !important;
  }

  .feature-strip-list { gap: 1.25rem 1.75rem; }

  .session-illustration { display: none; }
}

/* ── Responsive: 375px ───────────────────────────────────────────────────── */
@media (max-width: 400px) {
  .story-tree-svg text { font-size: 10px; }
  .feature-strip-list { gap: 1rem 1.25rem; }
}


/* ── Discord Showcase Section ───────────────────────────────────────────── */

/* LIVE / pre-launch state toggling via data-discord-live attribute */
/* Pre-launch (false): show coming-soon variants, hide live variants */
/* Live (true): show live variants, hide coming-soon variants */

[data-discord-live="false"] .discord-live-dot,
[data-discord-live="false"] .discord-live-text,
[data-discord-live="false"] .discord-channel-name-live,
[data-discord-live="false"] .discord-stat-live,
[data-discord-live="false"] .discord-stat-label-live,
[data-discord-live="false"] .discord-join-btn {
  display: none;
}

[data-discord-live="true"] .discord-coming-text,
[data-discord-live="true"] .discord-channel-name-coming,
[data-discord-live="true"] .discord-stat-coming,
[data-discord-live="true"] .discord-stat-label-coming,
[data-discord-live="true"] .discord-notify {
  display: none;
}

[data-discord-live="false"] .discord-coming-text,
[data-discord-live="false"] .discord-channel-name-coming,
[data-discord-live="false"] .discord-stat-coming,
[data-discord-live="false"] .discord-stat-label-coming,
[data-discord-live="false"] .discord-notify {
  display: flex;
}

/* 2-column showcase grid */
.discord-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3.5rem;
}

/* Discord mockup panel */
.discord-mock {
  background: #1a1625;
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--font);
}

.discord-mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(212,175,55,0.12);
}

.discord-channel-name {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.discord-hash {
  color: var(--muted);
  flex-shrink: 0;
}

.discord-live-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.discord-live-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 6px #4ade80;
  flex-shrink: 0;
  animation: discordPulse 2s ease-in-out infinite;
}

@keyframes discordPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.discord-live-text {
  color: #4ade80;
}

.discord-coming-text {
  color: var(--gold);
}

.discord-mock-messages {
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.discord-msg {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.discord-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.discord-avatar-dm   { background: linear-gradient(135deg, var(--gold), var(--gold-dim)); color: #0f0b1e; }
.discord-avatar-kael { background: #6366f1; }
.discord-avatar-mira { background: #a855f7; }

.discord-msg-body {
  flex: 1;
  min-width: 0;
}

.discord-msg-author {
  font-size: 0.88rem;
  font-weight: 700;
  margin-right: 0.5rem;
}

.discord-author-dm   { color: var(--gold); }
.discord-author-kael { color: #818cf8; }
.discord-author-mira { color: #c084fc; }

.discord-msg-ts {
  font-size: 0.72rem;
  color: var(--muted);
}

.discord-msg-text {
  margin-top: 0.25rem;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.55;
}

.discord-msg-text em {
  color: var(--muted);
  font-style: italic;
}

/* Value props column */
.discord-value {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
}

.discord-value-item {
  border-left: 3px solid rgba(212,175,55,0.3);
  padding-left: 1.25rem;
}

.discord-value-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.discord-value-item p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Stat cards */
.discord-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.discord-stat {
  text-align: center;
  background: rgba(212,175,55,0.05);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: var(--radius);
  padding: 1.25rem 2rem;
  min-width: 130px;
}

.discord-stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
}

.discord-stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.3rem;
}

/* CTA row */
.discord-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.discord-icon {
  margin-right: 0.4rem;
  vertical-align: middle;
  flex-shrink: 0;
}

.discord-join-btn {
  display: inline-flex;
  align-items: center;
}

.discord-notify {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.discord-notify-input {
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.88rem;
  min-width: 220px;
  outline: none;
  transition: border-color 0.15s;
}

.discord-notify-input:focus {
  border-color: rgba(212,175,55,0.4);
}

.discord-notify-input::placeholder {
  color: var(--muted);
}

/* ── Discord: Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .discord-showcase-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .discord-stats {
    gap: 1rem;
  }
  .discord-stat {
    padding: 1rem 1.25rem;
    min-width: 100px;
  }
  .discord-stat-value {
    font-size: 1.6rem;
  }
  .discord-notify-input {
    min-width: 160px;
  }
  .discord-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .discord-cta .btn,
  .discord-notify {
    width: 100%;
    justify-content: center;
  }
}

.discord-notify-btn { flex-shrink: 0; }

.discord-notify-input.input-error {
  border-color: #e74c3c;
}

.notify-msg {
  font-size: 0.82rem;
  width: 100%;
  min-height: 1.2em;
}

.notify-error {
  color: #e74c3c;
}

.notify-ok {
  color: var(--gold);
}

/* ── About page ─────────────────────────────────────────────────────────────────────────── */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2.5rem;
  max-width: 800px;
}

.about-block h2 {
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 0.65rem;
  font-weight: 700;
}

.about-block p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.about-block p:last-child {
  margin-bottom: 0;
}

.about-list {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}

.about-list li {
  margin-bottom: 0.4rem;
}

.about-list strong {
  color: var(--text);
}

.about-block-highlight {
  border-left: 3px solid var(--gold);
  padding-left: 1.25rem;
}

.about-block-highlight h2 {
  color: var(--text);
}

.about-cta {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.about-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Language Picker ───────────────────────────────────────────────────────── */
.lang-picker {
  position: relative;
  flex-shrink: 0;
}

.lang-picker-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
  font-family: var(--font);
}
.lang-picker-btn:hover {
  border-color: var(--gold-dim);
  background: rgba(212,175,55,0.08);
}

.lang-flag {
  font-size: 1rem;
  line-height: 1;
}
.lang-code {
  color: var(--muted);
  letter-spacing: 0.03em;
}
.lang-caret {
  color: var(--muted);
  transition: transform 0.15s;
}
.lang-picker-btn[aria-expanded="true"] .lang-caret {
  transform: rotate(180deg);
}

.lang-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 160px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  list-style: none;
  padding: 0.35rem 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 200;
}
.lang-dropdown--open {
  display: block;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--muted);
  transition: background 0.1s, color 0.1s;
}
.lang-option:hover {
  background: var(--surface2);
  color: var(--text);
}
.lang-option--active {
  color: var(--gold);
}
.lang-option--active::after {
  content: '✓';
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--gold);
}
.lang-opt-flag {
  font-size: 1.1rem;
  line-height: 1;
}

/* Mobile: push picker below nav on very small screens */
@media (max-width: 480px) {
  .lang-picker-btn .lang-code {
    display: none;
  }
  .lang-dropdown {
    right: 0;
    left: auto;
  }
}
