:root {
  /* ── Core palette ── */
  --color-dark: #1d1d1f;
  --color-light: #f9f6f5;

  /* ── Surfaces: dark sections ── */
  --bg: var(--color-dark);
  --bg-soft: var(--color-dark);
  --bg-card: #252528;
  --bg-card-deep: #141416;
  --bg-band: var(--color-dark);
  --bg-canvas: var(--color-dark);

  /* ── Ink & outlines ── */
  --ink: #f4efe7;
  --outline: rgba(255, 255, 255, 0.18);
  --hairline: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.18);
  --border-width: 2px;

  /* ── Text ── */
  --text: #f4efe7;
  --text-secondary: #b8a99a;
  --text-muted: #8a7d6c;
  --text-on-bg: #f4efe7;
  --text-on-bg-muted: #b8a99a;
  --text-on-accent: #fffaf3;
  --text-on-accent-muted: rgba(255, 250, 243, 0.86);

  /* ── Brand accent: refined warm orange ── */
  --accent: #ec6a1e;
  --accent-soft: #fdeede;
  --accent-hover: #f4823b;
  --accent-deep: #c9540d;
  --accent-ring: rgba(236, 106, 30, 0.22);

  /* ── Secondary (calm, trust) ── */
  --indigo: #5566e0;
  --indigo-soft: rgba(85, 102, 224, 0.12);
  --teal: #1f9c7c;
  --success: #2ea66a;

  /* ── Game accents (muted for a grown-up palette) ── */
  --game-gold: #e0a020;
  --game-gem: #7a5bd6;
  --game-food: #4f9e5e;
  --game-wood: #a07c5e;
  --game-stone: #7d8a96;
  --tier-basic: #2e9e6b;
  --tier-standard: #d98a1e;
  --tier-pro: #6d4fc4;

  /* ── Radius & shadows ── */
  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-press: 0 3px 0 var(--outline);
  --shadow-press-sm: 0 2px 0 var(--outline);
  --shadow-soft: 0 14px 34px rgba(47, 42, 36, 0.10);
  --shadow-card: 0 1px 0 rgba(47, 42, 36, 0.04), 0 16px 36px rgba(47, 42, 36, 0.09);
  --shadow-card-hover: 0 1px 0 rgba(47, 42, 36, 0.05), 0 24px 48px rgba(47, 42, 36, 0.14);

  --header-h: 74px;
  --max-w: 1160px;
  --page-max-w: calc(100vw - clamp(1.25rem, 5vw, 2.5rem));
  --max-w-narrow: 720px;
  --section-y: clamp(4.5rem, 7vw, 7rem);
  --section-y-sm: clamp(3rem, 5vw, 4.5rem);
  --section-gap: clamp(2.5rem, 4vw, 3.5rem);
  --stats-overlap: 3.5rem;
  --font: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-header: 'Outfit', system-ui, -apple-system, sans-serif;
  --header-dark: var(--color-dark);
  --header-dark-h: 82px;

  /* TV static grain (canvas .tv-grain) */
  --tv-grain-opacity: 0.09;
  --tv-grain-size: 128px;
  --tv-grain-resolution: 256;
  --tv-grain-interval: 240ms;
  --tv-grain-blend: overlay;
}

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

html {
  scroll-padding-top: calc(var(--header-h) + 1rem);
  overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

body:has(.page-home) {
  background: var(--bg-canvas, #1a1612);
}

body:has(.page-home)::after {
  opacity: 0.1;
}

body:has(.page-home) .flat-shapes {
  opacity: 0.06;
}

/* TV static grain — background layer only (see scroll-effects.js) */
.tv-grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: var(--tv-grain-opacity);
  mix-blend-mode: var(--tv-grain-blend);
  image-rendering: pixelated;
}

body:has(.page-home) .tv-grain {
  opacity: calc(var(--tv-grain-opacity) * 1.1);
}

html[data-theme="light"] .tv-grain {
  mix-blend-mode: soft-light;
  opacity: calc(var(--tv-grain-opacity) * 0.85);
}

/* Very subtle blueprint grid — adds craft without clutter */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.04) 1px, transparent 0);
  background-size: 26px 26px;
}

h1, h2, h3,
.stat-value, .pricing-price, .step-num, .section-label,
.hero-label, .pricing-badge, .game-tag, .logo-title {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

/* ── Shared card surface — clean white, fine outline, soft lift ── */
.clay-surface,
.stat,
.card,
.step,
.pricing-card,
.faq-item,
.changelog-item,
.feature-meta,
.discord-embed-wrap,
.cta-banner,
.prose {
  background: var(--bg-card);
  border: var(--border-width) solid var(--outline);
  color: var(--text);
  box-shadow: var(--shadow-card);
}

/* ── Decorative shape layer (kept faint) ── */
.flat-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.shape { display: none; }

/* ── Isometric macro pad (3D model host) ── */
.macro-pad {
  pointer-events: none;
  line-height: 0;
  position: relative;
  overflow: visible;
}

.macro-pad svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.macro-pad-3d-wrap.is-hero-full {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.macro-pad-3d-wrap.is-hero:not(.is-hero-full) {
  padding: 24px 4px 24px 0;
  overflow: visible;
  margin-left: -28px;
}

.macro-pad-3d-wrap {
  position: relative;
  width: 100%;
  overflow: visible;
  padding: 8px 4px 28px;
}

.macro-pad-3d {
  width: 100%;
  height: 380px;
  display: block;
  background: transparent !important;
  position: relative;
  z-index: 1;
  overflow: visible;
  --progress-bar-height: 0px;
  --progress-bar-color: transparent;
  --poster-color: transparent;
}

.macro-pad-hero .macro-pad-3d-wrap.is-hero-full .macro-pad-3d {
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: none;
  margin: 0;
}

.macro-pad-hero .macro-pad-3d-wrap:not(.is-hero-full) .macro-pad-3d {
  width: 108%;
  height: min(500px, 54vw);
  min-height: 420px;
  max-height: none;
  margin: 0;
}

.macro-pad-bg .macro-pad-3d {
  height: min(300px, 38vw);
  min-height: 220px;
  max-height: 320px;
}

.macro-pad-hero .macro-pad-3d-wrap,
.macro-pad-bg .macro-pad-3d-wrap {
  filter: none;
}

.macro-pad-3d-wrap.is-camera-tuning .macro-pad-3d {
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
}

.macro-pad-3d-wrap.is-camera-tuning .macro-pad-3d.is-dragging,
.macro-pad-3d-wrap.is-camera-tuning .macro-pad-3d:active {
  cursor: grabbing;
}

.macro-pad.is-camera-tuning,
.hero-model-bg.is-camera-tuning,
.hero-shapes.is-camera-tuning {
  pointer-events: auto;
  position: relative;
  z-index: 3;
}

.macro-pad.is-camera-tuning .macro-pad-3d-wrap {
  pointer-events: auto;
}

.macro-pad-3d-wrap.is-camera-tuning.macro-pad-hero,
.macro-pad-hero.is-camera-tuning {
  animation: none;
}

.macro-pad-camera-tune {
  position: relative;
  z-index: 5;
  margin-top: 4px;
  padding: 10px 12px 12px;
  border-radius: 12px;
  background: rgba(47, 42, 36, 0.94);
  border: 2px solid rgba(255, 250, 243, 0.35);
  color: #fffaf3;
  font-family: var(--font);
  font-size: 11px;
  line-height: 1.35;
  pointer-events: auto;
}

.macro-pad-camera-tune-hint {
  margin: 0 0 8px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  color: #ffb27a;
}

.macro-pad-camera-tune-note {
  margin: 8px 0 0;
  font-family: var(--font);
  font-size: 11px;
  opacity: 0.85;
}

.macro-pad-camera-tune-row { margin-bottom: 6px; }

.macro-pad-camera-tune-row label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.75;
  margin-bottom: 2px;
}

.macro-pad-camera-tune-row input {
  width: 100%;
  box-sizing: border-box;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 250, 243, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: #fffaf3;
  font: inherit;
}

.macro-pad-camera-tune .tune-copy {
  margin-top: 4px;
  width: 100%;
  font-family: var(--font);
  font-size: 12px;
  cursor: pointer;
}

/* ── Hero full-width 3D background ── */
.hero-model-bg {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}

.hero-model-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    var(--accent-deep) 0%,
    rgba(201, 84, 13, 0.72) 28%,
    rgba(201, 84, 13, 0.30) 44%,
    rgba(201, 84, 13, 0.05) 54%,
    transparent 64%
  );
}

.hero--home .hero-model-bg {
  background: transparent;
}

.hero--home .hero-model-bg::before {
  display: none;
}

.hero--home .hero-model-bg .macro-pad-hero {
  left: 32%;
  right: -10%;
  top: -4%;
}

.hero-lcp-pad {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 48%;
  width: auto;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: contain;
  object-position: center right;
  pointer-events: none;
  z-index: 1;
}

.hero-lcp-pad.is-replaced {
  visibility: hidden;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.hero-model-bg .macro-pad-hero {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 48%;
  width: auto;
  height: 100%;
  max-width: none;
  margin: 0;
  overflow: visible;
  animation: none;
  z-index: 2;
}

.hero-shapes {
  position: relative;
  width: 100%;
  max-width: 520px;
  min-height: 420px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  margin-left: -2rem;
}

.hero-shapes .macro-pad-hero {
  width: 100%;
  max-width: 520px;
  margin: 0;
  overflow: visible;
  animation: macroPadFloat 18s ease-in-out infinite;
}

.macro-pad-hero::before { display: none; }
.macro-pad-hero .macro-pad-svg,
.macro-pad-hero svg { filter: none; }
.macro-pad-bg svg { filter: none; }

.macro-pad-bg {
  position: fixed;
  left: 3%;
  bottom: 9%;
  width: min(220px, 26vw);
  z-index: 1;
  opacity: 0.4;
  animation: macroPadFloat 22s ease-in-out infinite;
}

@keyframes macroPadFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ── Theme icons (faint, monochrome texture) ── */
.theme-icon {
  position: absolute;
  width: 52px;
  height: 52px;
  opacity: 0.08;
  z-index: 0;
}

.theme-icon svg { width: 100%; height: 100%; display: block; }
.theme-icon-accent { color: var(--ink); }
.theme-icon-purple { color: var(--ink); opacity: 0.06; }

.theme-pos-2 { width: 30px; height: 52px; top: 28%; left: 9%; animation: drift2 24s ease-in-out infinite; }
.theme-pos-3 { width: 46px; height: 32px; top: 8%; right: 16%; animation: drift3 20s ease-in-out infinite; }
.theme-pos-4 { width: 44px; height: 40px; top: 56%; right: 6%; animation: drift4 23s ease-in-out infinite; }
.theme-pos-5 { width: 48px; height: 42px; bottom: 22%; left: 4%; animation: drift5 25s ease-in-out infinite; }
.theme-pos-6 { width: 40px; height: 40px; top: 40%; right: 20%; animation: drift6 21s ease-in-out infinite; transform: rotate(-10deg); }
.theme-pos-7 { width: 38px; height: 38px; bottom: 12%; right: 18%; animation: drift1 22s ease-in-out infinite reverse; }

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(12px, -18px) rotate(5deg); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-14px, 14px) rotate(-6deg); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(9px, 10px) rotate(3deg); }
  66% { transform: translate(-7px, -9px) rotate(-3deg); }
}
@keyframes drift4 {
  0%, 100% { transform: translate(0, 0) rotate(-5deg); }
  50% { transform: translate(-13px, -16px) rotate(3deg); }
}
@keyframes drift5 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(16px, -12px); }
}
@keyframes drift6 {
  0%, 100% { transform: translate(0, 0) rotate(-10deg); }
  50% { transform: translate(10px, 15px) rotate(3deg); }
}

