/* ==========================================================================
   OBanido Studio - 90s Dark Fantasy & Dungeon Arcade Design System
   Aesthetic: Carved Stone Relief, Toxic Green Slime, & Tactile Iron Slates
   Zero external dependencies, high performance, fully responsive
   ========================================================================== */

:root {
  /* Dungeon Granite & Cracked Slate Void Surfaces */
  --bg-dark: #070a08;
  --bg-dark-surface: #0c120e;
  --bg-card: #121914;
  --bg-card-hover: #19241c;
  --bg-stone-slab: #141d17;
  --bg-stone-altar: #0f1611;
  --bg-hud: rgba(8, 12, 9, 0.95);

  /* Iron, Bronze & Stone Borders */
  --iron-border: #27362c;
  --iron-border-dark: #141c16;
  --iron-rivet: #3e5245;
  --border-arcade: #243329;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: #39ff14;

  /* Toxic Bioluminescent Acid Slime Tokens */
  --slime-acid: #39ff14;
  --slime-glow: rgba(57, 255, 20, 0.45);
  --slime-dim: #22c55e;
  --slime-dark: #15803d;
  --slime-deep: #14532d;
  --slime-ooze-bg: rgba(34, 197, 94, 0.1);
  --slime-highlight: #86efac;

  /* Dimensional Gate Realm Visual Tokens (Preserved for Invariant Tests) */
  --realm-cyberpunk: #00f0ff;
  --realm-cyberpunk-glow: rgba(0, 240, 255, 0.35);
  --realm-cyberpunk-bg: rgba(0, 240, 255, 0.08);

  --realm-xianxia: #f59e0b;
  --realm-xianxia-glow: rgba(245, 158, 11, 0.35);
  --realm-xianxia-bg: rgba(245, 158, 11, 0.08);

  --realm-medieval: #ef4444;
  --realm-medieval-glow: rgba(239, 68, 68, 0.35);
  --realm-medieval-bg: rgba(239, 68, 68, 0.08);

  /* Text & Inscribed Chiseled Relief */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-stone: #cbd5e1;
  --text-carved: #e2e8f0;

  /* Status & Drop Tokens */
  --status-emerald: #39ff14;
  --status-emerald-glow: rgba(57, 255, 20, 0.45);
  --gold-drop: #ffd700;

  /* Typography Stack */
  --font-serif: "Cinzel", "Palatino Linotype", "Palatino", "Georgia", "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, "Courier New", Menlo, Monaco, Consolas, monospace;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout & Geometry */
  --max-width: 1200px;
  --header-height: 72px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --transition-fast: 120ms ease-out;
  --transition-smooth: 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  font-family: var(--font-mono);
  min-height: 100vh;
  background-color: var(--bg-dark);
  /* Atmospheric subterranean dungeon cavern: volumetric toxic green fog, ambient mist banks, and cracked stone floor */
  background-image:
    /* Volumetric emerald core glowing behind the hero monument */
    radial-gradient(ellipse 70% 480px at 50% 280px, rgba(57, 255, 20, 0.16) 0%, rgba(34, 197, 94, 0.10) 30%, rgba(14, 44, 22, 0.05) 60%, transparent 80%),
    /* Upper-left rolling dungeon fog cloud */
    radial-gradient(ellipse 55% 420px at 18% 180px, rgba(20, 83, 45, 0.20) 0%, rgba(10, 38, 18, 0.09) 45%, transparent 75%),
    /* Upper-right rolling dungeon fog cloud */
    radial-gradient(ellipse 60% 440px at 82% 220px, rgba(20, 83, 45, 0.18) 0%, rgba(10, 36, 18, 0.08) 50%, transparent 80%),
    /* Subterranean ground mist rolling across the floor beneath hero */
    radial-gradient(ellipse 85% 280px at 50% 580px, rgba(34, 197, 94, 0.14) 0%, rgba(20, 83, 45, 0.07) 45%, transparent 80%),
    /* Deep cavern mid-page fog pocket (Prototype #1 zone) */
    radial-gradient(ellipse 65% 450px at 25% 1250px, rgba(20, 83, 45, 0.14) 0%, rgba(10, 35, 18, 0.06) 50%, transparent 75%),
    /* Deep cavern lower fog pocket (Dimensional Gates zone) */
    radial-gradient(ellipse 70% 500px at 75% 2000px, rgba(20, 83, 45, 0.12) 0%, rgba(10, 30, 16, 0.05) 50%, transparent 80%),
    /* Cavern perimeter vignette - deep obsidian darkness */
    radial-gradient(ellipse 100% 100% at 50% 50%, transparent 55%, rgba(4, 7, 5, 0.85) 100%),
    /* Dungeon stone flagstone grid with subtle toxic moss mortar lines */
    repeating-linear-gradient(0deg, rgba(57, 255, 20, 0.018) 0px, rgba(57, 255, 20, 0.018) 1px, transparent 1px, transparent 44px),
    repeating-linear-gradient(90deg, rgba(57, 255, 20, 0.018) 0px, rgba(57, 255, 20, 0.018) 1px, transparent 1px, transparent 44px),
    /* Deep cavern obsidian bedrock gradient */
    linear-gradient(180deg, #070a08 0%, #060907 35%, #050806 70%, #040605 100%);
  background-attachment: scroll;
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
}

/* Subtle CRT scanlines */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    rgba(10, 10, 10, 0) 50%,
    rgba(0, 0, 0, 0.35) 50%
  );
  background-size: 100% 4px;
  z-index: 999;
  opacity: 0.22;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   Header & Navigation: Heavy Iron & Stone Beam
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: #0d1117;
  border-bottom: 3px solid var(--iron-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 12px var(--slime-glow);
}

