/* ===========================================================================
   NEXUS CITY — E-NEXUS FEST 4.0 (2026)
   Digital City Visual Theme
   =========================================================================== */

/* ---- CSS Variables (NEXUS ORBITAL SPACE-CITY palette) ---- */
:root {
  --nx-dark:       #05070D; /* Deep Space Black */
  --nx-navy:       #0A1020; /* Midnight Navy */
  --nx-surface:    #101828; /* Spacecraft hull dark */
  --nx-card:       #0F1626; /* Orbital module card */
  --nx-border:     rgba(143, 216, 255, 0.14);
  --nx-border-h:   rgba(50, 217, 255, 0.4);
  --nx-metal:      #7D8795; /* Titanium Grey */
  --nx-blue:       #8FD8FF; /* Ice Blue */
  --nx-cyan:       #32D9FF; /* Electric Cyan */
  --nx-violet:     #7D6CFF; /* Subtle orbital violet */
  --nx-violet-l:   #A398FF;
  --nx-white:      #EAF2FF; /* Cool White */
  --nx-muted:      #8A9BB0; /* Subdued metallic grey */
  --nx-glow-sm:    0 0 12px rgba(143, 216, 255, 0.3);
  --nx-glow-md:    0 0 28px rgba(50, 217, 255, 0.4);
  --nx-glow-lg:    0 0 50px rgba(143, 216, 255, 0.25);
  --nx-font-head:  'Space Grotesk', 'Outfit', sans-serif;
  --nx-font-mono:  'IBM Plex Mono', 'Courier New', monospace;
  --nx-transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Global body when NEXUS theme active ---- */
body.nexus-city-page {
  background-color: #060913 !important;
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  scroll-behavior: smooth;
}

body.nexus-city-page *, body.nexus-city-page *::before, body.nexus-city-page *::after {
  animation: none !important;
}

body.nexus-city-page.nx-locked {
  overflow: hidden;
}

#overview, #events, #competitions, #casre, #register {
  scroll-margin-top: 80px;
}


/* ===========================================================================
   ENTRY ANIMATION — NEXUS SIGNAL
   CONCEPT: dark bg → cyan dot → expanding ring → digital lines → title reveal
   Total duration: ~5-7 s. Pure CSS/SVG/JS. No WebGL.
   =========================================================================== */

/* Overlay container */
#nexusCityEntry {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #020408;
  overflow: hidden;
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.75s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.75s ease;
}
#nexusCityEntry.nx-entry-hidden {
  opacity: 0;
  transform: scale(1.06);
  visibility: hidden;
  pointer-events: none;
}

/* -----------------------------------------------------------------------
   PHASE 1: INPUT SCREEN
   ----------------------------------------------------------------------- */
.nx-signal-input-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  z-index: 20;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.nx-signal-input-screen.dismissed {
  opacity: 0;
  transform: scale(0.96) translateY(-12px);
  pointer-events: none;
}

.nx-sig-input-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 480px;
  font-family: var(--nx-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--nx-blue);
}
.nx-sig-chip { color: var(--nx-blue); }
.nx-sig-chip-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #f43f5e;
}

/* Central card */
.nx-sig-input-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: rgba(10, 16, 32, 0.88);
  border: 1px solid rgba(50, 217, 255, 0.28);
  border-radius: 12px;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  box-shadow: 0 0 60px rgba(6, 229, 255, 0.08), 0 20px 50px rgba(0,0,0,0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nx-sig-card-topbar {
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--nx-cyan), transparent);
  border-radius: 1px;
}