.hero-theme-icon, .hero-shape { display: none; }

@keyframes spinSlow { to { transform: rotate(360deg); } }

@keyframes softPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.78; }
}

@keyframes heroIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.page-wrap {
  position: relative;
  z-index: 1;
  width: min(100%, var(--page-max-w));
  max-width: var(--page-max-w);
  margin-inline: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: max-width 0.35s ease;
  overflow-x: clip;
}

/* Page shell width — scales up with viewport */
@media (min-width: 576px) {
  :root { --page-max-w: min(calc(100vw - 2rem), 544px); }
}

@media (min-width: 768px) {
  :root { --page-max-w: min(calc(100vw - 2.5rem), 720px); }
}

@media (min-width: 1024px) {
  :root { --page-max-w: min(calc(100vw - 3rem), 960px); }
}

@media (min-width: 1200px) {
  :root { --page-max-w: min(calc(100vw - 3.5rem), 1120px); }
}

@media (min-width: 1280px) {
  :root { --page-max-w: min(calc(100vw - 4rem), 1160px); }
}

@media (min-width: 1440px) {
  :root { --page-max-w: min(calc(100vw - 4rem), 1280px); }
}

@media (min-width: 1600px) {
  :root { --page-max-w: min(calc(100vw - 4.5rem), 1320px); }
}

@media (min-width: 1920px) {
  :root {
    --page-max-w: min(calc(100vw - 5.5rem), 1440px);
    --max-w: 1200px;
    --section-y: clamp(5rem, 6vw, 8rem);
    --section-gap: clamp(2.75rem, 3.5vw, 4rem);
  }

  .container {
    width: min(100% - clamp(3.5rem, 5vw, 5rem), var(--max-w));
  }
}

/* 2K / QHD (2560×1440) and ultra-wide */
@media (min-width: 2560px) {
  :root {
    --page-max-w: min(calc(100vw - 7rem), 1560px);
    --max-w: 1360px;
    --max-w-narrow: 840px;
    --section-y: clamp(5.5rem, 5vw, 8.5rem);
    --section-gap: clamp(3rem, 3vw, 4.25rem);
  }

  .container {
    width: min(100% - clamp(4rem, 5vw, 5.5rem), var(--max-w));
  }
}

.container {
  width: min(100% - 4rem, var(--max-w));
  margin-inline: auto;
}

main { flex: 1; }

/* ── Header ── */
#site-header {
  min-height: var(--header-dark-h, 82px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg-card);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 24px rgba(47, 42, 36, 0.07);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: 2rem;
}

.logo {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: var(--ink);
  min-width: 0;
  flex-shrink: 0;
  padding: 0.35rem 0.5rem 0.35rem 0;
  border-radius: var(--radius);
  transition: background 0.2s ease;
}

.logo-mark-wrap {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: grid; place-items: center;
  background: #1a1612;
  border: 2px solid var(--outline);
  border-radius: 12px;
  box-shadow:
    0 0 0 2px var(--bg-card),
    0 3px 0 var(--outline),
    0 0 0 4px var(--accent-soft);
  overflow: hidden;
}

.logo-mark {
  width: 36px; height: 36px;
  object-fit: contain;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  line-height: 1.15;
}

.logo-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.logo-tagline {
  font-family: var(--font);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-deep);
  white-space: nowrap;
}

.logo:hover {
  background: var(--accent-soft);
}

.logo:hover .logo-mark-wrap {
  border-color: var(--accent-deep);
  box-shadow:
    0 0 0 2px var(--bg-card),
    0 4px 0 var(--outline),
    0 0 0 4px rgba(236, 106, 30, 0.35);
}

.logo:hover .logo-title {
  color: var(--accent-deep);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.5rem;
  vertical-align: middle;
}

.card code, .hero-sub code {
  background: var(--bg-card-deep);
  border: 1px solid var(--hairline);
  padding: 0.12rem 0.42rem;
  border-radius: 7px;
  font-size: 0.85em;
  font-weight: 700;
}

.nav-desktop { display: flex; gap: 0.15rem; }

.nav-desktop a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.9375rem; font-weight: 700;
  padding: 0.5rem 0.95rem; border-radius: var(--radius-pill);
  transition: color 0.2s, background 0.2s;
}

.nav-desktop a:hover {
  color: var(--ink);
  background: var(--bg-card-deep);
}

.nav-desktop a.active {
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.header-actions { display: flex; align-items: center; gap: 0.65rem; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg-card);
  border: var(--border-width) solid var(--outline);
  color: var(--ink);
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  box-shadow: var(--shadow-press-sm);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.menu-toggle:hover {
  background: var(--bg-card-deep);
  transform: translateY(-1px);
}

.menu-toggle__icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 18px;
  height: 14px;
}

.menu-toggle__icon span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, width 0.2s ease;
}

.menu-toggle.is-active .menu-toggle__icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active .menu-toggle__icon span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.menu-toggle.is-active .menu-toggle__icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer — slides in from right */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 240;
  background: rgba(26, 22, 18, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 250;
  display: flex;
  flex-direction: column;
  width: min(320px, 88vw);
  max-width: 100%;
  height: 100dvh;
  height: 100vh;
  padding: 0;
  background: var(--bg-card);
  border-left: 1px solid var(--hairline);
  box-shadow: -12px 0 40px rgba(47, 42, 36, 0.18);
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.38s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nav-mobile.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.nav-mobile__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--hairline);
}

.nav-mobile__title {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.nav-mobile__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: var(--border-width) solid var(--outline);
  border-radius: 12px;
  background: var(--bg-card-deep);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-mobile__close:hover {
  background: var(--accent-soft);
  transform: rotate(90deg);
}

.nav-mobile__links {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.5rem 0.75rem;
  gap: 0.15rem;
}

.nav-mobile__links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  opacity: 0;
  transform: translateX(1.25rem);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-mobile.open .nav-mobile__links a {
  animation: nav-drawer-item-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.nav-mobile.open .nav-mobile__links a:nth-child(1) { animation-delay: 0.06s; }
.nav-mobile.open .nav-mobile__links a:nth-child(2) { animation-delay: 0.1s; }
.nav-mobile.open .nav-mobile__links a:nth-child(3) { animation-delay: 0.14s; }
.nav-mobile.open .nav-mobile__links a:nth-child(4) { animation-delay: 0.18s; }
.nav-mobile.open .nav-mobile__links a:nth-child(5) { animation-delay: 0.22s; }
.nav-mobile.open .nav-mobile__links a:nth-child(6) { animation-delay: 0.26s; }
.nav-mobile.open .nav-mobile__links a:nth-child(7) { animation-delay: 0.3s; }

@keyframes nav-drawer-item-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.nav-mobile__links a:hover,
.nav-mobile__links a.active {
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.nav-mobile__foot {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex-shrink: 0;
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid var(--hairline);
  opacity: 0;
  transform: translateX(1rem);
  transition: opacity 0.35s ease 0.12s, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) 0.12s;
}

.nav-mobile.open .nav-mobile__foot {
  opacity: 1;
  transform: translateX(0);
}

.nav-mobile__cta {
  width: 100%;
  justify-content: center;
}

.nav-mobile__discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.625rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-mobile__discord:hover {
  color: var(--accent-deep);
}

body.nav-open {
  position: fixed;
  width: 100%;
  top: var(--scroll-lock-y, 0);
  overflow: hidden;
  touch-action: none;
}

@media (prefers-reduced-motion: reduce) {
  .nav-mobile,
  .nav-overlay,
  .menu-toggle__icon span,
  .nav-mobile__links a,
  .nav-mobile__foot {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }

  .nav-mobile.open .nav-mobile__links a,
  .nav-mobile.open .nav-mobile__foot {
    opacity: 1;
    transform: none;
  }
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.4rem; border-radius: var(--radius-pill);
  font-family: var(--font); font-weight: 700; font-size: 0.9375rem;
  text-decoration: none;
  border: var(--border-width) solid var(--outline);
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.2s;
  box-shadow: var(--shadow-press);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--outline);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-press-sm);
}

.btn-primary { background: var(--accent); color: var(--color-light); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary { background: var(--bg-card); color: var(--ink); }
.btn-secondary:hover { background: var(--bg-card-deep); }

.btn-sm { padding: 0.45rem 1rem; font-size: 0.875rem; box-shadow: var(--shadow-press-sm); }
.btn-sm:hover { box-shadow: var(--shadow-press); }
.btn-lg { padding: 0.85rem 1.7rem; font-size: 1rem; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-on-dark, #f4efe7);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.34);
}

.btn-ghost-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(236, 106, 30, 0.55) 0%, rgba(236, 106, 30, 0.35) 100%);
  color: var(--color-light);
  border: 1px solid rgba(236, 106, 30, 0.65);
  box-shadow: 0 0 24px rgba(236, 106, 30, 0.22);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn-ghost-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 32px rgba(236, 106, 30, 0.35);
}

