:root {
  /* Colors - Dark Glassmorphism */
  --bg-base: #0a0b10;
  --bg-surface: rgba(25, 27, 36, 0.4);
  --bg-glass: rgba(20, 22, 31, 0.65);
  --text-main: #f8f9fa;
  --text-muted: #a0a5b1;
  --neon-cyan: #00f3ff;
  --neon-magenta: #ff00e6;
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: var(--neon-cyan);
  --error: #ff4d4d;
  
  /* Spacing Scale */
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-40: 40px;
  --sp-64: 64px;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: radial-gradient(circle at 15% 50%, rgba(0, 243, 255, 0.05), transparent 25%),
              radial-gradient(circle at 85% 30%, rgba(255, 0, 230, 0.05), transparent 25%);
}

.brand-wrap {
  overflow-wrap: anywhere;
}

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

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

a:hover {
  text-shadow: 0 0 8px rgba(0, 243, 255, 0.4);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.btn {
  display: inline-block;
  background: rgba(0, 243, 255, 0.1);
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  padding: var(--sp-8) var(--sp-16);
  border-radius: var(--sp-4);
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
}

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

.btn-primary {
  background: var(--neon-cyan);
  color: var(--bg-base);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background: #00d4ff;
  color: var(--bg-base);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--sp-24);
  color: #ffffff;
  overflow-wrap: anywhere;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-top: var(--sp-40); }
h3 { font-size: 1.5rem; margin-top: var(--sp-24); }

p {
  margin-bottom: var(--sp-16);
  color: var(--text-muted);
}

ul, ol {
  margin-bottom: var(--sp-24);
  padding-left: var(--sp-24);
  color: var(--text-muted);
}

li {
  margin-bottom: var(--sp-8);
}

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

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

/* Header */
.site-header {
  height: 64px;
  display: flex;
  align-items: center;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  z-index: 100;
}

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

.logo-area {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
}

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

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

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

.header-cta {
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  color: var(--text-main);
}

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

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0, 243, 255, 0.1) 0%, transparent 60%);
  z-index: -1;
}

.hero h1 {
  font-size: 3.5rem;
  max-width: 800px;
  margin: 0 auto var(--sp-24);
  background: linear-gradient(135deg, #ffffff 0%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--neon-cyan); /* Fallback */
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto var(--sp-40);
}

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

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

.glass-card:hover, .glass-card:focus-visible {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
}

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

.glass-card:hover .card-img, .glass-card:focus-visible .card-img {
  opacity: 1;
  transform: scale(1.05);
}

.card-overlay {
  position: relative;
  z-index: 1;
  background: linear-gradient(to top, rgba(10, 11, 16, 0.95) 0%, rgba(10, 11, 16, 0.6) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: var(--sp-24);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
  min-width: 0;
}

.glass-card h3 {
  margin-bottom: var(--sp-8);
  margin-top: 0;
  color: var(--text-main);
  font-size: 1.25rem;
}

.glass-card p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Stats block */
.stats-container {
  display: flex;
  gap: var(--sp-24);
  margin: var(--sp-40) 0;
  flex-wrap: wrap;
}

.stat-item {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: var(--sp-24);
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-bottom: var(--sp-12);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

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

th, td {
  padding: var(--sp-16);
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-muted);
}

th {
  background: var(--bg-surface);
  color: var(--text-main);
  font-weight: 600;
}

/* Article Content Layout */
.article-header {
  margin-bottom: var(--sp-40);
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: var(--sp-24);
}

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

.feature-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  margin: var(--sp-24) 0 var(--sp-40);
  border: 1px solid var(--glass-border);
}

.pros-cons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-24);
  margin: var(--sp-24) 0;
}

.pros-card, .cons-card {
  background: var(--bg-surface);
  padding: var(--sp-24);
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

.pros-card h4 { color: var(--neon-cyan); }
.cons-card h4 { color: var(--neon-magenta); }

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

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

.form-control {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: var(--sp-12) var(--sp-16);
  border-radius: 8px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 2px rgba(0, 243, 255, 0.2);
}

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

.error-message {
  display: none;
  color: var(--error);
  font-size: 0.85rem;
  margin-top: var(--sp-8);
}

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

.map-container {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: var(--sp-24);
  margin-top: var(--sp-40);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--glass-border);
  background: rgba(10, 11, 16, 0.8);
  backdrop-filter: blur(12px);
  padding: var(--sp-64) 0 var(--sp-24);
}

.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 {
  font-size: 1.1rem;
  margin-bottom: var(--sp-16);
  color: var(--text-main);
}

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

.footer-links li {
  margin-bottom: var(--sp-12);
}

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

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

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

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: var(--sp-24);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - var(--sp-40));
  max-width: 800px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: var(--sp-24);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

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

.cookie-actions {
  display: flex;
  gap: var(--sp-12);
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
  .site-header {
    height: 52px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .main-nav {
    display: none; /* Mobile menu hidden by default */
    position: absolute;
    top: 52px;
    left: 0;
    width: 100%;
    background: var(--bg-base);
    border-bottom: 1px solid var(--glass-border);
    flex-direction: column;
    padding: var(--sp-24);
    gap: var(--sp-16);
  }
  
  .main-nav.is-visible {
    display: flex;
  }

  .header-cta {
    display: none;
  }
  
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1.1rem; }
  
  .stats-container { flex-direction: column; }
  
  .cookie-banner {
    bottom: 0;
    width: 100%;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
  }
}

@media (max-width: 399px) {
  .site-header { height: 48px; }
  .logo-area { font-size: 1.1rem; }
  .glass-card { min-height: 300px; }
  .hero h1 { font-size: 1.8rem; }
}

/* 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;
  }
}