/* ═══════════════════════════════════════════════════════════
   Ролебаза Landing — HomeScreen-aligned design system
   4 themes: arcane (default), dark, light, parchment
   ═══════════════════════════════════════════════════════════ */

/* ── Theme tokens ──────────────────────────────────────────── */

:root, [data-theme="arcane"] {
  --bg-deep: #140f0c; --bg-base: #1c1815; --bg-elevated: #26211c;
  --bg-card: rgba(46,40,34,0.65); --bg-card-solid: #2e2822;
  --text-primary: #F5E6CA; --text-secondary: #dcd0bc; --text-muted: #a69b8d;
  --accent: #D4AF60; --accent-dim: rgba(212,175,96,0.15); --accent-hover: #EAD090;
  --border: #594d3f; --border-light: rgba(89,77,63,0.4);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.35);
  --shadow-hover: 0 16px 48px rgba(0,0,0,0.45), 0 0 12px rgba(212,175,96,0.08);
  --hero-bg: radial-gradient(ellipse at 50% 45%, #2a2318 0%, #1c1815 40%, #140f0c 100%);
  --face-top: rgba(212,175,96,0.22); --face-left: rgba(212,175,96,0.14); --face-right: rgba(212,175,96,0.09);
  --scrollbar-thumb: rgba(212,175,96,0.2); --scrollbar-hover: rgba(212,175,96,0.35);
  color-scheme: dark;
}
[data-theme="dark"] {
  --bg-deep: #12122a; --bg-base: #1a1a2e; --bg-elevated: #16213e;
  --bg-card: rgba(22,33,62,0.65); --bg-card-solid: #16213e;
  --text-primary: #e0e0e0; --text-secondary: #aaa; --text-muted: #777;
  --accent: #748ffc; --accent-dim: rgba(116,143,252,0.12); --accent-hover: #91a7ff;
  --border: #2a3a5c; --border-light: rgba(42,58,92,0.4);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.3);
  --shadow-hover: 0 16px 48px rgba(0,0,0,0.4), 0 0 12px rgba(116,143,252,0.06);
  --hero-bg: radial-gradient(ellipse at 50% 45%, #1e2040 0%, #1a1a2e 40%, #12122a 100%);
  --face-top: rgba(116,143,252,0.20); --face-left: rgba(116,143,252,0.13); --face-right: rgba(116,143,252,0.08);
  --scrollbar-thumb: rgba(255,255,255,0.12); --scrollbar-hover: rgba(255,255,255,0.25);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg-deep: #e8e8e8; --bg-base: #f5f5f5; --bg-elevated: #fff;
  --bg-card: rgba(255,255,255,0.65); --bg-card-solid: #fff;
  --text-primary: #333; --text-secondary: #666; --text-muted: #888;
  --accent: #3b5bdb; --accent-dim: rgba(59,91,219,0.08); --accent-hover: #5c7cfa;
  --border: #ddd; --border-light: rgba(0,0,0,0.06);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
  --hero-bg: radial-gradient(ellipse at 50% 45%, #fff 0%, #f5f5f5 40%, #e8e8e8 100%);
  --face-top: rgba(59,91,219,0.08); --face-left: rgba(59,91,219,0.14); --face-right: rgba(59,91,219,0.20);
  --scrollbar-thumb: rgba(0,0,0,0.15); --scrollbar-hover: rgba(0,0,0,0.3);
  color-scheme: light;
}
[data-theme="parchment"] {
  --bg-deep: #e4d8c4; --bg-base: #f0e6d6; --bg-elevated: #faf4ea;
  --bg-card: rgba(255,252,247,0.65); --bg-card-solid: #fffcf7;
  --text-primary: #20150b; --text-secondary: rgba(32,21,11,0.74); --text-muted: rgba(32,21,11,0.45);
  --accent: #6B4A1A; --accent-dim: rgba(107,74,26,0.08); --accent-hover: #8B6A3A;
  --border: rgba(107,74,26,0.18); --border-light: rgba(107,74,26,0.08);
  --shadow-card: 0 2px 12px rgba(66,36,9,0.08);
  --shadow-hover: 0 8px 24px rgba(66,36,9,0.14);
  --hero-bg: radial-gradient(ellipse at 50% 45%, #faf4ea 0%, #f0e6d6 40%, #e4d8c4 100%);
  --face-top: rgba(107,74,26,0.07); --face-left: rgba(107,74,26,0.13); --face-right: rgba(107,74,26,0.19);
  --scrollbar-thumb: rgba(107,74,26,0.15); --scrollbar-hover: rgba(107,74,26,0.3);
  color-scheme: light;
}

/* ── Reset & base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; zoom: 1.25; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  color: var(--text-primary); background: var(--bg-base);
  line-height: 1.6; overflow-x: hidden; transition: background 0.3s, color 0.3s;
}
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-hover); }

/* ── Container — unified max-width ─────────────────────────── */
.container { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ── Typography ────────────────────────────────────────────── */
.eyebrow { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.section-title { font-size: 36px; font-weight: 700; color: var(--text-primary); margin-top: 4px; }
.section-subtitle { font-size: 20px; color: var(--text-secondary); margin-top: 6px; font-style: italic; }
.section-header { text-align: center; margin-bottom: 36px; }

/* (theme switcher removed) */

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; padding: 20px 20px 40px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.82) contrast(1.08) saturate(1.05); }
.hero-bg-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(26,20,16,0.55) 0%, rgba(46,38,29,0.20) 50%, var(--bg-base) 100%); }
.hero-bg-vignette { position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, rgba(212,167,85,0.08) 0%, rgba(28,24,21,0.85) 100%); }

.hero-content { position: relative; z-index: 2; text-align: center; width: 100%; padding: 0 16px; }

/* ── Hero topbar (partners left, social right) ─────────────── */
.hero-topbar {
  position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
  z-index: 3; width: 100%;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 0 16px; max-width: 1100px;
  transition: opacity 0.3s ease;
}
.topbar-col { }
.topbar-col-left { text-align: left; }
.topbar-col-right { text-align: right; }

.topbar-label {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); padding: 0 4px 4px; white-space: nowrap;
  list-style: none; cursor: default;
  margin-bottom: 4px;
}
.topbar-label::-webkit-details-marker { display: none; }
.topbar-label-short { display: none; }
.topbar-chip {
  display: none; align-items: center; gap: 6px;
  padding: 6px 14px; font-size: 14px; font-weight: 500; margin-top: 4px;
  color: var(--text-secondary); text-decoration: none;
  background: var(--bg-card); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light); border-radius: 20px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.topbar-col[open] > .topbar-chip { display: flex; width: fit-content; }