/* Logotype inside card */
.nx-sig-logotype {
  font-family: var(--nx-font-head);
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
  line-height: 1;
}
.nx-sig-logo-e    { color: #06e5ff; text-shadow: 0 0 18px rgba(6,229,255,0.6); }
.nx-sig-logo-dash { color: #8FD8FF; }
.nx-sig-logo-nexus{ color: #EAF2FF; }

.nx-sig-card-sub {
  font-family: var(--nx-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--nx-muted);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

/* Reuse existing input + button styles (already defined in CSS) */
/* Input form spacing inside card */
.nx-identity-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* -----------------------------------------------------------------------
   PHASE 2: SIGNAL ANIMATION STAGE
   ----------------------------------------------------------------------- */
.nx-signal-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.nx-signal-stage.active {
  opacity: 1;
  pointer-events: auto;
}

/* Central glowing dot */
.nx-signal-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #06e5ff;
  box-shadow: 0 0 20px 6px rgba(6, 229, 255, 0.9),
              0 0 50px 15px rgba(6, 229, 255, 0.4);
  z-index: 20;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.nx-signal-dot.visible {
  opacity: 1;
  transform: scale(1);
}

/* Expanding rings */
.nx-signal-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(6, 229, 255, 0.6);
  opacity: 0;
  transform: scale(0);
}
.nx-ring-1 { width: 80px;  height: 80px; }
.nx-ring-2 { width: 160px; height: 160px; border-color: rgba(143, 216, 255, 0.5); }
.nx-ring-3 { width: 260px; height: 260px; border-color: rgba(6, 229, 255, 0.25); }

.nx-signal-ring.expanding {
  animation: nxRingExpand 1.4s cubic-bezier(0.2, 0.6, 0.4, 1) forwards;
}
.nx-ring-2.expanding { animation-delay: 0.12s; }
.nx-ring-3.expanding { animation-delay: 0.26s; }

@keyframes nxRingExpand {
  0%   { opacity: 0; transform: scale(0); }
  20%  { opacity: 1; }
  80%  { opacity: 0.7; }
  100% { opacity: 0; transform: scale(5); }
}

/* SVG lines overlay */
.nx-signal-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 15;
  pointer-events: none;
}
.nx-signal-svg line {
  transition: stroke-dashoffset 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 3px rgba(6,229,255,0.7));
}
.nx-signal-svg line.drawn { stroke-dashoffset: 0; }
.nx-signal-svg circle.lit { opacity: 1 !important; transition: opacity 0.3s ease 0.6s; }

/* Identity / title reveal */
.nx-signal-identity {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  z-index: 25;
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.nx-signal-identity.show {
  opacity: 1;
  transform: scale(1);
}
.nx-sig-badge {
  font-family: var(--nx-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  color: var(--nx-blue);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}
.nx-sig-title {
  font-family: var(--nx-font-head);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  color: var(--nx-white);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.nx-sig-accent {
  background: linear-gradient(135deg, #00b4ff 0%, #06e5ff 60%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(6,229,255,0.45));
}
.nx-sig-year {
  font-family: var(--nx-font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.4em;
  color: var(--nx-blue);
  margin-bottom: 0.75rem;
}
.nx-sig-tagline {
  font-family: var(--nx-font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--nx-muted);
  margin-bottom: 1rem;
}
.nx-sig-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--nx-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: #10b981;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
}

/* Radial ambient glow behind title */
.nx-signal-identity::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,229,255,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Subtle background grid for the signal stage */
.nx-signal-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,180,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,255,0.025) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* -----------------------------------------------------------------------
   REDUCED MOTION — skip animations, show title immediately
   ----------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .nx-signal-ring,
  .nx-signal-dot,
  .nx-signal-svg line,
  .nx-signal-svg circle {
    animation: none !important;
    transition: none !important;
  }
  .nx-signal-identity {
    transition: none !important;
  }
}



/* Stars background layer */
.nx-entry-stars {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(1px 1px at 8% 12%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 22% 28%, rgba(0,180,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 38% 8%,  rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 58% 18%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 78% 45%, rgba(6,229,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 12%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 14% 65%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 48% 75%, rgba(0,180,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 88% 82%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 4% 45%,  rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 64% 92%, rgba(255,255,255,0.5) 0%, transparent 100%);
  pointer-events: none;
}

.nx-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.12) 3px,
    rgba(0,0,0,0.12) 4px
  );
  pointer-events: none;
  z-index: 10;
}

/* ---------------------------------------------------------------------------
   UX STEP: INTERACTIVE OPENING ACTIVATION SCREEN
   --------------------------------------------------------------------------- */
.nx-awakening-screen {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: 600px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.nx-awakening-screen.dismissed {
  opacity: 0;
  transform: scale(0.95) translateY(-20px);
  pointer-events: none;
}

.nx-network-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 2rem;
  font-family: var(--nx-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--nx-blue);
}

.nx-network-status-beacon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #f43f5e;
}

.nx-pulse-dot.red {
  background: #f43f5e;
  box-shadow: 0 0 8px rgba(244,63,94,0.8);
}
.nx-pulse-dot.green {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16,185,129,0.8);
}

.nx-awakening-core-box {
  width: 100%;
  background: rgba(13, 20, 40, 0.75);
  border: 1px solid var(--nx-border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 30px rgba(0,180,255,0.08);
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nx-awakening-core-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--nx-blue), transparent);
}

.nx-system-title {
  font-family: var(--nx-font-head);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--nx-white);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px rgba(0,180,255,0.4);
}

.nx-system-subtitle {
  font-family: var(--nx-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--nx-blue);
  margin-bottom: 1.8rem;
  text-transform: uppercase;
}

/* THE SINGLE USER INPUT FORM */
.nx-identity-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 1.25rem;
}

