/* ==========================================================================
   NEXUS UNION PROTOCOL — ART DIRECTOR DESIGN SYSTEM
   "Viele Spiele. Eine Community."
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* --- Design Tokens & Color Palette --- */
:root {
  /* Core Backgrounds */
  --bg-deep: #050811;
  --bg-surface: #0a0f1d;
  --bg-elevated: #10172a;
  --bg-card: rgba(13, 20, 38, 0.7);
  --bg-card-hover: rgba(18, 28, 54, 0.85);
  --bg-glass: rgba(8, 12, 24, 0.88);
  
  /* Primary & Accent Accents */
  --accent-cyan: #00d2ff;
  --accent-primary: #00d2ff;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-gradient: linear-gradient(135deg, #00d2ff 0%, #3b82f6 50%, #6366f1 100%);
  --accent-glow: rgba(0, 210, 255, 0.2);
  
  /* Status & Game Accents */
  --status-online: #10b981;
  --status-online-bg: rgba(16, 185, 129, 0.12);
  --discord-brand: #5865F2;
  --discord-hover: #4752c4;
  
  /* Text Hierarchy */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #8896ab;
  --text-dim: #526075;
  
  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-light: rgba(255, 255, 255, 0.12);
  --border-active: rgba(0, 210, 255, 0.4);
  
  /* Shadows & Depth */
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 35px rgba(0, 210, 255, 0.15);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --max-width: 1320px;
  --header-height: 74px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(circle at 50% -10%, rgba(0, 210, 255, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 100% 30%, rgba(99, 102, 241, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 0% 70%, rgba(0, 210, 255, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Navigation Header --- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(5, 8, 17, 0.95);
  border-bottom-color: var(--border-light);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid rgba(0, 210, 255, 0.25);
  background: #040711;
  object-fit: contain;
  padding: 4px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.brand:hover .brand-logo-img {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.35);
  transform: scale(1.05);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--accent-cyan);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 700;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

/* Dropdown */
.nav-dropdown-wrapper { position: relative; }
.nav-dropdown-trigger i.fa-chevron-down { font-size: 0.7rem; transition: transform 0.25s ease; }
.nav-dropdown-wrapper:hover .nav-dropdown-trigger i.fa-chevron-down { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 230px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 8px;
  list-style: none;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown-wrapper:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.nav-dropdown-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.nav-dropdown-item a:hover {
  background: rgba(0, 210, 255, 0.1);
  color: var(--accent-cyan);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--status-online-bg);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--status-online);
}

.header-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-online);
  box-shadow: 0 0 8px var(--status-online);
  animation: pulse-dot 2s infinite ease-in-out;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  cursor: pointer;
}

.mobile-nav-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-light);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
  overflow-y: auto;
}

.mobile-nav-drawer.active { transform: translateX(0); }

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #030712;
  box-shadow: 0 4px 20px rgba(0, 210, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 210, 255, 0.45);
  color: #030712;
}

