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

:root {
  --bg: #FAF5FF;
  --surface: #FFFFFF;
  --text: #2E1065;
  --muted: #7C3AED;
  --primary: #8B5CF6;
  --secondary: #DDD6FE;
  --accent: #C084FC;
  --border: rgba(46, 16, 101, 0.08);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  --max-w: 1200px;
  --nav-dark: #1a0a3e;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  background-image:
    linear-gradient(160deg, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(192, 132, 252, 0.1) 0%, transparent 45%);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(139, 92, 246, 0.3) 39px, rgba(139, 92, 246, 0.3) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(139, 92, 246, 0.3) 39px, rgba(139, 92, 246, 0.3) 40px);
}

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

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

a:hover {
  color: var(--accent);
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.disclosure-banner {
  width: 100%;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 400;
  text-align: center;
  color: var(--text);
  background: linear-gradient(to right, rgba(139, 92, 246, 0.15), rgba(221, 214, 254, 0.15));
  position: relative;
  z-index: 10;
}

.site-header {
  position: static;
  background-color: var(--nav-dark);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  border-bottom: 2px solid var(--accent);
  z-index: 100;
}

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

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

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

.nav-desktop a {
  color: #fff;
  font-size: 13px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  border-radius: 20px;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.nav-desktop a:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.4);
  color: #fff;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.burger-label {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 400;
}

.burger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.drawer-backdrop {
  display: none;
}

.mobile-drawer {
  display: none;
}

.cookie-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--nav-dark);
  border-top: 2px solid var(--accent);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(139, 92, 246, 0.2);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-banner p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
}

.cookie-banner a {
  color: var(--accent);
}

.cookie-accept-label {
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  animation: neon-pulse 3s ease-in-out infinite;
}

.cookie-accept-label:hover {
  background-color: var(--accent);
  box-shadow: 0 0 16px rgba(192, 132, 252, 0.6);
}

.cookie-banner:has(.cookie-checkbox:checked) {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

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

.site-footer {
  background-color: var(--nav-dark);
  border-top: 2px solid var(--accent);
  padding: 48px 24px 32px;
  margin-top: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(192, 132, 252, 0.15) 20px,
    rgba(192, 132, 252, 0.15) 21px
  );
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

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

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

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

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

.footer-badges img {
  height: 48px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.25s ease;
}

.footer-badges a:hover img {
  opacity: 1;
}

.footer-disclosure {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
  max-width: 900px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.legal-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--text);
  margin-bottom: 24px;
}

.legal-content h2 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-content p {
  color: var(--muted);
  margin-bottom: 16px;
}

.legal-content ul {
  color: var(--muted);
  margin-bottom: 16px;
  padding-left: 24px;
}

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

.legal-content strong {
  color: var(--text);
  font-weight: 600;
}

.not-found-section {
  text-align: center;
  padding: 80px 24px 120px;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.not-found-section h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  color: var(--primary);
  font-family: var(--font-mono);
}

.not-found-section p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 480px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--primary);
  border: 1px solid var(--accent);
  color: #fff;
  font-size: 15px;
  border-radius: 6px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent);
  box-shadow: 0 0 20px rgba(192, 132, 252, 0.5);
  color: #fff;
}

.subpage-header .header-inner {
  justify-content: flex-start;
}

@keyframes neon-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(139, 92, 246, 0.3); }
  50% { box-shadow: 0 0 18px rgba(192, 132, 252, 0.6); }
}

@keyframes cyber-glow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@media (max-width: 768px) {
  .burger-label {
    display: flex;
  }

  .nav-desktop {
    display: none;
  }

  .header-inner:has(.nav-toggle:checked) .burger-label .burger-line:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
  }

  .header-inner:has(.nav-toggle:checked) .burger-label .burger-line:nth-child(3) {
    opacity: 0;
  }

  .header-inner:has(.nav-toggle:checked) .burger-label .burger-line:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 250;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }

  .header-inner:has(.nav-toggle:checked) ~ .drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-drawer {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background: var(--nav-dark);
    flex-direction: column;
    padding: 80px 24px 24px;
    gap: 8px;
    z-index: 260;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    border-right: 2px solid var(--accent);
    box-shadow: 4px 0 24px rgba(139, 92, 246, 0.3);
  }

  .header-inner:has(.nav-toggle:checked) ~ .mobile-drawer {
    transform: translateX(0);
  }

  .mobile-drawer a {
    color: #fff;
    font-size: 14px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 12px 16px;
    border-radius: 8px;
    transition: background 0.2s ease;
  }

  .mobile-drawer a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }
}
