:root {
  --ink: #13241e;
  --ink-soft: #52605b;
  --forest: #103a2d;
  --forest-deep: #092a21;
  --forest-mid: #1c5644;
  --lime: #d9f99d;
  --lime-bright: #c8ff66;
  --cream: #f6f6ee;
  --paper: #fffdf6;
  --white: #ffffff;
  --coral: #ff7d66;
  --purple: #6957b8;
  --line: #dce2da;
  --shadow: 0 24px 70px rgba(18, 48, 38, 0.13);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  color: var(--forest-deep);
  background: var(--lime-bright);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--forest);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

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

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 76px;
  border-bottom: 1px solid transparent;
  background: rgba(255, 253, 246, 0.82);
  backdrop-filter: blur(16px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  border-color: rgba(18, 48, 38, 0.09);
  box-shadow: 0 10px 36px rgba(18, 48, 38, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 22px;
  font-weight: 820;
  letter-spacing: -0.05em;
}

.brand > span > span {
  color: var(--forest-mid);
  font-weight: 520;
}

.brand-mark {
  width: 35px;
  height: 35px;
  overflow: visible;
}

.brand-mark > path:first-child {
  fill: var(--lime);
  stroke: var(--forest);
  stroke-width: 1.7;
}

.brand-mark > path:nth-child(2) {
  fill: rgba(16, 58, 45, 0.16);
  stroke: var(--forest);
  stroke-width: 1.4;
}

.brand-mark circle {
  fill: var(--coral);
}

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.main-nav a {
  position: relative;
  color: #394b44;
  font-size: 14px;
  font-weight: 650;
  transition: color 0.2s ease;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--forest);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--forest);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.main-nav .nav-github {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 10px 16px;
  color: var(--white);
  background: var(--forest);
  border-radius: 99px;
}

.main-nav .nav-github::after {
  display: none;
}

.main-nav .nav-github:hover {
  color: var(--lime);
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
}

.language-toggle {
  display: inline-flex;
  min-width: 112px;
  height: 42px;
  gap: 4px;
  padding: 4px 5px 4px 9px;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(16, 58, 45, 0.24);
  border-radius: 99px;
  font: inherit;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  border-color: var(--forest);
  box-shadow: 0 5px 18px rgba(16, 58, 45, 0.13);
}

.language-toggle:focus-visible {
  outline: 3px solid rgba(184, 230, 91, 0.65);
  outline-offset: 2px;
}

.language-globe {
  width: 20px;
  font-size: 14px;
  line-height: 1;
}

.language-option {
  min-width: 27px;
  padding: 5px 5px 4px;
  color: #64736c;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.04em;
  line-height: 1;
  transition: color 0.2s ease, background 0.2s ease;
}

.language-option.active {
  color: var(--white);
  background: var(--forest);
}

