:root {
  /* Dark Glassmorphism Variables */
  --bg-base: #090a0f;
  --bg-radial: radial-gradient(circle at top right, #131b2f 0%, #090a0f 60%);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --neon-1: #00f2fe;
  --neon-2: #4facfe;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.15);
  
  /* Spacing Scale */
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-40: 40px;
  --sp-64: 64px;

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

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-width: 0;
}

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

body {
  background-image: var(--bg-radial);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6, .brand, nav {
  overflow-wrap: anywhere;
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: 2.5rem; margin-bottom: var(--sp-24); }
h2 { font-size: 2rem; margin-bottom: var(--sp-24); margin-top: var(--sp-40); }
h3 { font-size: 1.5rem; margin-bottom: var(--sp-16); }
p { margin-bottom: var(--sp-16); }
ul, ol { margin-bottom: var(--sp-16); padding-left: var(--sp-24); }

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

a:hover, a:focus {
  color: #fff;
  text-shadow: 0 0 8px var(--neon-1);
}

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

/* Accessibility & Focus */
:focus-visible {
  outline: 2px solid var(--neon-1);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

main {
  flex: 1;
  padding: var(--sp-64) 0;
}

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

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

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

.brand-area {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
}

.brand {
  font-size: 1.25rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand:hover {
  text-shadow: none;
  color: #fff;
}

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

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

.nav-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-link:hover, .nav-link:focus {
  color: #fff;
}

.header-cta .btn {
  padding: var(--sp-8) var(--sp-16);
  font-size: 0.9rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: var(--sp-8);
  border-radius: 4px;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--neon-1), var(--neon-2));
  color: var(--bg-base);
  font-weight: 700;
  padding: var(--sp-12) var(--sp-24);
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover, .btn:focus {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 242, 254, 0.4);
  color: var(--bg-base);
  text-shadow: none;
}

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

.btn-secondary:hover, .btn-secondary:focus {
  background: var(--glass-highlight);
  color: #fff;
  box-shadow: none;
}

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

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--sp-24);
  background: linear-gradient(90deg, #fff, var(--neon-1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Glassmorphism Cards (Horizontal Split) */
.card-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-40);
}

.card-horizontal {
  display: flex;
  flex-direction: row;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, border-color 0.3s ease;
  align-items: stretch;
}

.card-horizontal:hover {
  border-color: rgba(0, 242, 254, 0.3);
  transform: translateY(-2px);
}

.card-media {
  flex: 0 0 45%;
  position: relative;
  overflow: hidden;
  background: #111;
}

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

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

.card-content {
  flex: 1;
  padding: var(--sp-40);
  display: flex;
  flex-direction: column;
}

.card-tags {
  display: flex;
  gap: var(--sp-8);
  margin-bottom: var(--sp-16);
  flex-wrap: wrap;
}

.tag {
  background: rgba(0, 242, 254, 0.1);
  color: var(--neon-1);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-title {
  font-size: 1.75rem;
  margin-bottom: var(--sp-16);
}

.card-title a {
  color: var(--text-main);
}

.card-title a:hover {
  color: var(--neon-1);
  text-shadow: none;
}

.card-excerpt {
  color: var(--text-muted);
  margin-bottom: var(--sp-24);
  flex: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid var(--glass-border);
  padding-top: var(--sp-24);
}

.meta-stat {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Detail Pages (Articles/Guides) */
.article-header {
  text-align: center;
  margin-bottom: var(--sp-64);
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: var(--sp-24);
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--sp-40);
}

.article-hero-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  margin-bottom: var(--sp-64);
}

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

.article-content h2 {
  color: var(--neon-1);
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: var(--sp-8);
  margin-top: var(--sp-64);
}

.article-content h3 {
  margin-top: var(--sp-40);
}

/* Supporting Section / Content Blocks */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: var(--sp-40);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-40);
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: var(--sp-24) 0;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

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

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

tr:last-child td {
  border-bottom: none;
}

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

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

.form-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: var(--sp-12) var(--sp-16);
  border-radius: 4px;
  font-family: var(--font-base);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--neon-1);
  box-shadow: 0 0 0 1px var(--neon-1);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

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

.error-msg {
  display: none;
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: var(--sp-4);
}

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

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

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

/* Map Block */
.static-map {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.static-map::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
}

.map-marker {
  z-index: 10;
  color: var(--neon-1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Footer */
.site-footer {
  background: rgba(9, 10, 15, 0.95);
  border-top: 1px solid var(--glass-border);
  padding: var(--sp-64) 0 var(--sp-40);
  margin-top: auto;
}

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

.footer-heading {
  color: var(--neon-1);
  font-size: 1.1rem;
  margin-bottom: var(--sp-24);
}

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

.footer-links li {
  margin-bottom: var(--sp-12);
}

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

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

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

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: var(--sp-24);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - var(--sp-40));
  max-width: 800px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--neon-1);
  border-radius: 12px;
  padding: var(--sp-24);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 254, 0.1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  visibility: visible;
}

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

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

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

/* Responsive Styles */
@media (max-width: 768px) {
  :root {
    --sp-64: 48px;
    --sp-40: 32px;
  }
  
  .site-header {
    height: 52px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-wrapper {
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: var(--bg-base);
    border-bottom: 1px solid var(--glass-border);
    padding: var(--sp-24);
    flex-direction: column;
    gap: var(--sp-24);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }
  
  .nav-wrapper.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .main-nav {
    flex-direction: column;
    width: 100%;
  }
  
  .header-cta {
    width: 100%;
  }
  
  .header-cta .btn {
    width: 100%;
  }

  .card-horizontal {
    flex-direction: column;
  }
  
  .card-media {
    flex: 0 0 200px;
    height: 200px;
  }
  
  .card-content {
    padding: var(--sp-24);
  }

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

@media (max-width: 399px) {
  .site-header {
    height: 48px;
  }
  
  .nav-wrapper {
    top: 48px;
  }

  .hero-title {
    font-size: 2rem;
  }
  
  .card-content {
    padding: var(--sp-16);
  }
  
  .cookie-actions {
    flex-direction: column;
  }
  
  .cookie-actions .btn {
    width: 100%;
  }
}