:root {
  /* Colors - Dark Glassmorphism */
  --color-bg-base: #060812;
  --color-bg-panel: rgba(15, 20, 35, 0.4);
  --color-bg-panel-hover: rgba(25, 30, 50, 0.5);
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-glow: rgba(0, 243, 255, 0.3);
  --color-text-main: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-text-inverted: #060812;
  --color-accent-cyan: #00f3ff;
  --color-accent-purple: #b026ff;
  --color-focus: #00f3ff;
  --color-error: #ff4b4b;

  /* Typography */
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  
  /* Spacing */
  --space-4: 0.25rem;
  --space-8: 0.5rem;
  --space-12: 0.75rem;
  --space-16: 1rem;
  --space-24: 1.5rem;
  --space-32: 2rem;
  --space-40: 2.5rem;
  --space-64: 4rem;
  
  /* Radii */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
}

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

html {
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
}

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

/* Typography base */
h1, h2, h3, h4, h5, h6, .brand-name {
  margin-top: 0;
  margin-bottom: var(--space-16);
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
  color: #ffffff;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

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

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

a:hover {
  color: var(--color-accent-purple);
}

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

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

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

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

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

.grid {
  display: grid;
  gap: var(--space-24);
}

.grid-cols-1 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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

/* Glassmorphism & Neon Elements */
.glass-panel {
  background: var(--color-bg-panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.neon-gradient-text {
  background: linear-gradient(to right, var(--color-accent-cyan), var(--color-accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--color-accent-cyan); /* Fallback */
}

/* Header */
.site-header {
  background: rgba(6, 8, 18, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  z-index: 100;
}

.header-inner {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .header-inner {
    height: 64px;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  overflow-wrap: anywhere;
}

.brand svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.desktop-nav {
  display: none;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
    gap: var(--space-24);
    align-items: center;
  }
  .mobile-toggle {
    display: none;
  }
}

.nav-link {
  color: var(--color-text-main);
  font-weight: 500;
}

.nav-link:hover {
  color: var(--color-accent-cyan);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  background: linear-gradient(135deg, var(--color-accent-cyan), var(--color-accent-purple));
  color: var(--color-text-inverted);
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: var(--color-text-inverted);
}

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

.btn-outline:hover {
  background: var(--color-bg-panel-hover);
  color: var(--color-text-main);
  border-color: var(--color-accent-cyan);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--color-bg-base);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-16);
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  z-index: 99;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-toggle {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  padding: var(--space-8);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

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

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(176, 38, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-title {
  margin-bottom: var(--space-24);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 800px;
  margin: 0 auto var(--space-32);
}

/* Glass Overlay Card */
.card-glass-overlay {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  aspect-ratio: 4 / 3;
  text-decoration: none;
  background: var(--color-bg-panel);
}

.card-glass-overlay .card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.card-content-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--space-24);
  background: linear-gradient(to top, rgba(6, 8, 18, 0.95) 0%, rgba(6, 8, 18, 0.6) 50%, rgba(6, 8, 18, 0) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

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

.card-meta {
  font-size: 0.875rem;
  color: var(--color-accent-cyan);
  font-weight: 500;
}

/* Article / Content Pages */
.article-header {
  padding: var(--space-64) 0 var(--space-32);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-40);
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.125rem;
}

.article-body h2 {
  margin-top: var(--space-40);
}

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

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

.stat-block {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-panel);
  padding: var(--space-24);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-accent-purple);
  margin-bottom: var(--space-24);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px; /* strict 12px between stat and label requested */
}

.stat-label {
  font-size: 1rem;
  color: var(--color-text-muted);
}

/* Table */
.table-wrapper {
  overflow-x: auto;
  margin-bottom: var(--space-24);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: var(--space-16);
  border-bottom: 1px solid var(--color-border);
}

th {
  background: var(--color-bg-panel);
  font-weight: 600;
  color: #fff;
}

/* Contact Form */
.form-group {
  margin-bottom: var(--space-24);
}

.form-label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: 500;
  color: var(--color-text-main);
}

.form-control {
  width: 100%;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  padding: var(--space-12) var(--space-16);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent-cyan);
  box-shadow: 0 0 0 1px var(--color-accent-cyan);
}

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

.error-message {
  display: none;
  color: var(--color-error);
  font-size: 0.875rem;
  margin-top: var(--space-4);
}

.error-message.is-visible {
  display: block;
}

/* Static Map Block */
.static-map {
  width: 100%;
  height: 300px;
  background: radial-gradient(circle at center, rgba(0, 243, 255, 0.1) 0%, var(--color-bg-panel) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.static-map::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 20px 20px;
}

.map-marker {
  width: 16px;
  height: 16px;
  background: var(--color-accent-purple);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--color-accent-purple);
  position: relative;
  z-index: 2;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  padding: var(--space-64) 0 var(--space-32);
  background: var(--color-bg-panel);
}

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

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

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

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

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

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

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-24);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(6, 8, 18, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--color-border);
  padding: var(--space-16);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

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

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  max-width: 1200px;
  margin: 0 auto;
}

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

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

/* Small screen breakpoint adjustments */
@media (max-width: 399px) {
  h1 { font-size: 1.75rem; }
  .section { padding: var(--space-40) 0; }
  .btn { width: 100%; margin-bottom: var(--space-8); }
  .cookie-actions { flex-direction: column; }
  .cookie-actions button { width: 100%; }
}