.btn-discord {
  background: var(--discord-brand);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.35);
}
.btn-discord:hover {
  background: var(--discord-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(88, 101, 242, 0.5);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

/* --- CINEMATIC HERO SECTION (ASYMMETRICAL GAMING STAGE) --- */
.hero-cinema {
  position: relative;
  padding: 80px 0 90px;
  overflow: hidden;
}

.hero-cinema-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-cinema-left {
  display: flex;
  flex-direction: column;
}

.hero-community-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  width: fit-content;
  margin-bottom: 22px;
}

.hero-cinema-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.hero-cinema-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.hero-cinema-lead {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 34px;
  max-width: 580px;
}

.hero-cinema-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-telemetry-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.telemetry-item {
  display: flex;
  flex-direction: column;
}

.telemetry-val {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.telemetry-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

/* HERO LIVE HUB WIDGET (RIGHT COLUMN) */
.hero-hub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.hero-hub-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

.hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.hub-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hub-quick-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.hub-quick-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 8, 17, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  transition: var(--transition);
}

.hub-quick-item:hover {
  border-color: var(--border-active);
  background: rgba(16, 23, 42, 0.85);
}

.hub-game-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hub-game-icon {
  font-size: 1.2rem;
}

.hub-game-name {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.hub-game-status {
  font-size: 0.75rem;
  color: var(--status-online);
  font-weight: 600;
}

.btn-mini-copy {
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.3);
  color: var(--accent-cyan);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-mini-copy:hover {
  background: var(--accent-cyan);
  color: #030712;
}

.hub-footer-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

/* --- SECTION FORMATTING --- */
.section {
  padding: 90px 0;
  position: relative;
}

.section-head {
  margin-bottom: 48px;
}

.section-tag {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.08rem;
  max-width: 680px;
  line-height: 1.6;
}

/* --- THE NXP GAME & SERVER SPOTLIGHT (HERO FEATURE) --- */
.game-spotlight-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Game Navigation Selector Tabs */
.game-selector-nav {
  display: flex;
  overflow-x: auto;
  background: rgba(5, 8, 17, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 14px;
  gap: 8px;
  scrollbar-width: none;
}
.game-selector-nav::-webkit-scrollbar { display: none; }

.game-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

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

.game-tab-btn.active {
  background: rgba(0, 210, 255, 0.12);
  border-color: rgba(0, 210, 255, 0.4);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.15);
}

/* Active Spotlight Stage */
.game-spotlight-stage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 480px;
}

.spotlight-visual-box {
  position: relative;
  background: #020409;
  overflow: hidden;
  min-height: 320px;
}

.spotlight-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.spotlight-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(10, 15, 29, 1) 100%),
              linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(10, 15, 29, 0.9) 100%);
}

.spotlight-tag-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(5, 8, 17, 0.85);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.spotlight-info-panel {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-surface);
}

.spotlight-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 8px;
}

.spotlight-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.spotlight-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.spotlight-connect-box {
  background: rgba(5, 8, 17, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.connect-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}

.connect-lbl {
  color: var(--text-muted);
  font-weight: 600;
}

.connect-val {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-cyan);
}

.connect-val.text-main {
  color: #ffffff;
  font-family: var(--font-body);
}

.spotlight-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- 3D LIVE WORLD MAP SECTION (FLAGSHIP IMMERSION) --- */
.map-flagship-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.map-flagship-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: rgba(5, 8, 17, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 14px;
}

.map-flagship-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.map-viewport-frame {
  position: relative;
  width: 100%;
  height: 600px;
  background: #020409;
}

.map-viewport-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.map-flagship-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(5, 8, 17, 0.95);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* --- EDITORIAL COMMUNITY STORYTELLING SECTION --- */
.community-editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.community-manifesto h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.2;
}

.community-manifesto p {
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.community-values-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  transition: var(--transition);
}

.value-item:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.value-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.value-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.value-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --- DISCORD COMMUNITY HUB BANNER --- */
.discord-stage-banner {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.2) 0%, rgba(13, 20, 38, 0.95) 100%);
  border: 1.5px solid rgba(88, 101, 242, 0.4);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7), 0 0 50px rgba(88, 101, 242, 0.15);
  flex-wrap: wrap;
}

.discord-stage-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 12px;
}

.discord-stage-desc {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 640px;
}

/* --- INFRASTRUCTURE & PERFORMANCE MATRIX --- */
.infra-summary-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.infra-nodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.node-row-card {
  background: rgba(5, 8, 17, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  transition: var(--transition);
}

.node-row-card:hover {
  border-color: var(--border-active);
  background: rgba(16, 23, 42, 0.95);
  transform: translateY(-3px);
}

.node-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.node-title-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}

.node-role-badge {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-weight: 700;
  text-transform: uppercase;
}

.node-specs-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 0.84rem;
}

.spec-inline-item {
  display: flex;
  flex-direction: column;
}

.spec-inline-k {
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
}

.spec-inline-v {
  font-family: var(--font-mono);
  color: #ffffff;
  font-weight: 600;
}

/* --- COMMUNITY LEADERSHIP ROSTER (TEAM) --- */
.team-roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.roster-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.roster-card:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.roster-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.roster-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.2);
}

.roster-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
}

.roster-role {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 700;
}

.roster-bio {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.roster-badge-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --- NXP SERVICES DOCK --- */
.services-dock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.dock-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.dock-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  background: var(--bg-card-hover);
}

