:root {
  /* Core Palette - Defined in Master Plan */
  --bg: #05070a;
  --bg-darker: #020305;
  --bg-panel: #0d1218;
  --bg-panel-hover: #121922;
  
  --accent: #1fd6d2;
  --accent-glow: rgba(31, 214, 210, 0.4);
  --accent-soft: #64f2ee;
  
  --steel: #7e8a97;
  --steel-light: #a8b3bf;
  --steel-muted: #3d4650;
  
  --text: #e8eef6;
  --text-muted: #9daaba;
  --text-dim: #606d7c;
  
  --border: rgba(126, 138, 151, 0.15);
  --border-active: rgba(31, 214, 210, 0.3);
  
  /* Gradients & Shadows */
  --grad-panel: linear-gradient(165deg, rgba(13, 18, 24, 0.9) 0%, rgba(5, 7, 10, 1) 100%);
  --grad-steel: linear-gradient(180deg, var(--steel-light) 0%, var(--steel) 100%);
  --glow-subtle: 0 0 40px -10px rgba(31, 214, 210, 0.15);
  
  /* Layout */
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --container-max: 1240px;
  --header-h: 80px;
}

/* Base Setup */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Systems - Industrial Feel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 50% -20%, rgba(31, 214, 210, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(126, 138, 151, 0.05) 0%, transparent 30%);
  z-index: -1;
  pointer-events: none;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(126, 138, 151, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 138, 151, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
}

/* Typography Scale */
h1, h2, h3, h4 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 1.875rem); }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
}

/* Layout Elements */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 8rem 0;
}

/* Navigation - Floating Glassmorphism */
.site-header {
  height: var(--header-h);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  background: rgba(5, 7, 10, 0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: #fff;
  text-decoration: none;
}

.logo-icon {
  width: 18px;
  height: 18px;
  background: var(--accent);
  clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
  box-shadow: 0 0 15px var(--accent-glow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  width: 18px;
  height: 18px;
  background: var(--accent);
  clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
  box-shadow: 0 0 15px var(--accent-glow);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
}

.site-nav ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.75rem;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.header-cta:hover {
  border-color: var(--accent);
  background: rgba(31, 214, 210, 0.05);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.site-header.scrolled {
  background: rgba(2, 3, 5, 0.9);
  border-bottom-color: var(--border-active);
}

/* Panel System - Premium Industrial */
.panel {
  background: var(--grad-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-active), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.panel:hover {
  border-color: var(--border-active);
  box-shadow: var(--glow-subtle);
}

.panel:hover::before {
  transform: translateX(100%);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-darker);
}

.btn-primary:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(31, 214, 210, 0.05);
}

/* Hero Section */
.hero {
  padding-top: calc(var(--header-h) + 4rem);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  margin-bottom: 2rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 600px;
}

/* Infrastructure Stats (KPIs) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.stat-item {
  border-left: 1px solid var(--border);
  padding-left: 1.5rem;
}

.stat-value {
  display: block;
  font-size: 2.5rem;
  font-family: 'Sora', sans-serif;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Card Grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(13, 18, 24, 0.4);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--border-active);
  background: rgba(13, 18, 24, 0.6);
  transform: translateY(-5px);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

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

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

.list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.list-item {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.logo-grid .logo {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-size: 0.75rem;
  text-align: center;
  color: var(--text-muted);
}

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

.resource {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  background: rgba(13, 18, 24, 0.35);
}

.resource small {
  display: inline-block;
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.resource h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.resource p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Interactive Map Concept */
.map-panel {
  height: 500px;
  background: #080a0c;
  border-radius: var(--radius-lg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #10151c 0%, #05070a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}

/* Footers */
.site-footer {
  padding: 6rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-darker);
}

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

.footer-links h4 {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(126, 138, 151, 0.05);
}

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

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(126, 138, 151, 0.1);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .header-cta { display: none; }
  .site-nav ul { gap: 0.75rem; }
}

@media (max-width: 768px) {
  .nav-links {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
    padding-bottom: 0.25rem;
  }
  .footer-top { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.5rem; }
  section { padding: 4rem 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-bottom,
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 2rem;
    width: min(340px, calc(100vw - 4rem));
    border: 1px solid var(--border);
    background: rgba(5, 7, 10, 0.98);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }
  .site-nav a {
    display: block;
    padding: 0.4rem 0.2rem;
  }
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns: 2fr 1fr"],
  div[style*="grid-template-columns: 1.5fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  div[style*="display: flex; gap: 1rem;"] {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .container { padding: 0 1rem; }
  .panel,
  .card,
  .resource {
    padding: 1.25rem;
  }
  .logo-grid {
    grid-template-columns: 1fr;
  }
}

/* Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