.language-separator {
  color: #a5afa9;
  font-size: 10px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px 0;
  background: var(--forest);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  position: relative;
  min-height: 800px;
  padding: 170px 0 100px;
  overflow: hidden;
  background:
    linear-gradient(rgba(16, 58, 45, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 58, 45, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 60px 60px;
}

.hero::after {
  position: absolute;
  right: -180px;
  bottom: -330px;
  width: 650px;
  height: 650px;
  content: "";
  border: 1px solid rgba(16, 58, 45, 0.09);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(16, 58, 45, 0.025),
    0 0 0 140px rgba(16, 58, 45, 0.018);
}

.hero-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  pointer-events: none;
  filter: blur(8px);
  border-radius: 50%;
  opacity: 0.7;
}

.hero-glow-one {
  top: 30px;
  right: 7%;
  background: radial-gradient(circle, rgba(217, 249, 157, 0.74), rgba(217, 249, 157, 0));
}

.hero-glow-two {
  top: 420px;
  left: -180px;
  background: radial-gradient(circle, rgba(255, 125, 102, 0.16), rgba(255, 125, 102, 0));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 70px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 8px 13px;
  color: var(--forest);
  background: rgba(217, 249, 157, 0.55);
  border: 1px solid rgba(16, 58, 45, 0.15);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #3cb371;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(60, 179, 113, 0.15);
}

.hero h1 {
  max-width: 680px;
  margin: 25px 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(50px, 5.4vw, 78px);
  font-weight: 500;
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.hero h1 em {
  position: relative;
  z-index: 1;
  color: var(--forest-mid);
  font-weight: 500;
}

.hero h1 em::after {
  position: absolute;
  z-index: -1;
  right: -4px;
  bottom: 0.05em;
  left: -3px;
  height: 0.22em;
  content: "";
  background: var(--lime);
  border-radius: 99px 4px 99px 7px;
  transform: rotate(-1deg);
}

.hero-lead {
  max-width: 590px;
  margin: 0 0 34px;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions,
.final-cta-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 760;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--forest);
  box-shadow: 0 14px 28px rgba(16, 58, 45, 0.2);
}

.button-primary:hover {
  box-shadow: 0 18px 35px rgba(16, 58, 45, 0.26);
}

.button-secondary {
  border-color: rgba(16, 58, 45, 0.2);
  background: rgba(255, 255, 255, 0.48);
}

.button-secondary:hover {
  background: var(--white);
}

.hero-meta {
  margin: 22px 0 0;
  color: #73807b;
  font-size: 13px;
}

.hero-visual {
  position: relative;
  min-height: 530px;
}

.radar-card {
  position: absolute;
  top: 16px;
  right: 24px;
  width: min(100%, 480px);
  padding: 22px 22px 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 58, 45, 0.13);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transform: rotate(1.5deg);
}

.radar-card::before {
  position: absolute;
  top: -90px;
  right: -90px;
  width: 210px;
  height: 210px;
  content: "";
  background: var(--lime);
  filter: blur(40px);
  border-radius: 50%;
  opacity: 0.32;
}

.radar-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 4px;
  color: var(--forest);
  font-size: 14px;
  font-weight: 720;
}

.live-label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.live-label i {
  width: 7px;
  height: 7px;
  background: var(--coral);
  border-radius: 50%;
}

.radar {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 auto;
}

.radar-grid polygon,
.radar-grid line {
  fill: none;
  stroke: #dce3dd;
  stroke-width: 1;
}

.radar-control {
  fill: rgba(105, 87, 184, 0.11);
  stroke: var(--purple);
  stroke-dasharray: 5 5;
  stroke-width: 2.2;
}

.radar-exposed {
  fill: rgba(255, 125, 102, 0.18);
  stroke: var(--coral);
  stroke-linejoin: round;
  stroke-width: 3;
}

.radar-points circle {
  fill: var(--paper);
  stroke: var(--coral);
  stroke-width: 3;
}

.radar-labels text {
  fill: #43524c;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 720;
}

.radar-legend {
  display: flex;
  gap: 22px;
  justify-content: center;
  color: #5d6a65;
  font-size: 12px;
}

.radar-legend span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.exposed {
  background: var(--coral);
}

.legend-dot.control {
  background: var(--purple);
}

.floating-stat {
  position: absolute;
  z-index: 2;
  display: flex;
  min-width: 114px;
  padding: 12px 16px;
  align-items: baseline;
  color: var(--forest);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(16, 58, 45, 0.12);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(16, 58, 45, 0.12);
  backdrop-filter: blur(8px);
}

.floating-stat strong {
  margin-right: 7px;
  font-family: Georgia, serif;
  font-size: 29px;
  line-height: 1;
}

.floating-stat span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stat-one {
  top: 40px;
  left: -12px;
  animation: float 5s ease-in-out infinite;
}

.stat-two {
  right: -18px;
  bottom: 64px;
  animation: float 5s 0.8s ease-in-out infinite;
}

