:root {
  /* Dark Glassmorphism Variables */
  --bg-dark: #050508;
  --panel-bg: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(16px);
  --neon-primary: #00f2fe;
  --neon-secondary: #4facfe;
  --text-primary: #f8f9fa;
  --text-secondary: #a0a5ad;
  --text-inverse: #050508;
  --danger: #ff4b4b;
  
  /* Spacing */
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-40: 40px;
  --sp-64: 64px;
  
  /* Fonts */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--neon-primary);
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover, a:focus-visible {
  color: var(--neon-secondary);
  text-shadow: 0 0 8px rgba(79, 172, 254, 0.5);
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--neon-primary);
  outline-offset: 4px;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Wrapping for long text */
h1, h2, h3, h4, h5, h6, .brand-name, nav, th, td {
  overflow-wrap: anywhere;
}

/* Base Layout & Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-24);
  min-width: 0;
}

main {
  flex: 1;
}

.section {
  padding: var(--sp-64) 0;
}

.text-center { text-align: center; }
.mb-8 { margin-bottom: var(--sp-8); }
.mb-16 { margin-bottom: var(--sp-16); }
.mb-24 { margin-bottom: var(--sp-24); }
.mb-40 { margin-bottom: var(--sp-40); }
.mt-40 { margin-top: var(--sp-40); }
.mt-64 { margin-top: var(--sp-64); }

/* Typography */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.2; font-weight: 700; }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); line-height: 1.3; font-weight: 600; }
p { margin-bottom: var(--sp-16); color: var(--text-secondary); }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 var(--sp-24) var(--sp-24); color: var(--text-secondary); }
li { margin-bottom: var(--sp-8); }

.gradient-text {
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header */
.site-header {
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--panel-border);
  background: rgba(5, 5, 8, 0.8);
  backdrop-filter: var(--glass-blur);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
  text-decoration: none;
  z-index: 100;
}

.brand-icon {
  width: 24px;
  height: 24px;
  fill: url(#neon-grad);
}

.nav-links {
  display: flex;
  gap: var(--sp-24);
  align-items: center;
}

.nav-link {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-8) var(--sp-24);
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  color: var(--text-inverse);
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 242, 254, 0.4);
  color: var(--text-inverse);
}

.btn-outline {
  background: transparent;
  color: var(--neon-primary);
  border: 1px solid var(--neon-primary);
}
.btn-outline:hover {
  background: var(--panel-bg);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
  color: var(--neon-primary);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: var(--sp-8);
  z-index: 100;
}
.menu-toggle svg { width: 24px; height: 24px; fill: currentColor; }

/* Hero Section */
.hero {
  position: relative;
  padding: var(--sp-64) 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 50vh;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; left: -10%;
  width: 50%; height: 50%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, transparent 70%);
  filter: blur(60px);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

/* Glass Overlay Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-24);
  min-width: 0;
}

.glass-card {
  position: relative;
  display: block;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  text-decoration: none;
  background: var(--bg-dark);
}

.glass-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.glass-card:hover .glass-card-bg {
  transform: scale(1.05);
}

.glass-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--sp-24);
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--panel-border);
  transition: background 0.3s ease;
}

.glass-card:hover .glass-card-overlay {
  background: rgba(10, 10, 15, 0.85);
  border-top-color: rgba(0, 242, 254, 0.3);
  box-shadow: 0 -10px 30px rgba(0, 242, 254, 0.1);
}

.glass-card-title {
  color: var(--text-primary);
  margin-bottom: var(--sp-8);
  font-size: 1.25rem;
}

.glass-card-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--sp-16);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.glass-card-cta {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  color: var(--neon-primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Supporting Content & Subpages */
.content-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: var(--sp-40);
  backdrop-filter: var(--glass-blur);
  margin-bottom: var(--sp-64);
}

.article-header {
  margin-bottom: var(--sp-40);
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: var(--sp-24);
}