.brand-glyph {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: #141a24;
  border: 2px solid var(--slime-acid);
  display: grid;
  place-items: center;
  box-shadow: 0 0 12px var(--slime-glow), inset 0 0 6px rgba(57, 255, 20, 0.4);
}

.brand-glyph svg {
  width: 18px;
  height: 18px;
  fill: var(--slime-acid);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid var(--slime-acid);
  color: var(--slime-acid);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 2px 0 #000, 0 0 8px rgba(57, 255, 20, 0.25);
  white-space: nowrap;
}

.status-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--slime-acid);
  box-shadow: 0 0 8px var(--slime-acid);
  animation: pulse-slime 1.6s infinite ease-in-out;
}

@keyframes pulse-slime {
  0%, 100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 6px var(--slime-acid)); }
  50% { opacity: 0.35; transform: scale(0.85); filter: drop-shadow(0 0 2px var(--slime-acid)); }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  padding: 0.35rem 0.25rem;
  position: relative;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.nav-links a:hover {
  color: var(--slime-acid);
  text-shadow: 0 0 8px var(--slime-glow);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  background: #141922;
  border: 1px solid var(--iron-border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-stone);
  min-height: 38px;
  box-shadow: 0 3px 0 #07090e;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-cta svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  flex-shrink: 0;
  fill: currentColor;
}

.header-cta:hover {
  background: #1c2330;
  border-color: var(--slime-acid);
  color: var(--slime-acid);
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #07090e, 0 0 12px var(--slime-glow);
}

/* ==========================================================================
   Hero Section & Slime Monument Centerpiece
   ========================================================================== */
.hero-section {
  padding: 4rem 0 3.5rem;
  position: relative;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 38%, rgba(57, 255, 20, 0.15) 0%, rgba(34, 197, 94, 0.08) 35%, transparent 75%),
    radial-gradient(ellipse 50% 40% at 25% 25%, rgba(20, 83, 45, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 75% 25%, rgba(20, 83, 45, 0.15) 0%, transparent 70%);
}