.dock-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.dock-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.dock-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}

.dock-action {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --- FOOTER --- */
.site-footer {
  background: #03050c;
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 30px;
  margin-top: auto;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 380px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}

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

.footer-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-cyan);
  transform: translateX(3px);
  display: inline-block;
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

/* --- TOAST NOTIFICATIONS & MODALS --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg), 0 0 25px rgba(0, 210, 255, 0.25);
  backdrop-filter: blur(16px);
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.toast.active { transform: translateY(0); opacity: 1; }
.toast-icon { color: var(--status-online); font-size: 1.1rem; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-container {
  width: 100%;
  max-width: 1200px;
  height: 85vh;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container { transform: scale(1); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}
.modal-close-btn:hover { color: #ffffff; background: rgba(255, 255, 255, 0.1); }

.modal-body {
  flex-grow: 1;
  position: relative;
  background: #020409;
}

/* ==================== TEAM & ROSTER HIERARCHY ==================== */
.team-hierarchy-container {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.team-tier-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-tier-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

.tier-badge-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.tier-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
  text-transform: uppercase;
}

.team-grid-leadership {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.team-grid-staff {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.team-card {
  background: rgba(10, 15, 29, 0.7);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--card-accent, var(--accent-cyan));
  opacity: 0.8;
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-accent, var(--accent-cyan));
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 210, 255, 0.15);
}

.team-card-lead {
  background: linear-gradient(145deg, rgba(14, 22, 44, 0.85) 0%, rgba(6, 10, 22, 0.95) 100%);
  border: 1.5px solid rgba(0, 210, 255, 0.3);
  padding: 32px 28px;
}

.team-card-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.team-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(5, 8, 17, 0.9);
  border: 2px solid var(--avatar-border, var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  box-shadow: 0 0 16px var(--avatar-glow, rgba(0, 210, 255, 0.3));
  flex-shrink: 0;
}

.team-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.team-role {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--role-color, var(--accent-cyan));
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.team-bio {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.team-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.team-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.team-tag i {
  color: var(--tag-color, var(--accent-cyan));
}

/* --- LEGAL & WHITELIST PAGES --- */
.legal-card, .whitelist-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}

.legal-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 24px;
  margin-bottom: 36px;
}

.legal-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 8px;
}

.legal-card h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin: 32px 0 14px;
}

.legal-card p, .legal-card li {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.legal-card ul { margin-left: 24px; margin-bottom: 18px; }

.legal-info-box {
  background: rgba(5, 8, 17, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 18px 0;
  font-size: 0.95rem;
}

.legal-info-box strong { color: #ffffff; }
.legal-info-box a { color: var(--accent-cyan); text-decoration: underline; }

/* Whitelist Form Elements */
.stepper-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 8, 17, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 8px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}
.step-item.active { color: #ffffff; }

.step-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
}
.step-item.active .step-circle { background: var(--accent-cyan); color: #030712; }

.form-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: rgba(5, 8, 17, 0.9);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: #ffffff;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}
.form-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.25);
  background: rgba(10, 15, 29, 0.95);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(5, 8, 17, 0.7);
  border: 1px solid var(--border-subtle);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
}
.custom-checkbox:hover {
  border-color: var(--border-active);
  background: rgba(0, 210, 255, 0.08);
}
.custom-checkbox input[type="checkbox"] {
  accent-color: var(--accent-cyan);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1080px) {
  .hero-cinema-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .game-spotlight-stage {
    grid-template-columns: 1fr;
  }
  .spotlight-visual-box {
    height: 280px;
  }
  .community-editorial-grid {
    grid-template-columns: 1fr;
  }
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-header { height: 70px; }
  .nav-menu, .header-status-pill { display: none; }
  .mobile-toggle { display: block; }
  .hero-cinema { padding: 50px 0 60px; }
  .hero-cinema-title { font-size: 2.4rem; }
  .section { padding: 60px 0; }
  .spotlight-info-panel { padding: 24px 20px; }
  .discord-stage-banner { padding: 36px 24px; }
  .footer-main-grid { grid-template-columns: 1fr; }
  .legal-card, .whitelist-card { padding: 28px 20px; }
}
