:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;

  --color-bg: #09090b;
  --color-surface: rgba(255, 255, 255, 0.04);
  --color-surface-hover: rgba(255, 255, 255, 0.08);
  --color-border: rgba(255, 255, 255, 0.1);
  --color-text: #e4e4e7;
  --color-text-muted: #a1a1aa;
  --color-accent-1: #c084fc;
  --color-accent-2: #38bdf8;
  --color-error: #f87171;
  --color-focus: #c084fc;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

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

/* Accessibility & Resets */
h1, h2, h3, h4, h5, h6, .brand-name, nav a {
  overflow-wrap: anywhere;
  line-height: 1.2;
}

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

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

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

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

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

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

.main-content {
  flex: 1;
  padding: var(--space-6) 0;
}

.section {
  margin-bottom: var(--space-6);
}

.grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}

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

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

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

.neon-edge {
  box-shadow: inset 0 0 0 1px rgba(192, 132, 252, 0.3), 0 0 15px rgba(56, 189, 248, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-4);
  background: rgba(192, 132, 252, 0.15);
  color: #f3e8ff;
  border: 1px solid rgba(192, 132, 252, 0.4);
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.btn:hover {
  background: rgba(192, 132, 252, 0.25);
  color: #fff;
  border-color: rgba(192, 132, 252, 0.7);
  box-shadow: 0 0 15px rgba(192, 132, 252, 0.3);
}

.btn-secondary {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn-secondary:hover {
  background: var(--color-surface-hover);
  border-color: rgba(255,255,255,0.3);
  box-shadow: none;
}

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

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

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

.brand svg {
  width: 24px;
  height: 24px;
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  list-style: none;
  display: flex;
  gap: var(--space-4);
}

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

.nav-desktop a:hover {
  color: #fff;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  padding: 0;
  z-index: 101;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.2s;
}

.nav-mobile {
  position: absolute;
  top: 48px;
  left: 0;
  width: 100%;
  background: rgba(9, 9, 11, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4);
  display: none;
}

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

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.nav-mobile a {
  display: block;
  font-size: 1.1rem;
  color: #fff;
}

@media (min-width: 768px) {
  .site-header { height: 64px; }
  .nav-mobile { display: none !important; }
  .hamburger { display: none; }
  .nav-desktop { display: flex; align-items: center; gap: var(--space-4); }
}

@media (max-width: 399px) {
  .brand-name {
    font-size: 0.95rem;
  }
}

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

.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(192,132,252,0.15) 0%, rgba(9,9,11,0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  margin-bottom: var(--space-3);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-4);
}

/* Card Style 3: Glass Overlay (Full-bleed image + translucent panel) */
.card-glass {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  border: 1px solid var(--color-border);
}

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

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

.card-overlay {
  position: relative;
  z-index: 2;
  background: linear-gradient(to top, rgba(9, 9, 11, 0.95) 0%, rgba(9, 9, 11, 0.6) 60%, rgba(9, 9, 11, 0.1) 100%);
  padding: var(--space-5) var(--space-4) var(--space-4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.card-glass:hover .card-overlay {
  background: linear-gradient(to top, rgba(9, 9, 11, 0.98) 0%, rgba(192, 132, 252, 0.2) 100%);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.card-desc {
  font-size: 0.95rem;
  color: #e4e4e7;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.card-meta {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent-2);
  margin-bottom: var(--space-1);
}

/* Content Pages */
.page-header {
  margin-bottom: var(--space-5);
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: var(--space-3);
}

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

.content-body h2 {
  font-size: 1.75rem;
  color: #fff;
  margin: var(--space-5) 0 var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

.content-body p {
  margin-bottom: var(--space-3);
  font-size: 1.05rem;
}

.content-body ul {
  margin: var(--space-3) 0 var(--space-3) var(--space-4);
}

.content-body li {
  margin-bottom: var(--space-2);
}

.content-body img {
  border-radius: 12px;
  margin: var(--space-4) 0;
  border: 1px solid var(--color-border);
}

/* Stat Block */
.stat-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: var(--space-3);
  padding: var(--space-3);
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  border-left: 4px solid var(--color-accent-1);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

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

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: var(--space-4) 0;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

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

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

th {
  background: rgba(0,0,0,0.2);
  color: #fff;
  font-weight: 600;
}

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

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 500;
  color: #fff;
}

.form-control {
  width: 100%;
  padding: var(--space-3);
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent-1);
  box-shadow: 0 0 0 2px rgba(192, 132, 252, 0.2);
}

.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-1);
}

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

.success-message {
  display: none;
  padding: var(--space-3);
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #4ade80;
  border-radius: 8px;
  margin-bottom: var(--space-4);
}

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

/* Static Map Block */
.static-map {
  width: 100%;
  height: 240px;
  background: 
    linear-gradient(rgba(192,132,252,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192,132,252,0.05) 1px, transparent 1px),
    var(--color-bg);
  background-size: 20px 20px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  position: relative;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-pin {
  width: 32px;
  height: 32px;
  color: var(--color-error);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

/* Footer */
.site-footer {
  background: rgba(0,0,0,0.5);
  border-top: 1px solid var(--color-border);
  padding: var(--space-6) 0 var(--space-4);
  margin-top: auto;
}

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

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

.footer-col h3 {
  color: #fff;
  margin-bottom: var(--space-3);
  font-size: 1.1rem;
}

.footer-col p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  font-size: 0.9rem;
}

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

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

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

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(9, 9, 11, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--color-border);
  padding: var(--space-4);
  z-index: 1000;
  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-direction: column;
  gap: var(--space-3);
}

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

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