/* ── Hero (contained warm band) ── */
.hero {
  position: relative;
  padding: 6.5rem 0 calc(5rem + var(--stats-overlap));
  overflow: hidden;
  min-height: clamp(500px, 68vh, 720px);
  background:
    radial-gradient(120% 120% at 12% 0%, #f6803a 0%, var(--accent) 38%, var(--accent-deep) 100%);
  border-bottom: var(--border-width) solid var(--outline);
}

/* Hero section-next — critical layout (full theme in home-editorial.css) */
.section-next-footer {
  display: flex;
  justify-content: center;
}

.page-home .hero--home .section-next-footer {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: clamp(1.25rem, 2.5vw, 2rem);
}

.section-next-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.5rem;
  border: none;
  background: none;
  text-decoration: none;
  font-family: var(--font-header);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-next-footer--hero .section-next-btn {
  color: rgba(29, 29, 31, 0.5);
}

.section-next-footer--hero .section-next-btn:hover {
  color: var(--color-dark);
}

/* Homepage hero — standalone section */
.page-home .hero--home {
  position: relative;
  margin: 0 var(--card-inset, 30px) var(--panel-gap);
  border-radius: 30px;
  background: var(--home-hero-bg);
  border-bottom: none;
  min-height: clamp(480px, 62vh, 680px);
  overflow: hidden;
  padding: 0;
}

.page-home .hero--home .hero-layout {
  padding:
    clamp(2.75rem, 5vw, 4.5rem)
    var(--card-inset, 30px)
    clamp(2rem, 3vw, 2.75rem)
    clamp(2.75rem, 6vw, 4.75rem);
}


.page-home .hero--home h1 {
  color: var(--color-dark);
  text-shadow: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: clamp(0.35rem, 1.2vw, 0.65rem);
  row-gap: 0.08em;
  align-items: center;
  font-size: clamp(2.75rem, 5.8vw, 4.5rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 0;
  max-width: none;
}

.page-home .hero--home h1 > .hero-heading-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: center;
  width: calc((0.58 * 0.98 + 0.08 + 1.08 * 0.98) * 1em);
  height: calc((0.58 * 0.98 + 0.08 + 1.08 * 0.98) * 1em);
  vertical-align: unset;
}

.page-home .hero--home h1 > .hero-headline-primary {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
  align-self: center;
}

.page-home .hero--home h1 > .hero-headline-line--tail {
  grid-column: 1 / -1;
  grid-row: 3;
  align-self: start;
  white-space: nowrap;
}

.page-home .hero--home {
  --hero-inner-max: min(780px, 100%);
}

.page-home .hero--home .hero-inner {
  position: relative;
  max-width: var(--hero-inner-max);
  padding-top: clamp(0.35rem, 1.2vw, 0.85rem);
}

/* Scattered RSH watermark — irregular tiles + offset layers (fades right → left) */
.page-home .hero--home::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background-image:
    url('../assets/images/hero-rsh-pattern-a.svg'),
    url('../assets/images/hero-rsh-pattern-b.svg'),
    url('../assets/images/hero-rsh-pattern-a.svg');
  background-repeat: repeat, repeat, repeat;
  background-size:
    clamp(14rem, 28vw, 21rem) clamp(10.5rem, 21vw, 16rem),
    clamp(11.5rem, 23vw, 17.5rem) clamp(8.75rem, 17vw, 13.25rem),
    clamp(9.5rem, 19vw, 14rem) clamp(7rem, 14vw, 10.5rem);
  background-position:
    0 0,
    clamp(3.5rem, 9vw, 6.5rem) clamp(2.25rem, 6vw, 4.25rem),
    clamp(-2rem, -5vw, -3.5rem) clamp(4.5rem, 11vw, 7rem);
  mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.44) 0%,
    rgba(0, 0, 0, 0.26) 28%,
    rgba(0, 0, 0, 0.12) 52%,
    rgba(0, 0, 0, 0.04) 72%,
    rgba(0, 0, 0, 0) 88%
  );
  -webkit-mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.44) 0%,
    rgba(0, 0, 0, 0.26) 28%,
    rgba(0, 0, 0, 0.12) 52%,
    rgba(0, 0, 0, 0.04) 72%,
    rgba(0, 0, 0, 0) 88%
  );
  filter: blur(0.35px);
  pointer-events: none;
  user-select: none;
}

.page-home .hero--home .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 clamp(0.85rem, 2vw, 1.15rem);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a7d74;
}

.page-home .hero--home .hero-kicker::before {
  content: '';
  width: 1.35rem;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.page-home .hero--home .hero-headline-line {
  display: block;
}

.page-home .hero--home .hero-headline-top {
  display: block;
}

.page-home .hero--home .hero-headline-line--lead {
  position: relative;
  display: inline-block;
  padding-right: clamp(3.65rem, 10vw, 5.35rem);
  font-size: 0.58em;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #8a8480;
  white-space: nowrap;
}

.page-home .hero--home .hero-headline-line--mark {
  font-size: 1.08em;
  font-weight: 700;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.page-home .hero--home .hero-headline-line--tail {
  font-size: 0.92em;
  font-weight: 600;
  padding-left: 0;
}

.page-home .hero--home .hero-headline-line--247 {
  position: absolute;
  left: 100%;
  top: -0.22em;
  margin: 0 0 0 clamp(0.2rem, 0.65vw, 0.45rem);
  padding: 0;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

.page-home .hero--home .hero-247 {
  display: inline-flex;
  align-items: center;
  gap: 0.04em;
  padding: 0.13em 0.38em 0.11em;
  font-size: clamp(1.2rem, 2.45vw, 1.9rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  color: var(--text-on-accent);
  background: linear-gradient(165deg, var(--accent-hover) 0%, var(--accent) 48%, var(--accent-deep) 100%);
  border: 2px solid var(--accent-deep);
  border-radius: 0.14em;
  box-shadow:
    0.06em 0.09em 0 var(--accent-deep),
    0 0 0 0.18em var(--accent-ring);
  transform: rotate(-8deg);
  transform-origin: left bottom;
  pointer-events: auto;
}

.page-home .hero--home .hero-247__slash {
  font-size: 0.62em;
  font-weight: 500;
  opacity: 0.9;
  transform: rotate(14deg) translateY(-0.04em);
  margin-inline: 0.06em;
}

.page-home .hero--home .hero-247__num:last-child {
  letter-spacing: -0.08em;
}

.page-home .hero--home .hero-followup {
  margin-top: clamp(1.35rem, 2.8vw, 1.85rem);
  padding:
    clamp(1rem, 2.2vw, 1.35rem)
    0
    clamp(1rem, 2.2vw, 1.35rem)
    clamp(1.15rem, 3vw, 1.75rem);
  border-left: 1px solid rgba(29, 29, 31, 0.1);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.page-home .hero--home .hero-followup .hero-rule {
  background: linear-gradient(
    90deg,
    rgba(236, 106, 30, 0.55) 0%,
    rgba(29, 29, 31, 0.12) 72%,
    transparent 100%
  );
  height: 2px;
}

.page-home .hero--home .hero-cta-link {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.page-home .hero--home .hero-cta-link__icon {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(236, 106, 30, 0.14);
}

.hero-heading-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.hero-heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(3.5rem, 7vw, 5rem);
  height: clamp(3.5rem, 7vw, 5rem);
  vertical-align: -0.1em;
  flex-shrink: 0;
}

.hero-heading-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-followup {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.hero-followup .hero-rule {
  width: 100%;
  margin: clamp(1.25rem, 2.5vw, 1.85rem) 0;
}

.page-home .hero--home .hero-followup .hero-sub {
  max-width: none;
  width: 100%;
}

.hero-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  font-weight: 500;
  color: var(--color-dark);
  text-decoration: none;
  transition: opacity 0.2s;
}

.hero-cta-link:hover {
  opacity: 0.72;
}

.hero-cta-link__icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-dark);
  color: #fff;
  flex-shrink: 0;
}

.hero-rule {
  height: 1px;
  background: rgba(29, 29, 31, 0.12);
}

.page-home .hero--home .hero-sub {
  color: #6b6560;
  font-size: clamp(1rem, 1.45vw, 1.125rem);
  line-height: 1.65;
  font-weight: 400;
  margin-bottom: 0;
}

.hero-layout {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  min-height: clamp(320px, 42vh, 460px);
  overflow: visible;
}

.hero-content {
  position: relative;
  z-index: 4;
  min-width: 0;
}

.hero-inner {
  position: relative;
  z-index: 4;
  max-width: min(640px, 100%);
  min-width: 0;
}

.hero-visual {
  position: relative;
  z-index: 2;
  min-height: clamp(300px, 44vh, 520px);
  display: block;
  pointer-events: none;
}

.hero-visual-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.hero-visual-glow {
  position: absolute;
  inset: 10% 5% 15% 15%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(236, 106, 30, 0.22) 0%,
    rgba(236, 106, 30, 0.06) 45%,
    transparent 70%
  );
  filter: blur(2px);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  list-style: none;
  margin-top: 1.75rem;
  padding: 0;
}


.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.hero-trust-icon {
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: rgba(46, 166, 106, 0.14);
  color: var(--success);
  font-size: 0.65rem;
  line-height: 1;
}

@keyframes heroKickerIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes heroLineIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes heroBlockIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.page-home .hero--home .hero-inner.hero-enter > * {
  animation: none;
}

.page-home .hero--home .hero-enter .hero-kicker {
  animation: heroKickerIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-home .hero--home .hero-enter .hero-headline-line {
  animation: heroLineIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-home .hero--home .hero-enter .hero-heading-icon {
  animation: heroLineIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-home .hero--home .hero-enter .hero-headline-line--lead { animation-delay: 0.06s; }
.page-home .hero--home .hero-enter .hero-headline-line--mark { animation-delay: 0.14s; }
.page-home .hero--home .hero-enter .hero-headline-line--tail { animation-delay: 0.22s; }
.page-home .hero--home .hero-enter .hero-headline-line--247 { animation-delay: 0.3s; }
.page-home .hero--home .hero-enter .hero-247 {
  animation: hero-247-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

@keyframes hero-247-pop {
  from { opacity: 0; }
  to { opacity: 1; }
}

.page-home .hero--home .hero-enter .hero-followup {
  animation: heroBlockIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both 0.32s;
}

.page-home .hero--home .hero-enter .hero-followup > * {
  animation: heroIn 0.55s ease both;
}

.page-home .hero--home .hero-enter .hero-followup > *:nth-child(1) { animation-delay: 0.42s; }
.page-home .hero--home .hero-enter .hero-followup > *:nth-child(2) { animation-delay: 0.5s; }
.page-home .hero--home .hero-enter .hero-followup > *:nth-child(3) { animation-delay: 0.58s; }

/* ── Homepage editorial layout (see home-editorial.css) ── */

.hero-cta-link--sm {
  font-size: 0.9375rem;
  gap: 0.7rem;
}

.hero-cta-link--sm .hero-cta-link__icon {
  width: 1.75rem;
  height: 1.75rem;
}

.page-home .home-editorial .hero-cta-link__icon {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(236, 106, 30, 0.14);
  color: #fff;
}

.hero-inner > * { animation: heroIn 0.6s ease both; opacity: 1; }
.hero-inner > *:nth-child(1) { animation-delay: 0.04s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.1s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.16s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.22s; }

.hero-enter > * { animation: heroIn 0.6s ease both; }
.hero-enter > *:nth-child(1) { animation-delay: 0.04s; }
.hero-enter > *:nth-child(2) { animation-delay: 0.1s; }
.hero-enter > *:nth-child(3) { animation-delay: 0.16s; }
.hero-enter > *:nth-child(4) { animation-delay: 0.22s; }

.hero-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 600; color: var(--accent-deep);
  background: #fffaf3;
  border: var(--border-width) solid var(--outline);
  padding: 0.4rem 0.95rem; border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-press-sm);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.hero-label::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(46, 166, 106, 0.25);
  animation: softPulse 2.4s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  font-weight: 700; line-height: 1.08;
  margin-bottom: 1.35rem;
  color: #fffaf3;
  text-shadow: 0 1px 0 rgba(47, 42, 36, 0.18);
}

.hero-sub {
  font-size: 1.125rem; color: var(--text-on-accent-muted);
  line-height: 1.7; margin-bottom: 2.1rem;
  font-weight: 500;
  max-width: 33em;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero .btn-secondary { background: #f4efe7; color: #1d1d1f; }

/* ── Hero HUD ── */
.hero-hud {
  margin-bottom: 1.6rem;
  padding: 0.8rem 1rem 0.7rem;
  background: rgba(47, 42, 36, 0.18);
  border: var(--border-width) solid rgba(47, 42, 36, 0.28);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
  max-width: 330px;
}

.hero-hud-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-accent);
}

.hud-value {
  color: #ffe2a6;
  text-shadow: 0 1px 0 rgba(47, 42, 36, 0.35);
}

.hud-bar {
  height: 10px;
  background: rgba(47, 42, 36, 0.3);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.hud-fill {
  display: block;
  height: 100%;
  width: var(--fill, 78%);
  background: linear-gradient(90deg, #ffd27a, #ffe9bd);
  border-radius: inherit;
}

/* ── Stats (elevated panel overlapping hero) ── */
.section-stats {
  margin-top: calc(-1 * var(--stats-overlap));
  padding-top: 0;
  padding-bottom: 0;
  position: relative;
  z-index: 4;
}

.section-stats + .section-block {
  padding-top: calc(var(--section-y) - var(--stats-overlap) + 1.5rem);
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--bg-card);
  border: var(--border-width) solid var(--outline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-hover);
  overflow: hidden;
}

.stats-panel .stat {
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 1.75rem 1.5rem;
  border-top: 4px solid var(--accent);
}

.stats-panel .stat + .stat {
  border-left: 1px solid var(--hairline);
}

.stats-panel .stat[data-stat="tasks"] { border-top-color: var(--game-gold); }
.stats-panel .stat[data-stat="accounts"] { border-top-color: var(--game-gem); }
.stats-panel .stat[data-stat="queue"] { border-top-color: var(--game-food); }
.stats-panel .stat[data-stat="online"] { border-top-color: var(--tier-standard); }

/* Legacy standalone stats row (inner pages) */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
  padding: var(--section-y-sm) 0;
}

.stat {
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-top: 4px solid var(--accent);
}

.stat[data-stat="tasks"] { border-top-color: var(--game-gold); }
.stat[data-stat="accounts"] { border-top-color: var(--game-gem); }
.stat[data-stat="queue"] { border-top-color: var(--game-food); }
.stat[data-stat="online"] { border-top-color: var(--tier-standard); }

.stat-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 0.6rem;
  color: var(--accent);
}

.stat-icon svg { width: 100%; height: 100%; display: block; }

.stat[data-stat="tasks"] .stat-icon { color: var(--game-gold); }
.stat[data-stat="accounts"] .stat-icon { color: var(--game-gem); }
.stat[data-stat="queue"] .stat-icon { color: var(--game-food); }
.stat[data-stat="online"] .stat-icon { color: var(--tier-standard); }

.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }

.stat-value {
  font-size: 1.9rem; font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--ink);
}

.stat-label {
  font-size: 0.875rem; color: var(--text-muted);
  font-weight: 600;
}

/* ── Section system ── */
.section-block {
  padding-block: var(--section-y);
  position: relative;
  background: var(--color-dark);
}

.section-block.is-tight {
  padding-block: var(--section-y-sm);
}

.section-block.is-band {
  background: var(--color-dark);
  border-block: 1px solid var(--hairline);
}

.section-block.is-band::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 18%, transparent 82%, rgba(0, 0, 0, 0.2) 100%);
}

