:root {
  --color-bg-base: #070b14;
  --color-bg-glass: rgba(15, 23, 42, 0.4);
  --color-bg-glass-heavy: rgba(15, 23, 42, 0.7);
  --color-border-glass: rgba(0, 240, 255, 0.15);
  --color-text-main: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-accent-cyan: #00f0ff;
  --color-accent-purple: #8a2be2;
  --color-focus: #00f0ff;
  --color-error: #ff4757;

  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-40: 40px;
  --space-64: 64px;

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

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

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

h1, h2, h3, h4, h5, h6, .nav-menu, .brand-name {
  overflow-wrap: anywhere;
  color: #ffffff;
  line-height: 1.2;
}

h1 { font-size: 3rem; margin-bottom: var(--space-24); }
h2 { font-size: 2.25rem; margin-bottom: var(--space-16); margin-top: var(--space-40); }
h3 { font-size: 1.5rem; margin-bottom: var(--space-12); margin-top: var(--space-24); }
p { margin-bottom: var(--space-16); }

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

a:hover {
  color: #ffffff;
}

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

button {
  cursor: pointer;
  font-family: inherit;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: var(--space-8);
  color: #ffffff;
}

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

/* Flex and Grid defaults */
.flex-col, .flex-row, .grid, .grid-item, .flex-item {
  min-width: 0;
}

/* Header */
.site-header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-24);
  background: var(--color-bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-glass);
  position: relative;
  z-index: 100;
}

.header-left, .header-center, .header-right {
  display: flex;
  align-items: center;
  min-width: 0;
}

.header-center {
  flex: 1;
  justify-content: center;
}

.nav-menu {
  display: flex;
  gap: var(--space-24);
  list-style: none;
}

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

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

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-accent-cyan), var(--color-accent-purple));
  color: #000000;
  font-weight: 700;
  padding: var(--space-8) var(--space-16);
  border-radius: 4px;
  border: none;
  text-align: center;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
  color: #000000;
}

.btn-secondary {
  background: var(--color-bg-glass);
  color: var(--color-text-main);
  border: 1px solid var(--color-border-glass);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-main);
  padding: var(--space-8);
}

.hamburger svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Main Content */
.site-main {
  flex: 1;
  padding: var(--space-64) var(--space-24);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

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

.hero-section {
  text-align: center;
  padding: var(--space-64) 0;
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.2) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: -1;
  filter: blur(40px);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  text-transform: uppercase;
  letter-spacing: -1px;
  background: linear-gradient(to right, #ffffff, var(--color-accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

.glass-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent-cyan);
}

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

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

.glass-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--space-24);
  background: linear-gradient(to top, rgba(7, 11, 20, 0.95) 0%, rgba(7, 11, 20, 0.6) 70%, transparent 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  border-top: 1px solid var(--color-border-glass);
}

.glass-overlay h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #ffffff;
}

.glass-overlay p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.card-tags {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.tag {
  background: rgba(0, 240, 255, 0.1);
  color: var(--color-accent-cyan);
  padding: var(--space-4) var(--space-8);
  border-radius: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

/* Stats / Data Blocks */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-24);
  margin-bottom: var(--space-40);
}

.stat-box {
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border-glass);
  padding: var(--space-24);
  border-radius: 8px;
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent-purple);
  margin-bottom: var(--space-12);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Articles / Text Pages */
.article-header {
  margin-bottom: var(--space-64);
  padding-bottom: var(--space-24);
  border-bottom: 1px solid var(--color-border-glass);
}

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

.article-content p {
  font-size: 1.1rem;
  margin-bottom: var(--space-24);
}

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

.article-content li {
  margin-bottom: var(--space-8);
  font-size: 1.1rem;
}

.table-wrapper {
  overflow-x: auto;
  margin-bottom: var(--space-24);
  border-radius: 8px;
  border: 1px solid var(--color-border-glass);
}

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

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

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

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

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

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

.form-control {
  width: 100%;
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border-glass);
  color: #ffffff;
  padding: var(--space-12);
  border-radius: 4px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--color-accent-cyan);
}

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

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

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

.map-container {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border-glass);
  height: 400px;
  position: relative;
  background: #111;
}

.map-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.map-overlay-box {
  position: absolute;
  bottom: var(--space-24);
  left: var(--space-24);
  right: var(--space-24);
  background: var(--color-bg-glass-heavy);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-16);
  border-radius: 8px;
  border: 1px solid var(--color-border-glass);
}

/* Footer */
.site-footer {
  background: var(--color-bg-glass);
  border-top: 1px solid var(--color-border-glass);
  padding: var(--space-64) var(--space-24) var(--space-24);
  margin-top: auto;
}

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

.footer-col h4 {
  color: #ffffff;
  margin-bottom: var(--space-16);
  font-size: 1.1rem;
}

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

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

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

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: var(--space-24);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--color-bg-glass-heavy);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--color-accent-cyan);
  padding: var(--space-24);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-24);
}

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

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

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

/* Responsive Breakpoints */
@media (max-width: 767px) {
  .site-header {
    height: 52px;
  }
  .header-center {
    display: none;
  }
  .hamburger {
    display: block;
    margin-left: var(--space-16);
  }
  .header-right .btn {
    display: none;
  }
  .nav-menu {
    position: absolute;
    top: 52px;
    left: 0;
    width: 100%;
    background: var(--color-bg-glass-heavy);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: var(--space-24);
    gap: var(--space-16);
    border-bottom: 1px solid var(--color-border-glass);
    display: none;
  }
  .nav-menu.is-visible {
    display: flex;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .glass-card:hover {
    transform: none;
  }
}

@media (max-width: 399px) {
  .hero-title {
    font-size: 2rem;
  }
  .site-main {
    padding: var(--space-40) var(--space-16);
  }
  .glass-card {
    min-height: 320px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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