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

:root {
  --bg: #04110D;
  --surface: #0A1F17;
  --text: #ECFDF5;
  --muted: #6EE7B7;
  --primary: #10B981;
  --secondary: #22D3EE;
  --accent: #FACC15;
  --border: rgba(236, 253, 245, 0.12);
  --nav-dark: #0a0a0a;
  --max-w: 1200px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(160deg, var(--bg) 0%, #061a14 45%, var(--surface) 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(16, 185, 129, 0.04) 39px, rgba(16, 185, 129, 0.04) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(16, 185, 129, 0.03) 39px, rgba(16, 185, 129, 0.03) 40px);
  pointer-events: none;
  z-index: 0;
}

body.age-locked {
  overflow: hidden;
}

body.nav-open {
  overflow: hidden;
}

.disclosure-banner {
  width: 100%;
  padding: 10px 16px;
  text-align: center;
  background: linear-gradient(90deg, #050505 0%, #064e3b 100%);
  position: relative;
  z-index: 10;
}

.disclosure-banner p {
  font-size: 11px;
  color: #f0fdf4;
  line-height: 1.5;
  max-width: 960px;
  margin: 0 auto;
}

.site-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-dark);
  border-bottom: 1px solid var(--primary);
  box-shadow: 0 1px 6px var(--primary);
}

.navbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
}

.navbar-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.navbar-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 10px;
  transition: color 0.2s, text-shadow 0.2s;
}

.navbar-links a:hover,
.navbar-links a:focus {
  color: var(--primary);
  text-shadow: 0 0 6px var(--primary), 0 0 12px var(--primary);
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--primary);
  cursor: pointer;
  padding: 8px;
}

.nav-burger span {
  display: block;
  height: 2px;
  background: var(--primary);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-burger.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--nav-dark);
  z-index: 1002;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer a {
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 24px;
  transition: color 0.2s, text-shadow 0.2s;
}

.mobile-drawer a:hover,
.mobile-drawer a:focus {
  color: var(--primary);
  text-shadow: 0 0 6px var(--primary), 0 0 12px var(--primary);
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.footer-links h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 16px;
}

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

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

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

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.footer-badges img {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.footer-se-disclosure {
  margin-top: 24px;
  font-size: 11px;
  color: rgba(110, 231, 183, 0.7);
  line-height: 1.7;
}

.footer-bottom {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
}

.age-gate {
  position: fixed;
  inset: 0;
  background: rgba(4, 17, 13, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.age-gate.is-hidden {
  display: none;
}

.age-gate-panel {
  background: var(--surface);
  border: 1px solid var(--primary);
  padding: 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.3);
}

.age-gate-panel h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.age-gate-panel p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-primary {
  padding: 12px 24px;
  background: var(--primary);
  color: var(--bg);
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.btn-primary:hover {
  background: #34d399;
}

.btn-secondary {
  padding: 12px 24px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--primary);
  padding: 16px 24px;
  z-index: 9998;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-banner p {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
  min-width: 200px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.btn-cookie {
  padding: 8px 16px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid var(--border);
}

.btn-cookie-accept {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}

.btn-cookie-reject {
  background: transparent;
  color: var(--text);
}

.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  position: relative;
  z-index: 1;
}

.legal-page h1 {
  font-size: 1.75rem;
  margin-bottom: 24px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.legal-page h2 {
  font-size: 1.15rem;
  margin: 28px 0 12px;
  color: var(--primary);
}

.legal-page h3 {
  font-size: 1rem;
  margin: 20px 0 10px;
  color: var(--secondary);
}

.legal-page p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.legal-page ul {
  margin: 0 0 16px 20px;
  color: var(--muted);
  font-size: 14px;
}

.legal-page li {
  margin-bottom: 6px;
}

.contact-form {
  margin-top: 32px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.contact-form label {
  display: block;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 16px;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  display: none;
  color: #f87171;
  font-size: 13px;
  margin-bottom: 12px;
}

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

.form-success {
  display: none;
  padding: 24px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--primary);
  color: var(--text);
  font-size: 14px;
}

.go-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.go-panel {
  background: var(--surface);
  border: 1px solid var(--primary);
  padding: 40px 32px;
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.go-ad {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 700;
}

.go-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  margin: 0 auto 20px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.go-panel h1 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text);
}

.go-panel p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.go-compliance {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.go-compliance a {
  color: var(--primary);
}

.error-page {
  flex: 1;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  position: relative;
  z-index: 1;
}

.error-page h1 {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 24px;
}

.error-page a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--primary);
  padding: 12px 24px;
}

.error-page a:hover {
  text-shadow: 0 0 8px var(--primary);
}

.hud-frame {
  border: 1px solid var(--border);
  background: rgba(10, 31, 23, 0.8);
  position: relative;
}

.tactical-radar {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.tactical-radar::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  margin: -100% 0 0 -100%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(16, 185, 129, 0.12) 30deg, transparent 60deg);
  animation: radar-sweep 4s linear infinite;
}

@keyframes radar-sweep {
  to {
    transform: rotate(360deg);
  }
}

.security-encryption-bar {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--secondary);
  padding: 4px 8px;
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.military-stencil {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

@media (max-width: 900px) {
  .navbar-links {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .nav-overlay,
  .mobile-drawer {
    display: flex;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .btn-cookie {
    flex: 1;
  }
}