.nx-identity-input-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.nx-input-icon {
  position: absolute;
  left: 1.2rem;
  color: var(--nx-blue);
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 2;
}

.nx-identity-input {
  width: 100%;
  padding: 1.05rem 1.2rem 1.05rem 3.2rem;
  background: rgba(5, 8, 16, 0.88);
  border: 1px solid rgba(50, 217, 255, 0.35);
  border-radius: 6px;
  color: #ffffff;
  font-family: var(--nx-font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.15em;
  outline: none;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 180, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nx-identity-input::placeholder {
  color: rgba(125, 135, 149, 0.65);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.nx-identity-input:focus {
  border-color: var(--nx-cyan);
  background: rgba(10, 16, 32, 0.95);
  box-shadow: 0 0 25px rgba(6, 229, 255, 0.35), inset 0 2px 6px rgba(0, 180, 255, 0.2);
}

.nx-identity-input-wrap:focus-within .nx-input-icon {
  color: var(--nx-cyan);
  filter: drop-shadow(0 0 8px rgba(6, 229, 255, 0.9));
}

/* INITIALIZE NEXUS BUTTON */
.nx-btn-initialize {
  width: 100%;
  padding: 1.1rem 2rem;
  background: linear-gradient(135deg, rgba(0,180,255,0.15), rgba(6,229,255,0.05));
  border: 1px solid var(--nx-blue);
  border-radius: 6px;
  color: var(--nx-cyan);
  font-family: var(--nx-font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.nx-btn-initialize:hover {
  background: var(--nx-blue);
  color: #020408;
  box-shadow: 0 0 30px rgba(0,180,255,0.6);
  transform: translateY(-2px);
}

.nx-btn-initialize:active {
  transform: translateY(1px) scale(0.98);
}

.nx-subtext-ready {
  font-family: var(--nx-font-mono);
  font-size: 0.65rem;
  color: var(--nx-muted);
  letter-spacing: 0.1em;
  margin-top: 1.2rem;
}

/* ---------------------------------------------------------------------------
   CINEMATIC STAGE & CAMERA RIG
   --------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------
   CINEMATIC STAGE & CAMERA RIG
   City is VISIBLE as a dark silhouette even before user clicks INITIALIZE!
   --------------------------------------------------------------------------- */
.nx-cinematic-stage {
  position: absolute;
  inset: 0;
  z-index: 5;
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 1.2s ease;
  overflow: hidden;
}

.nx-cinematic-stage.active {
  opacity: 1;
  pointer-events: auto;
}

.nx-camera-rig {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  transition: transform 3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Camera Movement States */
.nx-camera-rig.pan-down {
  transform: translateY(5%) scale(1.05);
}
.nx-camera-rig.dive-core {
  transform: translate(0, 20%) scale(1.6);
  transition: transform 1.2s cubic-bezier(0.7, 0, 0.3, 1);
}
.nx-camera-rig.shake {
  animation: nx-cam-shake 0.4s ease-in-out;
}

@keyframes nx-cam-shake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4px, 3px); }
  40% { transform: translate(5px, -3px); }
  60% { transform: translate(-3px, 2px); }
  80% { transform: translate(3px, -1px); }
}

/* Layer 1: Distant City Skyline */
.nx-city-skyline-distant {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: radial-gradient(ellipse at 50% 100%, rgba(0,50,120,0.25) 0%, transparent 70%);
  opacity: 0.6;
  transition: opacity 1.5s ease;
}
.nx-city-skyline-distant.discovered {
  opacity: 1;
}

/* Layer 2: Main Vector City Layer */
.nx-city-vector-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nx-city-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nx-city-svg.visible {
  opacity: 1;
}

/* Buildings initial dark state */
.nx-buildings-cluster rect {
  transition: filter 0.8s ease, opacity 0.8s ease;
  filter: brightness(0.2);
}

/* City activation pulse classes */
.nx-buildings-cluster.activated rect {
  filter: brightness(1.2) drop-shadow(0 0 10px rgba(0,180,255,0.4));
}

.nx-windows circle {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.nx-windows.lit circle {
  opacity: 1;
  animation: nx-win-flicker 2s infinite alternate;
}

@keyframes nx-win-flicker {
  0% { opacity: 0.8; }
  100% { opacity: 1; filter: drop-shadow(0 0 4px #06e5ff); }
}

/* Central Nexus Tower & Core Orb */
#nxCoreOrb {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
#nxCoreOrb.active {
  r: 22;
  fill: #ffffff;
  filter: drop-shadow(0 0 35px #06e5ff) drop-shadow(0 0 60px #00b4ff);
}

.nx-core-orbit {
  transform-origin: 800px 160px;
  animation: nx-spin-orbit 6s linear infinite;
}
@keyframes nx-spin-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Dynamic Network Lines */
.nx-network-lines path {
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.nx-network-lines.connected path {
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 6px rgba(0,180,255,0.8));
}

/* Data Nodes */
.nx-node {
  opacity: 0;
  transform: scale(0);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.nx-node.online {
  opacity: 1;
  transform: scale(1);
}

/* Layer 3: Spacecraft */
.nx-spacecraft-rig {
  position: absolute;
  top: 5%;
  right: -150px;
  width: 90px;
  height: 110px;
  opacity: 0;
  z-index: 15;
  transition: transform 2.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
  pointer-events: none;
}

.nx-spacecraft-rig.approach {
  opacity: 1;
  transform: translate(-50vw, 25vh) scale(1.3) rotate(-28deg);
}

.nx-spacecraft-rig.dive {
  opacity: 1;
  transform: translate(-50vw, 42vh) scale(0.7) rotate(-45deg);
  transition: transform 0.7s cubic-bezier(0.7, 0, 1, 1), opacity 0.5s ease;
}

.nx-thrust-trail {
  animation: nx-thrust-anim 0.15s infinite alternate;
}
@keyframes nx-thrust-anim {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 10; }
}

/* Layer 4: Tactical HUD Targeting Reticle */
.nx-targeting-reticle {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%) scale(2);
  width: 160px;
  height: 160px;
  opacity: 0;
  pointer-events: none;
  z-index: 18;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nx-targeting-reticle.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.nx-targeting-reticle.locked {
  transform: translate(-50%, -50%) scale(0.9);
  border-color: #06e5ff;
}

.nx-reticle-ring {
  position: absolute;
  inset: 15px;
  border: 1px dashed rgba(6,229,255,0.6);
  border-radius: 50%;
  animation: nx-spin-orbit 10s linear infinite;
}

.nx-reticle-bracket {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: #06e5ff;
}
.nx-reticle-bracket.tl { top: 0; left: 0; border-top: 2px solid; border-left: 2px solid; }
.nx-reticle-bracket.tr { top: 0; right: 0; border-top: 2px solid; border-right: 2px solid; }
.nx-reticle-bracket.bl { bottom: 0; left: 0; border-bottom: 2px solid; border-left: 2px solid; }
.nx-reticle-bracket.br { bottom: 0; right: 0; border-bottom: 2px solid; border-right: 2px solid; }

.nx-reticle-info {
  position: absolute;
  bottom: -45px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  white-space: nowrap;
  font-family: var(--nx-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--nx-cyan);
}

/* Layer 5: Energy Shockwave & Flash */
.nx-flash-overlay {
  position: absolute;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  z-index: 30;
  transition: opacity 0.1s ease-out;
}
.nx-flash-overlay.flash {
  opacity: 0.95;
  transition: opacity 0.4s ease-out;
}

.nx-energy-wave {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 2px solid #06e5ff;
  box-shadow: 0 0 60px rgba(6,229,255,0.9), inset 0 0 60px rgba(0,180,255,0.6);
  opacity: 0;
  pointer-events: none;
  z-index: 25;
}

.nx-energy-wave.expand {
  transform: translate(-50%, -50%) scale(9);
  opacity: 1;
  transition: transform 1.2s cubic-bezier(0.1, 0.8, 0.3, 1), opacity 1.2s ease-out;
}

/* Cinematic HUD Telemetry */
.nx-cinematic-hud {
  position: absolute;
  inset: 1.5rem;
  pointer-events: none;
  z-index: 28;
  font-family: var(--nx-font-mono);
  font-size: 0.72rem;
  color: var(--nx-muted);
  letter-spacing: 0.15em;
}

.nx-hud-corner.tl { position: absolute; top: 0; left: 0; }
.nx-hud-corner.tr { position: absolute; top: 0; right: 0; color: var(--nx-blue); }

.nx-hud-center-telemetry {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(5, 8, 16, 0.8);
  border: 1px solid var(--nx-border);
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  color: var(--nx-cyan);
  letter-spacing: 0.2em;
  font-size: 0.75rem;
}

/* ---------------------------------------------------------------------------
   PHASE 8: FINAL TITLE REVEAL & TRANSITION SCREEN
   --------------------------------------------------------------------------- */
.nx-title-reveal-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 35;
  background: radial-gradient(circle at 50% 50%, rgba(5,8,16,0.85) 0%, rgba(2,4,8,0.96) 80%);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 2rem;
}

.nx-title-reveal-screen.show {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.nx-reveal-badge {
  font-family: var(--nx-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--nx-blue);
  margin-bottom: 0.8rem;
}

.nx-reveal-hero-title {
  font-family: var(--nx-font-head);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--nx-white);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.text-cyan-glow {
  background: linear-gradient(135deg, #00b4ff 0%, #06e5ff 60%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 25px rgba(6,229,255,0.4));
}

.nx-reveal-tagline {
  font-family: var(--nx-font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  color: var(--nx-muted);
  margin-bottom: 1.2rem;
}

.nx-city-online-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--nx-font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: #10b981;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  margin-bottom: 2.5rem;
}

.nx-btn-enter-city {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 2.8rem;
  background: linear-gradient(135deg, var(--nx-blue), var(--nx-cyan));
  border: none;
  border-radius: 4px;
  color: #020408;
  font-family: var(--nx-font-head);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 30px rgba(0,180,255,0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nx-btn-enter-city:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 45px rgba(0,180,255,0.6);
}
.nx-btn-enter-city:active {
  transform: translateY(1px);
}


/* ===========================================================================
   NEXUS NAVBAR
   =========================================================================== */

.nx-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(5, 8, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nx-border);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nx-navbar.scrolled {
  background: rgba(5, 8, 16, 0.97);
  border-bottom-color: rgba(0,180,255,0.2);
}

.nx-nav-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Brand */
.nx-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nx-nav-brand-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--nx-border-h);
  object-fit: cover;
}

.nx-nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nx-nav-brand-text .nb-main {
  font-family: var(--nx-font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--nx-white);
  letter-spacing: 0.02em;
}

.nx-nav-brand-text .nb-sub {
  font-family: var(--nx-font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  color: var(--nx-blue);
  text-transform: uppercase;
}

/* Nav conduit bar */
.nx-nav-conduit {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--nx-blue), var(--nx-cyan), transparent);
  opacity: 0.5;
}

/* Menu links */
.nx-nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nx-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  font-family: var(--nx-font-head);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--nx-muted);
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
  transition: var(--nx-transition);
}

.nx-nav-link:hover, .nx-nav-link.active {
  color: var(--nx-cyan);
  background: rgba(0,180,255,0.07);
}

/* Register CTA nav link */
.nx-nav-link.nx-register-link {
  border: 1px solid rgba(0,180,255,0.3);
  color: var(--nx-blue);
  padding: 0.4rem 1rem;
}

.nx-nav-link.nx-register-link:hover {
  background: rgba(0,180,255,0.12);
  border-color: var(--nx-blue);
  box-shadow: var(--nx-glow-sm);
}

/* Pulse dot */
.nx-pulse-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34,197,94,0.8);
  animation: nx-pulse 2s infinite;
}

@keyframes nx-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

/* College logo */
.nx-nav-college {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--nx-border);
  opacity: 0.8;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.nx-nav-college:hover { opacity: 1; }

/* Mobile hamburger */
.nx-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nx-mobile-toggle .nx-bar {
  width: 22px;
  height: 2px;
  background: var(--nx-blue);
  border-radius: 2px;
  transition: var(--nx-transition);
}

.nx-mobile-toggle.open .nx-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nx-mobile-toggle.open .nx-bar:nth-child(2) { opacity: 0; }
.nx-mobile-toggle.open .nx-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nx-mobile-drawer {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  z-index: 999;
  background: rgba(5, 8, 16, 0.97);
  border-top: 1px solid var(--nx-border);
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
}

.nx-mobile-drawer.open { display: flex; }

.nx-mobile-drawer .nx-nav-link {
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: 1px solid transparent;
}

.nx-mobile-drawer .nx-nav-link:hover {
  border-color: var(--nx-border);
}


/* ===========================================================================
   TOP STATUS BAR
   =========================================================================== */

.nx-status-bar {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 999;
  height: 28px;
  background: rgba(0,20,40,0.9);
  border-bottom: 1px solid rgba(0,180,255,0.08);
  display: flex;
  align-items: center;
}

.nx-status-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--nx-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--nx-muted);
  text-transform: uppercase;
}

