:root {
  --bg: #0F0A13;
  --surface: #1A1224;
  --text: #FDF2F8;
  --muted: #F9A8D4;
  --primary: #EC4899;
  --secondary: #A78BFA;
  --accent: #F472B6;
  --border: rgba(253, 242, 248, 0.12);
  --retro-orange: #E8A87C;
  --retro-teal: #5EBFB5;
  --retro-cream: #F5E6D3;
  --crt-glow: rgba(94, 191, 181, 0.25);
  --fallout-warm: #E8A87C;
  --60s-future-teal: #5EBFB5;
  --atomic-age-pink: #EC4899;
  --analog-tech-cream: #F5E6D3;
  --retro-theme-fallout: var(--fallout-warm);
  --retro-theme-60s-future: var(--60s-future-teal);
  --retro-theme-atomic-age: var(--atomic-age-pink);
  --retro-theme-analog-tech: var(--analog-tech-cream);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(236, 72, 153, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(167, 139, 250, 0.1) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, #140E1A 50%, var(--bg) 100%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' 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");
  pointer-events: none;
  z-index: 9998;
  opacity: 0.35;
  animation: analog-flicker 8s infinite;
}

@keyframes analog-flicker {
  0%, 100% { opacity: 0.32; }
  50% { opacity: 0.38; }
  52% { opacity: 0.28; }
  54% { opacity: 0.36; }
}

h1, h2, h3, .display-serif {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.disclosure {
  width: 100%;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 400;
  text-align: center;
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.15), rgba(167, 139, 250, 0.15));
  color: var(--text);
  position: relative;
  z-index: 10;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link img {
  height: 36px;
  width: auto;
}

.nav-desktop {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-desktop a {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav-desktop a:hover {
  color: var(--muted);
  border-bottom-color: var(--primary);
}

.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.burger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.burger-btn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-btn.is-open span:nth-child(2) {
  opacity: 0;
}

.burger-btn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 19, 0.97);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
  padding: 8px 16px;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--retro-teal), var(--primary), var(--retro-orange));
  opacity: 0.5;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px 16px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-badges {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-badges img {
  height: 48px;
  width: auto;
}

.footer-badges a {
  display: block;
}

.footer-copy {
  margin-top: 24px;
  font-size: 0.8rem;
  color: rgba(253, 242, 248, 0.5);
  text-align: center;
}

.age-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 19, 0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.age-overlay.is-hidden {
  display: none;
}

.age-panel {
  background: var(--surface);
  border: 2px solid var(--retro-teal);
  border-radius: 24px;
  padding: 40px 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 40px var(--crt-glow), inset 0 0 60px rgba(94, 191, 181, 0.05);
  position: relative;
  overflow: hidden;
}

.age-panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(232, 168, 124, 0.3);
  border-radius: 18px;
  pointer-events: none;
}

.age-panel h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--retro-cream);
}

.age-panel p {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.age-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.knob-btn {
  position: relative;
  padding: 12px 28px;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.knob-btn::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 12px;
  right: 12px;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

.knob-btn:active {
  transform: translateY(2px);
}

.knob-btn--confirm {
  background: linear-gradient(180deg, var(--retro-teal) 0%, #3D9A91 100%);
  color: var(--bg);
  box-shadow: 0 4px 0 #2A7A72, 0 6px 16px rgba(94, 191, 181, 0.3);
}

.knob-btn--decline {
  background: linear-gradient(180deg, var(--retro-orange) 0%, #C88A5A 100%);
  color: var(--bg);
  box-shadow: 0 4px 0 #9A6840, 0 6px 16px rgba(232, 168, 124, 0.2);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 2px solid var(--retro-teal);
  padding: 20px 24px;
  z-index: 9999;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-inner p {
  flex: 1;
  min-width: 240px;
  font-size: 0.9rem;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  position: relative;
  z-index: 1;
}

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--retro-cream);
}

.legal-content h2 {
  font-size: 1.25rem;
  margin: 28px 0 12px;
  color: var(--muted);
}

.legal-content h3 {
  font-size: 1.1rem;
  margin: 20px 0 10px;
}

.legal-content p {
  margin-bottom: 16px;
  color: rgba(253, 242, 248, 0.85);
}

.legal-content ul {
  margin: 0 0 16px 24px;
  color: rgba(253, 242, 248, 0.85);
}

.legal-content li {
  margin-bottom: 8px;
}

.contact-form {
  margin-top: 32px;
  padding: 28px;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  color: #F87171;
  font-size: 0.85rem;
  margin-top: 6px;
  display: none;
}

.form-error.is-visible {
  display: block;
}

.form-success {
  padding: 32px;
  background: rgba(94, 191, 181, 0.1);
  border: 1px solid var(--retro-teal);
  border-radius: 16px;
  text-align: center;
  display: none;
}

.form-success.is-visible {
  display: block;
}

.form-success h3 {
  color: var(--retro-teal);
  margin-bottom: 8px;
}

.page-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  position: relative;
  z-index: 1;
}

.page-404 h1 {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.page-404 p {
  color: var(--muted);
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  .burger-btn {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
