:root {
  --bg-color: #050508;
  --surface-color: rgba(20, 20, 30, 0.4);
  --surface-color-hover: rgba(30, 30, 45, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-bright: rgba(255, 255, 255, 0.2);
  
  --text-primary: #FFFFFF;
  --text-secondary: #B4B4C4;
  
  --accent-cyan: #00F0FF;
  --accent-magenta: #FF003C;
  --accent-purple: #B026FF;
  
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-40: 40px;
  --space-64: 64px;

  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

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

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

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

h1, h2, h3, h4, h5, h6, .brand-name, .nav-link {
  color: var(--text-primary);
  overflow-wrap: anywhere;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; margin-bottom: var(--space-24); }
h2 { font-size: 2rem; margin-bottom: var(--space-24); margin-top: var(--space-40); }
h3 { font-size: 1.5rem; margin-bottom: var(--space-16); margin-top: var(--space-24); }

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

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

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

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

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

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

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--surface-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}

.neon-border {
  position: relative;
}

.neon-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(45deg, var(--accent-cyan), var(--accent-purple), var(--accent-magenta));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.neon-border:hover::before {
  opacity: 1;
}

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

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

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

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

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

.nav-links {
  display: flex;
  gap: var(--space-24);
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.nav-link:hover {
  color: var(--text-primary);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.btn:hover {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.6);
  text-shadow: none;
}

.btn-primary {
  background: linear-gradient(45deg, var(--accent-cyan), var(--accent-purple));
  color: #fff;
  border: none;
  padding: var(--space-12) var(--space-24);
  box-shadow: 0 4px 15px rgba(176, 38, 255, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(45deg, var(--accent-purple), var(--accent-cyan));
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.5);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--text-secondary);
  color: var(--text-secondary);
  box-shadow: none;
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
  box-shadow: none;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: var(--space-4);
}

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

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

.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(176, 38, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--space-16);
  background: linear-gradient(to right, #fff, var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

/* Main Content Area */
main {
  flex: 1;
  padding: var(--space-40) 0 var(--space-64);
}

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

/* Card Style: Glass Overlay (Full-bleed image with translucent panel over it) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-24);
  min-width: 0;
}

.card {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 0;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 240, 255, 0.15);
  color: var(--text-primary);
  text-shadow: none;
}

.card-img-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

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

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

.card-content {
  position: relative;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-24);
  border-top: 1px solid var(--glass-border-bright);
  display: flex;
  flex-direction: column;
  gap: var(--space-24); /* 24px between distinct elements */
}

.card-header h3 {
  margin: 0 0 var(--space-8) 0;
  font-size: 1.25rem;
}

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

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Article Styling (Sub-pages & Legal) */
.article-header {
  margin-bottom: var(--space-40);
  text-align: center;
}

.article-header h1 {
  background: linear-gradient(to right, #fff, var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.article-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  margin-bottom: var(--space-40);
  border: 1px solid var(--glass-border);
  background: var(--surface-color);
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-40);
}

.article-content h2 {
  color: var(--accent-cyan);
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: var(--space-8);
}

/* Supporting Section */
.feature-block {
  padding: var(--space-40);
  text-align: center;
}

.feature-block h2 {
  margin-top: 0;
}

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

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

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

.form-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border-bright);
  border-radius: var(--border-radius-sm);
  padding: var(--space-12) var(--space-16);
  color: var(--text-primary);
  font-family: var(--font-family);
  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 12px rgba(0, 240, 255, 0.2);
}

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

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

.map-block {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: var(--border-radius-md);
  background: linear-gradient(45deg, #111 25%, #1a1a24 25%, #1a1a24 50%, #111 50%, #111 75%, #1a1a24 75%, #1a1a24 100%);
  background-size: 20px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.map-block::after {
  content: "Static Map Region\A 42 Enigma Way, Puzzleton, NV";
  white-space: pre-wrap;
  text-align: center;
  position: absolute;
  background: rgba(10, 10, 15, 0.8);
  padding: var(--space-16);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--glass-border-bright);
  color: var(--accent-cyan);
  font-weight: bold;
}

/* Tables (Cookie Policy) */
.table-wrapper {
  overflow-x: auto;
  margin-bottom: var(--space-24);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
}

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

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

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

/* Statistics */
.stat-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  padding: var(--space-24);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--border-radius-md);
  border-left: 2px solid var(--accent-purple);
}

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

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Footer */
.footer {
  background: #020203;
  border-top: 1px solid var(--glass-border);
  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: var(--accent-cyan);
  margin-bottom: var(--space-16);
}

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

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

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

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

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

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--accent-purple);
  padding: var(--space-24);
  z-index: 1000;
  transform: translateY(0);
  transition: transform 0.4s ease;
}

.cookie-banner[hidden] {
  display: block !important;
  transform: translateY(100%);
  pointer-events: none;
}

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

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

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

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

/* Responsive Overrides */
@media (max-width: 767px) {
  .header {
    height: 52px;
  }
  
  .nav-wrapper {
    position: fixed;
    top: 52px;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 8, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    flex-direction: column;
    padding: var(--space-24);
    gap: var(--space-24);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    z-index: 90;
  }
  
  .nav-wrapper.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-links {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
  }
  
  .article-content {
    padding: var(--space-24) var(--space-16);
  }
}

@media (max-width: 399px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .card-grid { grid-template-columns: 1fr; }
  .cookie-actions { flex-direction: column; width: 100%; }
  .cookie-actions .btn { 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;
  }
}