:root {
  --bg-dark: #0D0D0D;
  --system-teal: #00F0C8;
  --action-orange: #FF6B35;
  --penalty-red: #FF3B5C;
  --text-white: #FFFFFF;
  --text-dim: #A0A0A0;
  --glass-bg: rgba(13, 13, 13, 0.9);
  --hud-border: 1px solid rgba(0, 240, 200, 0.2);
  --teal-glow: 0 0 15px rgba(0, 240, 200, 0.3);
  --orange-glow: 0 0 15px rgba(255, 107, 53, 0.3);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Space+Grotesk:wght@500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: crosshair;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Scan-line Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%,
    rgba(0, 0, 0, 0.1) 50%
  ),
  linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.05),
    rgba(0, 255, 0, 0.02),
    rgba(0, 0, 255, 0.05)
  );
  background-size: 100% 4px, 3px 100%;
  pointer-events: none;
  z-index: 5000;
  opacity: 0.3;
}

h1, h2, h3, .logo, .mono {
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* UI Elements */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  z-index: 1000;
  border-bottom: var(--hud-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--system-teal);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

nav .logo::before {
  content: "[SYS]";
  font-size: 0.7rem;
  opacity: 0.6;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

nav ul li a {
  color: var(--text-white);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s;
  letter-spacing: 1.5px;
}

nav ul li a:hover {
  color: var(--system-teal);
  text-shadow: var(--teal-glow);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 10%;
  position: relative;
}

.hero h1 {
  font-size: 6rem;
  margin-bottom: 0.5rem;
  color: var(--text-white);
  position: relative;
  animation: flicker 4s infinite;
}

@keyframes flicker {
  0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% {
    opacity: 1;
    text-shadow: 0 0 10px var(--system-teal);
  }
  20%, 21.999%, 63%, 63.999%, 65%, 69.999% {
    opacity: 0.4;
    text-shadow: none;
  }
}

.hero p.tagline {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-dim);
  max-width: 800px;
  margin-bottom: 2.5rem;
  font-style: italic;
}

.hero-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 3rem;
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--system-teal);
}

.cta-button {
  padding: 1.2rem 3rem;
  background: transparent;
  border: 1px solid var(--system-teal);
  color: var(--system-teal);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--teal-glow);
  position: relative;
  overflow: hidden;
}

.cta-button:hover {
  background: var(--system-teal);
  color: #000;
  box-shadow: 0 0 40px var(--system-teal);
  transform: scale(1.05);
}

/* Spider Plot Section */
.radar-section {
  padding: 10rem 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;
  background: #080808;
  border-top: var(--hud-border);
  border-bottom: var(--hud-border);
}

.radar-info {
  flex: 1;
  max-width: 500px;
}

.radar-info h2 {
  font-size: 3rem;
  color: var(--action-orange);
  margin-bottom: 2rem;
}

.stat-item {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.radar-chart-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Dynamic Radar SVG Styles */
.radar-grid { stroke: rgba(255, 255, 255, 0.1); stroke-width: 1; fill: none; }
.radar-axis { stroke: rgba(255, 255, 255, 0.2); stroke-width: 1; }
.radar-area { fill: rgba(0, 240, 200, 0.3); stroke: var(--system-teal); stroke-width: 3; filter: drop-shadow(0 0 5px var(--system-teal)); }
.radar-label { fill: var(--text-dim); font-size: 14px; font-family: 'Space Grotesk'; text-transform: uppercase; }

/* Mission Catalog */
.missions {
  padding: 8rem 5%;
}

.missions-header {
  text-align: center;
  margin-bottom: 5rem;
}

.missions-header h2 {
  font-size: 3.5rem;
  letter-spacing: 5px;
  color: var(--text-white);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.mission-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem;
  position: relative;
  transition: all 0.4s;
  overflow: hidden;
}

.mission-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--system-teal);
  transition: height 0.4s;
}

.mission-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--system-teal);
  transform: translateY(-5px);
}

.mission-card:hover::before {
  height: 100%;
}

.mission-rank {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: 'Space Grotesk';
  font-weight: 700;
  font-size: 2rem;
  opacity: 0.1;
  color: var(--system-teal);
}

.mission-card h3 {
  margin-bottom: 1rem;
  color: var(--system-teal);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Wardrobe / Slides Section */
.wardrobe {
  padding: 8rem 5%;
  background: #000;
}

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

.slide-item {
  position: relative;
  border: var(--hud-border);
  aspect-ratio: 16/9;
  overflow: hidden;
}

.slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(120%);
  transition: all 0.5s;
}

.slide-item:hover img {
  filter: grayscale(0%) contrast(100%);
  transform: scale(1.1);
}

.slide-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 10px;
  background: rgba(0, 0, 0, 0.8);
  font-family: monospace;
  font-size: 0.7rem;
  color: var(--system-teal);
}

/* Legal Pages */
.legal-page {
  background: radial-gradient(circle at top, #151515 0%, #0d0d0d 100%);
}

.legal-content {
  padding: 12rem 10% 8rem;
  max-width: 900px;
  margin: 0 auto;
}

.legal-header {
  text-align: center;
  margin-bottom: 5rem;
  border-bottom: var(--hud-border);
  padding-bottom: 2rem;
}

.legal-header h1 {
  font-size: 4rem;
  color: var(--system-teal);
  margin: 1rem 0;
}

.legal-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  color: var(--system-teal);
  margin-bottom: 0.7rem;
  display: block;
}

.legal-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-white);
}

.legal-section p {
  color: var(--text-dim);
  font-size: 1.1rem;
}

.penalty-text {
  color: var(--penalty-red);
  font-weight: 700;
}

/* Footer Styling */
footer {
  padding: 5rem 10%;
  border-top: var(--hud-border);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: monospace;
  color: var(--text-dim);
  background: #000;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  margin: 0 10px;
}

@media (max-width: 768px) {
  .hero h1 { font-size: 3.5rem; }
  .radar-section { flex-direction: column; text-align: center; }
  .slide-grid { grid-template-columns: 1fr; }
}
