:root {
  --bg-color: #08090d;
  --surface-color: rgba(20, 22, 30, 0.4);
  --surface-hover: rgba(30, 33, 45, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 16px;
  --text-primary: #f0f2f5;
  --text-secondary: #9ba3af;
  --accent-cyan: #00f0ff;
  --accent-magenta: #ff0055;
  --error-color: #ff3366;
  
  --space-4: 4px;
  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-40: 40px;
  --space-64: 64px;

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

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

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

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

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

h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: var(--space-24); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); margin-bottom: var(--space-24); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); margin-bottom: var(--space-16); margin-top: var(--space-40); }
p { margin-bottom: var(--space-16); }

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

a:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--accent-cyan);
}

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

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

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

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

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

.min-w-0 {
  min-width: 0;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
  padding: 10px var(--space-24);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
}

.btn:hover {
  background: var(--accent-cyan);
  color: var(--bg-color);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
  text-shadow: none;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent-cyan), #0099ff);
  color: var(--bg-color);
  border: none;
}
.btn-primary:hover {
  background: linear-gradient(90deg, #fff, var(--accent-cyan));
}

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

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}
.logo svg {
  width: 24px;
  height: 24px;
  fill: var(--accent-cyan);
}

.nav-menu {
  display: flex;
  gap: var(--space-24);
}
.nav-menu a {
  color: var(--text-primary);
  font-weight: 500;
}
.nav-menu a:hover {
  color: var(--accent-cyan);
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: var(--space-4);
}

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

@media (max-width: 767px) {
  .site-header {
    height: 52px;
  }
  .header-cta {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(8, 9, 13, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: var(--space-24);
    border-bottom: 1px solid var(--glass-border);
    gap: var(--space-16);
  }
  .nav-menu.is-visible {
    display: flex;
  }
}

/* Hero Section */
.hero {
  position: relative;
  padding: var(--space-64) 0;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60vw;
  height: 60vw;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.hero p {
  max-width: 600px;
  margin: 0 auto var(--space-24);
  color: var(--text-secondary);
  font-size: 1.125rem;
}

/* Glass Overlay Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-24);
}

.glass-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: var(--text-primary);
}

/* Card Neon Edges using Pseudo */
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  border-radius: 16px;
  z-index: 3;
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

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

.glass-card:hover .glass-card-overlay {
  background: rgba(10, 12, 18, 0.85);
}

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

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

.glass-card-overlay {
  position: relative;
  z-index: 2;
  background: rgba(10, 12, 18, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-24);
  border-top: 1px solid var(--glass-border);
  transition: background 0.3s ease;
}

.glass-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-magenta);
  margin-bottom: var(--space-8);
  font-weight: 700;
}

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

.glass-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 400px) {
  .card-grid { grid-template-columns: 1fr; }
  .glass-card { min-height: 320px; }
  .hero::before { display: none; }
}

/* Feature Section */
.feature-section {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  position: relative;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-40);
}
.feature-item h3 {
  margin-top: 0;
  color: var(--accent-cyan);
}

/* Article Page Layout */
.article-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-40);
}
.article-meta {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: var(--space-16);
  display: flex;
  justify-content: center;
  gap: var(--space-16);
}
.article-hero-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: var(--space-40);
  border: 1px solid var(--glass-border);
}
.article-content {
  max-width: 800px;
  margin: 0 auto;
}
.article-content h2 {
  margin-top: var(--space-64);
  color: var(--accent-cyan);
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: var(--space-8);
}
.article-content h3 {
  color: #fff;
}
.article-content p {
  color: #c9d1d9;
  font-size: 1.0625rem;
}

/* Legal Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}
.legal-content h2 {
  margin-top: var(--space-40);
  font-size: 1.5rem;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-24);
  overflow-x: auto;
  display: block;
}
.legal-table th, .legal-table td {
  border: 1px solid var(--glass-border);
  padding: var(--space-16);
  text-align: left;
}
.legal-table th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-cyan);
}

/* Forms */
.form-group {
  margin-bottom: var(--space-24);
}
.form-label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: 500;
  color: #fff;
}
.form-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  color: #fff;
  padding: 12px var(--space-16);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}
.form-control.is-invalid {
  border-color: var(--error-color);
  background: rgba(255, 51, 102, 0.05);
}
textarea.form-control {
  min-height: 150px;
  resize: vertical;
}
.success-msg {
  padding: var(--space-16);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--accent-cyan);
  border-radius: 8px;
  color: var(--accent-cyan);
  text-align: center;
}

/* Map Block */
.map-block {
  width: 100%;
  height: 300px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-24);
}
.map-grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 1;
}
.map-pin {
  position: relative;
  z-index: 2;
  color: var(--accent-magenta);
  text-align: center;
}
.map-pin svg {
  width: 40px;
  height: 40px;
  fill: currentColor;
  margin: 0 auto var(--space-8);
  filter: drop-shadow(0 0 8px var(--accent-magenta));
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--glass-border);
  background: rgba(5, 5, 8, 0.9);
  padding: var(--space-64) 0 var(--space-40);
}
.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 {
  color: #fff;
  margin-bottom: var(--space-16);
  font-size: 1.125rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col a {
  color: var(--text-secondary);
}
.footer-col a:hover {
  color: var(--accent-cyan);
}
.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: var(--space-24);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.footer-bottom p { margin-bottom: var(--space-4); }

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 12, 18, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  padding: var(--space-16) var(--space-24);
  z-index: 999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}
.cookie-banner.is-visible {
  transform: translateY(0);
}
.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}
.cookie-text p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.cookie-actions {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .cookie-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cookie-actions {
    flex-shrink: 0;
  }
}