.topbar-col-right > .topbar-chip { margin-left: auto; }
.topbar-chip:hover { border-color: var(--border); color: var(--accent); }
.topbar-chip svg { color: var(--accent); flex-shrink: 0; }

/* ── Logo stage (classic logo ↔ die field) ─────────────────── */
.logo-stage {
  position: relative; display: grid; place-items: center;
  width: 100%;
}
.classic-logo, .hero-canvas { cursor: pointer; }
.logo-stage > * { grid-area: 1 / 1; } /* stack children on top of each other */
.classic-logo {
  width: 100%; max-width: 1170px;
  filter: drop-shadow(0 20px 80px rgba(0,0,0,1));
  animation: logo-float 6s ease-in-out infinite;
  transition: opacity 1s ease;
}
.classic-logo.fade-out { opacity: 0; pointer-events: none; }
.hero-canvas {
  flex-shrink: 0; max-width: 100%; height: auto;
  transition: filter 0.3s, opacity 1s ease;
  opacity: 0;
}
.hero-canvas.visible { opacity: 1; }
.hero-canvas:hover { filter: brightness(1.05); }

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.hero-text { margin-top: 12px; max-width: 760px; margin-left: auto; margin-right: auto; }
.hero-tagline { font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); margin-bottom: 10px; }
.hero-subtitle { font-size: 18px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.04em; }

