:root {
  --ink: #07121f;
  --ink-2: #132337;
  --ink-soft: #516173;
  --paper: #f7fbff;
  --paper-2: #edf7ff;
  --paper-3: #e6f2fb;
  --blue: #4eb7ff;
  --blue-2: #1b85e5;
  --mint: #9cf2d1;
  --mint-2: #37c997;
  --amber: #f5c65f;
  --line: rgba(7, 18, 31, 0.11);
  --line-strong: rgba(7, 18, 31, 0.22);
  --max: 1200px;
  --header: 78px;
  --radius: 28px;
  --font-display: "Inter", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open, body.drawer-open { overflow: hidden; }
body.large-text { font-size: 112.5%; }
body.high-contrast {
  --ink: #000;
  --ink-2: #000;
  --ink-soft: #151515;
  --paper: #fff;
  --paper-2: #f1f1f1;
  --paper-3: #e8e8e8;
  --blue: #005fcc;
  --blue-2: #003f91;
  --mint: #007a52;
  --mint-2: #005b3e;
  --line: rgba(0,0,0,.28);
  --line-strong: rgba(0,0,0,.54);
}
body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img, svg { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; border-radius: 10px; }
::selection { background: rgba(78,183,255,.26); }

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  background: var(--ink);
  color: white;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 44px), var(--max)); margin-inline: auto; }
.top-banner {
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 8px 18px;
  background: var(--ink);
  color: white;
  font-size: .86rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.top-banner a { color: var(--mint); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,251,255,.94);
  border-bottom: 1px solid var(--line);
}
.nav {
  width: min(calc(100% - 44px), var(--max));
  height: var(--header);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-family: var(--font-display);
  letter-spacing: -0.05em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff, var(--mint) 42%, var(--blue));
  color: var(--ink);
  font-size: .95rem;
}
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-menu a, .nav-menu button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink-2);
  cursor: pointer;
  font-size: .92rem;
  font-weight: 760;
}
.nav-menu a:hover, .nav-menu button:hover, .nav-menu a[aria-current="page"] { color: var(--blue-2); }
.menu-button { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.menu-button span { display: block; width: 24px; height: 2px; margin: 6px auto; background: currentColor; border-radius: 999px; }
.menu-button.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-button.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 64px;
  background:
    radial-gradient(circle at 75% 12%, rgba(78,183,255,.22), transparent 30rem),
    radial-gradient(circle at 6% 72%, rgba(156,242,209,.28), transparent 26rem),
    linear-gradient(180deg, #f8fcff, #eaf6ff 74%, var(--paper));
}
.hero-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 48px;
  align-items: center;
}
.kicker {
  margin: 0;
  color: var(--blue-2);
  font-family: var(--font-display);
  font-size: .78rem;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--font-display); }
.hero h1 {
  margin: 20px 0 0;
  max-width: 780px;
  font-size: clamp(3.1rem, 6.2vw, 6.6rem);
  line-height: .92;
  letter-spacing: -.075em;
  font-weight: 950;
}
.hero-lede {
  max-width: 610px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 1.35vw, 1.22rem);
  line-height: 1.72;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 21px;
  border-radius: 999px;
  font-weight: 850;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: white; }
