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

:root {
  --bg: #2B1055;
  --surface: #190B2E;
  --text: #FFC6FF;
  --muted: #BDB2FF;
  --primary: #FF70A6;
  --secondary: #70D6FF;
  --accent: #FFD670;
  --border: rgba(255, 112, 166, 0.3);
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: Georgia, "Times New Roman", Times, serif;
  --max-width: 1200px;
  --card-bg: #ffffff;
  --card-text: #1a1a2e;
  --card-muted: #888888;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.05;
  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)'/%3E%3C/svg%3E");
  animation: grain-flicker 7s infinite;
}

@keyframes grain-flicker {
  0%, 100% { opacity: 0.05; }
  50% { opacity: 0.08; }
  75% { opacity: 0.04; }
}

main {
  flex: 1;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

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

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

.disclosure-wrap {
  padding: 0 16px;
}

.disclosure-banner {
  max-width: 1100px;
  margin: 8px auto;
  padding: 8px 20px;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  background: rgba(255, 112, 166, 0.05);
  border: 1px solid rgba(255, 112, 166, 0.1);
  border-radius: 10px;
  color: var(--muted);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--surface);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

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

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

.nav-toggle {
  display: none;
}

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

.burger-label span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  flex-wrap: wrap;
  gap: 0;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.nav-links a:hover {
  background: rgba(255, 198, 255, 0.1);
  color: var(--primary);
}

.nav-divider {
  color: var(--primary);
  font-size: 0.75rem;
  padding: 0 2px;
  user-select: none;
}

.site-footer {
  background: var(--surface);
  border-top: 2px solid var(--border);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 32px;
}

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

.footer-logo img {
  max-height: 36px;
  margin-bottom: 16px;
}

.footer-logo p {
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
}

.footer-links h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 12px;
}

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

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

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

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

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

.footer-badges a,
.footer-badges span {
  display: block;
}

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

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

.footer-se-disclosure {
  margin-top: 20px;
  font-size: 11px;
  color: rgba(189, 178, 255, 0.75);
  line-height: 1.65;
}

.footer-se-disclosure a {
  color: var(--secondary);
}

.footer-copy {
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--muted);
}

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

.legal-content h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

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

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

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

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

.legal-content a {
  color: var(--secondary);
}

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

.contact-form-wrap {
  margin-top: 32px;
  padding: 28px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 24px;
  box-shadow: inset 0 0 40px rgba(255, 112, 166, 0.05);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(112, 214, 255, 0.15);
}

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

.field-error {
  display: none;
  font-size: 0.8rem;
  color: var(--primary);
  margin-top: 6px;
}

.form-group input[type="email"]:invalid:not(:placeholder-shown):not(:focus) ~ .field-error {
  display: block;
}

.btn-submit {
  align-self: flex-start;
  padding: 12px 28px;
  background: linear-gradient(180deg, var(--primary) 0%, #e85a8f 100%);
  color: var(--surface);
  border: none;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 0 #c44d78, inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.15s;
}

.btn-submit:hover {
  transform: translateY(-1px);
}

.form-success {
  display: none;
  padding: 32px;
  background: var(--surface);
  border: 2px solid var(--secondary);
  border-radius: 24px;
  text-align: center;
}

.form-success h2 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 12px;
}

.form-success p {
  color: var(--muted);
}

#contact-success:target {
  display: block;
}

body:has(#contact-success:target) .contact-form-wrap {
  display: none;
}

.cookie-toggle {
  display: none;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 2px solid var(--primary);
  padding: 20px;
  z-index: 1000;
  transform: translateY(0);
  transition: transform 0.3s;
  border-radius: 20px 20px 0 0;
}

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

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

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

.cookie-btn {
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
}

.cookie-btn-accept {
  background: var(--primary);
  color: var(--surface);
  box-shadow: 0 3px 0 #c44d78;
}

.cookie-btn-essential {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.cookie-toggle:checked ~ .cookie-banner {
  transform: translateY(100%);
  pointer-events: none;
}

.not-found {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.not-found h1 {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 16px;
}

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

.btn-home {
  display: inline-block;
  padding: 12px 28px;
  background: var(--secondary);
  color: var(--surface);
  border-radius: 999px;
  font-weight: 700;
}

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

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

  .nav-divider {
    display: none;
  }

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

  .navbar-inner:has(.nav-toggle:checked) .burger-label span:nth-child(2) {
    opacity: 0;
  }

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

  .nav-links {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 24px;
    gap: 4px;
    transition: right 0.3s;
    z-index: 200;
    border-left: 2px solid var(--primary);
    overflow-y: auto;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
  }

  .navbar-inner:has(.nav-toggle:checked) .nav-links {
    right: 0;
  }

  .nav-links a {
    width: 100%;
    padding: 10px 12px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}
