/* ==========================================================================
   CLASSIC STATION 14 — BESPOKE STYLESHEET
   Authentic Space Station 14 (MRP 2023) Atmosphere
   ========================================================================== */

:root {
  --bg-deep-space: #070a0e;
  --bg-hull: #0e1622;
  --bg-card: rgba(16, 25, 38, 0.88);
  --bg-card-hover: rgba(22, 34, 52, 0.95);
  --bg-panel: #121c29;

  --border-metal: #24354a;
  --border-metal-light: #384f6c;
  --border-highlight: #4f749e;
  
  --nt-gold: #e5a823;
  --nt-gold-glow: rgba(229, 168, 35, 0.35);
  --hazard-yellow: #f59e0b;
  --hazard-dark: #1f1d14;
  --status-online: #10b981;
  --status-online-glow: rgba(16, 185, 129, 0.4);
  --status-round: #06b6d4;
  --status-danger: #ef4444;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-accent: #38bdf8;

  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --font-hud: 'Rajdhani', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition-fast: 0.15s ease;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep-space);
  color: var(--text-main);
  font-family: var(--font-body);
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Sprite Sharpness / Pixel Art Preservation */
.sprite-crisp {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   BACKGROUND LAYERS & ATMOSPHERE
   ========================================================================== */

.stars-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image: 
    radial-gradient(1.5px 1.5px at 40px 60px, rgba(255, 255, 255, 0.8), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 150px 240px, rgba(255, 255, 255, 0.9), rgba(0,0,0,0)),
    radial-gradient(2px 2px at 320px 450px, rgba(255, 200, 100, 0.85), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 580px 180px, rgba(160, 220, 255, 0.8), rgba(0,0,0,0)),
    radial-gradient(2px 2px at 750px 390px, rgba(255, 255, 255, 0.9), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 980px 220px, rgba(160, 220, 255, 0.7), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 1150px 520px, rgba(255, 255, 255, 0.8), rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 800px 600px;
  opacity: 0.65;
  animation: starsTwinkle 8s ease-in-out infinite alternate;
}

@keyframes starsTwinkle {
  0% { opacity: 0.55; }
  100% { opacity: 0.8; }
}

/* Ambient Screenshot Slideshow */
.slideshow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.slideshow-container .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1.8s ease-in-out, transform 8s ease-out;
  filter: brightness(0.38) saturate(1.15) contrast(1.1);
}

.slideshow-container .slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Dark Vignette & CRT Overlay */
.backdrop-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  background: 
    radial-gradient(circle at 50% 30%, rgba(7, 10, 14, 0.6) 0%, rgba(7, 10, 14, 0.94) 75%),
    linear-gradient(180deg, rgba(7, 10, 14, 0.7) 0%, rgba(7, 10, 14, 0.98) 100%);
}

.crt-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.28) 50%);
  background-size: 100% 3px;
  opacity: 0.65;
}

body.theme-scanlines .crt-overlay {
  display: block;
}

/* Main Content Layer */
main, header, footer, .modal-backdrop {
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 22, 34, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border-metal);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Brand */
.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  transition: transform var(--transition-fast);
}

.brand-block:hover {
  transform: translateY(-1px);
}

.brand-nt-logo {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.35));
}

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

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-accent);
  font-weight: 700;
}

.brand-name {
  font-family: var(--font-hud);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  color: #fff;
}

.brand-badge {
  display: inline-block;
  background: var(--nt-gold);
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  margin-left: 2px;
  vertical-align: middle;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-highlight {
  color: var(--nt-gold);
  border: 1px solid rgba(229, 168, 35, 0.3);
  background: rgba(229, 168, 35, 0.08);
}

.nav-highlight:hover {
  color: #fff;
  border-color: var(--nt-gold);
  background: rgba(229, 168, 35, 0.2);
}

.nav-discord {
  color: #5865F2;
}

.nav-discord:hover {
  color: #fff;
  background: rgba(88, 101, 242, 0.15);
}

.discord-svg {
  fill: currentColor;
}

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

.action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-metal);
  color: var(--text-main);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-metal-light);
  transform: translateY(-1px);
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-hud);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.15rem;
}

.btn-primary {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  border-color: #fbbf24;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #1e293b;
  color: #fff;
  border-color: var(--border-metal-light);
}

.btn-secondary:hover {
  background: #334155;
  border-color: var(--text-accent);
  transform: translateY(-2px);
}

.btn-connect {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #fff;
  border-color: #34d399;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.btn-connect:hover {
  background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.65);
  transform: translateY(-2px);
}

.btn-discord {
  background: #5865F2;
  color: #fff;
  border-color: #7983f5;
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.35);
}

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

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-metal-light);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

.btn-text-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-primary-text {
  font-size: 1rem;
  line-height: 1.1;
}

.btn-subtext {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  opacity: 0.85;
  text-transform: none;
  letter-spacing: normal;
}