.hero-content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* The Monument Container with Responsive Picture */
.monument-stage {
  width: 100%;
  max-width: 1050px;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Volumetric green fog clouds billowed directly behind the monument */
.monument-stage::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 0;
  right: 0;
  bottom: -4%;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse 65% 55% at 50% 44%, rgba(57, 255, 20, 0.20) 0%, rgba(34, 197, 94, 0.12) 35%, rgba(14, 44, 22, 0.05) 65%, transparent 80%),
    radial-gradient(ellipse 45% 40% at 20% 30%, rgba(34, 197, 94, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at 80% 35%, rgba(34, 197, 94, 0.12) 0%, transparent 65%);
  filter: blur(28px);
  opacity: 0.95;
}

/* Ground reflection and mist pool beneath the lightning discharges */
.monument-stage::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 8%;
  height: 60px;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(57, 255, 20, 0.26) 0%, rgba(34, 197, 94, 0.12) 40%, transparent 75%);
  filter: blur(14px);
  opacity: 0.85;
}

.hero-picture {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 1050px;
  position: relative;
  z-index: 2;
}

.hero-banner {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-mask-image: radial-gradient(ellipse 53% 47% at 50% 48%, #000 72%, rgba(0, 0, 0, 0.4) 89%, transparent 100%);
  mask-image: radial-gradient(ellipse 53% 47% at 50% 48%, #000 72%, rgba(0, 0, 0, 0.4) 89%, transparent 100%);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6));
}

/* Animated Ambient Fog Clouds & Bioluminescent Spores */
.dungeon-fog-backdrop {
  position: absolute;
  top: -10%;
  left: 0;
  right: 0;
  bottom: -6%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.dungeon-spore {
  position: absolute;
  border-radius: 50%;
  background: var(--slime-acid);
  box-shadow: 0 0 8px var(--slime-glow), 0 0 16px var(--slime-acid);
  pointer-events: none;
  opacity: 0;
  animation: spore-drift 8s infinite ease-in-out;
}

.spore-1 { width: 3px; height: 3px; left: 18%; bottom: 25%; animation-delay: 0s; animation-duration: 7s; }
.spore-2 { width: 4px; height: 4px; left: 32%; bottom: 20%; animation-delay: 2s; animation-duration: 9s; }
.spore-3 { width: 2px; height: 2px; left: 52%; bottom: 28%; animation-delay: 4.5s; animation-duration: 6.5s; }
.spore-4 { width: 3px; height: 3px; left: 68%; bottom: 22%; animation-delay: 1.5s; animation-duration: 8s; }
.spore-5 { width: 4px; height: 4px; left: 82%; bottom: 26%; animation-delay: 3.5s; animation-duration: 7.5s; }
.spore-6 { width: 2px; height: 2px; left: 45%; bottom: 35%; animation-delay: 5s; animation-duration: 8.5s; }

@keyframes spore-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(0.6);
    opacity: 0;
  }
  25% {
    opacity: 0.85;
  }
  75% {
    opacity: 0.6;
  }
  100% {
    transform: translate3d(24px, -110px, 0) scale(1.1);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dungeon-spore {
    animation: none;
    opacity: 0.4;
  }
}

.studio-badge {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.4rem;
  border: 1.5px solid var(--slime-acid);
  background-color: rgba(8, 28, 12, 0.72);
  color: var(--slime-acid);
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.8vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 
    0 0 14px var(--slime-glow),
    inset 0 0 10px rgba(57, 255, 20, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  margin-bottom: 1.5rem;
}

.studio-badge:hover {
  box-shadow: 
    0 0 24px rgba(57, 255, 20, 0.6),
    inset 0 0 14px rgba(57, 255, 20, 0.3);
  transform: translateY(-1px);
}

.bolt-icon {
  font-size: 1.1em;
  filter: drop-shadow(0 0 6px var(--slime-acid));
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: #f1f5f9;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2),
    0 -1px 0 rgba(0, 0, 0, 0.9),
    0 3px 8px rgba(0, 0, 0, 0.95);
}

/* Purged Web3 gradient text: Replaced with Chiseled Relic Carving & Slime Fissure Glow */
.gradient-text {
  color: #f8fafc;
  text-shadow:
    0 0 14px var(--slime-glow),
    0 0 28px rgba(57, 255, 20, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.95);
  border-bottom: 2px dashed rgba(57, 255, 20, 0.5);
  padding-bottom: 2px;
}

.hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-stone);
  line-height: 1.65;
  margin-bottom: 2.25rem;
  max-width: 780px;
  font-family: var(--font-mono);
}

/* ==========================================================================
   Tactile Stone Pressure Plate CTA Buttons
   ========================================================================== */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-height: 50px;
  min-width: 170px;
  cursor: pointer;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

/* Stone Pressure Plate - Primary (Slime Inscribed) */
.btn-primary {
  background: linear-gradient(180deg, #1e2634 0%, #121822 100%);
  color: var(--slime-acid);
  border: 2px solid var(--slime-acid);
  border-bottom: 5px solid #080b0f;
  box-shadow: 0 5px 0 #05070a, 0 8px 16px rgba(0, 0, 0, 0.8), 0 0 16px rgba(57, 255, 20, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #253042 0%, #161e2a 100%);
  box-shadow: 0 6px 0 #05070a, 0 10px 20px rgba(0, 0, 0, 0.9), 0 0 24px rgba(57, 255, 20, 0.4);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(4px);
  border-bottom-width: 2px;
  box-shadow: 0 1px 0 #05070a, 0 0 12px rgba(57, 255, 20, 0.3);
}

/* Stone Pressure Plate - Secondary (Carved Iron Lintel) */
.btn-secondary {
  background: linear-gradient(180deg, #171c26 0%, #0f121a 100%);
  color: var(--text-stone);
  border: 2px solid var(--iron-border);
  border-bottom: 5px solid #080a0e;
  box-shadow: 0 5px 0 #05070a, 0 8px 16px rgba(0, 0, 0, 0.7);
}

.btn-secondary:hover {
  border-color: #4b5872;
  color: #fff;
  box-shadow: 0 6px 0 #05070a, 0 10px 20px rgba(0, 0, 0, 0.85);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(4px);
  border-bottom-width: 2px;
  box-shadow: 0 1px 0 #05070a;
}

/* Hero Metrics / Dungeon Telemetry Slab */
.tech-metrics-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 2px solid var(--iron-border);
  box-shadow: 0 6px 0 #07090e, inset 0 1px 0 rgba(255, 255, 255, 0.05);
  width: 100%;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-left: 3px solid var(--slime-acid);
  padding-left: 0.85rem;
  text-align: left;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* ==========================================================================
   The Scrying Pool: In-Engine Combat Arena Preview
   ========================================================================== */
.arena-preview-frame {
  margin-top: 3rem;
  border-radius: var(--radius-sm);
  background: #06090e;
  border: 3px solid var(--iron-border);
  box-shadow: 0 8px 0 #07090e, 0 0 24px rgba(0, 0, 0, 0.9), inset 0 0 20px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  position: relative;
}

.arena-hud-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1.15rem;
  background: #0e121a;
  border-bottom: 2px solid var(--iron-border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.arena-hud-tag {
  color: var(--slime-acid);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-shadow: 0 0 6px var(--slime-glow);
}

/* ==========================================================================
   Sections General & Chiseled Headers
   ========================================================================== */
.section {
  padding: 5rem 0;
  border-top: 3px solid var(--iron-border-dark);
  position: relative;
  background:
    radial-gradient(ellipse 70% 60% at 80% 30%, rgba(20, 83, 45, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 65% 55% at 20% 70%, rgba(20, 83, 45, 0.06) 0%, transparent 70%);
}

.section:nth-of-type(even) {
  background:
    radial-gradient(ellipse 70% 60% at 20% 30%, rgba(20, 83, 45, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 65% 55% at 80% 70%, rgba(20, 83, 45, 0.06) 0%, transparent 70%);
}

.section-header {
  margin-bottom: 2.75rem;
  max-width: 800px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--iron-border);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  color: #f8fafc;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-family: var(--font-mono);
}

/* Prototype #1 Showcase */
.prototype-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.concept-card {
  padding: 1.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 2px solid var(--iron-border);
  box-shadow: 0 5px 0 #07090e;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.concept-card:hover {
  transform: translateY(-3px);
  border-color: var(--slime-acid);
  box-shadow: 0 7px 0 #07090e, 0 0 16px var(--slime-glow);
}

.card-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  border: 1px solid var(--iron-border);
  box-shadow: 0 3px 0 #07090e;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
  color: #fff;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-family: var(--font-mono);
}

/* ==========================================================================
   Dimensional Gates Triad: Relic Slabs
   ========================================================================== */
.gates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 3.5rem;
}

.gate-card {
  padding: 2rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 2px solid var(--iron-border);
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 0 #07090e;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.gate-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.gate-card[data-realm="cyberpunk"]::before {
  background: var(--realm-cyberpunk);
}
.gate-card[data-realm="cyberpunk"]:hover {
  border-color: var(--realm-cyberpunk);
  box-shadow: 0 8px 0 #07090e, 0 0 24px var(--realm-cyberpunk-glow);
  transform: translateY(-4px);
}

.gate-card[data-realm="xianxia"]::before {
  background: var(--realm-xianxia);
}
.gate-card[data-realm="xianxia"]:hover {
  border-color: var(--realm-xianxia);
  box-shadow: 0 8px 0 #07090e, 0 0 24px var(--realm-xianxia-glow);
  transform: translateY(-4px);
}

.gate-card[data-realm="medieval"]::before {
  background: var(--realm-medieval);
}
.gate-card[data-realm="medieval"]:hover {
  border-color: var(--realm-medieval);
  box-shadow: 0 8px 0 #07090e, 0 0 24px var(--realm-medieval-glow);
  transform: translateY(-4px);
}

.gate-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.realm-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 0 #000;
}

.gate-card[data-realm="cyberpunk"] .realm-badge {
  color: var(--realm-cyberpunk);
  background: var(--realm-cyberpunk-bg);
  border: 1px solid var(--realm-cyberpunk);
}

.gate-card[data-realm="xianxia"] .realm-badge {
  color: var(--realm-xianxia);
  background: var(--realm-xianxia-bg);
  border: 1px solid var(--realm-xianxia);
}

.gate-card[data-realm="medieval"] .realm-badge {
  color: var(--realm-medieval);
  background: var(--realm-medieval-bg);
  border: 1px solid var(--realm-medieval);
}

.gate-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  color: #fff;
}

.gate-lore {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
}

.realm-stats {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--iron-border);
}