.nx-status-inner a { color: var(--nx-muted); text-decoration: none; }
.nx-status-inner a:hover { color: var(--nx-blue); }

.nx-status-right { display: flex; gap: 1.5rem; }


/* ===========================================================================
   HERO — CITY CORE
   =========================================================================== */

.nx-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

/* animated grid bg */
.nx-hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,180,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.5) 30%, rgba(0,0,0,0.5) 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.5) 30%, rgba(0,0,0,0.5) 80%, transparent 100%);
}

/* blue glow top */
.nx-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 350px;
  background: radial-gradient(ellipse, rgba(0,100,200,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.nx-hero-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

/* City label */
.nx-city-label {
  font-family: var(--nx-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--nx-blue);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.nx-city-label::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--nx-blue);
  box-shadow: 0 0 6px var(--nx-blue);
}

.nx-hero-title {
  font-family: var(--nx-font-head);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--nx-white);
  margin-bottom: 1.5rem;
}

.nx-hero-title .nx-gradient-text {
  background: linear-gradient(135deg, var(--nx-blue) 0%, var(--nx-cyan) 50%, var(--nx-violet-l) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nx-hero-desc {
  font-size: 1.05rem;
  color: var(--nx-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 500px;
}

/* Hero actions */
.nx-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.nx-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  background: linear-gradient(135deg, var(--nx-blue), var(--nx-cyan));
  border: none;
  border-radius: 4px;
  color: #020408;
  font-family: var(--nx-font-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: var(--nx-transition);
  box-shadow: 0 4px 20px rgba(0,180,255,0.3);
}
.nx-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,180,255,0.45);
}

.nx-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  background: transparent;
  border: 1px solid var(--nx-border-h);
  border-radius: 4px;
  color: var(--nx-white);
  font-family: var(--nx-font-head);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--nx-transition);
}
.nx-btn-ghost:hover {
  background: rgba(0,180,255,0.07);
  border-color: var(--nx-cyan);
  color: var(--nx-cyan);
}