.article-body h2 {
  margin-top: var(--sp-40);
  margin-bottom: var(--sp-16);
  color: var(--neon-primary);
}
.article-body h3 {
  margin-top: var(--sp-24);
  margin-bottom: var(--sp-12);
}

/* Tables for Data/Specs */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-24) 0;
  font-size: 0.95rem;
}
.table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.02);
}
.data-table th, .data-table td {
  padding: var(--sp-16);
  text-align: left;
  border-bottom: 1px solid var(--panel-border);
}
.data-table th {
  background: rgba(255,255,255,0.05);
  font-weight: 600;
  color: var(--text-primary);
}
.data-table tr:last-child td {
  border-bottom: none;
}

/* Forms */
.form-group {
  margin-bottom: var(--sp-24);
}
.form-label {
  display: block;
  margin-bottom: var(--sp-8);
  font-weight: 500;
  color: var(--text-primary);
}
.form-control {
  width: 100%;
  padding: var(--sp-12) var(--sp-16);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--neon-primary);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.2);
}
.form-control.is-invalid {
  border-color: var(--danger);
}
.form-error {
  display: none;
  color: var(--danger);
  font-size: 0.875rem;
  margin-top: var(--sp-4);
}
.form-control.is-invalid + .form-error {
  display: block;
}
.form-success {
  display: none;
  padding: var(--sp-16);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid var(--neon-primary);
  border-radius: 8px;
  color: var(--neon-primary);
  margin-bottom: var(--sp-24);
}
.form-success.is-visible {
  display: block;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-64);
  min-width: 0;
}
.static-map {
  width: 100%;
  height: 300px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.static-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--panel-border) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
}
.map-marker {
  position: relative;
  z-index: 1;
  color: var(--neon-primary);
  text-align: center;
}
.map-marker svg {
  width: 40px; height: 40px;
  fill: currentColor;
  margin: 0 auto var(--sp-8);
  filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.8));
}

/* Stats Block */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-24);
  margin: var(--sp-40) 0;
}
.stat-item {
  padding: var(--sp-24);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  text-align: center;
}
.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--neon-primary);
  margin-bottom: var(--sp-12);
  line-height: 1;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--panel-border);
  background: rgba(5, 5, 8, 0.9);
  padding: var(--sp-64) 0 var(--sp-40);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-40);
  margin-bottom: var(--sp-40);
}
.footer-col h4 {
  color: var(--text-primary);
  margin-bottom: var(--sp-16);
}
.footer-links {
  list-style: none;
  margin: 0; padding: 0;
}
.footer-links li { margin-bottom: var(--sp-8); }
.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: var(--neon-primary); }
.footer-bottom {
  padding-top: var(--sp-24);
  border-top: 1px solid var(--panel-border);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: var(--glass-blur);
  border-top: 1px solid rgba(0, 242, 254, 0.3);
  padding: var(--sp-24);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}
.cookie-banner.is-visible {
  transform: translateY(0);
}
.cookie-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-24);
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}
.cookie-text {
  flex: 1 1 300px;
  font-size: 0.9rem;
}
.cookie-actions {
  display: flex;
  gap: var(--sp-12);
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
  .site-header { height: 52px; }
  .menu-toggle { display: block; }
  
  .nav-wrapper {
    position: fixed;
    top: 52px; left: 0; right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: var(--glass-blur);
    padding: var(--sp-24);
    border-bottom: 1px solid var(--panel-border);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
  }
  
  .nav-wrapper.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .cookie-actions {
    width: 100%;
    justify-content: stretch;
  }
  .cookie-actions .btn {
    flex: 1;
    text-align: center;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .hero::before { filter: blur(30px); }
  .content-panel { padding: var(--sp-24); }
}

@media (max-width: 399px) {
  .site-header { height: 48px; }
  .nav-wrapper { top: 48px; }
  .card-grid { grid-template-columns: 1fr; }
  .section { padding: var(--sp-40) 0; }
  .btn { width: 100%; justify-content: center; }
  .glass-card { height: 320px; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}