:root {
  --bg: #0F0F0F;
  --surface: #1A1A1A;
  --text: #FFFFFF;
  --muted: #9CA3AF;
  --primary: #E5E7EB;
  --secondary: #6B7280;
  --accent: #EF4444;
  --border: rgba(255, 255, 255, 0.16);
  --tactical-hud-green: #39ff14;
  --tactical-amber: #ffb020;
  --military-grid: rgba(57, 255, 20, 0.06);
  --security-glow: rgba(239, 68, 68, 0.15);
  --encryption-line: rgba(229, 231, 235, 0.08);
  --layout-max: 1200px;
  --nav-height: 54px;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", monospace;
}

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

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

body {
  font-family: var(--mono);
  background: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(26, 26, 26, 0.95) 0%, var(--bg) 38%),
    radial-gradient(ellipse at 15% 0%, var(--security-glow) 0%, transparent 52%);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, var(--military-grid) 39px, var(--military-grid) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, var(--encryption-line) 39px, var(--encryption-line) 40px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

body::after {
  content: "";
  position: fixed;
  inset: -50%;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(57, 255, 20, 0.03) 30deg, transparent 60deg);
  animation: hud-radar-sweep 12s linear infinite;
  pointer-events: none;
  z-index: 0;
}

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

main {
  flex: 1 0 auto;
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4 {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

a:hover {
  color: var(--tactical-hud-green);
}

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

.disclosure-banner {
  position: relative;
  width: 100%;
  padding: 8px 16px;
  z-index: 110;
  overflow: hidden;
}

.disclosure-banner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
  background: var(--accent);
}

.disclosure-banner::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  background: #FFFFFF;
}

.disclosure-banner p {
  position: relative;
  z-index: 1;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  background: linear-gradient(90deg, #FFFFFF 50%, #111827 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  height: var(--nav-height);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-link img {
  height: 32px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0;
}

.nav-desktop a {
  padding: 8px 10px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-desktop a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--primary);
}

.nav-divider {
  color: var(--secondary);
  font-size: 11px;
  user-select: none;
  padding: 0 2px;
}

.burger-btn {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 20px;
  cursor: pointer;
  padding: 6px 10px;
  line-height: 1;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s;
}

.drawer-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 88vw);
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 210;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  padding: 64px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-drawer.open {
  transform: translateX(0);
}

.nav-drawer a {
  padding: 12px 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.nav-drawer a:hover {
  color: var(--tactical-hud-green);
  background: rgba(57, 255, 20, 0.04);
}

.drawer-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 22px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  line-height: 1;
}

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

.footer-inner {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 40px 24px 28px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-logo img {
  height: 30px;
  width: auto;
  opacity: 0.9;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

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

.footer-badges img {
  height: 40px;
  width: auto;
}

.footer-nz-disclosure {
  font-size: 11px;
  color: var(--secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.footer-nz-disclosure p {
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 11px;
  color: var(--secondary);
}

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

.age-overlay.hidden {
  display: none;
}

.age-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  max-width: 440px;
  width: 100%;
  padding: 32px 28px;
  position: relative;
}

.age-modal::before {
  content: "SECURITY";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.2em;
  padding: 4px 12px;
  text-align: center;
}

.age-modal h2 {
  font-size: 1.1rem;
  margin: 16px 0 12px;
  color: var(--primary);
}

.age-modal p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.age-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 18px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.btn-primary:hover {
  background: #dc2626;
}

.btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 10px 18px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
}

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

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

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

.cookie-banner a {
  color: var(--tactical-hud-green);
}

.page-shell {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.page-shell h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 24px;
  color: var(--primary);
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}

.page-shell h2 {
  font-size: 1rem;
  margin: 28px 0 12px;
  color: var(--tactical-amber);
}

.page-shell h3 {
  font-size: 0.9rem;
  margin: 16px 0 8px;
  color: var(--primary);
}

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

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

.page-shell li {
  margin-bottom: 8px;
}

.page-shell strong {
  color: var(--primary);
}

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

.contact-form-wrap label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 6px;
}

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

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

.form-error {
  font-size: 12px;
  color: var(--accent);
  margin: -12px 0 12px;
  display: none;
}

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

.form-success {
  display: none;
  padding: 20px;
  background: rgba(57, 255, 20, 0.06);
  border: 1px solid rgba(57, 255, 20, 0.2);
  color: var(--tactical-hud-green);
  font-size: 14px;
}

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

.info-cta-link {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 18px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid var(--accent);
  color: var(--primary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-cta-link:hover {
  background: var(--accent);
  color: #fff;
}

.not-found-wrap {
  text-align: center;
  padding: 80px 24px;
}

.not-found-wrap h1 {
  font-size: 4rem;
  color: var(--accent);
  border: none;
  padding: 0;
  margin-bottom: 12px;
}

.not-found-wrap p {
  color: var(--muted);
  margin-bottom: 24px;
}

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

  .burger-btn {
    display: block;
  }
}