.section-block.is-band > .container {
  position: relative;
  z-index: 1;
}

.section-block + .section-block:not(.is-band):not(.section-stats) {
  padding-top: 0;
}

.section-block.is-band + .section-block:not(.is-band) {
  padding-top: var(--section-y);
}

/* ── Homepage: cutout flow panels ── */
.page-wrap:has(.page-home) {
  --page-max-w: calc(100vw - clamp(1rem, 4vw, 2rem));
  --bg-canvas: var(--color-dark);
  --text-on-dark: #f4efe7;
  --text-on-dark-muted: #b8a99a;
  --radius-mega: clamp(40px, 8vw, 88px);
  --panel-gap: clamp(16px, 3vw, 32px);
  --card-inset: 30px;
  --panel-inset: var(--card-inset);
  --scoop-overlap: clamp(10px, 1.8vw, 18px);
  --curve-r: clamp(22px, 3.5vw, 32px);
}

@media (min-width: 576px) {
  .page-wrap:has(.page-home) { --page-max-w: min(calc(100vw - 1.75rem), 560px); }
}

@media (min-width: 768px) {
  .page-wrap:has(.page-home) { --page-max-w: min(calc(100vw - 2rem), 768px); }
}

@media (min-width: 1024px) {
  .page-wrap:has(.page-home) { --page-max-w: min(calc(100vw - 2.5rem), 1040px); }
}

@media (min-width: 1200px) {
  .page-wrap:has(.page-home) { --page-max-w: min(calc(100vw - 3rem), 1200px); }
}

@media (min-width: 1280px) {
  .page-wrap:has(.page-home) { --page-max-w: min(calc(100vw - 3rem), 1240px); }
}

@media (min-width: 1440px) {
  .page-wrap:has(.page-home) { --page-max-w: min(calc(100vw - 3.5rem), 1400px); }
}

@media (min-width: 1600px) {
  .page-wrap:has(.page-home) { --page-max-w: min(calc(100vw - 4rem), 1480px); }
}

@media (min-width: 1920px) {
  .page-wrap:has(.page-home) {
    --page-max-w: min(calc(100vw - 5rem), 1620px);
    --card-inset: clamp(32px, 2vw, 44px);
    --panel-inset: var(--card-inset);
    --header-dark-h: 86px;
  }
}

@media (min-width: 2560px) {
  .page-wrap:has(.page-home) {
    --page-max-w: min(calc(100vw - 6rem), 1760px);
    --card-inset: clamp(36px, 1.8vw, 52px);
    --panel-inset: var(--card-inset);
    --panel-gap: clamp(20px, 1.6vw, 40px);
    --header-dark-h: 88px;
    --radius-mega: clamp(48px, 4vw, 96px);
    --scoop-overlap: clamp(12px, 1.2vw, 22px);
  }
}

.page-home {
  --home-hero-bg: #f7f5f4;
  background: transparent;
  overflow-x: clip;
}

.page-wrap:has(.page-home) {
  --home-hero-bg: #f7f5f4;
}

html:has(.page-home) {
  scroll-padding-top: calc(
    var(--header-dark-h, 82px) + var(--card-inset, 30px) + 1.25rem
  );
}

html[data-theme="light"] .page-wrap:has(.page-home) {
  --bg-canvas: #eceae8;
  --text-on-dark: #1d1d1f;
  --text-on-dark-muted: #6b6560;
  --bg-card: #ffffff;
  --bg-card-deep: #f7f5f4;
  --ink: #1d1d1f;
  --outline: rgba(29, 29, 31, 0.12);
  --hairline: rgba(29, 29, 31, 0.08);
  --text-muted: #6b6560;
}

html[data-theme="light"] body:has(.page-home)::after {
  opacity: 0.35;
}

html[data-theme="light"] body:has(.page-home) .flat-shapes {
  opacity: 0.04;
}

html[data-theme="light"] .page-home {
  --home-ink: #1d1d1f;
  --home-ink-muted: #6b6560;
  --home-ink-kicker: #8a7d74;
  --home-tag-bg: #f4efe7;
  --home-tag-ink: #1d1d1f;
  --home-outline: rgba(29, 29, 31, 0.12);
  --home-hairline: rgba(29, 29, 31, 0.08);
  --home-tile-fill: #121214;
  --home-tile-fill-hover: #161618;
  --home-tile-border: rgba(255, 255, 255, 0.16);
  --home-tile-border-hover: rgba(255, 255, 255, 0.3);
  --home-ghost-stroke: rgba(29, 29, 31, 0.2);
  --home-accent-wash: rgba(236, 106, 30, 0.05);
  --home-violet-wash: rgba(85, 102, 224, 0.04);
}

html[data-theme="light"] .page-home .home-chapter {
  border-top-color: rgba(29, 29, 31, 0.08);
}

html[data-theme="light"] .page-home .home-editorial .pricing-card:not(.home-pricing-ticket),
html[data-theme="light"] .page-home .home-editorial .home-pricing-ticket__frame {
  background: #141416;
  border-color: rgba(255, 255, 255, 0.18);
  color: #f4efe7;
}

html[data-theme="light"] .page-home .home-editorial .home-pricing-ticket.pricing-card {
  background: none;
  border: none;
}

html[data-theme="light"] .page-home .home-editorial .home-pricing-ticket__tab {
  background: #141416;
  border-color: rgba(255, 255, 255, 0.18);
}

html[data-theme="light"] .page-home .home-editorial .home-pricing-ticket__tab::after {
  background: #141416;
  border-color: rgba(255, 255, 255, 0.18);
}

html[data-theme="light"] .page-home .home-editorial .home-pricing-ticket__stub {
  background: rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] .page-home .home-editorial .home-pricing-ticket__punch {
  background: #eceae8;
  box-shadow: inset 0 0 0 1px rgba(29, 29, 31, 0.12);
}

html[data-theme="light"] .page-wrap:has(.page-home) .site-footer {
  border-top-color: rgba(29, 29, 31, 0.08);
}

html[data-theme="light"] .page-wrap:has(.page-home) .site-footer .footer-col h4 {
  color: rgba(29, 29, 31, 0.45);
}

.page-wrap:has(.page-home) .site-footer {
  background: var(--bg-canvas);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
}

.page-wrap:has(.page-home) .site-footer .logo-title { color: var(--text-on-dark); }
.page-wrap:has(.page-home) .site-footer .footer-brand p,
.page-wrap:has(.page-home) .site-footer .footer-col a,
.page-wrap:has(.page-home) .site-footer .disclaimer,
.page-wrap:has(.page-home) .site-footer .footer-bottom { color: var(--text-on-dark-muted); }
.page-wrap:has(.page-home) .site-footer .footer-col h4 { color: rgba(255, 255, 255, 0.45); }
.page-wrap:has(.page-home) .site-footer .footer-col a:hover { color: var(--accent-hover); }
.page-wrap:has(.page-home) .site-footer .footer-bottom { border-top-color: rgba(255, 255, 255, 0.08); }

.flow-panel {
  position: relative;
  margin-inline: var(--panel-inset);
  margin-bottom: var(--panel-gap);
}

