*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--speed) ease, color var(--speed) ease;
}
body.nav-open, body.modal-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; color: var(--ink-2); }
strong { font-weight: 700; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.03; letter-spacing: -0.04em; text-wrap: balance; }
h1 { font-size: var(--text-hero); font-weight: 760; }
h2 { font-size: var(--text-3xl); font-weight: 730; }
h3 { font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.025em; }
h4 { font-size: 1rem; font-weight: 700; letter-spacing: -0.015em; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 75%, transparent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--dark);
  color: #fff;
  transition: transform var(--speed) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(var(--container), calc(100% - var(--gutter) - var(--gutter))); margin-inline: auto; }
.container--wide { width: min(var(--container-wide), calc(100% - var(--gutter) - var(--gutter))); margin-inline: auto; }
.section { position: relative; padding-block: var(--space-12); }
.section--compact { padding-block: var(--space-10); }
.section--dark { color: #f4f8f2; background: var(--dark); }
.section--dark p, .section--dark .muted { color: #b8bfd1; }
.section--soft { background: var(--bg-soft); }
.section--surface { background: var(--surface); }
.section-anchor { scroll-margin-top: 96px; }

.stack { display: flex; flex-direction: column; gap: var(--stack-gap, 16px); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster-gap, 12px); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 7vw, 90px); align-items: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--green);
  font-size: var(--text-xs);
  font-weight: 780;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.section--dark .eyebrow { color: var(--accent); }
.lede { max-width: 740px; margin-top: 22px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.muted { color: var(--muted); }
.small { font-size: var(--text-sm); }
.tiny { font-size: var(--text-xs); }
.text-center { text-align: center; }
.text-accent { color: var(--accent-strong); }
.text-gradient {
  color: transparent;
  background: linear-gradient(110deg, var(--ink) 10%, var(--green) 72%);
  background-clip: text;
  -webkit-background-clip: text;
}
.section--dark .text-gradient { background-image: linear-gradient(110deg, #fff 10%, var(--accent) 75%); }
.max-42 { max-width: 42rem; }
.max-55 { max-width: 55rem; }
.mx-auto { margin-inline: auto; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 40px; }
.mt-10 { margin-top: 64px; }

.icon {
  width: 1.2em;
  height: 1.2em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }
.icon-box {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  color: var(--accent-ink);
  background: var(--accent);
}
.icon-box .icon { width: 22px; height: 22px; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--accent-ink);
  background: var(--accent);
  box-shadow: var(--shadow-xs);
  font-weight: 720;
  line-height: 1;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), background var(--speed) ease, border-color var(--speed) ease;
}
.button:hover { transform: translateY(-2px); background: var(--accent-strong); box-shadow: var(--shadow-sm); }
.button:active { transform: translateY(0); }
.button--secondary { color: var(--ink); background: var(--surface); border-color: var(--line); }
.button--secondary:hover { background: var(--surface-2); border-color: var(--line-strong); }
.button--dark { color: #f7f8fb; background: var(--dark); }
.button--dark:hover { background: var(--dark-3); }
.button--ghost { min-height: 40px; padding: 8px 10px; color: var(--ink-2); background: transparent; box-shadow: none; }
.button--ghost:hover { background: var(--surface-2); box-shadow: none; }
.button--small { min-height: 40px; padding: 10px 15px; font-size: var(--text-sm); }
.button--wide { width: 100%; }
.button[disabled],
.button[aria-disabled="true"] { cursor: not-allowed; opacity: .55; pointer-events: none; transform: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 720; }
.link-arrow .icon { transition: transform var(--speed) var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.section--dark .link-arrow { color: #fff; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  font-size: var(--text-sm);
  font-weight: 650;
}
.pill--accent { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 22%, var(--surface)); }
.pill--success { color: #08774a; border-color: #a9e7c8; background: var(--green-soft); }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 16%, transparent); }

.surface-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 44px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  :root { --space-12: 76px; --space-11: 64px; --space-10: 52px; }
  h1 { letter-spacing: -0.055em; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .button { min-height: 46px; }
  .cluster--mobile-stack { align-items: stretch; flex-direction: column; }
  .cluster--mobile-stack > * { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
