:root {
  --bg-color: #0b0f19;
  --bg-surface: rgba(255, 255, 255, 0.03);
  --bg-surface-hover: rgba(255, 255, 255, 0.08);
  --glass-panel: rgba(11, 15, 25, 0.6);
  --border-color: rgba(255, 255, 255, 0.1);
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --neon-cyan: #00f3ff;
  --neon-magenta: #ff00e5;
  --neon-cyan-dark: rgba(0, 243, 255, 0.2);
  --neon-magenta-dark: rgba(255, 0, 229, 0.2);
  --focus-ring: #00f3ff;
  
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-40: 40px;
  --space-64: 64px;
}

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

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-color);
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .brand-name, nav a {
  overflow-wrap: anywhere;
  margin-top: 0;
  margin-bottom: var(--space-16);
  line-height: 1.2;
  font-weight: 600;
  color: #ffffff;
}

p, ul, ol, dl, figure, blockquote {
  margin-top: 0;
  margin-bottom: var(--space-24);
}

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

a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px var(--neon-cyan-dark);
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 4px;
  border-radius: 4px;
}

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

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

.btn-cta, .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-24);
  background: linear-gradient(135deg, var(--neon-cyan-dark), var(--neon-magenta-dark));
  border: 1px solid var(--neon-cyan);
  color: #ffffff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.btn-cta:hover, .btn-primary:hover {
  background: linear-gradient(135deg, rgba(0, 243, 255, 0.4), rgba(255, 0, 229, 0.4));
  box-shadow: 0 0 16px var(--neon-cyan-dark);
  text-shadow: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-24);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--text-muted);
}

/* Header */
.site-header {
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 100;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  text-decoration: none;
  color: #ffffff;
}

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

.brand-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

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

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

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

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

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

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

.main-nav a:not(.btn-cta):hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px var(--neon-cyan-dark);
}

/* Main Content */
.site-main {
  flex: 1;
}

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

.hero {
  position: relative;
  padding: 120px 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, var(--neon-cyan-dark) 0%, transparent 40%);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: var(--space-24);
  background: linear-gradient(to right, #ffffff, var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Card Grid - Glass Overlay Style */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-40);
  margin-top: var(--space-40);
}

.guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
  min-width: 0;
}

.guide-card:hover {
  transform: translateY(-4px);
}

.guide-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

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

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

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

.card-overlay {
  position: relative;
  z-index: 1;
  background: rgba(11, 15, 25, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-24);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.card-cta {
  font-weight: 600;
  color: var(--neon-cyan);
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
}

.card-cta::after {
  content: '→';
  transition: transform 0.2s ease;
}

.guide-card:hover .card-cta::after {
  transform: translateX(4px);
}

/* Article Styling */
.article-header {
  text-align: center;
  padding: var(--space-64) 0 var(--space-40);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--space-40);
}

.article-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 800px;
  margin: 0 auto var(--space-16);
}

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

.article-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.article-content h2 {
  font-size: 2rem;
  margin: var(--space-64) 0 var(--space-24);
  color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--space-8);
}

.article-content h3 {
  font-size: 1.5rem;
  margin: var(--space-40) 0 var(--space-16);
}

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

.article-content li {
  margin-bottom: var(--space-12);
}

.feature-comparison {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-40) 0;
  background: var(--bg-surface);
  border-radius: 8px;
  overflow: hidden;
}

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

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

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

/* Contact Page */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-64);
  align-items: start;
}

.contact-form {
  background: var(--bg-surface);
  padding: var(--space-40);
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

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

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

.form-control {
  width: 100%;
  padding: var(--space-12);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
}

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

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

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

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

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

.contact-info h3 {
  margin-bottom: var(--space-24);
}

.contact-info p {
  margin-bottom: var(--space-16);
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.static-map {
  width: 100%;
  height: 240px;
  background: linear-gradient(rgba(11,15,25,0.8), rgba(11,15,25,0.8)),
              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);
  background-color: #080c14;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-top: var(--space-40);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.map-marker {
  width: 32px;
  height: 32px;
  fill: var(--neon-magenta);
  filter: drop-shadow(0 0 8px var(--neon-magenta-dark));
}

/* Footer */
.site-footer {
  background: #05080f;
  border-top: 1px solid var(--border-color);
  padding: var(--space-64) 0 var(--space-40);
  margin-top: auto;
}

.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: #ffffff;
  margin-bottom: var(--space-24);
  font-size: 1.1rem;
}

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

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

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

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

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

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--neon-cyan);
  padding: var(--space-24);
  z-index: 1000;
  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 {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  max-width: 1200px;
  margin: 0 auto;
}

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

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

@media (max-width: 767px) {
  .header-inner {
    height: 52px;
  }
  
  .nav-toggle {
    display: block;
    z-index: 102;
  }
  
  .main-nav {
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: rgba(11, 15, 25, 0.98);
    flex-direction: column;
    padding: var(--space-24);
    border-bottom: 1px solid var(--border-color);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.3s ease;
    visibility: hidden;
  }
  
  .main-nav.is-visible {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    visibility: visible;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 399px) {
  :root {
    --space-64: 40px;
    --space-40: 24px;
  }
  
  .guides-grid {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .cookie-actions button {
    width: 100%;
  }
}

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