.pulse-glow {
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(245, 158, 11, 0.3); }
  50% { box-shadow: 0 0 24px rgba(245, 158, 11, 0.7); }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  padding: 3.5rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.hazard-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: #000;
  background: repeating-linear-gradient(
    45deg,
    #f59e0b,
    #f59e0b 8px,
    #fbbf24 8px,
    #fbbf24 16px
  );
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.08em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}

.status-indicator-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--status-online);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--status-online);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--status-online);
  animation: pulseDot 1.6s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.hero-title {
  font-family: var(--font-hud);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.gradient-text {
  background: linear-gradient(135deg, #f59e0b 0%, #38bdf8 60%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #cbd5e1;
  max-width: 680px;
  margin-bottom: 2rem;
}

/* Server Telemetry Box */
.server-telemetry-box {
  background: var(--bg-card);
  border: 2px solid var(--border-metal);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.server-telemetry-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--nt-gold), var(--status-online), #38bdf8);
}

.telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-metal);
  padding-bottom: 12px;
  margin-bottom: 16px;
  font-size: 0.88rem;
}

.station-meta .label, .engine-meta .label {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  margin-right: 6px;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.telemetry-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-metal);
  padding: 10px;
  border-radius: var(--radius-sm);
}

.stat-icon {
  font-size: 1.35rem;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.stat-val {
  font-family: var(--font-hud);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.val-mono {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-accent);
}

.capacity-meter {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 20px;
}

.capacity-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #f59e0b 80%, #ef4444 100%);
  border-radius: 3px;
  transition: width 0.6s ease;
}

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

.telemetry-actions .btn {
  flex: 1;
}

.telemetry-footer {
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.telemetry-footer code {
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--text-accent);
  font-family: var(--font-mono);
}

/* Interactive Sprites Strip */
.interactive-sprite-strip {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.sprite-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 22, 34, 0.85);
  border: 1px solid var(--border-metal);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  font-family: var(--font-hud);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.sprite-card img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.sprite-card:hover {
  background: rgba(26, 40, 60, 0.95);
  border-color: var(--border-highlight);
  color: #fff;
  transform: translateY(-2px);
}

/* Animations for Sprites */
.sprite-bounce {
  transition: transform 0.2s ease;
}
.sprite-card:hover .sprite-bounce {
  animation: hopAnim 0.4s ease infinite alternate;
}
@keyframes hopAnim {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.sprite-shake {
  transition: transform 0.2s ease;
}
.sprite-card:hover .sprite-shake {
  animation: shakeAnim 0.25s infinite;
}
@keyframes shakeAnim {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-12deg); }
  75% { transform: rotate(12deg); }
}

.sprite-spin {
  transition: transform 0.3s ease;
}
.sprite-card:hover .sprite-spin {
  animation: spinAnim 1.2s linear infinite;
}
@keyframes spinAnim {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.sprite-float {
  animation: floatAnim 3s ease-in-out infinite;
}
@keyframes floatAnim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.sprite-pulse {
  animation: pulseScale 2s ease-in-out infinite;
}
@keyframes pulseScale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ==========================================================================
   SIDEBAR CAMERA HUD (HERO RIGHT)
   ========================================================================== */

.hud-panel {
  background: var(--bg-card);
  border: 2px solid var(--border-metal);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.hud-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.hud-rec {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--status-danger);
  font-weight: 700;
}

.rec-dot {
  width: 7px;
  height: 7px;
  background: var(--status-danger);
  border-radius: 50%;
  animation: recBlink 1s infinite;
}

@keyframes recBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.scene-preview {
  position: relative;
  width: 100%;
  height: 190px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-metal);
  background: #000;
}

.scene-frame {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.scene-info {
  margin: 12px 0;
}

.scene-caption-title {
  font-family: var(--font-hud);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--nt-gold);
  margin-bottom: 4px;
}

.scene-caption-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.slideshow-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-metal);
}

.slide-nav-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-metal);
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all var(--transition-fast);
}

.slide-nav-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--border-metal-light);
}

.slide-dots {
  display: flex;
  gap: 8px;
}

.slide-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slide-dots .dot.active {
  background: var(--nt-gold);
  box-shadow: 0 0 8px var(--nt-gold);
  transform: scale(1.2);
}

/* ==========================================================================
   FEATURES / NOSTALGIA PILLARS
   ========================================================================== */

.features-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, rgba(7, 10, 14, 0.6) 0%, rgba(14, 22, 34, 0.9) 50%, rgba(7, 10, 14, 0.6) 100%);
  border-top: 1px solid var(--border-metal);
  border-bottom: 1px solid var(--border-metal);
}

.section-heading {
  margin-bottom: 3.5rem;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-accent);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-hud);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto;
}

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-metal);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  transition: all var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-metal);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon-wrapper img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.feature-title {
  font-family: var(--font-hud);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.feature-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--nt-gold);
  background: rgba(229, 168, 35, 0.1);
  border: 1px solid rgba(229, 168, 35, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  align-self: flex-start;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   SCREENSHOTS SHOWCASE
   ========================================================================== */

.gallery-section {
  padding: 5rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-metal);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.gallery-card:hover {
  border-color: var(--nt-gold);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.gallery-img-box {
  position: relative;
  width: 100%;
  height: 260px;
  background: #000;
  overflow: hidden;
}

.gallery-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-img-box img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 10, 14, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

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

.zoom-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.8));
}

