/* ==========================================================================
   OPENSADDLE - OFFICIAL GAME & COMMUNITY PORTAL
   Aesthetic: Adult Dark Fantasy & Steampunk Ingenuity
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Cinzel+Decorative:wght@700;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --bg-void: #07090e;
  --bg-dark: #0c1017;
  --bg-surface: #121722;
  --bg-surface-elevated: #171e2c;
  --bg-glass: rgba(12, 16, 23, 0.82);
  --bg-glass-card: rgba(18, 23, 34, 0.75);

  --brass-dark: #8c6227;
  --brass: #c59b27;
  --brass-light: #e5b94c;
  --brass-glow: rgba(197, 155, 39, 0.35);
  
  --copper: #b87333;
  --copper-light: #d48b48;
  
  --ember: #e85d04;
  --ember-glow: rgba(232, 93, 4, 0.4);
  --ember-bright: #ff6b1a;
  
  --steam-cyan: #38bdf8;
  --steam-cyan-glow: rgba(56, 189, 248, 0.3);

  --steel: #2e384d;
  --steel-border: #242d3d;
  --steel-highlight: #475569;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dark: #64748b;
  --text-gold: #f3c68f;

  --font-display: 'Cinzel Decorative', Georgia, serif;
  --font-serif: 'Cinzel', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   RESET & GLOBAL
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  background-color: var(--bg-void);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  position: relative;
  background: radial-gradient(circle at 50% 0%, #171d2b 0%, var(--bg-void) 45%, #050608 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Custom Steampunk Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-void);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brass), var(--copper));
  border-radius: var(--radius-sm);
  border: 2px solid var(--bg-void);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--brass-light), var(--ember));
}

::selection {
  background: var(--brass);
  color: var(--bg-void);
}

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

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* --------------------------------------------------------------------------
   UTILITIES & ORNAMENTS
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.gold-gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--brass-light) 40%, var(--brass) 75%, var(--copper) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.ember-gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--ember-bright) 50%, var(--ember) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-light);
  padding: 0.35rem 1rem;
  background: rgba(197, 155, 39, 0.08);
  border: 1px solid var(--border-brass);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  position: relative;
}

.section-tag::before {
  content: "✦";
  font-size: 0.75rem;
  color: var(--ember);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 4rem auto;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Steampunk Rivets Corner Effect */
.steampunk-panel {
  position: relative;
  background: var(--bg-glass-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--steel-border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.steampunk-panel::before,
.steampunk-panel::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--brass);
  border-radius: 50%;
  box-shadow: inset 0 1px 1px #fff, 0 0 4px rgba(0,0,0,0.8);
  pointer-events: none;
}

.steampunk-panel::before {
  top: 6px;
  left: 6px;
}

.steampunk-panel::after {
  top: 6px;
  right: 6px;
}

/* Section Separator */
.ornate-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 2.5rem auto;
  max-width: 450px;
}

.ornate-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-brass), transparent);
}

.ornate-divider .gear {
  width: 22px;
  height: 22px;
  color: var(--brass);
  animation: slowSpin 25s linear infinite;
}

@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   NAVIGATION
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 84px;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(197, 155, 39, 0.15);
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  height: 72px;
  background: rgba(8, 11, 16, 0.94);
  border-bottom-color: rgba(197, 155, 39, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.navbar .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  max-width: 1680px;
  padding-left: 2rem;
  padding-right: 2rem;
  gap: 1.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 2rem;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(197, 155, 39, 0.35));
  transition: transform var(--transition-smooth);
}

.brand-link:hover .brand-logo {
  transform: scale(1.05);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: #fff;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brass-light);
  font-weight: 600;
  white-space: nowrap;
}

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

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.5rem 0;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brass), var(--ember));
  transition: width var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  margin-left: auto;
}

.social-nav-icons {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--steel-border);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  color: #fff;
  background: rgba(197, 155, 39, 0.15);
  border-color: var(--brass);
  transform: translateY(-2px);
}

.social-icon-btn.discord:hover {
  background: #5865F2;
  border-color: #5865F2;
  color: #fff;
  box-shadow: 0 0 15px rgba(88, 101, 242, 0.5);
}