.button-primary:hover { background: var(--blue-2); }
.button-secondary { background: white; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.button-secondary:hover { background: var(--paper-2); }

.stack-card {
  position: relative;
  min-height: 560px;
  border-radius: 42px;
  background: #07121f;
  color: white;
  padding: 24px;
  overflow: hidden;
}
.stack-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(78,183,255,.34), transparent 26%),
    radial-gradient(circle at 68% 70%, rgba(156,242,209,.18), transparent 26%);
}
.stack-label { position: relative; z-index: 2; display: flex; justify-content: space-between; color: rgba(255,255,255,.68); font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.orbit-system { position: absolute; inset: 86px 28px 34px; z-index: 1; }
.orbit-ring { position: absolute; inset: 12%; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; animation: slowSpin 32s linear infinite; }
.orbit-ring:nth-child(2) { inset: 24%; animation-direction: reverse; animation-duration: 42s; }
.orbit-core {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: 145px; height: 145px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mint), var(--blue));
  color: #07121f;
  display: grid;
  place-items: center;
  text-align: center;
  font: 950 1.1rem/1.05 var(--font-display);
  letter-spacing: -.04em;
}
.node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 116px;
  min-height: 78px;
  padding: 13px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  text-align: center;
  font-weight: 900;
  font-family: var(--font-display);
  font-size: .9rem;
  letter-spacing: -.03em;
  transition: transform .2s ease, background .2s ease;
}
.node:hover, .node:focus-visible { transform: translateY(-4px); background: var(--mint); }
.node::after {
  content: "Click for deeper analysis";
  position: absolute;
  left: 50%; bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(6px);
  width: max-content;
  max-width: 220px;
  background: white;
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 850;
  font-size: .72rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.node:hover::after, .node:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.n1 { left: 6%; top: 14%; }
.n2 { right: 4%; top: 18%; }
.n3 { right: 2%; bottom: 28%; }
.n4 { right: 34%; bottom: 3%; }
.n5 { left: 6%; bottom: 20%; }
.n6 { left: 36%; top: 2%; }

.section { padding: 88px 0; }
.section.alt { background: var(--paper-2); }
.section-head {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 54px;
  align-items: start;
  margin-bottom: 44px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4.2vw, 4.4rem);
  line-height: 1;
  letter-spacing: -.065em;
  font-weight: 950;
}
.section-head p, .body-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.78;
}
.body-copy p + p { margin-top: 18px; }
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.module-card {
  position: relative;
  min-height: 248px;
  padding: 24px;
  border-radius: 30px;
  background: white;
  overflow: hidden;
  transition: transform .22s ease, background .22s ease;
}
.module-card:hover { transform: translateY(-5px); background: #fafffd; }
.module-card .number { color: var(--blue-2); font: 950 .78rem var(--font-display); letter-spacing: .14em; }
.module-card h3 { margin: 52px 0 0; font-size: clamp(1.35rem, 2.2vw, 2.1rem); line-height: 1.05; letter-spacing: -.055em; }
.module-card p { margin: 14px 0 0; color: var(--ink-soft); line-height: 1.65; }
.module-card .hint { position: absolute; right: 18px; top: 18px; color: var(--mint-2); font-size: .78rem; font-weight: 850; opacity: 0; transform: translateY(6px); transition: .18s ease; }
.module-card:hover .hint, .module-card:focus-visible .hint { opacity: 1; transform: translateY(0); }

.split-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.benefit-panel { padding: 34px; border-radius: 34px; background: var(--paper-2); }
.benefit-panel:nth-child(2) { background: var(--ink); color: white; }
.benefit-panel h3 { margin: 0 0 24px; font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -.06em; line-height: 1; }
.benefit-panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.benefit-panel li { color: inherit; opacity: .84; line-height: 1.55; }

.start-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.start-item { padding: 24px; border-radius: 28px; background: white; min-height: 200px; transition: transform .2s ease; }
.start-item:hover { transform: translateY(-4px); }
.start-item span { color: var(--blue-2); font-weight: 900; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.start-item h3 { margin: 40px 0 0; font-size: 1.35rem; letter-spacing: -.045em; }
.start-item p { margin: 12px 0 0; color: var(--ink-soft); line-height: 1.6; }

.page-hero { padding: 86px 0 58px; background: linear-gradient(180deg, #f8fcff, var(--paper-2)); }
.page-hero h1 { margin: 18px 0 0; max-width: 900px; font-size: clamp(2.8rem, 5.4vw, 5.8rem); line-height: .96; letter-spacing: -.074em; font-weight: 950; }
.page-lede { margin: 24px 0 0; max-width: 720px; color: var(--ink-soft); font-size: 1.14rem; line-height: 1.76; }
.detail-layout { display: grid; grid-template-columns: 280px 1fr; gap: 64px; align-items: start; }
.detail-nav { position: sticky; top: calc(var(--header) + 28px); display: grid; gap: 10px; }
.detail-nav a { padding: 12px 0; color: var(--ink-soft); font-weight: 850; border-bottom: 1px solid var(--line); }
.detail-nav a:hover { color: var(--blue-2); }
.detail-content { display: grid; gap: 54px; }
.detail-block { scroll-margin-top: 110px; }
.detail-block h2 { margin: 0; font-size: clamp(1.9rem, 3.2vw, 3.5rem); line-height: 1; letter-spacing: -.06em; }
.detail-block p { max-width: 820px; margin: 18px 0 0; color: var(--ink-soft); line-height: 1.82; font-size: 1.02rem; }
.detail-block ul { max-width: 820px; margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.detail-block li { padding-left: 24px; position: relative; color: var(--ink-soft); line-height: 1.7; }
.detail-block li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.diagram-box { margin-top: 24px; padding: 26px; border-radius: 30px; background: white; }
.pipeline-diagram { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.pipeline-diagram a { min-height: 94px; display: grid; align-content: center; gap: 6px; padding: 14px; border-radius: 22px; background: var(--paper-2); text-align: center; font-weight: 900; transition: .18s ease; }
.pipeline-diagram a:hover { background: var(--mint); transform: translateY(-3px); }
.pipeline-diagram span { color: var(--blue-2); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }

.footer { padding: 46px 0; background: var(--ink); color: white; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer p { margin: 0; color: rgba(255,255,255,.7); font-size: .95rem; }
.footer .brand-mark { background: white; color: var(--ink); }
.footer a:last-child { color: var(--mint); font-weight: 850; }

.settings-panel { position: fixed; inset: 0; z-index: 300; display: none; }
.settings-panel.is-open { display: block; }
.settings-backdrop { position: absolute; inset: 0; background: rgba(7,18,31,.56); }
.settings-drawer { position: absolute; top: 18px; right: 18px; width: min(430px, calc(100% - 36px)); background: white; border-radius: 30px; padding: 24px; color: var(--ink); }
.settings-header { display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.settings-header h2 { margin: 0; font-size: 1.6rem; letter-spacing: -.05em; }
.close-button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--paper-2); cursor: pointer; font-size: 1.4rem; }
.settings-controls { display: grid; gap: 12px; margin-top: 22px; }
.setting-toggle { width: 100%; min-height: 82px; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 15px 0; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.setting-toggle:last-child { border-bottom: 1px solid var(--line); }
.setting-toggle span { display: grid; gap: 6px; }
.setting-toggle small { color: var(--ink-soft); line-height: 1.5; }
.setting-toggle b { position: relative; flex: 0 0 auto; width: 52px; height: 30px; border-radius: 999px; background: var(--paper-3); }
.setting-toggle b::after { content: ""; position: absolute; left: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink-soft); }
.setting-toggle[aria-pressed="true"] b::after { transform: translateX(22px); background: var(--mint-2); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes slowSpin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .menu-button { display: block; }
  .nav-menu {
    position: fixed;
    top: var(--header);
    left: 22px;
    right: 22px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 20px;
    border-radius: 24px;
    background: white;
    box-shadow: 0 20px 70px rgba(7,18,31,.18);
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a, .nav-menu button { padding: 15px 0; border-bottom: 1px solid var(--line); text-align: left; }
  .hero-grid, .section-head, .detail-layout { grid-template-columns: 1fr; }
  .detail-nav { position: static; grid-template-columns: repeat(2, 1fr); }
  .module-grid, .start-grid { grid-template-columns: repeat(2, 1fr); }
  .split-benefits { grid-template-columns: 1fr; }
  .pipeline-diagram { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  :root { --header: 70px; }
  .container, .nav { width: min(calc(100% - 28px), var(--max)); }
  .top-banner { font-size: .78rem; }
  .hero, .page-hero { padding: 54px 0 50px; }
  .hero h1 { font-size: clamp(2.75rem, 13vw, 4.7rem); }
  .page-hero h1 { font-size: clamp(2.5rem, 12vw, 4.3rem); }
  .hero-actions { width: 100%; }
  .button { width: 100%; }
  .stack-card { min-height: 500px; border-radius: 30px; padding: 18px; }
  .node { width: 98px; min-height: 66px; font-size: .78rem; }
  .orbit-core { width: 116px; height: 116px; font-size: .94rem; }
  .module-grid, .start-grid, .pipeline-diagram { grid-template-columns: 1fr; }
  .section { padding: 66px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
