:root {
  --bg: #020617;
  --surface: #020F2F;
  --text: #E0F2FE;
  --muted: #7DD3FC;
  --primary: #1D4ED8;
  --secondary: #38BDF8;
  --accent: #22C55E;
  --border: rgba(224, 242, 254, 0.12);
  --warm-beige: rgba(245, 235, 220, 0.08);
  --wool-grey: rgba(200, 195, 185, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  background-image:
    linear-gradient(160deg, var(--bg) 0%, var(--surface) 55%, #031a45 100%),
    radial-gradient(ellipse 80% 50% at 20% 80%, var(--warm-beige) 0%, transparent 70%);
  color: var(--text);
  line-height: 1.65;
  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 55% 35% at 85% 15%, rgba(56, 189, 248, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 10% 40%, var(--wool-grey) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 48px,
    rgba(224, 242, 254, 0.015) 48px,
    rgba(224, 242, 254, 0.015) 49px
  );
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

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

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

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

.disclosure-banner {
  width: 100%;
  background: linear-gradient(90deg, rgba(29, 78, 216, 0.15), rgba(56, 189, 248, 0.15));
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  text-align: center;
  padding: 8px 16px;
  line-height: 1.5;
}

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

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

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

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

.nav-chip {
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  transition: background 0.45s ease, color 0.45s ease;
  letter-spacing: 0.02em;
}

.nav-chip:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text);
}

.burger-btn {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text);
  flex-direction: column;
  gap: 4px;
}

.burger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.35s ease;
}

.burger-btn.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger-btn.active span:nth-child(2) {
  opacity: 0;
}

.burger-btn.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 15, 47, 0.88);
  z-index: 98;
}

.nav-overlay.open {
  display: block;
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--surface);
  padding: 80px 24px 24px;
  overflow-y: auto;
}

.nav-mobile.open {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: start;
}

.nav-mobile a {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  text-align: center;
}

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

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 340px;
}

.footer-links h3 {
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.88rem;
}

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

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

.footer-legal {
  margin-top: 20px;
}

.footer-legal p {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.footer-br-disclosure {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.footer-br-disclosure p {
  font-size: 11px;
  color: rgba(125, 211, 252, 0.72);
  line-height: 1.65;
  max-width: 920px;
  margin-bottom: 12px;
}

.footer-notice {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(224, 242, 254, 0.08);
}

.footer-notice p {
  font-size: 11px;
  color: rgba(125, 211, 252, 0.65);
  line-height: 1.65;
  max-width: 920px;
  margin-bottom: 8px;
}

.age-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 15, 47, 0.96);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.age-gate-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 440px;
  text-align: center;
}

.age-gate-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 12px;
}

.age-gate-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.age-gate-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

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

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

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

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--text);
  border: none;
  padding: 10px 22px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.45s ease, transform 0.45s ease;
}

.btn-primary:hover {
  background: var(--secondary);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 10px 22px;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.45s ease, color 0.45s ease;
}

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

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

.legal-content h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.legal-content h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  color: var(--primary);
  margin: 32px 0 12px;
}

.legal-content h3 {
  font-size: 1.05rem;
  color: var(--secondary);
  margin: 20px 0 8px;
}

.legal-content p {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.legal-content ul,
.legal-content ol {
  color: var(--muted);
  margin: 0 0 14px 20px;
  font-size: 0.95rem;
}

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

.contact-form-wrap {
  margin-top: 32px;
  padding: 28px;
  background: var(--warm-beige);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.contact-form-wrap label {
  display: block;
  color: var(--text);
  font-size: 0.88rem;
  margin-bottom: 6px;
  margin-top: 16px;
}

.contact-form-wrap label:first-of-type {
  margin-top: 0;
}

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

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

.form-error {
  color: var(--accent);
  font-size: 0.82rem;
  margin-top: 6px;
  display: none;
}

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

.form-success {
  padding: 24px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  color: var(--text);
  text-align: center;
}

.form-success.hidden {
  display: none;
}

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

.redirect-ad {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
}

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

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

.redirect-page h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 12px;
}

.redirect-page p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 480px;
  margin-bottom: 8px;
}

.redirect-notes {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.redirect-notes p {
  font-size: 0.82rem;
}

.page-404 {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}

.page-404 h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  color: var(--secondary);
  margin-bottom: 12px;
}

.page-404 p {
  color: var(--muted);
  margin-bottom: 24px;
}

.hygge-soft {
  border-radius: 16px;
  transition: box-shadow 0.45s ease, transform 0.45s ease;
}

.hygge-warm {
  background: var(--warm-beige);
}

.hygge-cozy {
  padding: 24px;
}

.hygge-minimal {
  border: 1px solid var(--border);
}

.hygge-home {
  background: var(--wool-grey);
}

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

  .burger-btn {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions button {
    flex: 1;
  }
}