.social-icon-btn.youtube:hover {
  background: #FF0000;
  border-color: #FF0000;
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.social-icon-btn.instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-color: #fd5949;
  color: #fff;
  box-shadow: 0 0 15px rgba(220, 39, 67, 0.5);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  transition: all var(--transition-smooth);
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brass) 0%, var(--copper) 100%);
  color: #07090e;
  border: 1px solid var(--brass-light);
  box-shadow: 0 4px 18px rgba(197, 155, 39, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brass-light) 0%, var(--ember) 100%);
  color: #fff;
  box-shadow: 0 6px 24px var(--ember-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(18, 23, 34, 0.75);
  color: var(--text-main);
  border: 1px solid var(--steel-highlight);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--brass);
  background: rgba(197, 155, 39, 0.12);
  color: var(--brass-light);
  transform: translateY(-2px);
}

.btn-discord {
  background: #5865F2;
  color: #fff;
  border: 1px solid #7289DA;
  box-shadow: 0 4px 18px rgba(88, 101, 242, 0.4);
}

.btn-discord:hover {
  background: #4752C4;
  box-shadow: 0 6px 25px rgba(88, 101, 242, 0.6);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 130px;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: 
    radial-gradient(ellipse at 50% 30%, rgba(197, 155, 39, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 10% 80%, rgba(232, 93, 4, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, rgba(7, 9, 14, 0.4) 0%, rgba(7, 9, 14, 0.85) 75%, var(--bg-void) 100%);
  pointer-events: none;
}

.hero-backdrop-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0.35;
  filter: saturate(1.1) brightness(0.7) contrast(1.1);
  z-index: 0;
  transform: scale(1.03);
  animation: heroKenBurns 30s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.08) translateY(-10px); }
}

#hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.hero-badge-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(14, 18, 27, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--steel-border);
  color: var(--text-muted);
}

.hero-badge.mature {
  border-color: rgba(232, 93, 4, 0.5);
  color: #ff8c42;
  background: rgba(232, 93, 4, 0.1);
}

.hero-badge.engine {
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--steam-cyan);
}

.hero-logo-center {
  max-width: 380px;
  width: 80%;
  margin: 0 auto 1.5rem auto;
  filter: drop-shadow(0 15px 35px rgba(0,0,0,0.8)) drop-shadow(0 0 25px rgba(197, 155, 39, 0.35));
  animation: heroFloat 6s ease-in-out infinite alternate;
}

@keyframes heroFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.hero-description {
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 880px;
  margin: 0 auto;
}

.metric-item {
  background: rgba(14, 18, 27, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--steel-border);
  padding: 1.2rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  position: relative;
}

.metric-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
}

.metric-number {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--brass-light);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   STORY & LORE SECTION
   -------------------------------------------------------------------------- */
.story-section {
  padding: 6rem 0;
  position: relative;
  background: linear-gradient(180deg, var(--bg-void) 0%, var(--bg-surface) 50%, var(--bg-void) 100%);
}

.lore-showcase {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 5rem;
}

.lore-text-content h3 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.lore-lead {
  font-size: 1.15rem;
  color: var(--text-gold);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.lore-body {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.quote-box {
  border-left: 3px solid var(--brass);
  background: rgba(197, 155, 39, 0.05);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: #e2e8f0;
}

.quote-box cite {
  display: block;
  font-style: normal;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brass-light);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lore-image-wrapper {
  position: relative;
}

.lore-main-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--steel-highlight);
  box-shadow: 0 20px 45px rgba(0,0,0,0.6);
}

.lore-main-frame img {
  width: 100%;
  height: auto;
  transition: transform var(--transition-smooth);
}

.lore-main-frame:hover img {
  transform: scale(1.03);
}

.lore-floating-badge {
  position: absolute;
  bottom: -20px;
  right: 25px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--brass);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brass-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brass-light);
}

/* Timeline Cards */
.story-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.timeline-card {
  padding: 2rem 1.5rem;
  position: relative;
  border-top: 2px solid var(--steel-border);
  transition: all var(--transition-smooth);
}

.timeline-card:hover {
  border-top-color: var(--brass);
  transform: translateY(-4px);
  background: var(--bg-surface-elevated);
}

.timeline-step {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--brass);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   CORE GAMEPLAY PILLARS
   -------------------------------------------------------------------------- */
.features-section {
  padding: 6rem 0;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.feature-card {
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--steel-border);
  transition: all var(--transition-smooth);
}

