:root {
  --color-dark: #141838;
  --color-paper: #FCFCFD;
  --color-text: #151723;
  --color-brand: #142CEB;
  --color-accent: #6EAFED;
  --radius-card: 8px;
  --radius-btn: 6px;
  --card-border: 0;
  --card-shadow: none;
  --section-y: clamp(5rem, 10vw, 9rem);
  --gap: clamp(1.5rem, 3vw, 2.5rem);
  --content-max: 960px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 0; list-style: none; }

/* Typography */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.25; margin-top: 0; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.2; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }

.hl { color: var(--color-brand); }
.bg-dark .hl { color: var(--color-accent); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5em;
  color: var(--color-brand);
}
.bg-dark .eyebrow { color: var(--color-accent); }

/* Layout */
.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gap);
}
section {
  padding-block: var(--section-y);
  position: relative;
}
.section-divider {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-block-start: 0;
}
.bg-dark { background: var(--color-dark); color: var(--color-paper); }
.bg-dark .eyebrow { color: var(--color-accent); }
.bg-dark .hl { color: var(--color-accent); }
.bg-dark .btn-primary { background: var(--color-accent); color: var(--color-dark); }
.bg-dark .btn-secondary { color: var(--color-paper); border-color: var(--color-paper); }
.bg-dark .btn-secondary:hover { background: rgba(255,255,255,0.08); }
.light-card {
  background: var(--color-paper);
  color: var(--color-text);
  border-radius: var(--radius-card);
  padding: var(--gap);
}
.light-card .hl { color: var(--color-brand); }
.light-card .eyebrow { color: var(--color-brand); }

/* Grid / Flex Helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.flex-col { display: flex; flex-direction: column; gap: var(--gap); }
.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  height: 52px;
  padding-inline: 1.4em;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--color-brand); color: var(--color-paper); }
.btn-primary:hover { background: #1125c8; }
.btn-secondary { border-color: var(--color-text); background: transparent; color: var(--color-text); }
.btn-secondary:hover { background: rgba(0,0,0,0.04); }
.icon-btn { width: 20px; height: 20px; flex-shrink: 0; }

/* Capsule */
.capsule {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1em;
  border-radius: 99px;
  background: rgba(0,0,0,0.04);
  font-size: 0.9rem;
  font-weight: 500;
}
.bg-dark .capsule { background: rgba(255,255,255,0.08); }

/* Table */
.platform-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  table-layout: fixed;
}
.platform-table th, .platform-table td {
  padding: 0.8em 1em;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  text-align: left;
  overflow-wrap: anywhere;
}
.platform-table th { font-weight: 600; color: var(--color-text); width: 40%; }
.bg-dark .platform-table th, .bg-dark .platform-table td { border-bottom-color: rgba(255,255,255,0.1); color: var(--color-paper); }

/* FAQ */
details {
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 1em 0;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-weight: 400; opacity: 0.6; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0.6em 0 0; color: rgba(0,0,0,0.8); }
.bg-dark details { border-bottom-color: rgba(255,255,255,0.1); }
.bg-dark details p { color: rgba(255,255,255,0.85); }

/* Header / Footer */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252,252,253,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: rgba(0,0,0,0.08); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-links { display: flex; gap: 1.5em; }
.nav-links a { font-weight: 500; font-size: 0.95rem; }
.nav-links a[aria-current="page"] { color: var(--color-brand); }
.site-footer {
  padding: 3em 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 0.9rem;
  color: rgba(0,0,0,0.6);
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1em; }
.footer-links { display: flex; gap: 1.2em; }

/* SVG Animation Utilities */
.svg-container { position: relative; width: 100%; max-width: 100%; }
.svg-orbit { animation: orbit-breath 8s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.svg-line-flow { stroke-dasharray: 1; stroke-dashoffset: 0; animation: flow-line 4s linear infinite; }
.svg-bubble { animation: bubble-float 5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.svg-typing { animation: dot-breathe 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.svg-typing:nth-child(2) { animation-delay: 0.2s; }
.svg-typing:nth-child(3) { animation-delay: 0.4s; }
.svg-card-slide { animation: card-slide 6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }

@keyframes orbit-breath {
  0% { transform: scale(0.94); opacity: 0.5; }
  100% { transform: scale(1.06); opacity: 1; }
}
@keyframes flow-line {
  0% { stroke-dashoffset: 1; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1; }
}
@keyframes bubble-float {
  0% { transform: translateY(0); opacity: 0.85; }
  100% { transform: translateY(-6px); opacity: 1; }
}
@keyframes dot-breathe {
  0%, 100% { transform: scale(0.8); opacity: 0.4; }
  50% { transform: scale(1.1); opacity: 1; }
}
@keyframes card-slide {
  0% { transform: translateX(12px); opacity: 0.7; }
  100% { transform: translateX(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
}

@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .container { padding-inline: calc(var(--gap) * 0.6); }
}
