:root {
  --bg-dark: #19102D;
  --bg-paper: #FCFCFD;
  --text-main: #191523;
  --brand: #5214EB;
  --accent: #D66EED;
  --radius-card: 0;
  --radius-btn: 0;
  --card-border: 2px solid var(--text-main);
  --card-shadow: 4px 4px 0 var(--text-main);
  --section-y: clamp(5rem, 10vw, 9rem);
  --gap: clamp(1.5rem, 3vw, 2.5rem);
  --content-max: 1120px;
  --header-h: 64px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-main);
  background-color: var(--bg-paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }
ul, ol { list-style: none; }

/* Layout */
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gap); }
.section { padding: var(--section-y) 0; border-bottom: 1px solid var(--text-main); }
.section:last-child { border-bottom: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

/* Header */
header { position: sticky; top: 0; z-index: 100; background: var(--bg-paper); border-bottom: 1px solid var(--text-main); height: var(--header-h); display: flex; align-items: center; }
.nav-wrap { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gap); }
.logo-img { height: 32px; width: auto; }
nav ul { display: flex; gap: var(--gap); }
nav a { font-weight: 600; font-size: 0.95rem; color: var(--text-main); }
nav a[aria-current="page"] { color: var(--brand); }

/* Typography */
h1, h2, h3 { font-weight: 700; letter-spacing: 0.02em; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; max-width: 38em; }
.text-center { text-align: center; }
.max-w-prose { max-width: 38em; }
.hl { font-weight: 800; }

/* Eyebrows */
.eyebrow { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.75rem; color: var(--brand); }
.section-dark .eyebrow { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 0 24px;
  font-size: 1rem; font-weight: 700; line-height: 1;
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent; border-radius: var(--radius-btn);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--accent); color: var(--bg-dark); border-color: var(--accent); }
.btn-primary:hover { background: #c05ad9; border-color: #c05ad9; transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--text-main); border-color: var(--text-main); }
.btn-secondary:hover { background: var(--text-main); color: var(--bg-paper); transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Cards & Panels */
.card {
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  background: var(--bg-paper);
  padding: var(--gap);
  border-radius: var(--radius-card);
}
.panel-dark { background: var(--bg-dark); color: var(--bg-paper); border-radius: var(--radius-card); }
.panel-dark .hl { color: var(--accent); }
.panel-dark p, .panel-dark li { color: #191523; }
.panel-dark a { color: var(--accent); }

/* Tables */
table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--text-main); }
th { font-weight: 700; background: var(--bg-paper); }
td { border-left: 2px solid var(--text-main); }
@media (max-width: 600px) { th, td { display: block; width: 100%; } th { background: var(--bg-paper); } }

/* Details / FAQ */
details { margin-bottom: 16px; border: var(--card-border); box-shadow: var(--card-shadow); background: var(--bg-paper); border-radius: var(--radius-card); }
summary { padding: 16px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.2rem; font-weight: bold; }
details[open] summary::after { content: "-"; }
details p { padding: 0 16px 16px; line-height: 1.75; }

/* SVG Responsive */
.svg-responsive { width: 100%; height: auto; }
.svg-container { overflow: hidden; }

/* SVG Animations */
.anim-flow { animation: flowDash 3s ease-in-out infinite; }
.anim-breathe { animation: breathe 4s ease-in-out infinite; }
.anim-float { animation: slideUp 5s ease-in-out infinite; }
.anim-dot { animation: floatPath 6s ease-in-out infinite; }
.dot-group { transform-box: fill-box; transform-origin: center; }

@keyframes flowDash { 0%, 100% { stroke-dashoffset: 0; } 50% { stroke-dashoffset: 1; } }
@keyframes breathe { 0%, 100% { opacity: 0.4; transform: scale(0.95); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes slideUp { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-6px); opacity: 0.9; } }
@keyframes floatPath { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(12px, -10px); } 50% { transform: translate(24px, 0); } 75% { transform: translate(12px, 10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .anim-flow, .anim-breathe, .anim-float, .anim-dot { animation: none !important; }
}