.feature-card:hover {
  border-color: var(--brass);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(197, 155, 39, 0.15);
  transform: translateY(-4px);
}

.feature-card-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, var(--brass-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.4;
  transition: opacity var(--transition-smooth);
}

.feature-card:hover .feature-card-glow {
  opacity: 0.8;
}

.feature-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: rgba(197, 155, 39, 0.1);
  border: 1px solid var(--border-brass);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  color: var(--brass-light);
  box-shadow: inset 0 0 15px rgba(197, 155, 39, 0.1);
}

.feature-card.terraforming .feature-icon-box {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--steam-cyan);
  color: var(--steam-cyan);
}

.feature-card.tactics .feature-icon-box {
  background: rgba(232, 93, 4, 0.1);
  border-color: var(--ember);
  color: var(--ember-bright);
}

.feature-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   SCREENSHOT & MEDIA GALLERY
   -------------------------------------------------------------------------- */
.gallery-section {
  padding: 6rem 0;
  background: var(--bg-surface);
  position: relative;
}

.gallery-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: rgba(14, 18, 27, 0.8);
  border: 1px solid var(--steel-border);
  color: var(--text-muted);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--brass);
  color: #fff;
}

.filter-btn.active {
  background: var(--brass);
  border-color: var(--brass-light);
  color: var(--bg-void);
  box-shadow: 0 0 15px var(--brass-glow);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--steel-border);
  cursor: pointer;
  aspect-ratio: 16 / 9;
  background: #000;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth), filter var(--transition-smooth);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 9, 14, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.gallery-item-cat {
  font-size: 0.75rem;
  color: var(--brass-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4, 5, 8, 0.95);
  backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img-wrap {
  width: 100%;
  max-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--steel-highlight);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: #fff;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(18, 23, 34, 0.8);
  border: 1px solid var(--steel-highlight);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--brass);
  color: var(--bg-void);
  border-color: var(--brass-light);
}

.lightbox-close {
  top: -20px;
  right: -20px;
}

.lightbox-prev {
  left: -25px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: -25px;
  top: 50%;
  transform: translateY(-50%);
}

/* --------------------------------------------------------------------------
   COMMUNITY HUB & SOCIAL CHANNELS
   -------------------------------------------------------------------------- */
.community-section {
  padding: 6rem 0;
  position: relative;
  background: radial-gradient(ellipse at 50% 100%, rgba(88, 101, 242, 0.08) 0%, transparent 60%);
}

.community-cards-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

/* Discord Main Feature Card */
.community-card {
  padding: 2.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-lg);
}

.community-card.discord-card {
  background: linear-gradient(145deg, rgba(88, 101, 242, 0.12) 0%, var(--bg-surface) 100%);
  border: 1px solid rgba(88, 101, 242, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.community-card.discord-card:hover {
  border-color: #5865F2;
  box-shadow: 0 15px 40px rgba(88, 101, 242, 0.25);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.channel-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.discord-card .channel-icon {
  background: #5865F2;
  color: #fff;
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.community-card-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}

.community-card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.discord-channel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.discord-channel-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  border-left: 2px solid #5865F2;
}

/* YouTube Card */
.community-card.youtube-card {
  background: linear-gradient(145deg, rgba(255, 0, 0, 0.08) 0%, var(--bg-surface) 100%);
  border: 1px solid rgba(255, 0, 0, 0.25);
}

.community-card.youtube-card:hover {
  border-color: #FF0000;
  box-shadow: 0 15px 40px rgba(255, 0, 0, 0.2);
}

.youtube-card .channel-icon {
  background: #FF0000;
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

/* Instagram Card */
.community-card.instagram-card {
  background: linear-gradient(145deg, rgba(220, 39, 67, 0.08) 0%, var(--bg-surface) 100%);
  border: 1px solid rgba(220, 39, 67, 0.25);
}

.community-card.instagram-card:hover {
  border-color: #fd5949;
  box-shadow: 0 15px 40px rgba(220, 39, 67, 0.2);
}

.instagram-card .channel-icon {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
  box-shadow: 0 0 20px rgba(220, 39, 67, 0.4);
}

/* Community Highlights Box */
.community-values-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-brass);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  text-align: center;
}

.value-item h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brass-light);
  margin-bottom: 0.5rem;
}

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

