:root {
  --bg-dark: #141838;
  --bg-paper: #FCFCFD;
  --text-main: #151723;
  --brand: #142CEB;
  --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, "Noto Sans SC", "PingFang SC", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-main);
  background: var(--bg-paper);
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: opacity 0.2s;
}
a:hover { opacity: 0.8; }
a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}

.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gap);
  overflow-x: hidden;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 252, 253, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text-main);
}
.logo img { height: 28px; width: auto; }
.nav-list {
  display: flex;
  gap: 24px;
  list-style: none;
}
.nav-list a {
  font-weight: 500;
  color: var(--text-main);
  padding: 8px 0;
}
.nav-list a[aria-current="page"], .nav-list a:hover {
  color: var(--brand);
}
.header-cta {
  font-size: 14px;
}

/* Sections */
.section {
  padding-block: var(--section-y);
}
.bg-dark {
  background: var(--bg-dark);
  color: var(--bg-paper);
}
.bg-dark a { color: var(--accent); }
.bg-dark .btn-primary { background: var(--accent); color: var(--bg-dark); }
.bg-dark .btn-secondary { border-color: var(--bg-paper); color: var(--bg-paper); }
.bg-dark .eyebrow { color: var(--accent); }
.bg-dark h2, .bg-dark h3, .bg-dark p { color: var(--bg-paper); }
.bg-dark .card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); }
.bg-paper .card { background: #fff; border: 1px solid rgba(0,0,0,0.06); }

/* Typography */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.bg-paper .eyebrow { color: var(--brand); }
.bg-dark .eyebrow { color: var(--accent); }

h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 32px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 16px;
}
p { margin-bottom: 1.25em; }
p:last-child { margin-bottom: 0; }

.highlight { color: var(--brand); }
.bg-dark .highlight { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.btn-primary {
  background: var(--accent);
  color: var(--bg-dark);
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--text-main);
  color: var(--text-main);
}
.bg-dark .btn-secondary {
  border-color: var(--bg-paper);
  color: var(--bg-paper);
}

/* Layout Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: var(--gap);
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}
@media (max-width: 768px) {
  .hero-layout { grid-template-columns: 1fr; }
  .nav-list { display: none; }
}

/* Cards & Panels */
.card {
  border-radius: var(--radius-card);
  padding: 24px;
  transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-2px); }
.panel {
  background: var(--bg-dark);
  border-radius: 12px;
  padding: 32px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.bg-paper .panel { background: #f4f5f8; }

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}
.data-table th, .data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.data-table th { font-weight: 600; width: 40%; }
.bg-dark .data-table th, .bg-dark .data-table td { border-bottom-color: rgba(255,255,255,0.1); }

/* FAQ */
.faq details {
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: 16px 0;
}
.bg-dark .faq details { border-bottom-color: rgba(255,255,255,0.1); }
.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-weight: 400;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 12px; color: inherit; opacity: 0.9; }

/* SVG Animation Utilities */
.svg-container {
  width: 100%;
  height: auto;
  max-width: 100%;
}
.draw-line {
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.float-group { animation: float 6s ease-in-out infinite; }
.blink-group { animation: blink 3s ease-in-out infinite; }
.slide-in { animation: slideIn 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.pulse-dots circle { animation: pulseDots 2.5s ease-in-out infinite alternate; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes blink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
@keyframes slideIn {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes pulseDots {
  0% { r: 2; opacity: 0.5; }
  100% { r: 3.5; opacity: 1; }
}
@keyframes drawLine {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
.draw-line { animation: drawLine 3s ease-in-out infinite alternate; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .draw-line, .float-group, .blink-group, .slide-in, .pulse-dots circle {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Footer */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 14px;
  color: rgba(21, 23, 35, 0.7);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 32px;
}
.footer-col h4 {
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-main);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.06);
  text-align: center;
}
