:root {
  --bg-base: #06070a;
  --bg-surface: rgba(255, 255, 255, 0.04);
  --bg-surface-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-blur: blur(16px);
  
  --neon-cyan: #00f0ff;
  --neon-purple: #9d00ff;
  --text-main: #f0f4f8;
  --text-muted: #9ba3af;
  --text-dark: #06070a;
  
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-40: 40px;
  --space-64: 64px;
  
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(157, 0, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-stack);
  line-height: 1.6;
  font-size: 16px;
  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-24);
  color: #ffffff;
  line-height: 1.2;
}

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

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

a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px var(--neon-cyan);
}

p, ul, ol {
  margin-top: 0;
  margin-bottom: var(--space-24);
}

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

:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 4px;
}

.button, .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  padding: var(--space-12) var(--space-24);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
  backdrop-filter: var(--glass-blur);
}

.button:hover, .cta-button:hover {
  background: var(--bg-surface-hover);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
  color: #ffffff;
  text-shadow: none;
}

.button-primary {
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
  color: var(--text-dark);
  border: none;
}
.button-primary:hover {
  background: linear-gradient(135deg, #b033ff, #33f3ff);
  color: var(--text-dark);
  box-shadow: 0 0 24px rgba(157, 0, 255, 0.4);
}

/* Header */
.site-header {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 var(--space-24);
  background: rgba(6, 7, 10, 0.7);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
}

.header-inner {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  font-weight: 700;
  font-size: 1.25rem;
  color: #ffffff;
  z-index: 100;
}

.brand-icon {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--neon-cyan);
  stroke-width: 2;
}

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

.nav-link {
  color: var(--text-main);
  font-size: 0.95rem;
  margin: 0;
}

.nav-link:hover {
  color: var(--neon-cyan);
  text-shadow: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  z-index: 100;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: var(--space-8);
  border-radius: 4px;
  cursor: pointer;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: var(--space-64) var(--space-24);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
}

/* Sections */
.section {
  margin-bottom: var(--space-64);
}

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

.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  background: var(--neon-purple);
  filter: blur(100px);
  transform: translate(-50%, -50%);
  z-index: -1;
  opacity: 0.3;
}

.hero-subtitle {
  color: var(--neon-cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.875rem;
}

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

.glass-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease, border-color 0.3s ease;
  min-width: 0;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--neon-purple);
}

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

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

.glass-card-overlay {
  position: relative;
  z-index: 2;
  background: linear-gradient(to top, rgba(6, 7, 10, 0.95) 0%, rgba(6, 7, 10, 0.6) 100%);
  backdrop-filter: blur(8px);
  padding: var(--space-24);
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  min-width: 0;
}

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

.glass-card-meta {
  display: flex;
  gap: var(--space-16);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.glass-card-tag {
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-cyan);
  padding: var(--space-4) var(--space-8);
  border-radius: 4px;
  font-weight: 600;
}

/* Article / Long Form Content */
.article-header {
  margin-bottom: var(--space-64);
  text-align: center;
}
.article-body {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  padding: var(--space-40);
  border-radius: 16px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.4);
}
.article-body h2 {
  margin-top: var(--space-40);
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: var(--space-16);
}
.article-body ul {
  padding-left: var(--space-24);
}
.article-body li {
  margin-bottom: var(--space-8);
}

/* Data Tables */
.table-wrapper {
  overflow-x: auto;
  margin-bottom: var(--space-24);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: rgba(0,0,0,0.2);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
th, td {
  padding: var(--space-16);
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}
th {
  background: var(--bg-surface);
  font-weight: 600;
  color: var(--neon-cyan);
}

/* Forms */
.form-group {
  margin-bottom: var(--space-24);
}
.form-label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: 600;
}
.form-control {
  width: 100%;
  padding: var(--space-16);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  border-radius: 8px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.2);
}
.form-control.is-invalid {
  border-color: #ff3366;
  box-shadow: 0 0 0 2px rgba(255, 51, 102, 0.2);
}
.error-message {
  display: none;
  color: #ff3366;
  font-size: 0.875rem;
  margin-top: var(--space-8);
}
.error-message.is-visible {
  display: block;
}

/* Static Map Block */
.static-map {
  width: 100%;
  height: 300px;
  background: linear-gradient(45deg, rgba(6,7,10,0.8), rgba(157,0,255,0.1)),
              repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(255,255,255,0.03) 20px),
              repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(255,255,255,0.03) 20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-24);
  position: relative;
}
.map-marker {
  width: 40px;
  height: 40px;
  background: var(--neon-purple);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  position: relative;
  box-shadow: 0 0 20px var(--neon-purple);
}
.map-marker::after {
  content: "";
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: var(--space-64) var(--space-24);
  background: rgba(6, 7, 10, 0.9);
  backdrop-filter: var(--glass-blur);
  margin-top: auto;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-40);
  min-width: 0;
}
.footer-col h4 {
  color: #fff;
  margin-bottom: var(--space-16);
  font-size: 1.1rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li {
  margin-bottom: var(--space-8);
}
.footer-col a {
  color: var(--text-muted);
}
.footer-col a:hover {
  color: var(--neon-cyan);
}
.footer-bottom {
  max-width: 1200px;
  margin: var(--space-40) auto 0;
  padding-top: var(--space-24);
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(6, 7, 10, 0.95);
  backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
  padding: var(--space-24);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  visibility: hidden;
}
.cookie-banner.is-visible {
  transform: translateY(0);
  visibility: visible;
}
.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
  width: 100%;
}
.cookie-text {
  flex: 1;
  min-width: 280px;
}
.cookie-text p {
  margin: 0;
  font-size: 0.9rem;
}
.cookie-actions {
  display: flex;
  gap: var(--space-12);
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 767px) {
  .site-header {
    height: 52px;
  }
  .menu-toggle {
    display: block;
  }
  .site-nav {
    position: fixed;
    top: 52px;
    left: 0;
    width: 100%;
    height: calc(100vh - 52px);
    background: rgba(6, 7, 10, 0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: var(--space-40) var(--space-24);
    gap: var(--space-24);
    border-top: 1px solid var(--glass-border);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 90;
    overflow-y: auto;
  }
  .site-nav.is-visible {
    transform: translateX(0);
  }
  .nav-link {
    font-size: 1.25rem;
  }
  .header-cta {
    display: none; /* Hide in header, can be moved to nav if needed, but per rules kept simple */
  }
  .article-body {
    padding: var(--space-24);
  }
}

@media (max-width: 399px) {
  :root {
    --space-64: 40px;
    --space-40: 24px;
  }
  .main-content {
    padding-top: var(--space-40);
  }
  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }
  .cookie-actions button {
    width: 100%;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Utility layout stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-24);
  margin-top: var(--space-40);
}
.stat-item {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  padding: var(--space-24);
  border-radius: 8px;
  text-align: center;
}
.stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-bottom: var(--space-12);
}
.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}