/* --------------------------------------------------------------------------
   DEVLOGS & NEWS FEED
   -------------------------------------------------------------------------- */
.devlogs-section {
  padding: 6rem 0;
  position: relative;
  background: var(--bg-void);
}

.devlog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.devlog-card {
  background: var(--bg-surface);
  border: 1px solid var(--steel-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.devlog-card:hover {
  border-color: var(--brass);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.devlog-thumb {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.devlog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.devlog-card:hover .devlog-thumb img {
  transform: scale(1.05);
}

.devlog-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--brass);
  color: var(--brass-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
}

.devlog-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.devlog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.devlog-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.devlog-snippet {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.devlog-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brass-light);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: gap var(--transition-fast);
}

.devlog-read-btn:hover {
  gap: 0.75rem;
  color: #fff;
}

.devlog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--steel-border);
  gap: 0.5rem;
  flex-wrap: wrap;
}

.devlog-discuss-link {
  font-size: 0.78rem;
  color: #5865F2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(88, 101, 242, 0.08);
  border: 1px solid rgba(88, 101, 242, 0.2);
}

.devlog-discuss-link:hover {
  background: rgba(88, 101, 242, 0.2);
  border-color: #5865F2;
  color: #fff;
  transform: translateY(-1px);
}

/* Channel Filter Tabs Bar */
.channel-filter-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 2.5rem 0;
  position: relative;
}

.channel-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  background: rgba(18, 22, 28, 0.85);
  border: 1px solid var(--steel-border);
  border-radius: var(--radius-pill, 9999px);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  flex-wrap: wrap;
  justify-content: center;
}

.channel-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill, 9999px);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.channel-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.channel-tab-btn.active {
  background: linear-gradient(135deg, rgba(197, 155, 39, 0.25), rgba(197, 155, 39, 0.1));
  border-color: var(--brass);
  color: var(--brass-light);
  box-shadow: 0 0 15px rgba(197, 155, 39, 0.25);
}

/* Discord Feed Header Card inside Reader Modal */
.discord-feed-header-card {
  background: rgba(88, 101, 242, 0.08);
  border: 1px solid rgba(88, 101, 242, 0.35);
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.disc-author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.disc-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--brass);
  object-fit: cover;
  background: var(--bg-void);
}

.disc-author-name {
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.disc-tag-dev {
  background: #5865F2;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.disc-channel-crumb {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.article-lead {
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.quote-box {
  background: rgba(197, 155, 39, 0.06);
  border-left: 3px solid var(--brass);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

.quote-box p {
  font-style: italic;
  color: #e2e8f0;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.quote-box cite {
  font-size: 0.8rem;
  color: var(--brass-light);
  font-weight: 600;
  display: block;
}

/* YouTube Embed Responsive Container */
.youtube-embed-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--steel-border);
  margin: 1.5rem 0;
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.youtube-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------------------
   ROADMAP SECTION
   -------------------------------------------------------------------------- */
.roadmap-section {
  padding: 6rem 0;
  background: var(--bg-surface);
  position: relative;
}

.roadmap-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  margin-top: 3rem;
}

.roadmap-timeline::before {
  content: "";
  position: absolute;
  top: 45px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brass), var(--steel-border));
  z-index: 1;
}

.roadmap-node {
  position: relative;
  z-index: 2;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--steel-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  transition: all var(--transition-smooth);
}

.roadmap-node.active {
  border-color: var(--brass);
  box-shadow: 0 0 25px rgba(197, 155, 39, 0.2);
}