/* Hero metrics strip */
.nx-hero-metrics {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.nx-metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nx-metric-value {
  font-family: var(--nx-font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--nx-white);
  line-height: 1;
}

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

/* Hero right: NEXUS CITY visual */
.nx-hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  position: relative;
}

.nx-city-orb {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid var(--nx-border-h);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 60px rgba(0,180,255,0.12), inset 0 0 40px rgba(0,180,255,0.06);
}

.nx-city-orb::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0,180,255,0.08);
  animation: nx-spin 20s linear infinite;
}

.nx-city-orb::after {
  content: '';
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  border: 1px dashed rgba(0,180,255,0.15);
  animation: nx-spin 12s linear infinite reverse;
}

.nx-orb-core {
  font-size: 4.5rem;
  filter: drop-shadow(0 0 20px rgba(0,180,255,0.5));
  z-index: 1;
}

.nx-orb-tag {
  position: absolute;
  font-family: var(--nx-font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--nx-blue);
  text-transform: uppercase;
  background: rgba(0,180,255,0.1);
  border: 1px solid var(--nx-border);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

.nx-orb-tag.t { top: 16%; }
.nx-orb-tag.r { right: 2%; top: 50%; transform: translateY(-50%); }
.nx-orb-tag.b { bottom: 16%; }
.nx-orb-tag.l { left: 2%; top: 50%; transform: translateY(-50%); }

@keyframes nx-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* District badges below orb */
.nx-district-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.nx-district-badge {
  font-family: var(--nx-font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nx-muted);
  border: 1px solid rgba(0,180,255,0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}


/* ===========================================================================
   SECTION BASE
   =========================================================================== */

.nx-section {
  padding: 5rem 0;
  position: relative;
}

.nx-section-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nx-section-header {
  margin-bottom: 3rem;
}

.nx-district-tag {
  font-family: var(--nx-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--nx-blue);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nx-district-tag::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--nx-blue);
}

.nx-section-title {
  font-family: var(--nx-font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--nx-white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.nx-section-sub {
  font-size: 1rem;
  color: var(--nx-muted);
  max-width: 560px;
}

/* Divider line */
.nx-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--nx-border), transparent);
  margin: 0;
}