.flow-panel:last-child { margin-bottom: 0; }

.flow-panel--light {
  background: var(--color-dark);
  border-radius: var(--radius-mega);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.07);
  overflow: hidden;
  color: var(--text-on-dark);
}

/* Hero banner card */
.home-after-hero {
  position: relative;
  z-index: 1;
}

/* ── Homepage header — cutout tab layout ── */
.site-header--home {
  position: relative;
  z-index: 200;
  height: auto;
  margin-top: var(--card-inset, 30px);
  background: var(--color-dark);
  border-bottom: none;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

.header-hub {
  background: var(--color-dark);
  overflow: visible;
}

.header-hub__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0;
  width: auto;
  min-height: var(--header-dark-h);
  margin-inline: var(--card-inset, 30px);
}

.header-hub__brand-wrap {
  position: relative;
  align-self: start;
  flex-shrink: 0;
  z-index: 3;
  background: #f4efe7;
}

.header-hub__brand {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--header-dark-h);
  padding: 0 clamp(1rem, 2.4vw, 2rem);
  background: var(--color-dark);
  border-bottom-right-radius: 30px;
  overflow: visible;
}

.header-hub__menu {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  align-self: start;
  min-height: var(--header-dark-h);
  padding: 0 clamp(1rem, 2.5vw, 2rem);
  background: var(--home-hero-bg, #f7f5f4);
  border-radius: 30px 30px 0 0;
  z-index: 2;
}

.header-hub__menu-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.05rem;
  padding: 0.28rem 0.4rem;
  border: 1px solid var(--color-dark);
  border-radius: var(--radius-pill);
  background: var(--home-hero-bg, #f7f5f4);
}

.header-hub__menu-pill a {
  color: var(--color-dark);
  font-family: var(--font-header);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.header-hub__menu-pill a:hover {
  color: var(--color-dark);
  background: rgba(0, 0, 0, 0.04);
}

.header-hub__menu-pill a.active {
  color: var(--color-dark);
  background: rgba(0, 0, 0, 0.05);
}

.header-hub__lang.lang-dropdown {
  position: relative;
  display: inline-flex;
  z-index: 12;
}

.header-hub__actions .lang-dropdown {
  margin-left: 0;
}

.lang-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.65rem 0.38rem 0.5rem;
  border: 1px solid rgba(29, 29, 31, 0.12);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.55);
  color: var(--color-dark);
  font-family: var(--font-header);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.lang-dropdown--header-cta .lang-dropdown__trigger {
  gap: 0.62rem;
  padding: 0.34rem 0.85rem 0.34rem 0.34rem;
  font-size: 0.875rem;
  background: #f4efe7;
  color: #1d1d1f;
  min-height: calc(26px + 0.68rem);
}

.lang-dropdown--header-cta .lang-dropdown__trigger:hover {
  border-color: rgba(29, 29, 31, 0.2);
  background: #fffaf3;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.lang-dropdown--header-cta.is-open .lang-dropdown__trigger {
  border-color: rgba(29, 29, 31, 0.2);
  background: #fffaf3;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.lang-dropdown__trigger:hover {
  border-color: rgba(29, 29, 31, 0.2);
  background: #fffaf6;
}

.lang-dropdown.is-open .lang-dropdown__trigger {
  border-color: rgba(29, 29, 31, 0.22);
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.lang-dropdown--header-cta.is-open .lang-dropdown__trigger {
  background: #fffaf3;
}

.lang-dropdown__trigger-icon,
.lang-dropdown__option-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.lang-dropdown--header-cta .lang-dropdown__trigger-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  overflow: hidden;
}

.lang-dropdown--header-cta .lang-dropdown__trigger-icon .lang-dropdown__flag-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: none;
}

.lang-dropdown__flag-img {
  display: block;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(29, 29, 31, 0.12);
}

.lang-dropdown__trigger-label {
  max-width: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-dropdown__chev {
  display: inline-flex;
  opacity: 0.65;
  transition: transform 0.2s ease;
}

.lang-dropdown.is-open .lang-dropdown__chev {
  transform: rotate(180deg);
}

.lang-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 10.5rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border: 1px solid rgba(29, 29, 31, 0.1);
  border-radius: 14px;
  background: #fffaf6;
  box-shadow: 0 12px 32px rgba(29, 29, 31, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  pointer-events: none;
}

.lang-dropdown.is-open .lang-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-dropdown__item {
  margin: 0;
}

.lang-dropdown__option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  color: #1d1d1f;
  font-family: var(--font-header);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}

.lang-dropdown__option:hover {
  background: rgba(0, 0, 0, 0.05);
}

.lang-dropdown__option.is-active {
  background: rgba(236, 106, 30, 0.1);
  color: var(--color-dark);
}

.lang-dropdown__option-text {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .lang-dropdown--header-cta .lang-dropdown__trigger-label {
    display: none;
  }

  .lang-dropdown--header-cta .lang-dropdown__trigger {
    padding: 0.34rem 0.5rem 0.34rem 0.34rem;
    gap: 0.35rem;
    min-height: calc(26px + 0.68rem);
  }
}

.header-hub__actions-wrap {
  position: relative;
  align-self: start;
  flex-shrink: 0;
  z-index: 3;
  background: #f4efe7;
}

.header-hub__actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  height: var(--header-dark-h);
  padding: 0 clamp(1rem, 2.4vw, 2rem);
  background: var(--color-dark);
  border-bottom-left-radius: 30px;
  overflow: visible;
}

.logo--hub {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0;
  border-radius: 0;
  text-decoration: none;
  color: inherit;
}

.logo--hub:hover {
  background: transparent;
  opacity: 0.94;
}

.logo-hub-icon {
  width: 44px;
  height: 44px;
  display: block;
  flex-shrink: 0;
  overflow: hidden;
}

.logo-hub-icon__img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}

.logo-hub-wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  line-height: 1.05;
  min-width: 0;
}

.logo-hub-line {
  font-family: var(--font-header);
  text-transform: uppercase;
  white-space: nowrap;
}

.logo-hub-line--lead {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.58);
}

.logo-hub-line--tail {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-light);
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.02rem;
  padding: 0.2rem 0.28rem;
  border-radius: var(--radius-pill);
}

.nav-pill--outline {
  border: 1px solid rgba(0, 0, 0, 0.11);
  background: var(--color-light);
}

.nav-pill--outline a {
  color: #333;
  font-family: var(--font-header);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.52rem 1.05rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nav-pill--outline a:hover {
  color: var(--color-dark);
  background: rgba(0, 0, 0, 0.04);
}

.nav-pill--outline a.active {
  color: var(--color-dark);
  background: rgba(0, 0, 0, 0.05);
}

.btn-header-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid rgba(29, 29, 31, 0.12);
  border-radius: var(--radius-pill);
  color: #1d1d1f;
  font-family: var(--font-header);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  background: #f4efe7;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn-header-outline__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  flex-shrink: 0;
}

.btn-header-outline__discord {
  display: block;
  color: #5865f2;
}

.btn-header-outline:hover {
  border-color: rgba(29, 29, 31, 0.2);
  color: #1d1d1f;
  background: #fffaf3;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  padding: 0.34rem 1rem 0.34rem 0.34rem;
  border: 1px solid rgba(29, 29, 31, 0.12);
  border-radius: var(--radius-pill);
  color: #1d1d1f;
  font-family: var(--font-header);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  background: #f4efe7;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn-header-cta__icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--color-light);
  flex-shrink: 0;
}

.btn-header-cta:hover {
  border-color: rgba(29, 29, 31, 0.2);
  background: #fffaf3;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.menu-toggle--home {
  display: none;
  background: #f4efe7;
  border: 1px solid rgba(29, 29, 31, 0.12);
  color: #1d1d1f;
  box-shadow: none;
}

.menu-toggle--home:hover {
  background: #fffaf3;
  border-color: rgba(29, 29, 31, 0.2);
}

.site-header--home {
  position: relative;
}

.site-header--home .nav-mobile {
  background: var(--header-dark);
  border-left-color: rgba(255, 255, 255, 0.1);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.45);
}

.site-header--home .nav-mobile__head {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.site-header--home .nav-mobile__title {
  color: rgba(255, 255, 255, 0.5);
}

.site-header--home .nav-mobile__close {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-light);
}

.site-header--home .nav-mobile__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.site-header--home .nav-mobile__links a {
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-header);
}

.site-header--home .nav-mobile__links a:hover,
.site-header--home .nav-mobile__links a.active {
  color: var(--color-light);
  background: rgba(255, 255, 255, 0.08);
}

.site-header--home .nav-mobile__foot {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.site-header--home .nav-mobile__discord {
  color: rgba(255, 255, 255, 0.62);
}

.site-header--home .nav-mobile__discord:hover {
  color: var(--color-light);
}

.site-header--home .nav-overlay {
  background: rgba(0, 0, 0, 0.55);
}

.site-header--home.is-scrolled {
  --header-dark-h: 72px;
}

.site-header--home.is-scrolled .header-hub__menu {
  border-radius: 30px 30px 0 0;
}

@media (max-width: 1100px) {
  .header-hub__menu-pill a {
    padding: 0.46rem 0.75rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 960px) {
  .header-hub__actions .btn-header-outline {
    display: none;
  }
}

@media (max-width: 768px) {
  .site-header--home {
    --header-dark-h: 64px;
    margin-top: var(--card-inset, 16px);
    border-bottom: none;
    box-shadow: none;
  }

  .header-hub__row {
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: var(--header-dark-h);
    margin-inline: var(--card-inset, 16px);
    transition: min-height 0.3s ease;
  }

  .header-hub__brand,
  .header-hub__actions {
    height: var(--header-dark-h);
    padding-inline: clamp(0.75rem, 3vw, 1.25rem);
    transition: height 0.3s ease, border-radius 0.3s ease;
  }

  .header-hub__brand {
    border-bottom-right-radius: 22px;
  }

  .header-hub__actions {
    border-bottom-left-radius: 22px;
    gap: 0.4rem;
  }


  .logo-hub-line--tail {
    font-size: 0.9375rem;
  }

  .header-hub__menu {
    display: none;
  }

  .header-hub__actions .menu-toggle--home {
    display: grid;
    place-items: center;
  }
}

.flow-panel + .flow-panel--light {
  margin-top: calc(var(--scoop-overlap) * -1);
}

.flow-panel--dark {
  background: var(--color-dark);
  border-radius: var(--radius-mega);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
  color: var(--text-on-dark);
  overflow: hidden;
}

.flow-panel + .flow-panel--dark {
  margin-top: calc(var(--scoop-overlap) * -1);
}

.page-home .flow-panel .section-block {
  padding-block: calc(var(--section-y) * 0.88);
  background: var(--color-dark);
  border: none;
}

.page-home .flow-panel .section-block.is-band {
  background: var(--color-dark);
  border: none;
}

.page-home .flow-panel .section-block.is-band::before { display: none; }

.page-home .flow-panel .section-block + .section-block {
  padding-top: 0;
}

.page-home .flow-panel .section-block + .section-block::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--max-w), calc(100% - 4rem));
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 15%,
    rgba(236, 106, 30, 0.35) 50%,
    rgba(255, 255, 255, 0.1) 85%,
    transparent 100%
  );
  pointer-events: none;
}

