:root {
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-40: 40px;
  --space-64: 64px;
  
  --color-bg: #09090b;
  --color-text-main: #e4e4e7;
  --color-text-muted: #a1a1aa;
  --color-white: #ffffff;
  --color-accent-1: #8b5cf6;
  --color-accent-2: #3b82f6;
  --color-accent-3: #ec4899;
  
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-hover: rgba(255, 255, 255, 0.06);
  --glass-panel: rgba(9, 9, 11, 0.7);

  --font-base: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  min-width: 320px;
  position: relative;
}

/* Base Typography */
h1, h2, h3, h4, h5, h6, .brand, .nav-link {
  overflow-wrap: anywhere;
  color: var(--color-white);
  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;
}

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

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-accent-1);
  outline-offset: 4px;
}

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

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

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

.text-center {
  text-align: center;
}

.mt-24 { margin-top: var(--space-24); }
.mt-40 { margin-top: var(--space-40); }
.mt-64 { margin-top: var(--space-64); }
.mb-24 { margin-bottom: var(--space-24); }

.grid-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-40);
  min-width: 0;
}

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

@media (min-width: 1024px) {
  .grid-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Neon Glows / Dark Glassmorphism background effects */
.bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(9, 9, 11, 0) 70%);
  top: -100px;
  left: -100px;
  z-index: -1;
  pointer-events: none;
}

.bg-glow-right {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(9, 9, 11, 0) 70%);
  bottom: -100px;
  right: -100px;
  z-index: -1;
  pointer-events: none;
}

/* Header */
.site-header {
  height: 48px;
  display: flex;
  align-items: center;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 var(--space-24);
  position: relative;
  z-index: 100;
}

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

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

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.1rem;
}

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

.nav-toggle {
  display: block;
  background: transparent;
  color: var(--color-white);
  border: none;
  cursor: pointer;
  padding: var(--space-8);
}

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

.main-nav {
  display: none;
  position: fixed;
  top: 48px;
  left: 0;
  width: 100%;
  height: calc(100vh - 48px);
  background: rgba(9, 9, 11, 0.95);
  backdrop-filter: blur(16px);
  flex-direction: column;
  padding: var(--space-40) var(--space-24);
  gap: var(--space-24);
}

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

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

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

.header-cta {
  display: none;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
  
  .main-nav {
    display: flex;
    position: static;
    height: auto;
    width: auto;
    flex-direction: row;
    background: transparent;
    padding: 0;
    gap: var(--space-24);
  }
  
  .nav-link {
    font-size: 1rem;
  }

  .header-cta {
    display: inline-block;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  color: var(--color-white);
  border: 1px solid var(--glass-border);
  padding: var(--space-8) var(--space-16);
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.btn:hover {
  background: var(--glass-hover);
  border-color: var(--color-accent-1);
}

.btn-primary {
  background: linear-gradient(90deg, var(--color-accent-1), var(--color-accent-2));
  border: none;
  color: var(--color-white);
}

.btn-primary:hover {
  background: linear-gradient(90deg, var(--color-accent-2), var(--color-accent-1));
}

.btn-large {
  padding: var(--space-12) var(--space-24);
  font-size: 1.1rem;
}

/* Glass Overlay Cards */
.card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  height: 350px;
  min-width: 0;
  border: 1px solid var(--glass-border);
  text-decoration: none;
  color: var(--color-text-main);
  background: var(--color-bg);
}

.card:hover {
  color: var(--color-text-main);
}

.card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--color-accent-1), transparent, var(--color-accent-2));
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

.card-img-wrapper {
  position: absolute;
  inset: 1px;
  z-index: 1;
  background: var(--color-bg);
  border-radius: 7px;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--space-24);
  background: linear-gradient(to top, rgba(9,9,11,0.95) 0%, rgba(9,9,11,0.7) 60%, transparent 100%);
  backdrop-filter: blur(4px);
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  min-width: 0;
}

.card-title {
  margin-bottom: var(--space-8);
  font-size: 1.25rem;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

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

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

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

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

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

.content-wrapper h2 {
  margin-top: var(--space-40);
  font-size: 1.75rem;
  color: var(--color-white);
}

.content-wrapper h3 {
  margin-top: var(--space-24);
  font-size: 1.25rem;
  color: var(--color-text-main);
}

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

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

.stat-block {
  display: flex;
  flex-direction: column;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: var(--space-24);
  border-radius: 8px;
  margin-bottom: var(--space-24);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent-1);
  margin-bottom: var(--space-12);
}

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

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-bottom: var(--space-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(--space-16);
  border-bottom: 1px solid var(--glass-border);
}

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

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

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

.form-control {
  width: 100%;
  padding: var(--space-12) var(--space-16);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  color: var(--color-white);
  font-family: var(--font-base);
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--color-accent-2);
  outline: none;
}

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

.error-msg {
  display: none;
  color: var(--color-accent-3);
  font-size: 0.85rem;
  margin-top: var(--space-4);
}

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

/* Static Map Block */
.static-map {
  width: 100%;
  height: 300px;
  background: #1e1e24;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.static-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--glass-border) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
}

.map-pin {
  width: 16px;
  height: 16px;
  background: var(--color-accent-3);
  border-radius: 50%;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 8px rgba(236, 72, 153, 0.2);
}

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

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

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

.footer-col h4 {
  font-size: 1.1rem;
  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-white);
}

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

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(9, 9, 11, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--glass-border);
  padding: var(--space-24);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

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

.cookie-text {
  font-size: 0.9rem;
  margin: 0;
}

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

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

/* A11y */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
}