.stat-three {
  bottom: 6px;
  left: 26px;
  animation: float 5s 1.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.section {
  padding: 112px 0;
}

.kicker {
  margin: 0 0 12px;
  color: var(--forest-mid);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker-light {
  color: var(--lime);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 52px;
}

.section-heading h2,
.install-copy h2,
.reference-copy > h2,
.final-cta h2 {
  margin: 0 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.2vw, 58px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.section-heading > p:last-child,
.install-copy > p,
.reference-copy > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.7;
}

.overview {
  background: var(--cream);
  border-top: 1px solid rgba(16, 58, 45, 0.08);
  border-bottom: 1px solid rgba(16, 58, 45, 0.08);
}

.workflow {
  display: grid;
  grid-template-columns: 1fr 38px 1fr 38px 1fr;
  gap: 12px;
  align-items: center;
}

.workflow-card {
  position: relative;
  min-height: 280px;
  padding: 34px 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.workflow-card:hover {
  border-color: rgba(16, 58, 45, 0.3);
  box-shadow: 0 20px 50px rgba(16, 58, 45, 0.09);
  transform: translateY(-5px);
}

.workflow-card .step-number {
  position: absolute;
  top: 20px;
  right: 22px;
  color: #9aa59f;
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

.workflow-card svg {
  width: 52px;
  height: 52px;
  margin-bottom: 25px;
  padding: 8px;
  overflow: visible;
  background: var(--lime);
  border-radius: 14px;
}

.workflow-card svg rect,
.workflow-card svg circle,
.workflow-card svg polygon {
  fill: none;
  stroke: var(--forest);
  stroke-width: 1.7;
}

.workflow-card svg path {
  fill: none;
  stroke: var(--coral);
  stroke-linecap: round;
  stroke-width: 2.2;
}

.workflow-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.workflow-card p {
  margin: 0;
  color: var(--ink-soft);
}

.workflow-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  color: var(--forest);
  border: 1px solid rgba(16, 58, 45, 0.18);
  border-radius: 50%;
  place-items: center;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 40px;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
}

.metric-strip > div {
  display: flex;
  gap: 5px;
  padding: 0 25px;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.metric-strip > div:first-child {
  padding-left: 0;
}

.metric-strip > div:last-child {
  border-right: 0;
}

.metric-strip strong {
  color: var(--forest);
  font-size: 16px;
}

.metric-strip span {
  color: #7a8681;
  font-size: 12px;
}

.section-dark {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--forest-deep);
}

.section-dark::before {
  position: absolute;
  top: -220px;
  left: -80px;
  width: 560px;
  height: 560px;
  content: "";
  background: radial-gradient(circle, rgba(200, 255, 102, 0.15), rgba(200, 255, 102, 0));
  border-radius: 50%;
}

.section-dark::after {
  position: absolute;
  right: -90px;
  bottom: -330px;
  width: 680px;
  height: 680px;
  content: "";
  border: 1px solid rgba(217, 249, 157, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(217, 249, 157, 0.025), 0 0 0 140px rgba(217, 249, 157, 0.018);
}

.install-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 85px;
  align-items: center;
}

.install-copy > p {
  color: rgba(255, 255, 255, 0.66);
}

.requirements {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.requirements > div {
  display: flex;
  gap: 2px;
  padding: 18px 12px;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.requirements > div:first-child {
  padding-left: 0;
}

.requirements > div:last-child {
  border-right: 0;
}

.requirements span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.requirements strong {
  font-size: 14px;
}

.code-window {
  overflow: hidden;
  color: #e9f5ee;
  background: #071d16;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.28);
}

.code-window-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 64px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.045);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots i {
  width: 9px;
  height: 9px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.window-dots i:first-child { background: var(--coral); }
.window-dots i:nth-child(2) { background: #f1c75b; }
.window-dots i:nth-child(3) { background: #64c982; }

.code-tabs,
.example-tabs {
  display: inline-flex;
  padding: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 99px;
}

.code-tab,
.example-tab {
  padding: 8px 15px;
  color: rgba(255, 255, 255, 0.56);
  background: transparent;
  border: 0;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.code-tab.active {
  color: var(--forest-deep);
  background: var(--lime);
}

.copy-button {
  justify-self: end;
  padding: 7px 11px;
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 720;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.copy-button:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.copy-button.copied {
  color: var(--lime-bright);
  border-color: rgba(200, 255, 102, 0.45);
}

.code-panel pre,
.example-code pre,
.citation-card pre {
  margin: 0;
  white-space: pre-wrap;
  tab-size: 2;
}

.code-panel pre {
  min-height: 250px;
  padding: 45px 40px;
  font-size: 15px;
  line-height: 1.9;
}

pre,
code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.comment { color: #6b8d7e; }
.function { color: #c8ff66; }
.string { color: #ffad9e; }
.operator { color: #86ccff; }
.number { color: #d4b9ff; }

.code-status {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 49px;
  padding: 0 30px;
  color: #6f9484;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-family: monospace;
  font-size: 11px;
}

.code-status .prompt {
  color: var(--lime-bright);
  font-size: 17px;
}

.cursor {
  width: 6px;
  height: 13px;
  background: var(--lime-bright);
  animation: blink 1.1s steps(2) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.docs {
  background: var(--paper);
}

.function-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.function-group {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 50px rgba(16, 58, 45, 0.05);
}

.function-group-heading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}

.function-icon {
  display: grid;
  width: 48px;
  height: 48px;
  color: var(--forest);
  background: var(--lime);
  border-radius: 14px;
  font-family: Georgia, serif;
  font-size: 22px;
  place-items: center;
}

.function-icon-alt {
  color: #40347c;
  background: #e3defd;
}

.function-group-heading p {
  margin: 0 0 2px;
  color: #8a958f;
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.function-group-heading h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.function-badge {
  padding: 6px 9px;
  color: var(--forest);
  background: #ecf8d9;
  border-radius: 7px;
  font-family: monospace;
  font-size: 11px;
  font-weight: 720;
}

.function-badge-alt {
  color: #4c3e91;
  background: #eeeafd;
}

.function-list {
  padding: 7px 0;
}

.function-row {
  display: grid;
  grid-template-columns: 155px 1fr auto;
  gap: 15px;
  align-items: center;
  padding: 19px 0;
  border-bottom: 1px solid #edf0eb;
}

.function-row:last-child {
  border-bottom: 0;
}

.function-row > code {
  color: var(--forest);
  font-size: 12px;
  font-weight: 720;
}

.function-row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.function-row p code {
  color: var(--purple);
  font-size: 0.95em;
}

.function-row > span {
  color: #8a958f;
  font-family: monospace;
  font-size: 10px;
}

.function-note {
  margin: 5px 0 0;
  padding: 13px 15px;
  color: #6b5f35;
  background: #fff8dc;
  border-radius: 10px;
  font-size: 12px;
}

.datasets {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 40px;
  align-items: center;
  margin-top: 24px;
  padding: 30px;
  background: #eef5e8;
  border: 1px solid #dbe7d3;
  border-radius: var(--radius-md);
}

.datasets .kicker {
  margin-bottom: 6px;
}

.datasets h3 {
  max-width: 400px;
  margin: 0;
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.2;
}

.dataset-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.dataset-pills span {
  display: flex;
  padding: 14px;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 58, 45, 0.1);
  border-radius: 12px;
}

.dataset-pills code {
  margin-bottom: 4px;
  color: var(--forest);
  font-size: 13px;
  font-weight: 720;
}

.dataset-pills small {
  color: #748079;
  font-size: 10px;
}

.examples {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading-inline {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
}

.section-heading-inline h2 {
  margin-bottom: 0;
}

.example-tabs {
  background: #e6e9e2;
}

.example-tab {
  color: #77817c;
}

.example-tab.active {
  color: var(--white);
  background: var(--forest);
  box-shadow: 0 5px 14px rgba(16, 58, 45, 0.18);
}

.example-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  min-height: 520px;
  overflow: hidden;
  background: #071d16;
  border: 1px solid rgba(16, 58, 45, 0.18);
  border-radius: 26px;
  box-shadow: 0 26px 70px rgba(16, 58, 45, 0.12);
}

.example-code {
  min-width: 0;
  color: #e9f5ee;
  background: #071d16;
}

.example-code-header,
.citation-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 57px;
  padding: 0 24px;
  color: #78978a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: monospace;
  font-size: 11px;
}

.copy-button-light {
  color: #8ea99e;
}

.example-code pre {
  padding: 32px 36px;
  font-size: 13px;
  line-height: 1.8;
}

.example-output {
  display: flex;
  min-width: 0;
  padding: 25px;
  flex-direction: column;
  color: var(--ink);
  background:
    linear-gradient(rgba(16, 58, 45, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 58, 45, 0.035) 1px, transparent 1px),
    var(--white);
  background-size: 28px 28px;
}

.output-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8b9691;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.12em;
}

.output-label span:last-child {
  color: var(--forest);
  font-family: monospace;
  letter-spacing: 0;
  text-transform: none;
}

.mini-radar-wrap {
  display: grid;
  flex: 1;
  place-items: center;
}

.mini-radar-wrap svg {
  width: min(100%, 330px);
}

.mini-grid polygon,
.mini-grid line {
  fill: none;
  stroke: #d7dfd8;
  stroke-width: 1;
}

.mini-series-one {
  fill: rgba(255, 125, 102, 0.19);
  stroke: var(--coral);
  stroke-width: 2.5;
}

.mini-series-two {
  fill: rgba(105, 87, 184, 0.12);
  stroke: var(--purple);
  stroke-dasharray: 4 4;
  stroke-width: 2;
}

.ibrv2-reference {
  fill: rgba(16, 58, 45, 0.06);
  stroke: #7f9289;
  stroke-dasharray: 4 4;
  stroke-width: 2;
}

.ibrv2-treatment {
  fill: rgba(255, 125, 102, 0.2);
  stroke: var(--coral);
  stroke-width: 2.5;
}

.ibrv2-points {
  fill: var(--coral);
}

.output-legend {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: -5px 0 20px;
  color: #66736d;
  font-size: 11px;
}

.output-legend span {
  display: flex;
  gap: 6px;
  align-items: center;
}

.output-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.series-one { background: var(--coral); }
.series-two { background: var(--purple); }
.series-reference { background: #7f9289; }
.series-treatment { background: var(--coral); }

.output-caption {
  margin: -7px 0 17px;
  color: #738079;
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}

.output-caption code {
  color: var(--forest);
  font-weight: 700;
}

.output-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  background: #f0f4ee;
  border: 1px solid #dfe6dc;
  border-radius: 11px;
  font-size: 10px;
}

.output-summary span {
  color: #8b9691;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.output-summary strong {
  color: var(--forest);
  font-family: monospace;
}

.deviation-chart {
  display: flex;
  flex: 1;
  padding: 45px 12px 30px;
  justify-content: center;
  flex-direction: column;
}

.deviation-axis {
  display: flex;
  margin: 0 46px 14px 44px;
  justify-content: space-between;
  color: #9aa49f;
  font-family: monospace;
  font-size: 9px;
}

.deviation-row {
  display: grid;
  grid-template-columns: 38px 1fr 40px;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
  font-size: 10px;
}

.deviation-row.value-74 { --value: 74%; }
.deviation-row.value-36 { --value: 36%; }
.deviation-row.value-87 { --value: 87%; }
.deviation-row.value-22 { --value: 22%; }
.deviation-row.value-65 { --value: 65%; }

.deviation-row > span {
  color: #66736d;
  font-weight: 720;
}

.deviation-row > i {
  position: relative;
  display: block;
  height: 11px;
  background: linear-gradient(to right, transparent 49.7%, #afb9b3 49.7%, #afb9b3 50.3%, transparent 50.3%);
}

.deviation-row > i::after {
  position: absolute;
  top: 1px;
  left: 50%;
  width: calc(var(--value) - 50%);
  height: 9px;
  content: "";
  background: var(--coral);
  border-radius: 0 5px 5px 0;
}

.deviation-row.negative > i::after {
  right: 50%;
  left: auto;
  width: calc(50% - var(--value));
  background: var(--purple);
  border-radius: 5px 0 0 5px;
}

.deviation-row > b {
  color: var(--coral);
  font-family: monospace;
  font-size: 9px;
  text-align: right;
}

.deviation-row.negative > b {
  color: var(--purple);
}

.references {
  background: var(--paper);
}

.reference-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 70px;
  align-items: center;
}

.reference-copy > p {
  max-width: 540px;
}

.article-card {
  position: relative;
  display: block;
  margin-top: 35px;
  padding: 27px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 50px rgba(16, 58, 45, 0.06);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card::after {
  position: absolute;
  top: -55px;
  right: -55px;
  width: 135px;
  height: 135px;
  content: "";
  background: var(--lime);
  border-radius: 50%;
  opacity: 0.54;
}

.article-card:hover {
  border-color: rgba(16, 58, 45, 0.26);
  box-shadow: 0 24px 60px rgba(16, 58, 45, 0.1);
  transform: translateY(-4px);
}

.article-journal {
  color: var(--forest-mid);
  font-size: 11px;
  font-weight: 790;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-card h3 {
  max-width: 470px;
  margin: 12px 0 12px;
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.25;
}

.article-card > p {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 13px;
}

.article-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.article-meta span {
  padding: 5px 8px;
  color: #738079;
  background: #f0f3ee;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 720;
  text-transform: uppercase;
}

.article-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-top: 22px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 760;
}

.citation-card {
  overflow: hidden;
  color: #dcebe4;
  background: var(--forest-deep);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 70px rgba(16, 58, 45, 0.2);
}

.citation-card pre {
  padding: 30px 34px;
  overflow-x: auto;
  color: #9ab3a8;
  font-size: 12px;
  line-height: 1.75;
}

.copy-button-dark {
  color: #8da49a;
}

.citation-footer {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 17px 25px;
  color: #6f8b7f;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
}

.citation-footer code {
  color: var(--lime);
}

.citation-footer span {
  line-height: 1.45;
}

.final-cta {
  color: var(--white);
  background: var(--forest);
}

.final-cta-inner {
  display: flex;
  min-height: 260px;
  align-items: center;
  justify-content: space-between;
}

.final-cta h2 {
  margin: 0;
  font-size: clamp(42px, 4.5vw, 64px);
}

.button-lime {
  color: var(--forest-deep);
  background: var(--lime-bright);
}

.button-lime:hover {
  box-shadow: 0 14px 28px rgba(200, 255, 102, 0.18);
}

.button-outline-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

.button-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
}

.site-footer {
  padding: 65px 0 24px;
  color: #c3d1cb;
  background: #061a14;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.brand-footer {
  color: var(--white);
}

.brand-footer > span > span {
  color: var(--lime);
}

.footer-grid > div:first-child > p {
  max-width: 330px;
  margin: 18px 0 0;
  color: #789087;
  font-size: 13px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px;
}

.footer-links > div {
  display: flex;
  gap: 9px;
  flex-direction: column;
}

.footer-links strong {
  margin-bottom: 4px;
  color: var(--white);
  font-size: 12px;
}

.footer-links a {
  color: #789087;
  font-size: 12px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--lime);
}

.footer-bottom {
  display: flex;
  margin-top: 50px;
  padding-top: 20px;
  justify-content: space-between;
  color: #577067;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1020px) {
  .main-nav {
    gap: 18px;
  }

  .main-nav a {
    font-size: 12px;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero-visual {
    transform: scale(0.91);
    transform-origin: center;
  }

  .function-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .function-row > span {
    display: none;
  }
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 75px;
  }

  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .site-header {
    height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    inset: 68px 0 auto;
    display: flex;
    gap: 0;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px rgba(16, 58, 45, 0.1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 13px 10px;
    font-size: 14px;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav .nav-github {
    justify-content: center;
    margin-top: 6px;
  }

  .language-toggle {
    width: auto;
    min-width: 108px;
    height: 40px;
    margin: 0;
  }

  .hero {
    min-height: 0;
    padding: 125px 0 75px;
  }

  .hero-grid,
  .install-grid,
  .reference-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero h1 {
    max-width: 700px;
    margin-right: auto;
    margin-left: auto;
  }

  .hero-lead {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    width: min(100%, 560px);
    min-height: 520px;
    margin: 15px auto 0;
    transform: none;
  }

  .radar-card {
    right: 50%;
    transform: translateX(50%) rotate(1deg);
  }

  .stat-one { left: 0; }
  .stat-two { right: 0; }

  .section {
    padding: 82px 0;
  }

  .workflow {
    grid-template-columns: 1fr;
  }

  .workflow-arrow {
    margin: -1px auto;
    transform: rotate(90deg);
  }

  .workflow-card {
    min-height: 230px;
  }

  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 24px;
  }

  .metric-strip > div:nth-child(2) {
    border-right: 0;
  }

  .metric-strip > div:nth-child(3) {
    padding-left: 0;
  }

  .install-grid {
    gap: 48px;
  }

  .function-groups {
    grid-template-columns: 1fr;
  }

  .datasets {
    grid-template-columns: 1fr;
  }

  .section-heading-inline {
    gap: 25px;
    align-items: flex-start;
    flex-direction: column;
  }

  .example-panel {
    grid-template-columns: 1fr;
  }

  .example-output {
    min-height: 490px;
  }

  .reference-grid {
    gap: 45px;
  }

  .final-cta-inner {
    min-height: 320px;
    gap: 35px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 430px;
  }

  .radar-card {
    width: 94%;
    padding: 16px 12px;
    border-radius: 24px;
  }

  .floating-stat {
    min-width: 98px;
    padding: 10px 12px;
  }

  .floating-stat strong {
    font-size: 22px;
  }

  .stat-one { top: 20px; }
  .stat-two { bottom: 0; }
  .stat-three { display: none; }

  .section-heading h2,
  .install-copy h2,
  .reference-copy > h2 {
    font-size: 38px;
  }

  .section-heading > p:last-child,
  .install-copy > p,
  .reference-copy > p {
    font-size: 16px;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .metric-strip > div {
    padding: 0 0 15px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .requirements {
    grid-template-columns: 1fr;
  }

  .requirements > div {
    padding-left: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .requirements > div:last-child {
    border-bottom: 0;
  }

  .code-window-header {
    grid-template-columns: 1fr auto;
  }

  .window-dots {
    display: none;
  }

  .code-panel pre {
    min-height: 230px;
    padding: 32px 20px;
    overflow-x: auto;
    white-space: pre;
    font-size: 12px;
  }

  .code-status {
    padding: 0 18px;
  }

  .function-group {
    padding: 22px 18px;
  }

  .function-group-heading {
    grid-template-columns: auto 1fr;
  }

  .function-badge {
    display: none;
  }

  .dataset-pills {
    grid-template-columns: 1fr;
  }

  .example-tabs {
    width: 100%;
  }

  .example-tab {
    flex: 1;
  }

  .example-code pre {
    padding: 26px 20px;
    overflow-x: auto;
    white-space: pre;
    font-size: 11px;
  }

  .example-output {
    min-height: 420px;
    padding: 18px;
  }

  .article-card {
    padding: 22px;
  }

  .citation-card pre {
    padding: 24px 20px;
    white-space: pre;
    font-size: 10px;
  }

  .final-cta-actions {
    width: 100%;
  }

  .final-cta-actions .button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    gap: 9px;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