.realm-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-track {
  flex: 1;
  height: 6px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-fill {
  height: 100%;
  border-radius: 1px;
}

.gate-perks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

.gate-perks-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
}

.perk-bullet {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

.gate-card[data-realm="cyberpunk"] .perk-bullet { background: var(--realm-cyberpunk); color: var(--realm-cyberpunk); }
.gate-card[data-realm="xianxia"] .perk-bullet { background: var(--realm-xianxia); color: var(--realm-xianxia); }
.gate-card[data-realm="medieval"] .perk-bullet { background: var(--realm-medieval); color: var(--realm-medieval); }

/* Mechanics Deep Dive & Diagrams */
.mechanics-spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.spotlight-box {
  padding: 2.25rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 2px solid var(--iron-border);
  box-shadow: 0 6px 0 #07090e;
}

.spotlight-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
}

.spotlight-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
}

.diagram-wrapper {
  background: #080b10;
  border: 2px solid var(--iron-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-top: 1rem;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   Engineering & Credentials: The Dungeon Codex / Systems Field Log
   ========================================================================== */
.engineering-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
}

.founder-profile-card {
  padding: 2.25rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 2px solid var(--iron-border);
  box-shadow: 0 6px 0 #07090e, 0 0 16px rgba(0, 0, 0, 0.7);
}

.founder-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.founder-avatar {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  background: #19202c;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--slime-acid);
  border: 2px solid var(--slime-acid);
  box-shadow: 0 3px 0 #000, 0 0 10px var(--slime-glow);
}

.founder-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
}

