html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  padding: 0;
}

:root {
  --chart-tick-max: 10;
  --chart-legend-position: top;
  --chart-point-radius: 2;
  --chart-point-hit-radius: 8;
  --chart-bar-thickness: 12;
  --chart-font-size: 12;
  --chart-axis-title-size: 12;
  --chart-legend-box: 12;
  --chart-legend-padding: 8;
  --chart-tick-rotation: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

#main {
  scroll-margin-top: 140px;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid rgba(89, 240, 181, 0.6);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: 14px;
  left: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  transform: translateY(-200%);
  transition: transform 0.2s ease;
  z-index: 20;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

img,
svg {
  max-width: 100%;
  height: auto;
}

canvas {
  display: block;
  max-width: 100%;
}

header {
  padding: 22px clamp(18px, 4vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

button.subtle[data-active="true"] {
  border-color: var(--accent);
  color: var(--text);
}

.header-actions .cta,
.header-actions .subtle {
  overflow-wrap: normal;
  word-break: normal;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  padding: 6px;
  background: #ffffff;
  object-fit: contain;
  box-shadow: 0 0 18px rgba(89, 240, 181, 0.4), 0 0 22px rgba(86, 178, 255, 0.26);
}

nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

nav a {
  padding: 8px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  color: var(--muted);
}

@media (hover: hover) {
  nav a:hover {
    background: rgba(89, 240, 181, 0.12);
    border-color: rgba(89, 240, 181, 0.28);
    color: var(--text);
  }
}

nav a:focus-visible {
  outline: none;
  border-color: rgba(89, 240, 181, 0.6);
  box-shadow: 0 0 0 2px rgba(89, 240, 181, 0.25);
}
main {
  padding: clamp(18px, 4vw, 36px);
  max-width: 1600px;
  margin: 0 auto 80px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

section[id] {
  scroll-margin-top: 110px;
}

.surface {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 32px);
  box-shadow: var(--shadow);
}
h1 {
  margin: 12px 0 10px;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.15;
  text-wrap: balance;
}

h2 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.3px;
  line-height: 1.2;
  text-wrap: balance;
}

p.lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 8px 0 18px;
  max-width: 620px;
}
.muted {
  color: var(--muted);
}

.section {
  display: grid;
  gap: clamp(16px, 2vw, 22px);
}

.section > * {
  min-width: 0;
}

footer {
  padding: 40px clamp(18px, 4vw, 36px);
  color: var(--muted);
  background: rgba(4, 6, 12, 0.9);
  border-top: 1px solid var(--border);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .cta,
  .card,
  .hero-stack,
  .logo-tile {
    transition: none;
  }
  .pill .pulse {
    animation: none;
  }
}
