/* BASE STYLES & RESET */
:root {
  --bg-dark: #090a0f;
  --bg-darker: #050608;
  --text-main: #f0f2f8;
  --text-muted: #9ba1b0;
  --accent-neon-1: #00f2fe;
  --accent-neon-2: #4facfe;
  
  --glass-bg: rgba(20, 24, 35, 0.45);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-40: 40px;
  --space-64: 64px;

  --header-height-desk: 64px;
  --header-height-mob: 52px;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

a:hover, a:focus {
  color: var(--accent-neon-1);
}

:focus-visible {
  outline: 2px solid var(--accent-neon-1);
  outline-offset: 4px;
}

h1, h2, h3, h4, .brand-name {
  overflow-wrap: anywhere;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; margin-bottom: var(--space-24); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 2rem; margin-bottom: var(--space-16); 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); color: var(--text-muted); }
ul, ol { margin-bottom: var(--space-16); margin-left: var(--space-24); color: var(--text-muted); }
li { margin-bottom: var(--space-8); }

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

main {
  flex-grow: 1;
  padding-top: var(--space-64);
  padding-bottom: var(--space-64);
}

.grid {
  display: grid;
  gap: var(--space-24);
  min-width: 0;
}

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* GLASSMORPHISM & NEON EFFECTS */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  padding: var(--space-40);
  position: relative;
  z-index: 1;
}

.neon-glow {
  position: relative;
}
.neon-glow::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(45deg, var(--accent-neon-1), var(--accent-neon-2));
  z-index: -1;
  border-radius: inherit;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}
.neon-glow:hover::before {
  opacity: 0.6;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-24);
  background: linear-gradient(90deg, var(--accent-neon-1), var(--accent-neon-2));
  color: var(--bg-darker);
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
}
.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  color: var(--bg-darker);
}
.btn-outline {
  background: transparent;
  color: var(--accent-neon-1);
  border: 1px solid var(--accent-neon-1);
}
.btn-outline:hover {
  background: rgba(0, 242, 254, 0.1);
  color: var(--text-main);
}

/* HEADER */
.site-header {
  height: var(--header-height-desk);
  background: rgba(9, 10, 15, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
}
.logo-icon {
  width: 28px;
  height: 28px;
  fill: url(#neon-grad);
}
.nav-links {
  display: flex;
  gap: var(--space-24);
  align-items: center;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
}
.header-actions {
  display: flex;
  align-items: center;
}
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: var(--space-8);
}
.menu-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* CARD STYLE 3: GLASS OVERLAY */
.glass-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 4 / 3;
  text-decoration: none;
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  background: var(--bg-darker);
}
.glass-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.glass-card:hover .glass-card-img {
  transform: scale(1.08);
}
.glass-card-overlay {
  position: relative;
  z-index: 2;
  background: linear-gradient(to top, rgba(5, 6, 8, 0.9) 0%, rgba(20, 24, 35, 0.6) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: var(--space-24);
  border-top: 1px solid var(--glass-border);
  width: 100%;
  transform: translateY(0);
  transition: transform 0.3s ease, background 0.3s ease;
}
.glass-card:hover .glass-card-overlay {
  background: linear-gradient(to top, rgba(5, 6, 8, 0.95) 0%, rgba(20, 24, 35, 0.8) 100%);
}
.glass-card h3 {
  margin-top: 0;
  margin-bottom: var(--space-8);
  font-size: 1.25rem;
  color: var(--text-main);
}
.glass-card p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* HERO SECTION */
.hero {
  padding: var(--space-64) 0;
  text-align: center;
  position: relative;
}
.hero-content {
  max-width: 800px;
  margin: 0 auto;
}
.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--space-40);
}

/* STATS (Data elements) */
.stat-block {
  display: flex;
  align-items: baseline;
  gap: var(--space-12);
  margin-bottom: var(--space-24);
}
.stat-value {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(45deg, var(--accent-neon-1), var(--accent-neon-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* FORMS */
.form-group {
  margin-bottom: var(--space-24);
}
.form-label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: 500;
  color: var(--text-main);
}
.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: var(--space-12) var(--space-16);
  color: var(--text-main);
  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-neon-1);
  box-shadow: 0 0 0 1px var(--accent-neon-1);
}
.form-control.is-invalid {
  border-color: #ff4b4b;
}

/* TABLES */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-bottom: var(--space-24);
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
th, td {
  padding: var(--space-16);
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}
th {
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}
tr:last-child td {
  border-bottom: none;
}

/* FOOTER */
.site-footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--glass-border);
  padding: var(--space-64) 0 var(--space-40) 0;
  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 {
  margin-bottom: var(--space-16);
  font-size: 1.1rem;
  color: var(--text-main);
}
.footer-col ul {
  list-style: none;
  margin-left: 0;
}
.footer-col li {
  margin-bottom: var(--space-8);
}
.footer-col a {
  color: var(--text-muted);
}
.footer-col a:hover {
  color: var(--accent-neon-1);
}
.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: var(--space-24);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-16);
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: var(--space-24);
  left: var(--space-24);
  right: var(--space-24);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  max-width: 800px;
  margin: 0 auto;
}
.cookie-banner[hidden] {
  display: none !important;
}
.cookie-actions {
  display: flex;
  gap: var(--space-12);
  flex-wrap: wrap;
}

/* CONTENT PAGES (Sub-pages & Legal) */
.content-page {
  max-width: 800px;
  margin: 0 auto;
}
.content-page img {
  border-radius: 12px;
  margin-bottom: var(--space-24);
  border: 1px solid var(--glass-border);
}
.page-header {
  margin-bottom: var(--space-40);
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .site-header {
    height: var(--header-height-mob);
  }
  .menu-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height-mob);
    left: 0;
    right: 0;
    background: rgba(9, 10, 15, 0.95);
    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-16);
  }
  .nav-links.is-visible {
    display: flex;
  }
  .glass-panel {
    padding: var(--space-24);
  }
  .stat-block {
    flex-direction: column;
    gap: var(--space-4);
  }
}

@media (max-width: 400px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .glass-card { aspect-ratio: 1 / 1; }
  .cookie-actions { flex-direction: column; }
  .btn { width: 100%; }
}

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