.founder-role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slime-acid);
  font-weight: 700;
  text-transform: uppercase;
}

.founder-bio {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
}

.credentials-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.cred-tag {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--iron-border);
  color: var(--text-stone);
  box-shadow: 0 2px 0 #000;
}

.cloud-architecture-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cloud-arch-item {
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 2px solid var(--iron-border);
  box-shadow: 0 4px 0 #07090e;
}

.arch-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.arch-program-pill {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(34, 197, 94, 0.1);
  color: var(--slime-acid);
  border: 1px solid var(--slime-acid);
}

.arch-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  font-family: var(--font-mono);
}

/* ==========================================================================
   Production Roadmap - Dungeon Floors
   ========================================================================== */
.roadmap-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  position: relative;
}

.phase-card {
  padding: 2rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 2px solid var(--iron-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 6px 0 #07090e;
  position: relative;
}

.phase-card.active {
  border-color: var(--slime-acid);
  box-shadow: 0 6px 0 #07090e, 0 0 20px rgba(57, 255, 20, 0.25);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.06) 0%, var(--bg-card) 100%);
}

.phase-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.phase-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 0 #000;
}

.phase-card.active .phase-pill {
  background: rgba(34, 197, 94, 0.15);
  color: var(--slime-acid);
  border: 1px solid var(--slime-acid);
}