/* ── Advantage cards ───────────────────────────────────────── */
.advantages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; width: 100%; max-width: 760px; margin-left: auto; margin-right: auto; transition: opacity 0.4s ease; }
.advantage-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 16px 8px; background: var(--bg-card); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light); border-radius: 14px;
  transition: transform 0.2s, border-color 0.2s; min-width: 0;
}
.advantage-card:hover { transform: translateY(-3px); border-color: var(--border); }
.advantage-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.advantage-card h3 { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.advantage-card p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

.hero-cta {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 32px;
  padding: 14px 32px; font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--bg-base); background: var(--accent); border: none; border-radius: 8px;
  text-decoration: none; transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.hero-cta:hover { transform: translateY(-2px); background: var(--accent-hover); box-shadow: 0 4px 20px var(--accent-dim); color: var(--bg-base); }

.scroll-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); opacity: 0.4; animation: bounce-down 2s ease-in-out infinite; }
.scroll-hint svg { width: 24px; height: 24px; color: var(--text-muted); }
@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
  50%      { transform: translateX(-50%) translateY(8px); opacity: 0.7; }
}

/* ── Scroll-down mouse (section divider) ───────────────────── */
.scroll-down {
  display: flex; align-items: center; justify-content: center;
  margin-top: 48px; cursor: pointer;
}
.scroll-down svg {
  width: 56px; height: 56px; fill: var(--accent); opacity: 0.7;
  animation: scroll-bounce 2.2s ease-in-out infinite;
  filter: drop-shadow(0 0 6px var(--accent-dim));
  transition: opacity 0.2s;
}
.scroll-down:hover svg { opacity: 1; }
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%      { transform: translateY(7px); opacity: 1; }
}

/* ── Glass card ────────────────────────────────────────────── */
.glass-card {
  background: var(--bg-card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light); border-radius: 18px; box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.glass-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--border); }
.glass-card-static {
  background: var(--bg-card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light); border-radius: 18px; box-shadow: var(--shadow-card);
}

/* ── Content card (unified width) ──────────────────────────── */
.content-card { max-width: 760px; margin-left: auto; margin-right: auto; }

/* ── Sections ──────────────────────────────────────────────── */
.section { padding: 72px 0; transition: background 0.3s; }
.section-alt { background: var(--bg-elevated); }

/* ── Arsenal ───────────────────────────────────────────────── */
.arsenal-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 760px; margin: 0 auto;
}
.arsenal-card {
  padding: 20px; background: var(--bg-card); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light); border-radius: 14px;
  transition: transform 0.2s, border-color 0.2s;
}
.arsenal-card:hover { transform: translateY(-2px); border-color: var(--border); }
.arsenal-icon { width: 28px; height: 28px; margin-bottom: 10px; }
.arsenal-card h3 { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.arsenal-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.arsenal-card--video { position: relative; overflow: hidden; }
.arsenal-video {
  position: absolute; inset: -25%; width: 150%; height: 150%;
  object-fit: cover; object-position: center; border-radius: inherit; opacity: 0.25;
}
.arsenal-card--video-fit .arsenal-video {
  inset: 0; width: 100%; height: 100%;
}
.arsenal-card--video .arsenal-icon,
.arsenal-card--video h3,
.arsenal-card--video p { position: relative; z-index: 1; }

.arsenal-callout {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  margin-top: 24px; padding: 14px 20px;
  background: var(--accent-dim); border: 1px solid var(--border-light); border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--text-secondary); max-width: 760px; margin-left: auto; margin-right: auto;
}