.page-home .home-panel.flow-panel:first-of-type {
  margin-top: 0;
}

/* Task category showcase */
.task-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.task-showcase__group {
  background: var(--bg-card);
  border: var(--border-width) solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.task-showcase__group:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.task-showcase__head {
  margin-bottom: 1rem;
}

.task-showcase__head h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 0.55rem;
}

.flow-panel--light .task-showcase__head h3,
.flow-panel--dark .task-showcase__head h3 {
  color: var(--text-on-dark);
}

.task-showcase__badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-pill);
}

.task-showcase__badge--daily { background: rgba(224, 160, 32, 0.16); color: #9a6a08; }
.task-showcase__badge--city { background: rgba(85, 102, 224, 0.14); color: var(--indigo); }
.task-showcase__badge--map { background: rgba(79, 158, 94, 0.14); color: #2d7a42; }

.task-showcase__list {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  flex: 1;
}

.task-showcase__list li {
  position: relative;
  padding: 0.38rem 0 0.38rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--hairline);
}

.task-showcase__list li:last-child { border-bottom: none; }

.flow-panel--light .task-showcase__list li,
.flow-panel--dark .task-showcase__list li {
  color: var(--text-on-dark-muted);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.task-showcase__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Bento control grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.bento-card {
  background: var(--bg-card);
  border: var(--border-width) solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.45rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}

.bento-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(236, 106, 30, 0.35);
}

.bento-card--wide {
  grid-column: span 1;
}

.bento-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  background: var(--accent-soft);
  border-radius: 12px;
  border: 1px solid var(--hairline);
}

.bento-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.bento-card p {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.55;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .bento-card--wide {
    grid-column: span 2;
  }
}

/* Split comparison panel */
.split-panel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  max-width: 900px;
  margin-inline: auto;
}

.split-panel__side {
  background: var(--bg-card);
  border: var(--border-width) solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-card);
}

.split-panel__side--admin {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
}

.split-panel__side--you {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: none;
}

.split-panel__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.15rem;
}

.split-panel__side--admin .split-panel__tag {
  background: rgba(85, 102, 224, 0.12);
  color: var(--indigo);
}

.split-panel__side--you .split-panel__tag {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.split-panel__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  position: relative;
  z-index: 2;
}

.split-panel__vs {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--bg-card);
  border: var(--border-width) solid var(--outline);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  box-shadow: var(--shadow-press-sm);
}

.section-header-text--center {
  max-width: 520px;
  margin-inline: auto;
  text-align: center;
}

.section-header.is-centered .section-header-text {
  margin-top: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.page-home .flow-panel.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.page-home .flow-panel.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section rule divider */
.section-rule {
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 0.85rem;
  background: var(--hairline);
}

.flow-panel--dark .section-rule {
  background: rgba(255, 255, 255, 0.12);
}

/* Card index tabs */
.card.card-tabbed {
  padding-top: 2.65rem;
}

.card-index {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.38rem 0.8rem;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--bg-card-deep);
  border: 1px solid var(--hairline);
  border-top: none;
  border-left: none;
  border-radius: 0 0 var(--radius) 0;
}

/* Panel overrides (light + dark sections on black canvas) */
.flow-panel--light .section-label,
.flow-panel--dark .section-label { color: var(--accent-hover); }

.flow-panel--light .section-label::before,
.flow-panel--dark .section-label::before { background: var(--accent-hover); }

.flow-panel--light .section-header h2,
.flow-panel--light .section-header-main h2,
.flow-panel--light h2,
.flow-panel--light h3,
.flow-panel--dark .section-header h2,
.flow-panel--dark .section-header-main h2,
.flow-panel--dark h2,
.flow-panel--dark h3,
.flow-panel--light .pricing-card h3,
.flow-panel--dark .pricing-card h3,
.flow-panel--light .pricing-price,
.flow-panel--dark .pricing-price {
  color: var(--text-on-dark);
}

.flow-panel--light .section-header p,
.flow-panel--light .section-header-text,
.flow-panel--light .card p,
.flow-panel--light .pricing-tagline,
.flow-panel--light .pricing-features li,
.flow-panel--light .pricing-price span,
.flow-panel--dark .section-header p,
.flow-panel--dark .section-header-text,
.flow-panel--dark .card p,
.flow-panel--dark .pricing-tagline,
.flow-panel--dark .pricing-features li,
.flow-panel--dark .pricing-price span {
  color: var(--text-on-dark-muted);
}

.flow-panel--light .card,
.flow-panel--light .pricing-card,
.flow-panel--light .cta-banner,
.flow-panel--light .discord-embed-wrap,
.flow-panel--dark .card,
.flow-panel--dark .pricing-card,
.flow-panel--dark .cta-banner,
.flow-panel--dark .discord-embed-wrap {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
  color: var(--text-on-dark);
}

.flow-panel--light .card:hover,
.flow-panel--light .pricing-card:hover,
.flow-panel--dark .card:hover,
.flow-panel--dark .pricing-card:hover {
  border-color: rgba(236, 106, 30, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.flow-panel--light .card-link,
.flow-panel--dark .card-link { color: var(--accent-hover); }

.flow-panel--light .pricing-card.tier-standard,
.flow-panel--dark .pricing-card.tier-standard {
  transform: none;
  box-shadow: 0 0 0 2px rgba(236, 106, 30, 0.5);
}

.flow-panel--light .pricing-card.tier-standard.popular,
.flow-panel--dark .pricing-card.tier-standard.popular {
  box-shadow: 0 0 0 2px var(--accent);
}

.flow-panel--light .cta-banner,
.flow-panel--dark .cta-banner {
  background: linear-gradient(135deg, #141414 0%, #0a0a0a 100%);
  border-color: rgba(236, 106, 30, 0.35);
}

.flow-panel--light .cta-banner p,
.flow-panel--dark .cta-banner p { color: var(--text-on-dark-muted); }

.flow-panel--light .btn-secondary,
.flow-panel--dark .btn-secondary {
  background: #f4efe7;
  color: #1d1d1f;
  border-color: rgba(29, 29, 31, 0.12);
}

.flow-panel--light .btn-secondary:hover,
.flow-panel--dark .btn-secondary:hover {
  background: #fffaf3;
  border-color: rgba(29, 29, 31, 0.18);
}

.flow-panel--light .section-cta,
.flow-panel--dark .section-cta { padding-block: var(--section-y-sm); }

.flow-panel--light .section-block + .section-block::before,
.flow-panel--dark .section-block + .section-block::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 15%,
    rgba(236, 106, 30, 0.35) 50%,
    rgba(255, 255, 255, 0.1) 85%,
    transparent 100%
  );
}

.flow-panel--light .card code,
.flow-panel--light .hero-sub code,
.flow-panel--dark .card code,
.flow-panel--dark .hero-sub code {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-on-dark);
}

/* Homepage step folder tabs */
.page-home .flow-panel .steps::before { display: none; }

.page-home .flow-panel .step {
  border: 1px solid var(--hairline);
  box-shadow: none;
  padding-top: 2.75rem;
  background: var(--bg-card);
}

.page-home .flow-panel .step:hover {
  border-color: rgba(236, 106, 30, 0.35);
  box-shadow: 0 12px 28px rgba(47, 42, 36, 0.1);
}

.page-home .flow-panel .step-num {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.38rem 0.85rem;
  background: var(--bg-card-deep);
  border: 1px solid var(--hairline);
  border-top: none;
  border-left: none;
  border-radius: 0 0 var(--radius) 0;
  box-shadow: none;
  font-family: var(--font);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.page-home .flow-panel .step-num::before {
  content: '/ ';
  opacity: 0.65;
}

.page-home .flow-panel .step:nth-child(2) .step-num,
.page-home .flow-panel .step:nth-child(3) .step-num,
.page-home .flow-panel .step:nth-child(4) .step-num {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.45);
}

/* Legacy: bare container sections on inner pages */
main > section.container,
main > .container > section {
  padding-block: var(--section-y);
}

main > section.container + section.container {
  padding-top: 0;
}

main > .page-hero + section.container,
main > .page-hero + .section-block {
  padding-top: var(--section-y);
}

.section-header {
  margin-bottom: var(--section-gap);
  max-width: 580px;
}

.section-header.is-split {
  max-width: none;
}

@media (min-width: 768px) {
  .section-header.is-split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: end;
  }

  .section-header.is-split .section-header-main {
    max-width: 520px;
  }

  .section-header.is-split .section-header-text {
    margin: 0;
    padding-bottom: 0.15rem;
    max-width: 400px;
    justify-self: end;
    text-align: right;
  }

  .section-header.is-split .section-header-main h2 {
    margin-bottom: 0;
  }
}

.section-header.is-centered {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.section-header.is-centered .section-label {
  margin-inline: auto;
}

.section-footer {
  margin-top: var(--section-gap);
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: flex-end;
}

.section-footer.is-center {
  justify-content: center;
}

.section-sub {
  margin-bottom: var(--section-gap);
}

.block-stack > * + * {
  margin-top: var(--section-gap);
}

.section-sub .section-header {
  margin-bottom: 1.75rem;
}

.section-sub .section-header h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

/* Category blocks on features page */
.feature-category {
  padding-block: var(--section-y-sm);
}

.feature-category:first-child {
  padding-top: 0;
}

.feature-category:last-child {
  padding-bottom: 0;
}

.feature-category + .feature-category {
  border-top: 1px solid var(--hairline);
  margin-top: var(--section-y-sm);
  padding-top: var(--section-y-sm);
}

.section-label {
  display: inline-flex; align-items: center;
  font-size: 0.78rem; font-weight: 600;
  color: var(--accent-deep);
  background: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 0.85rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
}

.section-header h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 700; line-height: 1.18;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 500;
}

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 1.5rem;
}

.card {
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.game-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 2px solid var(--outline);
  border-radius: 12px;
  color: var(--accent-deep);
}

.game-icon svg { width: 24px; height: 24px; display: block; }

.card-head h3 { margin-bottom: 0; }

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent);
}

.card h3 {
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.card p {
  color: var(--text-secondary); font-size: 0.9375rem;
  line-height: 1.6; font-weight: 500;
}

.card-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  margin-top: 0.9rem;
  color: var(--accent-deep); text-decoration: none;
  font-size: 0.875rem; font-weight: 700;
}

.card-link::after { content: '→'; transition: transform 0.2s ease; }
.card-link:hover::after { transform: translateX(3px); }