/* ===========================================================================
   EVENTS DISTRICT — BUILDING CARDS
   =========================================================================== */

.nx-events-bg {
  background: rgba(8, 13, 30, 0.6);
}

.nx-buildings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* Building card */
.nx-building-card {
  background: var(--nx-card);
  border: 1px solid var(--nx-border);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: var(--nx-transition);
  cursor: pointer;
}

/* Corner accents */
.nx-building-card::before,
.nx-building-card::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
}

.nx-building-card::before {
  top: 0;
  left: 0;
  border-top: 1px solid var(--nx-blue);
  border-left: 1px solid var(--nx-blue);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nx-building-card::after {
  bottom: 0;
  right: 0;
  border-bottom: 1px solid var(--nx-blue);
  border-right: 1px solid var(--nx-blue);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nx-building-card:hover {
  border-color: rgba(0,180,255,0.3);
  box-shadow: 0 8px 32px rgba(0,180,255,0.12);
  transform: translateY(-3px);
}

.nx-building-card:hover::before,
.nx-building-card:hover::after {
  opacity: 1;
}

/* Floor number (district code) */
.nx-building-floor {
  font-family: var(--nx-font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--nx-muted);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nx-building-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(0,180,255,0.2);
  background: rgba(0,180,255,0.06);
  color: var(--nx-blue);
  flex-shrink: 0;
}

.nx-building-name {
  font-family: var(--nx-font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--nx-white);
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.nx-building-tagline {
  font-family: var(--nx-font-mono);
  font-size: 0.68rem;
  color: var(--nx-blue);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.nx-building-desc {
  font-size: 0.88rem;
  color: var(--nx-muted);
  line-height: 1.65;
}

/* Enter building button */
.nx-enter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.65rem 1rem;
  background: transparent;
  border: 1px solid var(--nx-border-h);
  border-radius: 4px;
  color: var(--nx-cyan);
  font-family: var(--nx-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--nx-transition);
}

.nx-enter-btn:hover {
  background: rgba(0,180,255,0.1);
  border-color: var(--nx-cyan);
  box-shadow: var(--nx-glow-sm);
}


/* ===========================================================================
   HERO SKYLINE CARD & CENTRAL LANDMARK STYLING
   =========================================================================== */

.nx-skyline-card {
  width: 100%;
  max-width: 540px;
  background: rgba(13, 20, 40, 0.7);
  border: 1px solid var(--nx-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 30px rgba(0,180,255,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nx-skyline-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(5, 8, 16, 0.85);
  border-bottom: 1px solid rgba(0,180,255,0.12);
  font-family: var(--nx-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--nx-blue);
}

.nx-live-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #10b981;
}

.nx-skyline-view {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.nx-hero-skyline-svg {
  width: 100%;
  height: auto;
  display: block;
}

.nx-moving-traffic {
  animation: nx-traffic-dash 1.2s linear infinite;
}

@keyframes nx-traffic-dash {
  from { stroke-dashoffset: 28; }
  to   { stroke-dashoffset: 0; }
}


/* ===========================================================================
   03 — COMPETITIONS DISTRICT STYLES
   =========================================================================== */

.nx-compete-bg {
  background: rgba(8, 13, 30, 0.75);
}

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

.nx-compete-card {
  background: var(--nx-card);
  border: 1px solid var(--nx-border);
  border-radius: 8px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: var(--nx-transition);
}

.nx-compete-card:hover {
  border-color: rgba(0,180,255,0.4);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,180,255,0.15);
}

.nx-compete-badge {
  font-family: var(--nx-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--nx-cyan);
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nx-compete-card h3 {
  font-family: var(--nx-font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--nx-white);
  margin-bottom: 0.75rem;
}

.nx-compete-card p {
  font-size: 0.88rem;
  color: var(--nx-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.nx-compete-meta {
  display: flex;
  gap: 1rem;
  font-family: var(--nx-font-mono);
  font-size: 0.72rem;
  color: var(--nx-blue);
}


/* ===========================================================================
   04 — CASRE DISTRICT STYLES
   =========================================================================== */

.nx-casre-bg {
  background: rgba(5, 8, 16, 0.9);
  position: relative;
}

.nx-casre-complex {
  background: rgba(13, 20, 40, 0.6);
  border: 1px solid rgba(6,229,255,0.2);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 40px rgba(6,229,255,0.03);
  position: relative;
}

.nx-casre-complex::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--nx-cyan), transparent);
}

.nx-casre-building-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0,180,255,0.1);
  flex-wrap: wrap;
  gap: 1rem;
}

.nx-casre-chip {
  font-family: var(--nx-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--nx-cyan);
  text-transform: uppercase;
}

.nx-casre-building-name {
  font-family: var(--nx-font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--nx-white);
  margin-top: 0.25rem;
}

.nx-casre-status-beacon {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(6,229,255,0.06);
  border: 1px solid rgba(6,229,255,0.2);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
}

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

.nx-case-panel {
  background: var(--nx-card);
  border: 1px solid rgba(0,180,255,0.15);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  transition: var(--nx-transition);
}

.nx-case-panel:hover {
  border-color: var(--nx-cyan);
  box-shadow: 0 8px 30px rgba(6,229,255,0.15);
  transform: translateY(-3px);
}

.nx-case-tag {
  font-family: var(--nx-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--nx-blue);
  text-transform: uppercase;
}

.nx-case-title {
  font-family: var(--nx-font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--nx-white);
  line-height: 1.25;
}

.nx-case-desc {
  font-size: 0.88rem;
  color: var(--nx-muted);
  line-height: 1.65;
}

.nx-case-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,180,255,0.08);
  margin-top: 0.5rem;
}

