:root {
  --bg-color: #050508;
  --bg-panel: rgba(20, 20, 28, 0.6);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-neon: #a855f7;
  --accent-glow: rgba(168, 85, 247, 0.4);
  --accent-cyan: #06b6d4;
  
  --s-4: 4px;
  --s-8: 8px;
  --s-16: 16px;
  --s-24: 24px;
  --s-40: 40px;
  --s-64: 64px;

  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: -20%; left: -10%;
  width: 50%; height: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6, .brand-name, .nav-link {
  margin-top: 0;
  margin-bottom: var(--s-16);
  font-weight: 700;
  overflow-wrap: anywhere;
  color: #ffffff;
}

p {
  margin-top: 0;
  margin-bottom: var(--s-24);
  color: var(--text-muted);
}

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

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

:focus-visible {
  outline: 2px solid var(--accent-neon);
  outline-offset: 4px;
}

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

/* Header */
.site-header {
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(5, 5, 8, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-8);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
  z-index: 10;
}

.brand svg {
  width: 24px;
  height: 24px;
  fill: var(--accent-neon);
}

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

.nav-link {
  margin-bottom: 0;
  color: var(--text-muted);
  font-weight: 500;
}

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

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(168, 85, 247, 0.1);
  color: var(--accent-neon);
  border: 1px solid var(--accent-neon);
  padding: var(--s-8) var(--s-16);
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.cta-button:hover {
  background: var(--accent-neon);
  color: var(--text-main);
  box-shadow: 0 0 16px var(--accent-glow);
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: var(--s-8);
  z-index: 10;
}

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

.nav-mobile-overlay {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(5, 5, 8, 0.95);
  backdrop-filter: blur(12px);
  padding: var(--s-24);
  flex-direction: column;
  gap: var(--s-16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 9;
}

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

@media (max-width: 767px) {
  .site-header {
    height: 48px;
  }
  .nav-desktop {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .nav-mobile-overlay {
    top: 48px;
  }
}

/* Sections */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-64);
  padding: var(--s-40) 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: var(--s-40);
  background: linear-gradient(to right, #ffffff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--s-64) auto;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: var(--s-24);
}

.page-header p {
  font-size: 1.25rem;
}

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

/* Card Style: Glass overlay */
.glass-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 400px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  isolation: isolate;
  background: #111;
  min-width: 0;
}

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

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

.glass-card-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--s-24);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: var(--s-16);
  min-width: 0;
}

.glass-card:hover .glass-card-panel {
  background: rgba(20, 20, 30, 0.85);
  border-top-color: var(--accent-neon);
}

.glass-card h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-main);
}

.glass-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.glass-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--s-8);
}

.tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
}

.read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

/* Article Page */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.125rem;
}

.article-content h2 {
  font-size: 2rem;
  margin-top: var(--s-40);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: var(--s-8);
}

.article-content h3 {
  font-size: 1.5rem;
  margin-top: var(--s-24);
}

.article-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: var(--s-24) 0;
  border: 1px solid rgba(255,255,255,0.1);
}

.article-content ul, .article-content ol {
  margin-bottom: var(--s-24);
  padding-left: var(--s-24);
  color: var(--text-muted);
}

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

.stat-block {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  padding: var(--s-24);
  border-radius: 8px;
  margin: var(--s-24) 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-neon);
}

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

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: var(--s-24) 0;
}

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

th, td {
  padding: var(--s-16);
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

/* Contact Form & Map */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-64);
}

.form-group {
  margin-bottom: var(--s-24);
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
}

label {
  font-weight: 600;
  color: var(--text-main);
}

input, textarea {
  width: 100%;
  background: rgba(20, 20, 28, 0.6);
  border: 1px solid rgba(255,255,255,0.1);
  padding: var(--s-16);
  border-radius: 4px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-neon);
  background: rgba(20, 20, 28, 0.9);
}

.is-invalid {
  border-color: #ef4444 !important;
}

.error-msg {
  color: #ef4444;
  font-size: 0.875rem;
  display: none;
}

.error-msg.is-visible {
  display: block;
}

.form-success {
  display: none;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid #10b981;
  color: #10b981;
  padding: var(--s-16);
  border-radius: 4px;
  margin-bottom: var(--s-24);
}

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

.static-map {
  background: #1a1a24;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-24);
  position: relative;
  overflow: hidden;
}

.static-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, rgba(168,85,247,0.2) 0%, transparent 60%),
                    repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(255,255,255,0.05) 20px),
                    repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(255,255,255,0.05) 20px);
}

.map-pin {
  width: 24px;
  height: 24px;
  background: var(--accent-neon);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  position: relative;
  box-shadow: 0 0 15px var(--accent-neon);
}

.map-pin::after {
  content: "";
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.contact-info {
  background: rgba(255,255,255,0.03);
  padding: var(--s-24);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
}

/* Footer */
.site-footer {
  background: rgba(5, 5, 8, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: var(--s-64) 0 var(--s-24) 0;
  margin-top: auto;
}

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

.footer-col h4 {
  color: var(--text-main);
  margin-bottom: var(--s-16);
}

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

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

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

.footer-col a:hover {
  color: var(--accent-neon);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--s-24);
  border-top: 1px solid rgba(255,255,255,0.05);
  color: #64748b;
  font-size: 0.875rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(15, 15, 20, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--s-24);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--s-16);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

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

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-24);
}

.cookie-text {
  flex: 1;
  min-width: 280px;
}

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

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

.btn-cookie {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-main);
  padding: var(--s-8) var(--s-16);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-cookie:hover {
  background: rgba(255,255,255,0.1);
}

.btn-cookie[data-cookie-choice="accept"] {
  background: var(--accent-neon);
  border-color: var(--accent-neon);
  color: #fff;
}

.btn-cookie[data-cookie-choice="accept"]:hover {
  background: #9333ea;
}

/* Responsive Overrides */
@media (max-width: 767px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--s-40);
  }
  .section-title {
    font-size: 2rem;
  }
  .page-header h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 399px) {
  :root {
    --s-64: 48px;
    --s-40: 32px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-cookie {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}