.roadmap-marker {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-void);
  border: 2px solid var(--steel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.roadmap-node.active .roadmap-marker {
  border-color: var(--brass);
  background: var(--brass);
  color: var(--bg-void);
  box-shadow: 0 0 15px var(--brass);
}

.roadmap-phase {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--brass-light);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.roadmap-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.roadmap-features-list {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.roadmap-features-list li::before {
  content: "✔ ";
  color: var(--brass);
}

/* --------------------------------------------------------------------------
   CONTACT FORM & NETLIFY SETUP
   -------------------------------------------------------------------------- */
.contact-section {
  padding: 6rem 0;
  position: relative;
  background: var(--bg-void);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3.5rem;
}

.contact-info-panel {
  padding: 2.25rem;
  background: #111724;
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: fit-content;
}

.contact-info-panel h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.85rem;
}

.contact-lead {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #090d14;
  border: 1px solid #1e293b;
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.78rem;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.contact-value {
  font-size: 1rem;
  color: #fff;
  font-weight: 600;
}

.contact-value a:hover {
  color: var(--brass-light);
}

.contact-footnote-box {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
  font-size: 0.8rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.contact-footnote-box button,
.contact-footnote-box a {
  color: #38bdf8;
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
}

.form-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--steel-border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.form-control {
  width: 100%;
  background: var(--bg-void);
  border: 1px solid var(--steel-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  color: #fff;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 15px var(--brass-glow);
  background: rgba(12, 16, 23, 0.95);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.form-privacy-note {
  font-size: 0.8rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.form-privacy-note a {
  color: var(--brass-light);
  text-decoration: underline;
}

.form-status {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-top: 1.25rem;
  font-size: 0.92rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #4ade80;
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: #05070a;
  border-top: 1px solid rgba(197, 155, 39, 0.15);
  padding: 5rem 0 2rem 0;
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 380px;
}

.footer-col-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  position: relative;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links-list a,
.footer-links-list button {
  color: var(--text-muted);
  font-size: 0.88rem;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.footer-links-list a:hover,
.footer-links-list button:hover {
  color: var(--brass-light);
}

.footer-bottom {
  border-top: 1px solid var(--steel-border);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-dark);
}

.footer-bottom a {
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--brass-light);
}

/* --------------------------------------------------------------------------
   LEGAL & ARTICLE MODALS
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4, 5, 8, 0.85);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-window {
  background: var(--bg-surface);
  border: 1px solid var(--steel-highlight);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 820px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  position: relative;
  overflow: hidden;
}

.modal-header {
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--steel-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--steel-border);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--ember);
  color: #fff;
  border-color: var(--ember-bright);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.modal-body h3 {
  font-family: var(--font-serif);
  color: #fff;
  font-size: 1.25rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.modal-body h4 {
  color: var(--brass-light);
  font-size: 1.05rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.modal-body p {
  margin-bottom: 1rem;
}

.modal-body ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.modal-body li {
  margin-bottom: 0.4rem;
}

.modal-body .legal-address-box {
  background: var(--bg-void);
  border: 1px solid var(--steel-border);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  margin: 1.25rem 0;
  color: #fff;
  font-family: monospace;
}

/* --------------------------------------------------------------------------
   RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .lore-showcase {
    grid-template-columns: 1fr;
  }
  .story-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .community-cards-grid {
    grid-template-columns: 1fr;
  }
  .community-values-box {
    grid-template-columns: 1fr;
  }
  .devlog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .roadmap-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .roadmap-timeline::before {
    display: none;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1360px) {
  .nav-links {
    gap: 1rem;
  }
  .nav-link {
    font-size: 0.86rem;
  }
  .brand-link {
    margin-right: 1.25rem;
  }
}

@media (max-width: 1180px) {
  .social-nav-icons {
    display: none;
  }
}

@media (max-width: 1040px) {
  .nav-links, .social-nav-icons {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  .mobile-menu {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    background: rgba(8, 11, 16, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--steel-border);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-smooth);
    z-index: 99;
  }
  .mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .devlog-grid {
    grid-template-columns: 1fr;
  }
  .story-timeline {
    grid-template-columns: 1fr;
  }
  .roadmap-timeline {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .lightbox-prev, .lightbox-next {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   LANGUAGE SWITCHER
   -------------------------------------------------------------------------- */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(14, 18, 27, 0.85);
  border: 1px solid var(--steel-border);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  color: #fff;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--brass) 0%, var(--copper) 100%);
  color: var(--bg-void);
  box-shadow: 0 0 10px var(--brass-glow);
}

/* --------------------------------------------------------------------------
   COOKIE CONSENT BANNER & SETTINGS MODAL
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(9, 12, 18, 0.96);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--steel-highlight);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
  padding: 1.5rem 0;
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 300px;
}

.cookie-banner-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-banner-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-settings-card {
  background: var(--bg-void);
  border: 1px solid var(--steel-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--steel-border);
  transition: 0.3s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background: linear-gradient(135deg, var(--brass), var(--ember));
}

input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

input:disabled + .toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

