:root {
  --color-dark: #19102D;
  --color-paper: #F4F3F7;
  --color-text: #191523;
  --color-brand: #5214EB;
  --color-accent: #D66EED;
  
  --radius-card: 0;
  --radius-btn: 0;
  --card-border: 0;
  --card-shadow: none;
  
  --section-y: clamp(5rem, 10vw, 9rem);
  --gap: clamp(1.5rem, 3vw, 2.5rem);
  --content-max: 1280px;
  
  --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;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-text);
  background-color: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gap);
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  max-width: 38em;
}

.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.75rem;
  color: var(--color-brand);
}

.bg-dark .eyebrow {
  color: var(--color-accent);
}

/* Layout Sections */
section {
  padding-block: var(--section-y);
}

.section-grid {
  display: grid;
  gap: var(--gap);
  align-items: center;
}

@media (min-width: 900px) {
  .section-grid.two-col {
    grid-template-columns: 1fr 1fr;
  }
}

/* Header & Footer */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(244, 243, 247, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(25, 21, 35, 0.08);
  padding-block: 16px;
}

.bg-dark .site-header {
  background-color: rgba(25, 16, 45, 0.95);
  border-bottom-color: rgba(214, 110, 237, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.brand-logo {
  height: 32px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  padding-block: 8px;
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--color-brand);
}

.bg-dark .main-nav a:hover,
.bg-dark .main-nav a[aria-current="page"] {
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding-inline: 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-btn);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-dark);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(214, 110, 237, 0.25);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-text);
}

.bg-dark .btn-secondary {
  color: var(--color-paper);
  border-color: var(--color-paper);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* Cards & Panels */
.card {
  background-color: var(--color-paper);
  border: var(--card-border) solid transparent;
  box-shadow: var(--card-shadow);
  padding: var(--gap);
  border-radius: var(--radius-card);
}

.card.dark-surface {
  background-color: var(--color-dark);
  color: var(--color-paper);
}

.card.light-on-dark {
  background-color: var(--color-paper);
  color: var(--color-text);
  border-radius: var(--radius-card);
}

.panel {
  background-color: var(--color-dark);
  padding: var(--gap);
  border-radius: var(--radius-card);
  position: relative;
  overflow: hidden;
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-block: 1.5rem;
  table-layout: auto;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(25, 21, 35, 0.1);
}

.data-table th {
  font-weight: 700;
  color: var(--color-text);
}

.data-table td:first-child {
  font-weight: 700;
  width: 40%;
}

.bg-dark .data-table th,
.bg-dark .data-table td {
  border-bottom-color: rgba(244, 243, 247, 0.1);
  color: #fff;
}

/* FAQ Details */
.faq-item {
  border-bottom: 1px solid rgba(25, 21, 35, 0.1);
  padding-block: 16px;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 24px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-weight: 300;
  font-size: 1.2rem;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 12px;
  color: var(--color-text);
  opacity: 0.9;
}

/* SVG Animations */
.hero-svg {
  width: 100%;
  height: auto;
  max-width: 600px;
  margin-inline: auto;
}

.draw-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: draw-line 6s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

@keyframes draw-line {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

.bubble-float {
  animation: float 5s ease-in-out infinite alternate;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}

.star-twinkle {
  animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.2; }
  to { opacity: 1; }
}

.notification-slide {
  animation: slide-in 7s ease-in-out infinite alternate;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes slide-in {
  from { transform: translateX(20px); opacity: 0.6; }
  to { transform: translateX(0); opacity: 1; }
}

.pulse-dot {
  animation: pulse 3s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes pulse {
  0%, 100% { r: 3; opacity: 1; }
  50% { r: 5; opacity: 0.6; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .draw-line, .bubble-float, .star-twinkle, .notification-slide, .pulse-dot {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .main-nav {
    gap: 16px;
  }
  .section-grid.two-col {
    grid-template-columns: 1fr;
  }
  .hide-mobile {
    display: none;
  }
}