.nx-case-domain {
  font-family: var(--nx-font-mono);
  font-size: 0.65rem;
  color: var(--nx-muted);
}

.nx-case-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--nx-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--nx-cyan);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  transition: var(--nx-transition);
}

.nx-case-action-btn:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--nx-cyan);
}

.nx-casre-footer-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(0,180,255,0.15);
  font-family: var(--nx-font-mono);
  font-size: 0.68rem;
  color: var(--nx-muted);
  letter-spacing: 0.12em;
}


/* ===========================================================================
   REGISTRATION DISTRICT
   =========================================================================== */

.nx-reg-bg {
  background: rgba(5, 8, 16, 0.8);
}

.nx-reg-container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.nx-reg-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nx-info-card {
  background: var(--nx-card);
  border: 1px solid var(--nx-border);
  border-radius: 8px;
  padding: 1.25rem;
  font-family: var(--nx-font-mono);
}

.nx-info-card-title {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--nx-blue);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.nx-info-card-body {
  font-size: 0.82rem;
  color: var(--nx-muted);
  line-height: 1.65;
}

/* Registration form panel */
.nx-reg-form-panel {
  background: var(--nx-card);
  border: 1px solid var(--nx-border);
  border-radius: 8px;
  overflow: hidden;
}

.nx-form-topbar {
  background: rgba(0,180,255,0.05);
  border-bottom: 1px solid var(--nx-border);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--nx-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--nx-muted);
  text-transform: uppercase;
}

