:root {
  --bg: #020617;
  --surface: #1E1B4B;
  --text: #FFFFFF;
  --muted: #818CF8;
  --primary: #DB2777;
  --secondary: #312E81;
  --accent: #F472B6;
  --border: rgba(219, 39, 119, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(219, 39, 119, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, #0f0a2e 50%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(244, 114, 182, 0.015) 3px, rgba(244, 114, 182, 0.015) 4px);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 85% 75%, rgba(49, 46, 129, 0.25) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary);
}

.disclosure-badge {
  position: relative;
  z-index: 10;
  max-width: fit-content;
  margin: 8px auto;
  padding: 5px 18px;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(244, 114, 182, 0.15);
  border: 1px solid rgba(244, 114, 182, 0.3);
  border-radius: 4px;
  text-align: center;
  line-height: 1.4;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.95);
  background-image: repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(255, 255, 255, 0.02) 1px, rgba(255, 255, 255, 0.02) 2px);
  border-bottom: 1px solid var(--border);
  height: 52px;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-logo img {
  height: 28px;
  width: auto;
}

.navbar-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.navbar-links a {
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 13px;
  color: var(--muted);
  padding: 4px 6px;
}

.navbar-links a:hover {
  color: var(--accent);
}

.burger-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: ui-monospace, monospace;
  font-size: 13px;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(2, 6, 23, 0.98);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: ui-monospace, monospace;
  font-size: 16px;
  color: #4ade80;
  padding: 8px 16px;
}

.mobile-menu a:hover {
  color: var(--accent);
}

.mobile-close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: ui-monospace, monospace;
  font-size: 13px;
  padding: 6px 12px;
  cursor: pointer;
}

.site-footer {
  position: relative;
  z-index: 5;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  margin-top: auto;
  flex-shrink: 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}

.footer-brand img {
  height: 32px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--muted);
  max-width: 280px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-badges {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-badges a,
.footer-badges img {
  display: block;
}

.footer-badges img {
  height: 40px;
  width: auto;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(2, 6, 23, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.hidden {
  display: none;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.modal-box h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text);
}

.modal-box p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--text);
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #be185d;
}

.btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner p {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
  min-width: 200px;
  max-width: 600px;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.legal-page {
  position: relative;
  z-index: 5;
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.legal-page h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--text);
}

.legal-page h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  margin: 28px 0 12px;
  color: var(--accent);
}

.legal-page h3 {
  font-size: 1.05rem;
  margin: 20px 0 8px;
  color: var(--muted);
}

.legal-page p {
  margin-bottom: 14px;
  color: var(--text);
}

.legal-page ul {
  margin: 12px 0 16px 24px;
}

.legal-page li {
  margin-bottom: 6px;
}

.contact-form {
  margin-top: 32px;
  padding: 28px;
  background: rgba(30, 27, 75, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.contact-form label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  color: #f87171;
  font-size: 12px;
  margin: -12px 0 12px;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-success {
  padding: 32px;
  text-align: center;
  background: rgba(30, 27, 75, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 32px;
}

.form-success h2 {
  font-family: Georgia, serif;
  color: var(--accent);
  margin-bottom: 12px;
}

.form-success.hidden,
.contact-form.hidden {
  display: none;
}

.page-404 {
  position: relative;
  z-index: 5;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}

.page-404 h1 {
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.page-404 p {
  color: var(--muted);
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .navbar-links {
    display: none;
  }

  .burger-btn {
    display: block;
  }
}