.card-icon { display: none; }

.service-list {
  list-style: none;
  margin: 0.5rem 0 0;
}

.service-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.35rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  border-bottom: 1px solid var(--hairline);
}

.service-list li:last-child { border-bottom: none; }

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.35rem;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 2.1rem;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--accent);
}

.pricing-card.popular {
  box-shadow: var(--shadow-card), 0 0 0 2px var(--accent);
}

.pricing-badge {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600;
  color: var(--color-light);
  background: var(--accent);
  padding: 0.24rem 0.7rem; border-radius: var(--radius-pill);
  margin-bottom: 0.9rem; width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card.tier-basic::before { background: var(--tier-basic); }
.pricing-card.tier-standard::before { background: var(--tier-standard); }
.pricing-card.tier-pro::before { background: var(--tier-pro); }

.pricing-card.tier-basic .tier-badge { color: var(--tier-basic); background: rgba(46, 158, 107, 0.12); }
.pricing-card.tier-standard .tier-badge { color: var(--tier-standard); background: rgba(217, 138, 30, 0.14); }
.pricing-card.tier-pro .tier-badge { color: var(--tier-pro); background: rgba(109, 79, 196, 0.13); }

.tier-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
}

.pricing-card.tier-standard {
  transform: scale(1.015);
  z-index: 1;
}

.pricing-card.tier-standard.popular {
  box-shadow: var(--shadow-card), 0 0 0 2px var(--tier-standard);
}

.pricing-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.2rem; color: var(--ink); }

.pricing-tagline { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 1.3rem; font-weight: 500; }

.pricing-price {
  font-size: 2.6rem; font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--ink);
}

.pricing-price span { font-size: 1rem; font-weight: 600; color: var(--text-muted); }

.pricing-features { list-style: none; margin: 1.35rem 0; flex: 1; }

.pricing-features li {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.55rem 0;
  color: var(--text-secondary); font-size: 0.9375rem; font-weight: 500;
}

.pricing-features li::before {
  content: '';
  width: 18px; height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9540d' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 6'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* ── Steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 901px) {
  .steps::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 13%;
    right: 13%;
    height: 2px;
    background: repeating-linear-gradient(
      90deg,
      var(--hairline) 0,
      var(--hairline) 10px,
      transparent 10px,
      transparent 18px
    );
    z-index: 0;
  }
}

.step {
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 1;
}

.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }

.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border: 2px solid var(--outline);
  font-size: 0.85rem; font-weight: 700;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow-press-sm);
}

.step:nth-child(2) .step-num { background: var(--accent); color: var(--color-light); }
.step:nth-child(3) .step-num { background: rgba(85, 102, 224, 0.14); color: var(--indigo); }
.step:nth-child(4) .step-num { background: rgba(109, 79, 196, 0.14); color: var(--game-gem); }

.step h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 0.45rem; color: var(--ink); }
.step p { color: var(--text-secondary); font-size: 0.9375rem; font-weight: 500; }
.step a { color: var(--accent-deep); text-decoration: none; font-weight: 700; }

/* ── Discord embed ── */
.section-community .discord-embed-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.discord-embed-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

.discord-embed-wrap {
  width: 350px; max-width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0;
}

.flow-panel--dark .discord-embed-layout .section-header h2 {
  color: var(--text-on-dark);
}

.flow-panel--dark .discord-embed-layout .section-header p {
  color: var(--text-on-dark-muted);
}

.discord-embed-layout .section-header h2,
.discord-embed-layout .section-header p { color: var(--text-on-dark); }
.discord-embed-layout .section-header p { color: var(--text-on-dark-muted); }

/* ── CTA ── */
.section-cta .cta-banner {
  margin-bottom: 0;
}

.cta-banner {
  padding: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius-lg);
  text-align: center;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-light) 0%, var(--accent-soft) 100%);
}

.cta-banner h2 {
  font-size: 1.7rem; font-weight: 700;
  margin-bottom: 0.7rem;
  color: var(--ink);
}

.cta-banner p {
  color: var(--text-secondary); font-size: 1.05rem;
  margin-bottom: 1.85rem; max-width: 480px; margin-inline: auto;
  font-weight: 500;
}

.cta-banner .btn-group {
  display: flex; flex-wrap: wrap; gap: 0.85rem;
  justify-content: center;
}

.discord-embed-wrap iframe {
  display: block; width: 350px; max-width: 100%;
  height: 500px; border: none;
}

/* ── Inner pages ── */
.page-hero {
  padding: clamp(3.5rem, 6vw, 5rem) 0 clamp(2.5rem, 4vw, 3.5rem);
  background: var(--color-dark);
  border-bottom: 1px solid var(--hairline);
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(236, 106, 30, 0.06) 0%, transparent 55%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 700;
  margin-bottom: 0.9rem;
  color: var(--text-on-dark);
}

.page-hero p {
  color: var(--text-on-dark-muted);
  max-width: 560px;
  font-size: 1.05rem;
  font-weight: 500;
}

.breadcrumb { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1.1rem; font-weight: 600; }
.breadcrumb a { color: var(--accent-deep); text-decoration: none; }

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item {
  border-radius: var(--radius);
  margin-bottom: 0.7rem;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.faq-item:hover { box-shadow: var(--shadow-card-hover); }

.faq-question {
  width: 100%; text-align: left;
  padding: 1.25rem 1.4rem; background: none; border: none;
  color: var(--ink); font-family: var(--font);
  font-size: 1rem; font-weight: 700;
  cursor: pointer; display: flex;
  justify-content: space-between; align-items: center; gap: 1rem;
}

.faq-question:hover { color: var(--accent-deep); }

.faq-answer {
  display: none; padding: 0 1.4rem 1.3rem;
  color: var(--text-secondary); font-size: 0.9375rem; font-weight: 500;
}

.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform 0.2s; color: var(--text-muted); font-size: 0.75rem; }

/* ── Docs ── */
.docs-layout {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 3.5rem; padding: 2.5rem 0 var(--section-y);
}

.docs-nav { position: sticky; top: calc(var(--header-h) + 2rem); }

.docs-nav h4 {
  font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.9rem; font-weight: 700;
}

.docs-nav a {
  display: block; padding: 0.5rem 0.85rem;
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.9375rem; font-weight: 600;
  border-radius: var(--radius-pill);
  margin-bottom: 0.2rem;
}

.docs-nav a:hover, .docs-nav a.active {
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.prose {
  max-width: 720px;
  border-radius: var(--radius-lg);
  padding: 2.4rem;
}

.prose h2 { font-size: 1.35rem; font-weight: 700; margin: 2.25rem 0 0.9rem; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; font-weight: 700; margin: 1.6rem 0 0.7rem; color: var(--ink); }
.prose p { color: var(--text-secondary); margin-bottom: 1.1rem; font-weight: 500; }
.prose ul, .prose ol { color: var(--text-secondary); margin: 0 0 1.1rem 1.4rem; font-weight: 500; }
.prose li { margin-bottom: 0.4rem; }
.prose code {
  background: var(--bg-card-deep);
  border: 1px solid var(--hairline);
  padding: 0.18rem 0.45rem; border-radius: 8px; font-size: 0.875em;
}
.prose pre {
  background: #2b2620;
  color: #f4efe7;
  border: var(--border-width) solid var(--outline);
  border-radius: var(--radius);
  padding: 1.2rem; overflow-x: auto; margin-bottom: 1.2rem;
}
.prose pre code { background: none; padding: 0; border: none; color: inherit; }
.prose a { color: var(--accent-deep); font-weight: 700; }

/* ── Feature detail ── */
.feature-detail { padding: 2.5rem 0 var(--section-y); }

.feature-detail-grid {
  display: grid; grid-template-columns: 1fr 280px;
  gap: 3.5rem; align-items: start;
}

.feature-meta {
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  position: sticky; top: calc(var(--header-h) + 2rem);
}

.feature-meta h4 {
  font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.9rem; font-weight: 700;
}

.feature-meta ul { list-style: none; }
.feature-meta li {
  padding: 0.6rem 0; border-bottom: 1px solid var(--hairline);
  font-size: 0.875rem; color: var(--text-secondary); font-weight: 500;
}
.feature-meta li:last-child { border-bottom: none; }

/* ── Changelog ── */
.changelog-list { max-width: 700px; margin: 0 auto; }

.changelog-item {
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.9rem;
  margin-bottom: 0.9rem;
  border-left: 5px solid var(--accent);
}

.changelog-item h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 0.2rem; color: var(--ink); }
.changelog-date { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 0.7rem; font-weight: 600; }
.changelog-item ul { color: var(--text-secondary); margin-left: 1.2rem; font-size: 0.9375rem; font-weight: 500; }
.changelog-item li { margin-bottom: 0.35rem; }

.mockup-section, .mockup, .trust-bar, .scroll-bg { display: none; }

/* ── Footer ── */
.site-footer {
  margin-top: auto;
  padding: 3.5rem 0 2.25rem;
  background: var(--color-dark);
  border-top: 1px solid var(--hairline);
  color: var(--text-on-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem; margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--text-on-dark-muted); font-size: 0.9375rem;
  margin-top: 0.9rem; max-width: 280px; line-height: 1.6; font-weight: 500;
}

.footer-col h4 {
  font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.45); margin-bottom: 0.9rem; font-weight: 700;
}

.footer-col a {
  display: block; color: var(--text-on-dark-muted);
  text-decoration: none; font-size: 0.9375rem; padding: 0.35rem 0; font-weight: 600;
}
.footer-col a:hover { color: var(--accent-hover); }

.disclaimer {
  font-size: 0.8125rem; color: var(--text-on-dark-muted);
  max-width: 680px; line-height: 1.6; margin-bottom: 1.75rem; font-weight: 500;
}

.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.8125rem; color: var(--text-muted); font-weight: 600;
}

