:root {
  --dark: #21163C;
  --paper: #E9E8EA;
  --body: #191523;
  --brand: #5214EB;
  --accent: #ED926E;
  --light-paper: #F4F3F5;
  --radius-card: 20px;
  --radius-btn: 12px;
  --card-border: 0;
  --card-shadow: 0 10px 28px -14px rgba(25, 21, 35, 0.3);
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --content-max: 1120px;
  --lh-body: 1.65;
  --font-main: 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-main);
  background: var(--paper);
  color: var(--body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

/* Layout Utilities */
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gap); }
.section-wrapper { position: relative; }
.grid-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
@media (min-width: 768px) {
  .grid-split { grid-template-columns: minmax(0, 240px) 1fr; align-items: start; }
}

/* Typography */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 600; letter-spacing: 0; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: 1em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 0.8em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 0.6em; }
p { margin-bottom: 1em; max-width: 38em; }
.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5em;
}
.hl { font-weight: 700; }
.section-paper .hl { color: var(--brand); }
.section-dark .hl { color: var(--accent); }
.section-paper .badge { color: var(--brand); }
.section-dark .badge { color: var(--accent); }

/* Sections Backgrounds */
.section-paper { background: var(--paper); color: var(--body); }
.section-dark { background: var(--dark); color: var(--paper); }
.section-alt { background: var(--light-paper); color: var(--body); }

/* Cards */
.card {
  background: var(--paper);
  border-radius: var(--radius-card);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  padding: 1.5em;
  margin-bottom: var(--gap);
}
.section-dark .card { background: var(--paper); color: var(--body); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.75em 1.5em;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  border: none;
}
.btn-primary { background: var(--accent); color: var(--dark); }
.btn-secondary { background: transparent; border: 1px solid currentColor; color: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn svg { width: 20px; height: 20px; stroke-width: 1.8; }

/* Header & Footer */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(233, 232, 234, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(25, 21, 35, 0.08);
  padding: 0.75em 0;
}
.site-dark-header { background: rgba(33, 22, 60, 0.9); border-bottom-color: rgba(233, 232, 234, 0.1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-list { display: flex; gap: 1.5em; list-style: none; }
.nav-link { text-decoration: none; color: inherit; font-weight: 500; }
.nav-link[aria-current="page"] { font-weight: 700; border-bottom: 2px solid currentColor; }
.site-footer { background: var(--dark); color: var(--paper); padding: 3em 0; margin-top: var(--section-y); }
.footer-inner { display: flex; flex-direction: column; gap: 2em; align-items: center; text-align: center; }
@media (min-width: 768px) { .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; } }

/* Table */
.platform-table { width: 100%; border-collapse: collapse; margin-top: 1em; }
.platform-table td { padding: 0.75em 1em; border-bottom: 1px solid rgba(25, 21, 35, 0.1); vertical-align: top; }
.platform-table tr:last-child td { border-bottom: none; }
.platform-table td:first-child { font-weight: 600; width: 35%; }
.section-dark .platform-table td { border-bottom-color: rgba(233, 232, 234, 0.15); }

/* FAQ */
details { margin-bottom: 1em; border: 1px solid rgba(25, 21, 35, 0.1); border-radius: var(--radius-btn); overflow: hidden; }
.summary-row { padding: 1em 1.25em; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.summary-row::-webkit-details-marker { display: none; }
.summary-row::after { content: "+"; font-size: 1.2em; transition: transform 0.2s; }
details[open] .summary-row::after { transform: rotate(45deg); }
.details-content { padding: 0 1.25em 1em; }
.section-dark details { border-color: rgba(233, 232, 234, 0.2); }

/* SVG Animation Base */
svg { width: 100%; height: auto; display: block; }
.anim-draw { stroke-dasharray: 1; stroke-dashoffset: 0; animation: drawStroke 4s ease forwards; }
.anim-float { animation: floatAnim 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.anim-breathe { animation: breatheAnim 3s ease-in-out infinite; }
.anim-slide { animation: slideInAnim 5s ease forwards; }
.anim-flow { stroke-dasharray: 1; stroke-dashoffset: 0; animation: flowLineAnim 6s linear infinite; }
@keyframes drawStroke { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }
@keyframes floatAnim { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes breatheAnim { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
@keyframes slideInAnim { 0% { transform: translateX(20px); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
@keyframes flowLineAnim { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .anim-draw, .anim-float, .anim-breathe, .anim-slide, .anim-flow { animation: none !important; }
}