.phase-quarter {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.phase-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  color: #fff;
}

.phase-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
}

.deliverables-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.deliverables-list li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-family: var(--font-mono);
}

.check-icon {
  color: var(--slime-acid);
  flex-shrink: 0;
  margin-top: 1px;
  font-weight: bold;
}

/* ==========================================================================
   Contact & Verification: Sealed Codex
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-card {
  padding: 2.25rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 2px solid var(--iron-border);
  box-shadow: 0 6px 0 #07090e;
}

.contact-card-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: #fff;
}

.contact-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  font-family: var(--font-mono);
}

.contact-channels-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-channel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--iron-border);
  min-height: 48px;
  box-shadow: 0 3px 0 #000;
  transition: all var(--transition-fast);
}

.contact-channel-item:hover {
  background: rgba(34, 197, 94, 0.08);
  border-color: var(--slime-acid);
  transform: translateX(4px);
  box-shadow: 0 4px 0 #000, 0 0 12px var(--slime-glow);
}

.channel-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.channel-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.channel-value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Verification Box */
.verification-box {
  padding: 2rem;
  border-radius: var(--radius-sm);
  background: var(--bg-dark-surface);
  border: 2px solid var(--iron-border);
  box-shadow: 0 6px 0 #07090e;
}

.verification-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.verification-status-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid var(--slime-acid);
  color: var(--slime-acid);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 0 #000;
}

.verification-details {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.55);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--iron-border);
}

/* Footer: Stone Crypt Base */
.site-footer {
  padding: 4rem 0 3rem;
  border-top: 3px solid var(--iron-border);
  background: #080b0f;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-brand-statement {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
}

.footer-nav a {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--text-secondary);
}

.footer-nav a:hover {
  color: var(--slime-acid);
  text-shadow: 0 0 8px var(--slime-glow);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Responsive Breakpoints & Strict Overflow Containment
   ========================================================================== */
@media (max-width: 1024px) {
  .mechanics-spotlight,
  .engineering-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .roadmap-timeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: auto;
    padding: 0.85rem 0;
    overflow-x: hidden;
  }

  .site-header .container {
    flex-wrap: wrap;
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-nav {
    order: 3;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    padding-top: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links {
    gap: 0.85rem;
    white-space: nowrap;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  .hero-section {
    padding: 3rem 0 2.5rem;
  }

  .gates-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 480px) {
  .brand-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .tech-metrics-bar {
    grid-template-columns: 1fr;
  }
}