.text-center { text-align: center; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reduce-motion .reveal { opacity: 1; transform: none; transition: none; }

.reduce-motion .page-home .flow-panel.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.reduce-motion .theme-icon,
.reduce-motion .logo-mark,
.reduce-motion .hero-label::before {
  animation: none !important;
}

.reduce-motion .page-home .hero--home .hero-enter .hero-kicker,
.reduce-motion .page-home .hero--home .hero-enter .hero-heading-icon,
.reduce-motion .page-home .hero--home .hero-enter .hero-headline-line,
.reduce-motion .page-home .hero--home .hero-enter .hero-247,
.reduce-motion .page-home .hero--home .hero-enter .hero-followup,
.reduce-motion .page-home .hero--home .hero-enter .hero-followup > * {
  animation: none !important;
}

.reduce-motion .flat-shapes .theme-icon { display: none; }

.reduce-motion .tv-grain {
  opacity: calc(var(--tv-grain-opacity) * 0.65);
}

@media (prefers-reduced-motion: reduce) {
  .tv-grain {
    opacity: calc(var(--tv-grain-opacity) * 0.65);
  }
}

.reduce-motion .macro-pad-hero,
.reduce-motion .macro-pad-bg { animation: none !important; }

.reduce-motion .macro-pad-bg { opacity: 0.25; }

.reduce-motion .hero-hud .hud-fill,
.reduce-motion .hud-value { animation: none !important; }

/* ── Large desktop & 2K layout tuning ── */
@media (min-width: 1920px) {
  .hero-layout {
    gap: clamp(1.25rem, 3vw, 2.75rem);
    min-height: clamp(340px, 43vh, 500px);
  }

  .hero-inner {
    max-width: min(700px, 100%);
  }

  .page-home .hero--home {
    min-height: clamp(520px, 58vh, 700px);
  }

  .page-home .hero--home {
    --hero-inner-max: min(900px, 70%);
  }

  .page-home .hero--home h1 {
    font-size: clamp(2.75rem, 4.8vw, 5rem);
  }

  .hero--home .hero-model-bg .macro-pad-hero {
    left: 34%;
    right: -8%;
    top: -5%;
  }

  .task-showcase {
    gap: 1.4rem;
  }

  .stats-panel .stat {
    padding: 1.9rem 1.65rem;
  }

  .section-header.is-split .section-header-main {
    max-width: 560px;
  }

  .section-header.is-split .section-header-text {
    max-width: 440px;
  }

  .footer-brand p {
    max-width: 320px;
  }
}

@media (min-width: 2560px) {
  .hero-layout {
    gap: clamp(1.5rem, 2.5vw, 3.25rem);
    min-height: clamp(380px, 46vh, 560px);
  }

  .hero-inner {
    max-width: min(760px, 100%);
  }

  .page-home .hero--home {
    min-height: clamp(580px, 56vh, 780px);
  }

  .page-home .hero--home .hero-layout {
    padding-right: clamp(3rem, 5vw, 5.5rem);
    padding-left: clamp(3rem, 4vw, 4.75rem);
  }

  .page-home .hero--home {
    --hero-inner-max: min(980px, 66%);
  }

  .page-home .hero--home h1 {
    font-size: clamp(3rem, 3.8vw, 5.25rem);
  }

  .hero--home .hero-model-bg .macro-pad-hero {
    left: 36%;
    right: -5%;
    top: -6%;
  }

  .task-showcase {
    gap: 1.65rem;
  }

  .task-showcase__group {
    padding: 1.65rem 1.5rem 1.75rem;
  }

  .stats-panel .stat {
    padding: 2.15rem 2rem;
  }

  .stat-value {
    font-size: clamp(1.75rem, 2vw, 2.125rem);
  }

  .section-header.is-split {
    gap: clamp(2.5rem, 4vw, 5rem);
  }

  .section-header.is-split .section-header-main {
    max-width: 620px;
  }

  .section-header.is-split .section-header-text {
    max-width: 480px;
  }

  .section-header h2 {
    font-size: clamp(1.75rem, 2.2vw, 2.375rem);
  }

  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
  }

  .pricing-card {
    padding: 2.35rem;
  }

  .footer-grid {
    gap: 3.5rem;
  }

  .footer-brand p {
    max-width: 360px;
  }

  .header-hub__menu-pill a {
    padding: 0.58rem 1.3rem;
    font-size: 1rem;
  }

  .header-hub__brand,
  .header-hub__actions {
    padding-inline: clamp(1.25rem, 2vw, 2.5rem);
  }

  .home-section-nav__link {
    font-size: 0.875rem;
    padding: 0.48rem 1.1rem;
  }
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .page-home .hero--home {
    --hero-inner-max: 100%;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  }
  .hero-inner { max-width: 100%; }
  .page-home .hero--home { min-height: clamp(440px, 60vh, 620px); }
  .hero--home .hero-model-bg .macro-pad-hero {
    left: 28%;
    top: -3%;
  }
  .page-home .hero--home h1 { max-width: none; }
  .task-showcase { grid-template-columns: 1fr 1fr; }
  .task-showcase__group:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin-inline: auto;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    display: none;
  }
  .page-home .hero--home {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .page-home .hero--home .hero-layout {
    order: 1;
    min-height: auto;
    padding:
      clamp(1.5rem, 4vw, 2.25rem)
      var(--card-inset, 16px)
      clamp(0.75rem, 2vw, 1.25rem)
      var(--card-inset, 16px);
  }

  .page-home .hero--home .hero-model-bg {
    order: 2;
    position: relative;
    inset: auto;
    z-index: 2;
    flex: 0 0 auto;
    width: 100%;
    height: clamp(260px, 52vw, 360px);
    margin-top: clamp(0.25rem, 1.5vw, 0.75rem);
    padding-bottom: clamp(0.75rem, 2.5vw, 1.25rem);
    pointer-events: none;
    overflow: hidden;
  }

  .page-home .hero--home .hero-model-bg .macro-pad-3d-wrap,
  .page-home .hero--home .hero-model-bg model-viewer {
    pointer-events: auto;
  }

  .page-home .hero--home .section-next-footer {
    order: 3;
    width: 100%;
  }

  .hero-inner { max-width: 100%; }

  .hero--home .hero-model-bg .macro-pad-hero,
  .hero--home .hero-model-bg .hero-lcp-pad {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: min(100%, 440px);
    height: 100%;
    margin-inline: auto;
    object-position: center;
  }
  .task-showcase { grid-template-columns: 1fr; }
  .task-showcase__group:last-child { max-width: none; }
  .split-panel {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 480px;
  }
  .split-panel__side--admin,
  .split-panel__side--you {
    border-radius: var(--radius-lg);
    border: var(--border-width) solid var(--outline);
  }
  .split-panel__divider {
    width: auto;
    padding: 0.75rem 0;
  }
  .hero-model-bg::before {
    background: linear-gradient(
      180deg,
      var(--accent-deep) 0%,
      rgba(201, 84, 13, 0.62) 40%,
      rgba(201, 84, 13, 0.22) 64%,
      rgba(201, 84, 13, 0.04) 100%
    );
  }
  .hero-model-bg .macro-pad-hero .macro-pad-3d-wrap.is-hero-full .macro-pad-3d { opacity: 0.9; }
  .section-stats { margin-top: calc(-1 * 2.5rem); }
  .stats-panel { grid-template-columns: repeat(2, 1fr); }
  .stats-panel .stat:nth-child(odd) { border-left: none; }
  .stats-panel .stat:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  .section-header.is-split .section-header-text,
  .home-section-head.is-split .home-section-aside {
    text-align: left;
    justify-self: start;
    max-width: none;
  }
  .steps::before { display: none; }
  .pricing-card.tier-standard { transform: none; }
  .macro-pad-bg { width: min(190px, 44vw); opacity: 0.3; left: 2%; bottom: 6%; }
  .discord-embed-layout,
  .section-community .discord-embed-layout { grid-template-columns: 1fr; }
  .discord-embed-wrap { margin: 0 auto; }
  .feature-detail-grid, .docs-layout { grid-template-columns: 1fr; }
  .docs-nav, .feature-meta { position: static; }
}

@media (max-width: 900px) {
  .header-inner {
    gap: 1rem;
  }

  .header-actions .btn-secondary {
    display: none;
  }
}

@media (max-width: 768px) {
  :root { --section-y: 4.25rem; --stats-overlap: 2.5rem; --header-h: 68px; }
  .site-header {
    border-bottom: none;
    box-shadow: 0 4px 16px rgba(47, 42, 36, 0.06);
  }
  .header-inner {
    gap: 0.65rem;
    padding-inline: 0;
  }
  .nav-desktop { display: none; }
  .header-actions .btn-primary.btn-sm {
    display: none;
  }
  .menu-toggle { display: grid; place-items: center; }
  .logo {
    gap: 0.55rem;
    padding-right: 0;
  }
  .logo-mark-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .logo-mark {
    width: 32px;
    height: 32px;
  }
  .logo-title {
    font-size: 0.9375rem;
  }
  .logo-tagline { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 4.5rem 0 3.5rem; }
  .container { width: min(100% - 2.5rem, var(--max-w)); }
  .theme-pos-6, .theme-pos-7 { display: none; }
  .stats-row { padding: var(--section-y-sm) 0; }
  .section-footer { justify-content: flex-start; }
  .page-wrap:has(.page-home) {
    --radius-mega: 32px;
    --card-inset: 16px;
    --panel-inset: var(--card-inset);
    --panel-gap: 14px;
    --curve-r: 20px;
  }
  .page-home .hero--home .hero-layout {
    padding:
      clamp(1.15rem, 3vw, 1.65rem)
      var(--card-inset, 16px)
      clamp(0.65rem, 2vw, 1rem)
      var(--card-inset, 16px);
  }

  .page-home .hero--home .hero-model-bg {
    height: clamp(240px, 58vw, 320px);
  }

  .page-home .flow-panel .section-block {
    padding-block: calc(var(--section-y) * 0.75);
  }

  .bento-grid { grid-template-columns: 1fr; }
  .bento-card--wide { grid-column: span 1; }
}

@media (max-width: 600px) {
  .page-home .hero--home .hero-layout {
    padding:
      clamp(0.95rem, 2.8vw, 1.35rem)
      var(--card-inset, 16px)
      clamp(0.5rem, 1.8vw, 0.85rem)
      var(--card-inset, 16px);
  }

  .page-home .hero--home .hero-model-bg {
    height: clamp(220px, 62vw, 300px);
    padding-bottom: clamp(0.65rem, 2vw, 1rem);
  }

  .hero--home .hero-model-bg .macro-pad-hero {
    width: min(100%, 380px);
  }

  .page-home .hero--home h1 {
    font-size: clamp(2.15rem, 9vw, 2.75rem);
  }

  .page-home .hero--home::before {
    background-size:
      clamp(11rem, 42vw, 15rem) clamp(8.25rem, 32vw, 11.5rem),
      clamp(9rem, 34vw, 12.5rem) clamp(6.75rem, 26vw, 9.5rem),
      clamp(7.5rem, 28vw, 10.5rem) clamp(5.5rem, 20vw, 7.75rem);
    background-position:
      0 0,
      clamp(2rem, 12vw, 4rem) clamp(1.5rem, 8vw, 3rem),
      clamp(-1.25rem, -8vw, -2rem) clamp(2.75rem, 14vw, 5rem);
  }

  .page-home .hero--home .hero-followup,
  .home-chapter__intro {
    padding-left: clamp(0.85rem, 4vw, 1.15rem);
  }

  .page-home .hero--home .hero-followup {
    width: 100%;
    max-width: 100%;
  }

  .home-chapter__intro--center {
    padding-left: 0;
  }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .stats-panel { grid-template-columns: 1fr; }
  .stats-panel .stat + .stat { border-left: none; border-top: 1px solid var(--hairline); }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .cta-banner { padding: 2.75rem 1.75rem; }
}
