:root {
  /* Color Palette - Dark Glassmorphism */
  --bg-base: #06070b;
  --bg-gradient: radial-gradient(circle at 15% 50%, #1a0b2e, #06070b 50%);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.15);
  
  --text-main: #f0f2f5;
  --text-muted: #9ba3b5;
  
  --accent-cyan: #00f2fe;
  --accent-magenta: #fe0979;
  
  /* Spacing Scale */
  --space-4: 4px;
  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-40: 40px;
  --space-64: 64px;
  
  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-base);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: var(--space-24);
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

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

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

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

a:hover, a:focus {
  color: var(--accent-magenta);
  text-shadow: 0 0 8px rgba(254, 9, 121, 0.5);
}

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

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

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

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

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

/* Header */
.site-header {
  position: relative; /* Not sticky */
  height: 64px;
  display: flex;
  align-items: center;
  border-radius: 0;
  border-top: none;
  border-left: none;
  border-right: none;
  z-index: 100;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-main);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.brand:hover {
  color: var(--text-main);
  text-shadow: none;
}

.brand svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-24);
}

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

.main-nav a:hover {
  color: var(--accent-cyan);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  background: transparent;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--accent-cyan);
  color: var(--bg-base);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.4);
}

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

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  position: relative;
  transition: background-color 0.2s;
}

.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.2s, top 0.2s;
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.menu-toggle.is-active .hamburger { background-color: transparent; }
.menu-toggle.is-active .hamburger::before { top: 0; transform: rotate(45deg); }
.menu-toggle.is-active .hamburger::after { top: 0; transform: rotate(-45deg); }

/* Main Content Area */
main {
  flex: 1;
  padding: var(--space-64) 0;
}

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

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

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: var(--accent-magenta);
  filter: blur(100px);
  opacity: 0.2;
  z-index: -1;
  border-radius: 50%;
}

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

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-40);
  min-width: 0;
}

/* Card Style 3: Glass Overlay */
.glass-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-main);
  aspect-ratio: 4/5;
  background: var(--bg-base);
}

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

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

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

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--space-24);
  border-radius: 0 0 16px 16px;
  border-top: 1px solid var(--glass-highlight);
  background: rgba(10, 11, 16, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s ease;
}

.glass-card:hover .card-overlay {
  background: rgba(10, 11, 16, 0.85);
  border-top-color: var(--accent-cyan);
}

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

.card-overlay p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-16);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-cta {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-cyan);
}

/* Content Pages */
.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.content-header {
  margin-bottom: var(--space-40);
  text-align: center;
}

.content-body h2 {
  margin-top: var(--space-64);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--glass-border);
}

.content-body h3 {
  margin-top: var(--space-40);
}

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

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

.feature-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: var(--space-40);
  border: 1px solid var(--glass-border);
}

/* Tables */
.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;
  text-align: left;
}

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

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

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

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

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

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.2);
}

input.is-invalid,
textarea.is-invalid {
  border-color: var(--accent-magenta);
}

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

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

.btn {
  display: inline-block;
  padding: var(--space-16) var(--space-24);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #0072ff);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: var(--glass-highlight);
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: var(--space-64) 0 var(--space-40);
  border-top: 1px solid var(--glass-border);
  border-radius: 0;
  font-size: 0.9rem;
}

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

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: var(--space-16);
  color: var(--accent-cyan);
}

.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(--accent-magenta);
}

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

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--space-24);
  border-radius: 16px 16px 0 0;
  border-top: 1px solid var(--accent-cyan);
  border-left: none;
  border-right: none;
  border-bottom: none;
  z-index: 1000;
  display: none;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cookie-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

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

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

.cookie-actions .btn {
  padding: var(--space-8) var(--space-16);
  font-size: 0.85rem;
}

/* Map Block Placeholder */
.map-block {
  width: 100%;
  height: 300px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: var(--space-40);
  background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.02) 10px, rgba(255,255,255,0.02) 20px);
}

/* Responsive */
@media (max-width: 767px) {
  .site-header {
    height: 52px;
  }

  .menu-toggle {
    display: block;
    z-index: 101;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-base);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 80px var(--space-24) var(--space-24);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 100;
    overflow-y: auto;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: var(--space-24);
  }

  .main-nav a {
    font-size: 1.2rem;
  }

  .header-cta {
    display: none;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 399px) {
  :root {
    --space-64: 40px;
    --space-40: 24px;
    --space-24: 16px;
  }
  
  .cookie-actions {
    flex-direction: column;
  }
  
  .cookie-actions .btn {
    width: 100%;
  }
}