:root {
  --bg-dark: #07090f;
  --bg-panel: rgba(18, 22, 38, 0.65);
  --glass-border: rgba(255, 255, 255, 0.1);
  --neon-cyan: #00f0ff;
  --neon-magenta: #bd00ff;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --text-light: #ffffff;
  
  --space-4: 4px;
  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-40: 40px;
  --space-64: 64px;
  
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  --focus-outline: 2px solid var(--neon-cyan);
}

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

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

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

/* Typography */
h1, h2, h3, h4, h5, h6, .brand-name {
  color: var(--text-light);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: var(--space-24); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); margin-bottom: var(--space-24); margin-top: var(--space-64); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); margin-bottom: var(--space-16); margin-top: var(--space-40); }
p { margin-bottom: var(--space-16); }

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

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

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

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

main {
  flex: 1;
  padding-bottom: var(--space-64);
}

.section-spacing {
  margin-top: var(--space-64);
  margin-bottom: var(--space-64);
}

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

.grid-cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.grid > *, .flex > * {
  min-width: 0;
}

/* Glassmorphism Elements */
.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  padding: var(--space-24);
}

.neon-border {
  position: relative;
  z-index: 1;
}

.neon-border::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--neon-cyan), var(--neon-magenta));
  z-index: -1;
  border-radius: inherit;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.neon-border:hover::before {
  opacity: 1;
}

/* Header */
.site-header {
  height: 64px;
  background: rgba(7, 9, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  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(--text-light);
  overflow-wrap: anywhere;
}

.brand svg {
  width: 24px;
  height: 24px;
  fill: var(--neon-cyan);
  flex-shrink: 0;
}

.nav-desktop {
  display: none;
  gap: var(--space-16);
  align-items: center;
}

.nav-desktop a {
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-desktop a:hover {
  color: var(--neon-cyan);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  border: 1px solid var(--neon-cyan);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 40px;
}

.btn:hover {
  background: var(--neon-cyan);
  color: var(--bg-dark);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
}

.btn-primary {
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  border: none;
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: linear-gradient(90deg, #33f3ff, #c833ff);
  color: var(--bg-dark);
  box-shadow: 0 0 20px rgba(189, 0, 255, 0.5);
}

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

.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(7, 9, 15, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  padding: var(--space-24);
  flex-direction: column;
  gap: var(--space-16);
}

.nav-mobile.is-visible {
  display: flex;
}

/* Cards: Glass overlay — full-bleed image with a translucent panel */
.card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: var(--bg-panel);
}

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

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

.card-overlay {
  position: relative;
  z-index: 10;
  background: linear-gradient(to top, rgba(7, 9, 15, 0.95) 0%, rgba(7, 9, 15, 0.7) 60%, transparent 100%);
  padding: var(--space-40) var(--space-24) var(--space-24) var(--space-24);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  color: var(--text-main);
  backdrop-filter: blur(4px);
}

.card-title {
  color: var(--neon-cyan);
  margin: 0;
  font-size: 1.25rem;
}

.card:hover .card-title {
  text-shadow: 0 0 8px var(--neon-cyan);
}

/* Articles / Content Pages */
.article-header {
  text-align: center;
  padding: var(--space-64) 0;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: var(--space-64);
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content h2, .article-content h3 {
  color: var(--neon-cyan);
}

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

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

.stat-block {
  display: inline-flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.05);
  padding: var(--space-16) var(--space-24);
  border-radius: 8px;
  border-left: 2px solid var(--neon-magenta);
  margin-bottom: var(--space-16);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 12px;
}

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

.feature-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-bottom: var(--space-24);
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

th, td {
  padding: var(--space-16);
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--neon-cyan);
  font-weight: 600;
}

td {
  background: rgba(0, 0, 0, 0.2);
}

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

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

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: var(--space-16);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus {
  border-color: var(--neon-cyan);
  outline: none;
  box-shadow: 0 0 0 1px var(--neon-cyan);
}

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

.is-invalid input, .is-invalid textarea {
  border-color: #ff003c;
}

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

/* Map Block */
.map-block {
  width: 100%;
  height: 300px;
  border-radius: 16px;
  background: 
    linear-gradient(rgba(7, 9, 15, 0.8), rgba(7, 9, 15, 0.8)),
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0, 240, 255, 0.1) 10px, rgba(0, 240, 255, 0.1) 20px);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-24);
  position: relative;
}

.map-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
}

.map-marker svg {
  width: 32px;
  height: 32px;
  fill: var(--neon-magenta);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: var(--space-24);
  left: var(--space-24);
  right: var(--space-24);
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-content {
  flex: 1 1 300px;
}

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

/* Footer */
.site-footer {
  background: rgba(7, 9, 15, 0.95);
  border-top: 1px solid var(--glass-border);
  padding: var(--space-64) 0 var(--space-24);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-40);
  margin-bottom: var(--space-40);
}

.footer-col h3 {
  color: var(--neon-cyan);
  font-size: 1.125rem;
  margin-top: 0;
  margin-bottom: var(--space-16);
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

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

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

.footer-col a:hover {
  color: var(--text-light);
}

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

/* Responsive */
@media (min-width: 768px) {
  .site-header { height: 64px; }
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .nav-mobile.is-visible { display: none; }
}

@media (max-width: 767px) {
  .site-header { height: 52px; }
  .card { aspect-ratio: 1 / 1; }
  .neon-border::before { inset: 0; }
  .article-header { padding: var(--space-40) 0; }
}

@media (max-width: 399px) {
  :root {
    --space-64: 40px;
    --space-40: 24px;
    --space-24: 16px;
  }
  .card { aspect-ratio: auto; min-height: 280px; }
  .cookie-banner { bottom: 0; left: 0; right: 0; border-radius: 0; }
}

/* Prefers Reduced Motion */
@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;
  }
}