:root {
  --bg: #2B1055;
  --surface: #190B2E;
  --text: #FFC6FF;
  --muted: #BDB2FF;
  --primary: #FF70A6;
  --secondary: #70D6FF;
  --accent: #FFD670;
  --border: rgba(255, 112, 166, 0.3);
  --hud-green: #39ff14;
  --hud-amber: #ffb000;
  --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

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

body {
  font-family: "Courier New", Courier, "Liberation Mono", monospace;
  background: var(--bg);
  background-image:
    linear-gradient(135deg, rgba(25, 11, 46, 0.95) 0%, rgba(43, 16, 85, 0.9) 50%, rgba(25, 11, 46, 0.95) 100%),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(112, 214, 255, 0.03) 2px, rgba(112, 214, 255, 0.03) 4px);
  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:
    radial-gradient(circle at 20% 30%, rgba(255, 112, 166, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(112, 214, 255, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-radial-gradient(circle at 50% 50%, transparent 0, transparent 40px, rgba(57, 255, 20, 0.02) 40px, rgba(57, 255, 20, 0.02) 41px);
  animation: radar-sweep-tactical 12s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes radar-sweep-tactical {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.disclosure-banner {
  position: relative;
  z-index: 100;
  width: 100%;
  background: rgba(255, 198, 255, 0.08);
  border-top: 1px dotted rgba(189, 178, 255, 0.5);
  border-bottom: 1px dotted rgba(189, 178, 255, 0.5);
  padding: 8px 16px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--surface);
  box-shadow: var(--shadow-heavy);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

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

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  transform: scale(1.05);
  color: var(--primary);
}

.burger-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  text-transform: uppercase;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(25, 11, 46, 0.92);
  backdrop-filter: blur(12px);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.mobile-overlay.active {
  display: flex;
}

.mobile-overlay a {
  color: var(--text);
  text-decoration: none;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 24px;
}

.mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  cursor: pointer;
  font-family: inherit;
}

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

.site-footer {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 24px 32px;
  flex-shrink: 0;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

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

.footer-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-badges a {
  display: block;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

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

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

.footer-nz-disclosure {
  font-size: 11px;
  color: rgba(189, 178, 255, 0.7);
  line-height: 1.7;
  max-width: 800px;
}

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

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  max-width: 480px;
  width: 100%;
  padding: 32px;
  box-shadow: var(--shadow-heavy);
}

.modal-panel h2 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.modal-actions {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--surface);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--surface);
}

.btn-secondary {
  background: transparent;
  color: var(--muted);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--text);
}

.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  z-index: 250;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

.cookie-banner.active {
  display: block;
}

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

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

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

.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

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

.legal-page h2 {
  font-size: 18px;
  margin: 32px 0 12px;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

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

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

.contact-form {
  margin-top: 32px;
  padding: 24px;
  background: rgba(25, 11, 46, 0.6);
  border: 1px solid var(--border);
}

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

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

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

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

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

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

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

.tactical-hud-frame {
  border: 1px solid var(--border);
  background: rgba(25, 11, 46, 0.8);
  position: relative;
}

.tactical-hud-frame::before {
  content: "SEC";
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: 9px;
  color: var(--hud-green);
  letter-spacing: 0.2em;
}

.security-encryption-label {
  font-size: 10px;
  color: var(--hud-amber);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.military-topo-overlay {
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(112, 214, 255, 0.04) 10px, rgba(112, 214, 255, 0.04) 11px);
}

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}

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

.error-page p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 32px;
}

.redirect-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.redirect-panel {
  text-align: center;
  max-width: 480px;
  padding: 48px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.redirect-panel h1 {
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
}

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

.redirect-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin-redirect 0.8s linear infinite;
  margin: 24px auto;
}

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

.redirect-ad {
  font-size: 11px;
  color: var(--hud-amber);
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

  .burger-btn {
    display: block;
  }
}
