:root {
  --color-bg-base: #060913;
  --color-bg-surface: rgba(15, 23, 42, 0.4);
  --color-bg-glass: rgba(30, 41, 59, 0.45);
  --color-text-main: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-accent-1: #00f2fe;
  --color-accent-2: #4facfe;
  --color-accent-3: #8b5cf6;
  --color-error: #ef4444;
  
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-40: 40px;
  --space-64: 64px;
  
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6, .brand-name, .nav-link {
  overflow-wrap: anywhere;
  margin-top: 0;
  margin-bottom: var(--space-16);
  line-height: 1.2;
}

p {
  margin-top: 0;
  margin-bottom: var(--space-16);
}

a {
  color: var(--color-accent-1);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

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

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

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--color-accent-1);
  outline-offset: 2px;
}

@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;
  }
}

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

.text-center { text-align: center; }
.mb-24 { margin-bottom: var(--space-24); }
.mb-40 { margin-bottom: var(--space-40); }
.mb-64 { margin-bottom: var(--space-64); }
.mt-64 { margin-top: var(--space-64); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

[hidden] {
  display: none !important;
}

/* Flex/Grid Reset */
.flex, .grid { min-width: 0; }
.flex > *, .grid > * { min-width: 0; }

/* Neon Gradient Edge Wrappers */
.neon-border {
  position: relative;
  background: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-3));
  padding: 1px;
  border-radius: 17px;
}
.neon-border-inner {
  background: var(--color-bg-base);
  border-radius: 16px;
  height: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-24);
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-2));
  color: #000;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
}

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

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

.btn-outline:hover {
  background: rgba(0, 242, 254, 0.1);
  color: var(--color-accent-1);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

.btn-small {
  padding: var(--space-4) var(--space-16);
  min-height: 36px;
  font-size: 0.875rem;
}

/* Header */
.site-header {
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(6, 9, 19, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--glass-border);
  position: relative;
  z-index: 100;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text-main);
  text-decoration: none;
}
.brand:hover {
  color: var(--color-text-main);
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

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

.nav-desktop {
  display: none;
}

.nav-links {
  display: flex;
  gap: var(--space-24);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--color-text-main);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
  margin: 0;
}
.nav-link:hover {
  color: var(--color-accent-1);
}

.header-cta {
  display: none;
}

/* Hamburger */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-4);
  z-index: 110;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--color-text-main);
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

/* Mobile Nav Overlay */
.nav-mobile-overlay {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(6, 9, 19, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--glass-border);
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.nav-mobile-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-mobile-overlay .nav-links {
  flex-direction: column;
  gap: var(--space-16);
}

@media (min-width: 768px) {
  .site-header {
    height: 64px;
  }
  .menu-toggle {
    display: none;
  }
  .nav-desktop, .header-cta {
    display: flex;
  }
}

@media (max-width: 767px) {
  .site-header {
    height: 52px;
  }
}

/* Main Content */
.main-content {
  flex: 1;
  padding: var(--space-40) 0;
}

/* Hero Section */
.hero {
  padding: var(--space-64) 0;
  text-align: center;
  position: relative;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0,242,254,0.15) 0%, rgba(139,92,246,0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  background: linear-gradient(135deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-24);
}

.hero p {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-40);
}

/* Glass Overlay Cards */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-24);
  margin-bottom: var(--space-64);
}

@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.glass-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  aspect-ratio: 4/3;
  transition: transform 0.3s ease;
  background: #111827;
}

.glass-card:hover {
  transform: scale(1.02);
  color: inherit;
  text-shadow: none;
}

.glass-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-24);
  background: linear-gradient(to top, rgba(6, 9, 19, 0.95) 0%, rgba(6, 9, 19, 0.6) 70%, transparent 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
  border-top: var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.card-overlay h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #fff;
}

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

/* Info Section */
.info-section {
  padding: var(--space-64) var(--space-40);
  margin-top: var(--space-64);
  position: relative;
  display: grid;
  gap: var(--space-40);
}

@media (min-width: 768px) {
  .info-section {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.info-content h2 {
  font-size: 2rem;
  color: var(--color-accent-1);
}

.info-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-24);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Sub-page Formatting (Prose) */
.prose {
  max-width: 800px;
  margin: 0 auto;
}

.prose h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: var(--space-40);
  color: var(--color-accent-1);
}

.prose h2 {
  font-size: 1.75rem;
  margin-top: var(--space-40);
  border-bottom: var(--glass-border);
  padding-bottom: var(--space-8);
  color: #fff;
}

.prose h3 {
  font-size: 1.25rem;
  margin-top: var(--space-24);
  color: var(--color-accent-2);
}

.prose p {
  margin-bottom: var(--space-24);
  font-size: 1.05rem;
}

.prose ul, .prose ol {
  margin-bottom: var(--space-24);
  padding-left: var(--space-24);
}

.prose li {
  margin-bottom: var(--space-8);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-40);
  background: var(--color-bg-surface);
  border-radius: 8px;
  overflow: hidden;
}

.table-wrapper {
  overflow-x: auto;
  margin-bottom: var(--space-40);
  border-radius: 8px;
  border: var(--glass-border);
}
.table-wrapper table {
  margin-bottom: 0;
}

.prose th, .prose td {
  padding: var(--space-12) var(--space-16);
  text-align: left;
  border-bottom: var(--glass-border);
}

.prose th {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  color: #fff;
}

.prose img {
  border-radius: 12px;
  margin-bottom: var(--space-40);
  border: var(--glass-border);
}

.hero-image-wrapper {
  margin-bottom: var(--space-40);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: var(--glass-border);
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.5);
  pointer-events: none;
}

/* Contact Form */
.contact-container {
  display: grid;
  gap: var(--space-40);
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-card {
  padding: var(--space-24);
}

.form-group {
  margin-bottom: var(--space-24);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.form-label {
  font-weight: 500;
  color: var(--color-text-main);
}

.form-control {
  width: 100%;
  padding: var(--space-12) var(--space-16);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent-2);
  box-shadow: 0 0 0 2px rgba(79, 172, 254, 0.2);
}

.form-control.is-invalid {
  border-color: var(--color-error);
}

.error-msg {
  color: var(--color-error);
  font-size: 0.875rem;
  display: none;
}
.form-control.is-invalid + .error-msg {
  display: block;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.map-placeholder {
  width: 100%;
  height: 250px;
  background: var(--color-bg-glass);
  border: var(--glass-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

/* Footer */
.site-footer {
  background: rgba(6, 9, 19, 0.9);
  border-top: var(--glass-border);
  padding: var(--space-64) 0 var(--space-24);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-40);
  margin-bottom: var(--space-40);
}

@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-col h4 {
  color: #fff;
  margin-bottom: var(--space-16);
  font-size: 1.125rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

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

.footer-bottom {
  text-align: center;
  padding-top: var(--space-24);
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: var(--space-24);
  left: var(--space-24);
  right: var(--space-24);
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-24);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--glass-border);
  border-radius: 12px;
  z-index: 1000;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-text {
  font-size: 0.875rem;
  color: var(--color-text-main);
  flex: 1;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

/* Extreme Mobile adjustments */
@media (max-width: 399px) {
  .container {
    padding: 0 var(--space-16);
  }
  .info-stats {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 1.75rem;
  }
  .glass-card {
    aspect-ratio: auto;
    height: 250px;
  }
  .neon-border {
    padding: 0;
    background: transparent;
  }
  .neon-border-inner {
    border: 1px solid var(--color-accent-3);
  }
}