.gallery-caption-short {
  font-family: var(--font-hud);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

.gallery-card-body {
  padding: 1.25rem 1.5rem;
}

.gallery-card-body h4 {
  font-family: var(--font-hud);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.gallery-card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   HOW TO CONNECT
   ========================================================================== */

.connect-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(14, 22, 34, 0.8) 100%);
}

.connect-wrapper {
  background: var(--bg-card);
  border: 2px solid var(--border-metal);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

.connect-header {
  margin-bottom: 3rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 3rem;
}

.step-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-metal);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--border-metal-light);
  line-height: 1;
  margin-bottom: 12px;
}

.step-card:hover .step-number {
  color: var(--nt-gold);
}

.step-title {
  font-family: var(--font-hud);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.ip-display-box {
  display: flex;
  align-items: center;
  background: #070a0e;
  border: 1px solid var(--border-metal);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  gap: 8px;
}

.ip-display-box code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-accent);
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-small-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-metal);
  color: #fff;
  font-family: var(--font-hud);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-small-btn:hover {
  background: var(--nt-gold);
  color: #000;
  border-color: var(--nt-gold);
}

/* Connect CTA Box */
.connect-cta-box {
  background: linear-gradient(135deg, rgba(229, 168, 35, 0.12) 0%, rgba(16, 185, 129, 0.1) 100%);
  border: 1px solid rgba(229, 168, 35, 0.35);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-left h3 {
  font-family: var(--font-hud);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.cta-left p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cta-right {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* ==========================================================================
   MODALS (RULES & IMAGE ZOOM)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: #0e1622;
  border: 2px solid var(--border-metal-light);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 820px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-metal);
  background: rgba(0, 0, 0, 0.25);
}

.modal-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--nt-gold);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 2px;
}

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

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 6px;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-search-bar {
  padding: 10px 1.5rem;
  background: #080d14;
  border-bottom: 1px solid var(--border-metal);
}

.modal-search-bar input {
  width: 100%;
  background: #111a26;
  border: 1px solid var(--border-metal);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 8px 12px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.modal-search-bar input:focus {
  border-color: var(--text-accent);
}

.modal-content {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rules-intro-card {
  background: rgba(0, 0, 0, 0.3);
  border-left: 3px solid var(--nt-gold);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.rule-block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-metal);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.rule-danger {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.04);
}

.rule-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.rule-number {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  width: 28px;
  height: 28px;
  background: var(--border-metal);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rule-danger .rule-number {
  background: var(--status-danger);
  color: #fff;
}

.rule-heading {
  font-family: var(--font-hud);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

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

.rule-body ul {
  margin: 10px 0 10px 20px;
}

.rule-body li {
  margin-bottom: 6px;
}

.punishment-alert {
  background: rgba(239, 68, 68, 0.15);
  border-left: 3px solid var(--status-danger);
  padding: 8px 12px;
  color: #fca5a5;
  margin-top: 10px;
  font-size: 0.88rem;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-metal);
  background: rgba(0, 0, 0, 0.25);
}

/* Image Modal */
.img-modal-dialog {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #070a0e;
  border: 2px solid var(--border-metal-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.img-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--border-metal);
  color: #fff;
  font-size: 1.75rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  line-height: 1;
}

.img-modal-display {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
}

.img-modal-caption {
  padding: 1rem 1.5rem;
  background: #0e1622;
  border-top: 1px solid var(--border-metal);
}

.img-modal-caption h3 {
  font-family: var(--font-hud);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--nt-gold);
  margin-bottom: 4px;
}

.img-modal-caption p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: #111a26;
  border: 1px solid var(--status-online);
  border-left: 4px solid var(--status-online);
  color: #fff;
  font-family: var(--font-hud);
  font-weight: 600;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1), toastOut 0.3s ease 2.7s forwards;
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: #080d14;
  border-top: 2px solid var(--border-metal);
  padding: 4rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 36px;
  margin-bottom: 3rem;
}

.brand-col .brand-block {
  margin-bottom: 1rem;
}

.footer-desc {
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-tags {
  display: flex;
  gap: 6px;
}

.footer-tags .tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-accent);
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 8px;
  border-radius: 3px;
}

.footer-heading {
  font-family: var(--font-hud);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--nt-gold);
}

.footer-connect-box {
  background: #0e1622;
  border: 1px solid var(--border-metal);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.footer-subtext {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer-bottom {
  border-top: 1px solid var(--border-metal);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
  }
  .hero-sidebar {
    max-width: 460px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid, .gallery-grid, .steps-grid {
    grid-template-columns: 1fr;
  }
  .connect-cta-box {
    flex-direction: column;
    text-align: center;
  }
  .cta-right {
    width: 100%;
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