.nx-form-topbar-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #22c55e;
}

.nx-form-body {
  padding: 1.75rem;
}

/* Form fields */
.nx-form-group {
  margin-bottom: 1.25rem;
}

.nx-form-label {
  display: block;
  font-family: var(--nx-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--nx-blue);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.nx-form-input,
.nx-form-select,
.nx-form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--nx-border);
  border-radius: 4px;
  padding: 0.7rem 0.9rem;
  color: var(--nx-white);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: var(--nx-transition);
  appearance: none;
}

.nx-form-input:focus,
.nx-form-select:focus,
.nx-form-textarea:focus {
  border-color: rgba(0,180,255,0.5);
  background: rgba(0,180,255,0.04);
  box-shadow: 0 0 0 2px rgba(0,180,255,0.1);
}

.nx-form-input::placeholder { color: rgba(90,116,144,0.7); }

.nx-form-select option { background: var(--nx-surface); color: var(--nx-white); }

.nx-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.nx-submit-btn {
  width: 100%;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, var(--nx-blue), var(--nx-cyan));
  border: none;
  border-radius: 4px;
  color: #020408;
  font-family: var(--nx-font-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: var(--nx-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  box-shadow: 0 4px 20px rgba(0,180,255,0.25);
}

.nx-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(0,180,255,0.4);
}


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

.nx-footer {
  background: var(--nx-navy);
  border-top: 1px solid var(--nx-border);
  padding: 2rem 0;
}

.nx-footer-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--nx-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--nx-muted);
  text-transform: uppercase;
}

.nx-footer-inner a { color: var(--nx-muted); text-decoration: none; }
.nx-footer-inner a:hover { color: var(--nx-blue); }


/* ===========================================================================
   SCROLL REVEAL
   =========================================================================== */

.nx-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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


/* ===========================================================================
   REDUCED MOTION
   =========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .nx-city-orb::before,
  .nx-city-orb::after,
  .nx-entry-rocket,
  .nx-launch-burst,
  .nx-flame-pulse,
  .nx-reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  #nexusCityEntry { display: none !important; }
  body.nexus-city-page.nx-locked { overflow: auto; }
}


/* ===========================================================================
   RESPONSIVE
   =========================================================================== */

@media (max-width: 1024px) {
  .nx-buildings-grid { grid-template-columns: repeat(2, 1fr); }
  .nx-hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .nx-hero-visual { display: none; }
  .nx-reg-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nx-nav-menu { display: none; }
  .nx-mobile-toggle { display: flex; }
  .nx-status-bar { display: none; }
  .nx-hero { padding-top: 90px; }
  .nx-buildings-grid { grid-template-columns: 1fr; }
  .nx-form-grid { grid-template-columns: 1fr; }
  .nx-hero-metrics { gap: 1.25rem; }
  .nx-city-orb { width: 180px; height: 180px; }
  .nx-orb-core { font-size: 3rem; }
  .nx-entry-countdown { font-size: 4rem; }
  .nx-footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .nx-section { padding: 3.5rem 0; }
  .nx-hero-actions { flex-direction: column; }
  .nx-btn-primary, .nx-btn-ghost { width: 100%; justify-content: center; }
}
