:root {
  --bg: #F5F3FF;
  --surface: #FFFFFF;
  --text: #2E1065;
  --muted: #A78BFA;
  --primary: #8B5CF6;
  --secondary: #60A5FA;
  --accent: #F472B6;
  --border: rgba(46, 16, 101, 0.12);
  --nav-bg: #1a0a3e;
  --disclosure-from: #0a0618;
  --disclosure-to: #3b1d7a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(165deg, var(--bg) 0%, #ede9fe 45%, var(--surface) 100%);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 10% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 500px 350px at 90% 80%, rgba(244, 114, 182, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: softGradientsPlayful 24s ease-in-out infinite;
}

body::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.08), rgba(139, 92, 246, 0.06));
  pointer-events: none;
  z-index: 0;
  animation: blobFloat 18s ease-in-out infinite;
}

.organic-blob-layer {
  position: absolute;
  border-radius: 50% 40% 60% 30%;
  opacity: 0.12;
  filter: blur(1px);
}

.natural-fluid-shapes {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(244, 114, 182, 0.04));
}

.soft-gradients-playful {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(237, 233, 254, 0.6) 50%, var(--surface) 100%);
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-30px, 20px) rotate(8deg); }
}

@keyframes softGradientsPlayful {
  0%, 100% { opacity: 0.08; }
  50% { opacity: 0.14; }
}

.disclosure-banner {
  width: 100%;
  background: linear-gradient(90deg, var(--disclosure-from), var(--disclosure-to));
  color: #f8f7ff;
  font-size: 11px;
  text-align: center;
  padding: 10px 16px;
  line-height: 1.5;
  position: relative;
  z-index: 100;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.logo-link img {
  display: block;
}

.nav-desktop {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-desktop a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 10px;
  position: relative;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-desktop a:hover::after {
  transform: scaleX(1);
}

.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  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-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: var(--nav-bg);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.35s ease;
  padding: 80px 0 24px;
  overflow-y: auto;
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-drawer a {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 14px 24px;
  font-size: 0.95rem;
  border-left: 3px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.nav-drawer a:hover {
  border-left-color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

main {
  position: relative;
  z-index: 1;
  flex: 1;
}

.site-footer {
  background: linear-gradient(180deg, var(--nav-bg) 0%, #0d0520 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 24px 32px;
  position: relative;
  z-index: 1;
  margin-top: 64px;
}

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

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
}

.footer-badges a {
  display: block;
  opacity: 0.9;
  transition: opacity 0.2s;
}

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

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

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-bottom: 32px;
}

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

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

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

.footer-col a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

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

.footer-compliance {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
}

.footer-compliance p {
  margin-bottom: 12px;
}

.footer-company {
  margin-top: 16px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-updated {
  margin-top: 12px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 24, 0.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--surface);
  border-radius: 20px;
  padding: 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(46, 16, 101, 0.25);
  text-align: center;
}

.modal-box h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--text);
}

.modal-box p {
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.85;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}

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

.btn-secondary:hover {
  background: var(--bg);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  z-index: 999;
  box-shadow: 0 -8px 32px rgba(46, 16, 101, 0.12);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

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

.cookie-inner p {
  flex: 1;
  min-width: 240px;
  font-size: 0.85rem;
  color: var(--text);
}

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

.page-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.page-shell h1 {
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--text);
  border-radius: 8px;
}

.page-shell h2 {
  font-size: 1.25rem;
  margin: 28px 0 12px;
  color: var(--text);
}

.page-shell h3 {
  font-size: 1.05rem;
  margin: 20px 0 8px;
}

.page-shell p {
  margin-bottom: 14px;
  color: var(--text);
  opacity: 0.9;
}

.page-shell ul {
  margin: 0 0 16px 20px;
}

.page-shell li {
  margin-bottom: 6px;
}

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

.form-group {
  margin-bottom: 18px;
}

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

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

.form-error {
  color: #dc2626;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

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

.form-success {
  padding: 32px;
  text-align: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(96, 165, 250, 0.08));
  border-radius: 16px;
  border: 1px solid var(--border);
}

.form-success h3 {
  margin-bottom: 8px;
  color: var(--primary);
}

.wave-divider {
  width: 100%;
  height: 48px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'%3E%3Cpath d='M0,24 C200,48 400,0 600,24 C800,48 1000,0 1200,24 L1200,48 L0,48 Z' fill='%23F5F3FF' opacity='0.6'/%3E%3C/svg%3E") repeat-x;
  background-size: 600px 48px;
}

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

  .burger-btn {
    display: flex;
  }
}

.topic-hero {
  padding: 64px 24px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(96, 165, 250, 0.08));
  position: relative;
  overflow: hidden;
}

.topic-hero::after {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  bottom: -100px;
  right: -80px;
  border-radius: 45% 55% 50% 50%;
  background: rgba(244, 114, 182, 0.1);
}

.topic-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.topic-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 16px;
}

.topic-hero p {
  font-size: 1.05rem;
  opacity: 0.85;
}

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

.topic-split {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
}

.topic-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}

.topic-sidebar nav {
  background: var(--surface);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border);
}

.topic-sidebar a {
  display: block;
  padding: 10px 0;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
  opacity: 0.8;
}

.topic-sidebar a:last-child {
  border-bottom: none;
}

.topic-sidebar a:hover {
  color: var(--primary);
  opacity: 1;
}

.topic-main h2 {
  font-size: 1.35rem;
  margin: 32px 0 14px;
  color: var(--text);
}

.topic-main h3 {
  font-size: 1.1rem;
  margin: 24px 0 10px;
}

.topic-main p {
  margin-bottom: 14px;
  line-height: 1.7;
  opacity: 0.9;
}

.topic-main ul {
  margin: 0 0 16px 20px;
}

.topic-main li {
  margin-bottom: 8px;
}

.topic-img-inline {
  width: 100%;
  max-width: 100%;
  max-height: 320px;
  border-radius: 16px;
  object-fit: cover;
  margin: 24px 0;
  box-shadow: 0 8px 32px rgba(46, 16, 101, 0.1);
  display: block;
}

.topic-img-wrap {
  max-width: 100%;
  overflow: hidden;
  margin: 24px 0;
}

.topic-callout {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(96, 165, 250, 0.06));
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  border-left: 4px solid var(--primary);
}

.topic-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 32px 0;
}

.topic-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.topic-stat {
  background: var(--surface);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  border: 1px solid var(--border);
}

.topic-stat strong {
  display: block;
  font-size: 1.3rem;
  color: var(--primary);
}

.topic-stat span {
  font-size: 0.78rem;
  color: var(--muted);
}

.topic-bg-band {
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  padding: 48px 32px;
  margin: 32px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.topic-bg-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(46, 16, 101, 0.85), rgba(139, 92, 246, 0.75));
}

.topic-bg-band-inner {
  position: relative;
  z-index: 1;
}

.topic-pullquote {
  font-size: 1.15rem;
  font-style: italic;
  padding: 28px;
  background: var(--surface);
  border-radius: 16px;
  margin: 32px 0;
  border: 1px solid var(--border);
  color: var(--primary);
}

@media (max-width: 768px) {
  .topic-split {
    grid-template-columns: 1fr;
  }

  .topic-sidebar {
    position: static;
  }

  .topic-columns,
  .topic-stat-row {
    grid-template-columns: 1fr;
  }

  .topic-img-inline {
    max-height: 220px;
  }

  .topic-bg-band {
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
  }

  .topic-hero::after {
    display: none;
  }
}