/* ── Guild / Waitlist (parchment card) ──────────────────────── */
.guild-parchment {
  background: #eaddcf; color: #2c241b;
  padding: 40px 44px; border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  position: relative; text-align: center;
}
.guild-parchment .guild-intro {
  font-size: 20px; line-height: 1.7; margin-bottom: 0; color: #3d3226;
}
.guild-divider { height: 1px; background: #a89888; width: 50%; margin: 24px auto; opacity: 0.5; }
.guild-heading { font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #594426; margin-bottom: 16px; }
.perks-list-parchment { list-style: none; text-align: left; max-width: 400px; margin: 0 auto 28px; }
.perks-list-parchment li {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; color: #3d3226; font-weight: 500; padding: 5px 0;
}
.parchment-field { margin-bottom: 16px; text-align: left; }
.parchment-field label {
  font-size: 15px; font-weight: 600; color: #3d3226; margin-bottom: 6px; display: block;
}
.parchment-field input[type="text"],
.parchment-field input[type="email"] {
  width: 100%; padding: 12px 14px; font-size: 15px; font-family: inherit;
  background: #f4ece4; border: 1px solid #a89888; border-radius: 8px;
  color: #2c241b; outline: none; transition: border-color 0.2s;
}
.parchment-field input:focus { border-color: #8F2020; }
.parchment-field input::placeholder { color: #a89888; }
/* Role cards */
.role-cards { display: flex; gap: 8px; }
.role-card { flex: 1; cursor: pointer; }
.role-card input { position: absolute; opacity: 0; pointer-events: none; }
.role-card-inner {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 8px; border: 2px solid #a89888; background: #f4ece4;
  border-radius: 10px; transition: border-color 0.2s, background 0.2s;
}
.role-card-inner span { font-size: 11px; font-weight: 700; text-transform: uppercase; color: #3d3226; }
.role-card input:checked + .role-card-inner { border-color: #8F2020; background: #e6d0bc; }
.role-card:hover .role-card-inner { background: #e6d0bc; }
/* Submit */
.guild-submit {
  width: 100%; margin-top: 20px; padding: 16px; font-size: 16px; font-weight: 700;
  font-family: inherit; text-transform: uppercase; letter-spacing: 0.06em;
  color: #f4ece4; background: #8F2020; border: 1px solid #5c1313;
  border-radius: 8px; cursor: pointer; transition: background 0.2s, transform 0.2s;
}
.guild-submit:hover { background: #721818; transform: translateY(-2px); }
.guild-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.guild-privacy { font-size: 12px; color: #6b5d4f; margin-top: 10px; }
.guild-privacy a { color: #8F2020; text-decoration: underline; }
.guild-counter {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(168,152,136,0.4);
  font-size: 15px; color: #594426;
}
.guild-counter-value { font-size: 36px; font-weight: 700; color: #8F2020; }

/* ── Form ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 12px 16px; font-size: 15px; font-family: inherit;
  color: var(--text-primary); background: var(--accent-dim);
  border: 1px solid var(--border-light); border-radius: 8px;
  outline: none; transition: border-color 0.2s, background 0.2s;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { border-color: var(--accent); background: var(--bg-card); }
.radio-group { display: flex; gap: 8px; }
.radio-pill { flex: 1; position: relative; }
.radio-pill input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pill label {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 12px; font-size: 14px; font-weight: 500; color: var(--text-muted);
  background: var(--accent-dim); border: 1px solid var(--border-light); border-radius: 8px;
  cursor: pointer; transition: all 0.2s;
}
.radio-pill input:checked + label { color: var(--accent); border-color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; font-size: 14px; font-weight: 600; font-family: inherit;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--bg-base); background: var(--accent); border: none; border-radius: 8px;
  cursor: pointer; width: 100%; transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); background: var(--accent-hover); box-shadow: 0 4px 16px var(--accent-dim); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.status-msg { font-size: 13px; padding: 10px 14px; border-radius: 8px; margin-top: 12px; display: none; }
.status-msg.visible { display: block; }
.status-msg.success { background: rgba(74,222,128,0.1); color: #4ade80; border: 1px solid rgba(74,222,128,0.2); }
.status-msg.error   { background: rgba(248,113,113,0.1); color: #f87171; border: 1px solid rgba(248,113,113,0.2); }
.counter-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; font-size: 14px; color: var(--text-muted); }
.counter-value { font-weight: 700; color: var(--accent); font-size: 18px; }
.counter-spinner { width: 16px; height: 16px; border: 2px solid var(--border-light); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.privacy-text { font-size: 12px; color: var(--text-muted); margin-top: 12px; }
.security-text { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--text-muted); margin-top: 20px; }

/* ── FAQ ───────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 8px; max-width: 760px; margin: 0 auto; }
.faq-item {
  border-radius: 14px; background: var(--bg-card); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light); overflow: hidden; transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--border); }
.faq-item summary {
  padding: 18px 22px; font-size: 18px; font-weight: 600; color: var(--text-primary);
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; font-weight: 400; color: var(--text-muted); }
.faq-item[open] summary::after { content: '\2212'; }
.faq-answer { padding: 0 22px 18px; font-size: 16px; line-height: 1.7; color: var(--text-secondary); }

/* ── Founders ──────────────────────────────────────────────── */
.founder-portraits { display: flex; justify-content: center; gap: 32px; margin-bottom: 32px; }
.founder-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; padding: 0; }
.founder-ring { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; border: 2px solid var(--border); transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s; }
.founder-ring img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.5) brightness(0.7); transition: filter 0.3s; }
.founder-btn.active .founder-ring { border-color: var(--accent); transform: scale(1.12); box-shadow: 0 0 16px var(--accent-dim); }
.founder-btn.active .founder-ring img { filter: saturate(1) brightness(1); }
.founder-btn:not(.active):hover .founder-ring { border-color: var(--text-muted); transform: scale(1.05); }
.founder-btn:not(.active):hover .founder-ring img { filter: saturate(0.8) brightness(0.85); }
.founder-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); transition: color 0.2s; }
.founder-btn.active .founder-label { color: var(--accent); }

.founder-page { display: none; animation: fade-up 0.4s ease; }
.founder-page.visible { display: block; }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.founder-inner { padding: 32px; display: flex; gap: 28px; }
.founder-photo-col { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.founder-photo-frame { width: 190px; height: 190px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); position: relative; }
.founder-photo-frame img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; transition: opacity 0.4s; }
.founder-photo-frame .fire { opacity: 0; }
.founder-photo-frame:hover .fire { opacity: 1; }
.founder-photo-frame:hover .normal { opacity: 0; }
.founder-text { flex: 1; display: flex; flex-direction: column; }
.founder-role { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 2px; }
.founder-name { font-size: 24px; font-weight: 600; color: var(--text-primary); margin-bottom: 16px; }
.founder-bio { list-style: none; margin-bottom: 16px; }
.founder-bio li { font-size: 14px; line-height: 1.7; color: var(--text-secondary); padding: 2px 0 2px 18px; position: relative; }
.founder-bio li::before { content: '~'; position: absolute; left: 0; color: var(--text-muted); }
.founder-channel {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; font-size: 13px; font-weight: 500; color: var(--accent);
  border: 1px solid var(--accent-dim); border-radius: 6px; background: var(--accent-dim);
  transition: background 0.2s, border-color 0.2s;
}
.founder-channel:hover { border-color: var(--accent); }
.founder-quote { font-size: 15px; font-style: italic; line-height: 1.6; color: var(--accent); border-top: 1px solid var(--border-light); padding-top: 14px; margin-top: auto; }

/* ── Social ────────────────────────────────────────────────── */
.social-grid { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.social-card { padding: 20px 28px; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text-primary); min-width: 200px; justify-content: center; }
.social-icon { width: 24px; height: 24px; flex-shrink: 0; }
.social-name { font-size: 15px; font-weight: 600; }
.social-desc { font-size: 12px; color: var(--text-muted); }

/* ── Footer ────────────────────────────────────────────────── */
.footer { padding: 48px 0; text-align: center; border-top: 1px solid var(--border-light); background: var(--bg-deep); transition: background 0.3s; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-top: 16px; font-size: 13px; }
.footer-links a { color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 12px; color: var(--text-muted); opacity: 0.6; margin-top: 16px; }
.footer-die { display: inline-block; opacity: 0.8; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.8)); transition: opacity 0.3s, filter 0.3s; }
.footer-die:hover { opacity: 1; filter: drop-shadow(0 6px 24px var(--accent-dim)); }

/* ── Side vignettes (edge darkening) ────────────────────────── */
.side-vignette { position: fixed; top: 0; bottom: 0; width: 192px; z-index: 2; pointer-events: none; }
.side-vignette-left { left: 0; }
.side-vignette-right { right: 0; }
.sv-layer { position: absolute; inset: 0; }
.side-vignette-left .sv-layer {
  background: linear-gradient(to right, rgba(12,8,4,0.90) 0%, rgba(20,14,8,0.65) 45%, transparent 100%);
}
.side-vignette-right .sv-layer {
  background: linear-gradient(to left, rgba(12,8,4,0.90) 0%, rgba(20,14,8,0.65) 45%, transparent 100%);
}

/* ── Utilities ─────────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.hidden { display: none !important; }
@keyframes sparkle-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-tagline { font-size: 16px; }
  .hero-subtitle { font-size: 14px; }
  .section-title { font-size: 28px; }
  .advantages { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .advantage-card { padding: 14px 8px; }
  .advantage-icon { width: 36px; height: 36px; }
  .advantage-card h3 { font-size: 13px; }
  .advantage-card p { font-size: 10px; }
  .arsenal-grid { grid-template-columns: 1fr; }
  .founder-inner { flex-direction: column; align-items: center; text-align: center; }
  .founder-photo-frame { width: 150px; height: 150px; }
  .founder-bio li::before { display: none; }
  .founder-bio li { padding-left: 0; }
  .founder-channel { align-self: center; }
  .founder-portraits { gap: 20px; }
  .founder-ring { width: 68px; height: 68px; }
  .social-grid { flex-direction: column; align-items: center; }
  .container { padding: 0 16px; }
  .guild-parchment { padding: 28px 20px; }
  .role-cards { flex-direction: column; }
  .hero-cta { font-size: 13px; padding: 12px 24px; }
  .side-vignette { display: none; }
  /* Topbar: dropdown mode — summary becomes pill button */
  .hero-topbar { max-width: 100%; padding: 0 10px; gap: 8px; }
  .topbar-label {
    cursor: pointer; padding: 4px 10px; font-size: 10px;
    background: var(--bg-card); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light); border-radius: 16px;
  }
  .topbar-label::after { content: ' \25BE'; font-size: 8px; }
  .topbar-col[open] > .topbar-label::after { content: ' \25B4'; }
  .topbar-col[open] > .topbar-chip { font-size: 12px; padding: 4px 10px; }
  .topbar-label-full { display: none; }
  .topbar-label-short { display: inline; }
}
@media (max-width: 480px) {
  .hero-tagline { font-size: 14px; }
  .hero-subtitle { font-size: 12px; }
  .section { padding: 48px 0; }
  .radio-group { flex-direction: column; }
  .section-title { font-size: 24px; }
  .advantage-card { padding: 12px 6px; gap: 4px; }
  .advantage-icon { width: 32px; height: 32px; }
  .advantage-card h3 { font-size: 12px; }
  .advantage-card p { font-size: 10px; line-height: 1.3; }
  .hero-cta { font-size: 12px; padding: 10px 20px; }
  .scroll-down svg { width: 40px; height: 40px; }
}
