:root {
  --paper: #f4efe6;
  --paper-deep: #e8e0d2;
  --ink: #171918;
  --muted: #525750;
  --line: rgba(23, 25, 24, 0.16);
  --blue: #234bcd;
  --blue-deep: #19389e;
  --blue-soft: #d3deff;
  --acid: #cbf26b;
  --acid-soft: rgba(203, 242, 107, 0.18);
  --amber: #d97724;
  --white: #fffdf8;
  --surface-strong: #171918;
  --surface-text: #fffdf8;
  --surface-muted: #959b92;
  --surface-line: rgba(255, 255, 255, 0.14);
  --card-paper: #fffdf8;
  --button-dark-bg: #171918;
  --button-dark-text: #fffdf8;
  --brand: "Syne", "Space Grotesk", sans-serif;
  --mono: "DM Mono", monospace;
  --sans: "Space Grotesk", sans-serif;
}

[data-theme="dark"] {
  --paper: #111514;
  --paper-deep: #19201d;
  --ink: #f4f7f0;
  --muted: #a8b3a8;
  --line: rgba(244, 247, 240, 0.16);
  --blue: #4a78ff;
  --blue-deep: #325fe8;
  --blue-soft: #d9e3ff;
  --acid: #cbf26b;
  --acid-soft: rgba(203, 242, 107, 0.14);
  --amber: #f5a452;
  --white: #ffffff;
  --surface-strong: #171f1c;
  --surface-text: #f4f7f0;
  --surface-muted: #a8b3a8;
  --surface-line: rgba(244, 247, 240, 0.15);
  --card-paper: #18221e;
  --button-dark-bg: #f4f7f0;
  --button-dark-text: #111514;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
pre::-webkit-scrollbar {
  display: none;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

.section-shell {
  width: min(1180px, calc(100% - 48px));
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Header */
.site-header {
  height: 82px;
  width: 100%;
  max-width: 100%;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
  background: var(--paper);
  z-index: 10;
  box-sizing: border-box;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  gap: 10px;
  font-family: var(--brand);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.wordmark:hover {
  transform: translateY(-1px);
  color: var(--blue);
}

.wordmark-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--ink);
  color: var(--acid);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  flex-shrink: 0;
  border-radius: 2px;
}

[data-theme="dark"] .wordmark-mark {
  background: var(--surface-strong);
  color: var(--acid);
  border: 1px solid var(--line);
}

.main-nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a,
.text-link,
.site-footer a {
  position: relative;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav a:hover,
.text-link:hover,
.site-footer a:hover {
  color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  font: 10px var(--mono);
  background: var(--paper);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-switch:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.theme-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 34px;
  height: 18px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-deep);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.theme-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease;
}

.theme-switch input:checked + .theme-track {
  background: var(--blue);
  border-color: var(--blue);
}

.theme-switch input:checked + .theme-track .theme-thumb {
  background: var(--acid);
  transform: translateX(16px);
}

.theme-switch:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.theme-icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.theme-icon-moon {
  fill: currentColor;
  stroke: none;
}

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

.github-icon {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex: 0 0 auto;
}

.star-metric {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  color: var(--ink);
  font: 10px var(--mono);
  background: var(--paper);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.star-metric:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(43, 85, 217, 0.15);
}

.star-label {
  color: var(--muted);
}

.star-metric strong {
  color: var(--ink);
  font-weight: 500;
}

/* Buttons with Rich Hover States */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.2s ease,
              color 0.2s ease,
              border-color 0.2s ease;
}

.button span {
  display: inline-block;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.button:hover span {
  transform: translateX(4px);
}

.button:active {
  transform: translateY(-1px) scale(0.985);
}

.button-github {
  gap: 11px;
}

.button-github .github-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.button-github:hover .github-icon {
  transform: rotate(-8deg) scale(1.1);
}

.button-dark {
  background: var(--button-dark-bg);
  color: var(--button-dark-text);
  border-color: var(--button-dark-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.button-dark:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 28px -6px rgba(43, 85, 217, 0.45);
}

.button-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .button-outline {
  background: transparent;
  color: #f4f7f0 !important;
  border-color: rgba(244, 247, 240, 0.38) !important;
}

.button-outline:hover,
.button-outline.button-github:hover,
[data-theme="dark"] .button-outline:hover,
[data-theme="dark"] .button-outline.button-github:hover {
  background: var(--acid) !important;
  border-color: var(--acid) !important;
  color: #111514 !important;
  box-shadow: 0 10px 26px -4px rgba(203, 242, 107, 0.55);
}

.button-outline:hover svg,
.button-outline:hover .github-icon,
.button-outline:hover .icon-inline,
[data-theme="dark"] .button-outline:hover svg,
[data-theme="dark"] .button-outline:hover .github-icon,
[data-theme="dark"] .button-outline:hover .icon-inline {
  stroke: #111514 !important;
  fill: #111514 !important;
  color: #111514 !important;
}

.button-light {
  background: var(--acid) !important;
  border-color: var(--acid) !important;
  color: #111514 !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(203, 242, 107, 0.3);
}

.button-light svg,
.button-light .github-icon,
.button-light .icon-inline,
.button-light span {
  color: #111514 !important;
  fill: #111514 !important;
  stroke: #111514 !important;
}

.button-light:hover {
  background: #d8f788 !important;
  border-color: #d8f788 !important;
  color: #111514 !important;
  box-shadow: 0 12px 28px -6px rgba(203, 242, 107, 0.6);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.button-ghost:hover {
  background: var(--acid);
  color: var(--ink);
  border-color: var(--acid);
  box-shadow: 0 10px 26px -4px rgba(203, 242, 107, 0.5);
}

.button-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 12px;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 640px;
  padding: 96px 0 110px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 90px;
}

.hero-copy,
.hero-instrument {
  position: relative;
  z-index: 1;
}

.hero-atmosphere {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.62;
}

.atmosphere-grid {
  position: absolute;
  inset: -30%;
  background-image: linear-gradient(rgba(43, 85, 217, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(43, 85, 217, 0.09) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: perspective(480px) rotateX(58deg) translateY(16%);
  animation: grid-drift 18s linear infinite;
}

.atmosphere-sweep {
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 49%;
  width: 1px;
  background: linear-gradient(transparent, var(--blue), transparent);
  box-shadow: 0 0 28px 5px rgba(43, 85, 217, 0.18);
  animation: sweep 7s ease-in-out infinite;
}

.atmosphere-contour {
  position: absolute;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(43, 85, 217, 0.16);
  border-radius: 50%;
  left: 52%;
  top: 48%;
  transform: translate(-50%, -50%);
  animation: contour-pulse 6s ease-in-out infinite;
}

.atmosphere-contour-two {
  width: 690px;
  height: 690px;
  animation-delay: -2s;
  opacity: 0.65;
}

.eyebrow,
.section-number,
.doc-kicker,
.instrument-topline {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(43, 85, 217, 0.15);
  animation: pulse-dot 2.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(43, 85, 217, 0.15);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(43, 85, 217, 0.35);
  }
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: -0.055em;
  line-height: 0.96;
}

h1 {
  max-width: 660px;
  margin: 23px 0 28px;
  font-size: clamp(54px, 7vw, 92px);
  font-weight: 600;
}

h1 em,
h2 em {
  color: var(--blue);
  font-style: normal;
}

.hero-lede {
  max-width: 510px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.45;
}

.hero-actions,
.closing-actions,
.integration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 35px;
}

.microcopy {
  margin-top: 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.hero-instrument {
  max-width: 490px;
  justify-self: end;
  width: 100%;
  background: var(--surface-strong);
  color: var(--surface-text);
  box-shadow: 18px 18px 0 var(--acid);
  transform: rotate(1.2deg);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.hero-instrument:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 22px 22px 0 var(--blue);
}

[data-theme="dark"] .hero-atmosphere {
  opacity: 0.42;
}

[data-theme="dark"] .atmosphere-grid {
  background-image: linear-gradient(rgba(203, 242, 107, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(203, 242, 107, 0.08) 1px, transparent 1px);
}

[data-theme="dark"] .button-outline:hover {
  background: var(--acid);
  border-color: var(--acid);
  color: #111514;
  box-shadow: 0 10px 26px -4px rgba(203, 242, 107, 0.4);
}

.instrument-topline {
  display: flex;
  justify-content: space-between;
  padding: 17px 20px;
  color: var(--surface-muted);
  border-bottom: 1px solid var(--surface-line);
  font-size: 10px;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--acid);
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 3px rgba(203, 242, 107, 0.25);
  animation: pulse-acid 2s ease-in-out infinite;
}

@keyframes pulse-acid {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(203, 242, 107, 0.2);
    transform: scale(0.95);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(203, 242, 107, 0.45);
    transform: scale(1.05);
  }
}

.instrument-body {
  padding: 27px 25px 24px;
}

.instrument-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 27px;
  font-size: 21px;
  font-weight: 500;
}

.instrument-title span {
  color: var(--acid);
}

.instrument-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 12px 0;
  color: var(--surface-muted);
  font-family: var(--mono);
  font-size: 11px;
}

.instrument-row strong {
  color: var(--surface-text);
  font-family: var(--sans);
  font-weight: 500;
}

.instrument-row-muted strong {
  max-width: 240px;
  text-align: right;
}

.green {
  color: var(--acid) !important;
}

.amber {
  color: var(--amber) !important;
}

.instrument-rule {
  height: 1px;
  margin: 24px 0;
  background: var(--surface-line);
}

.finding {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  color: var(--amber);
}

.finding-blue {
  color: #77a0ff;
}

.finding-mark {
  display: grid;
  place-items: center;
  flex: 0 0 19px;
  height: 19px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 11px;
}

.finding strong {
  display: block;
  color: var(--surface-text);
  font-size: 12px;
  font-weight: 500;
}

.finding p {
  margin: 2px 0 0;
  color: var(--surface-muted);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
}

.instrument-command {
  padding: 17px 20px;
  border-top: 1px solid var(--surface-line);
  color: var(--acid);
  font-family: var(--mono);
  font-size: 12px;
}

.instrument-command span {
  margin-right: 8px;
  color: var(--surface-text);
}

.copy-button {
  float: right;
  border: 1px solid transparent;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--surface-muted);
  cursor: pointer;
  font: 10px var(--mono);
  text-transform: uppercase;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.copy-button:hover {
  color: var(--acid);
  background: rgba(203, 242, 107, 0.15);
  border-color: var(--acid);
  transform: translateY(-1px);
}

.copy-button:active {
  transform: scale(0.95);
}

/* Ticker */
.ticker {
  overflow: hidden;
  padding: 16px 0;
  background: var(--blue);
  color: var(--white);
  transform: rotate(-1deg) scale(1.02);
}

.ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 26px;
  padding-left: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  animation: crawl 28s linear infinite;
}

.ticker i {
  color: var(--acid);
  font-style: normal;
  font-size: 14px;
}

/* Section Pads & Intros */
.section-pad {
  padding-top: 140px;
  padding-bottom: 140px;
}

.section-intro {
  display: grid;
  grid-template-columns: 0.65fr 1.1fr 0.85fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 60px;
}

.section-number {
  margin: 7px 0 0;
  color: var(--blue);
}

.section-intro h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 500;
}

.section-intro h2 span {
  color: var(--blue);
}

.section-intro > p:last-child {
  margin: 9px 0 0;
  color: var(--muted);
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  min-height: 350px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ink);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.28s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px -12px rgba(0, 0, 0, 0.14);
}

.feature-card-dark {
  background: var(--surface-strong);
  color: var(--surface-text);
  border-color: var(--surface-strong);
}

.feature-card-dark:hover {
  border-color: var(--acid);
  box-shadow: 0 18px 36px -12px rgba(0, 0, 0, 0.35);
}

.feature-card-blue {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.feature-card-blue:hover {
  border-color: var(--acid);
  box-shadow: 0 18px 36px -12px rgba(43, 85, 217, 0.4);
}

.feature-card-paper {
  background: var(--card-paper);
}

.feature-card-paper:hover {
  border-color: var(--blue);
}

.feature-index {
  font-family: var(--mono);
  font-size: 11px;
  opacity: 0.65;
}

.feature-card h3 {
  max-width: 240px;
  margin: auto 0 15px;
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 500;
}

.feature-card p {
  max-width: 280px;
  margin-bottom: 25px;
  color: var(--surface-muted);
  font-size: 14px;
}

.feature-card-blue p {
  color: var(--blue-soft);
}

.feature-card-paper p {
  color: var(--muted);
}

.card-link {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease, color 0.2s ease;
}

.card-link span {
  color: var(--acid);
  transition: transform 0.2s ease;
}

.card-link:hover {
  color: var(--acid);
}

.card-link:hover span {
  transform: translateX(4px);
}

/* Install Section */
.install-band {
  padding: 125px 0;
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.install-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 85px;
  align-items: center;
}

.install-copy h2,
.integration-copy h2 {
  margin: 18px 0 24px;
  font-size: clamp(42px, 5vw, 65px);
  font-weight: 500;
}

.install-copy > p:not(.section-number) {
  max-width: 400px;
  color: var(--muted);
}

.inline-link {
  display: inline-flex;
  gap: 12px;
  margin-top: 24px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12px;
  border-bottom: 1px solid var(--blue);
  padding-bottom: 4px;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.inline-link:hover {
  color: var(--blue-deep);
  border-color: var(--blue-deep);
  transform: translateX(3px);
}

.install-flow {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 28px;
  max-width: 390px;
}

.flow-step {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.flow-step:hover {
  background: var(--white);
  transform: translateX(4px);
}

.flow-step span {
  color: var(--blue);
  font: 10px var(--mono);
}

.flow-step strong {
  font-size: 13px;
  font-weight: 600;
}

.flow-step small {
  color: var(--muted);
  font: 10px var(--mono);
}

.install-alternative {
  margin: 18px 0 0;
  color: #7b8079;
  font-size: 11px;
}

.install-alternative strong {
  color: var(--ink);
  font-weight: 600;
}

.install-alternative code {
  color: var(--blue);
}

.code-window {
  position: relative;
  overflow: hidden;
  background: var(--surface-strong);
  color: var(--surface-text);
  box-shadow: 15px 15px 0 var(--amber);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.code-window:hover {
  transform: translateY(-2px);
  box-shadow: 18px 18px 0 var(--acid);
}

.code-window-bar {
  display: flex;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--surface-line);
  color: var(--surface-muted);
  font: 10px var(--mono);
  text-transform: uppercase;
}

.window-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.win-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.win-dot:first-child {
  background: #ff5f56;
}

.win-dot:nth-child(2) {
  background: #ffbd2e;
}

.win-dot:nth-child(3) {
  background: #27c93f;
}

pre {
  overflow: auto;
  margin: 0;
  padding: 27px;
  font: 12px/2 var(--mono);
  scrollbar-width: none;
}

.code-comment {
  color: var(--surface-muted);
}

.code-command {
  color: var(--acid);
}

.copy-code {
  position: absolute;
  right: 18px;
  bottom: 16px;
}

/* Section 3: Interactive Documentation Tabs */
.docs-section {
  padding-bottom: 150px;
}

.docs-columns {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 55px;
  align-items: start;
}

.docs-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 28px;
  align-self: start;
  z-index: 5;
}

.docs-nav-link {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 18px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 13px;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.docs-nav-link:hover {
  background: var(--white);
  border-color: var(--blue);
  color: var(--ink);
  transform: translateX(4px);
}

.docs-nav-link.active {
  background: var(--surface-strong);
  color: var(--surface-text);
  border-color: var(--surface-strong);
  box-shadow: 6px 6px 0 var(--acid);
  transform: translateX(6px);
}

[data-theme="dark"] .docs-nav-link {
  background: var(--paper-deep);
}

[data-theme="dark"] .docs-nav-link.active {
  background: var(--surface-strong);
  border-color: var(--acid);
}

.tab-badge {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--line);
  color: var(--ink);
  font: 11px var(--mono);
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.docs-nav-link.active .tab-badge {
  background: var(--acid) !important;
  color: #111514 !important;
  font-weight: 700;
}

.docs-nav-link:hover .tab-badge {
  background: var(--blue);
  color: var(--white);
}

.tab-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tab-text strong {
  font-size: 14px;
  font-weight: 600;
}

.tab-text small {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
}

.docs-nav-link.active .tab-text small {
  color: var(--surface-muted);
}

.tab-indicator {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.2s ease;
}

.docs-nav-link:hover .tab-indicator,
.docs-nav-link.active .tab-indicator {
  opacity: 1;
  transform: translateX(0);
  color: var(--acid);
}

.docs-content {
  position: relative;
  min-height: 480px;
}

.doc-block {
  display: none;
  opacity: 0;
  transform: translateY(14px);
  border: 1px solid var(--line);
  background: var(--card-paper);
  padding: 38px 42px;
  box-shadow: 0 12px 36px -12px rgba(0, 0, 0, 0.07);
}

.doc-block.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: docFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes docFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.doc-header {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.doc-kicker {
  margin-bottom: 8px;
  color: var(--blue);
}

.doc-header h3 {
  margin: 4px 0 10px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.doc-summary {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.command-list {
  border-top: 1px solid var(--line);
}

.command-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: background 0.18s ease;
}

.command-row:last-child {
  border-bottom: none;
}

.command-row code {
  color: var(--blue);
  font-weight: 600;
  font-size: 12px;
}

.command-row strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.command-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.check-item {
  display: flex;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.check-item:hover {
  transform: translateX(4px);
  border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(43, 85, 217, 0.08);
}

.check-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  height: 38px;
  background: var(--acid) !important;
  color: #111514 !important;
  font: 11px var(--mono);
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  border-radius: 2px;
}

.check-item strong {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}

.check-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.schema-card {
  padding: 18px 22px;
  background: var(--surface-strong);
  color: var(--surface-text);
  font: 11px/2 var(--mono);
  box-shadow: 8px 8px 0 var(--blue);
}

.schema-line {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  border-bottom: 1px solid var(--surface-line);
  padding: 4px 0;
}

.schema-line:last-child {
  border: 0;
}

.schema-key {
  color: var(--acid);
}

.model-meta-box {
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  font-size: 13px;
}

.model-meta-box p {
  margin: 0 0 10px;
  color: var(--muted);
}

.doc-footer-nav {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.doc-switch-btn {
  min-height: 42px;
  padding: 0 16px;
  font-size: 12px;
  font-family: var(--mono);
}

/* Integration Section */
.integration-band {
  padding: 130px 0;
  background: var(--blue);
  color: var(--white);
}

.integration-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}

.integration-copy .section-number {
  color: var(--acid);
}

.integration-copy h2 em {
  color: var(--acid);
}

.integration-copy > p:not(.section-number) {
  max-width: 420px;
  color: var(--blue-soft);
}

.integration-notes {
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.note-card {
  display: grid;
  grid-template-columns: 37px 1fr;
  gap: 16px;
  padding: 22px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}

.note-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.note-number {
  color: var(--acid);
  font: 12px var(--mono);
}

.note-card strong {
  font-size: 18px;
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}

.note-card p {
  margin: 0;
  color: var(--blue-soft);
  font-size: 13px;
  line-height: 1.5;
}

/* Closing */
.closing {
  padding: 150px 0;
}

.closing h2 {
  max-width: 800px;
  margin: 20px 0 0;
  font-size: clamp(50px, 8vw, 100px);
  font-weight: 500;
}

.closing-actions {
  margin-top: 40px;
}

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 30px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 11px var(--mono);
}

.site-footer > div {
  display: flex;
  gap: 22px;
  align-items: center;
}

.site-footer .wordmark {
  color: var(--ink);
  font-family: var(--sans);
}

.footer-github {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.2s ease;
}

.footer-github:hover {
  color: var(--blue);
}

/* Scroll Reveals */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

@keyframes crawl {
  to {
    transform: translateX(-35%);
  }
}

@keyframes grid-drift {
  to {
    background-position: 0 46px, 46px 0;
  }
}

@keyframes sweep {
  0%, 100% {
    transform: translateX(-18vw);
    opacity: 0.15;
  }
  50% {
    transform: translateX(18vw);
    opacity: 0.8;
  }
}

@keyframes contour-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.25;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.04);
    opacity: 0.7;
  }
}

@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;
  }
}

@media (max-width: 1080px) and (min-width: 769px) {
  .section-shell {
    width: min(100% - 48px, 940px);
  }

  .site-header {
    padding: 0 24px;
    height: 76px;
  }

  .main-nav {
    gap: 18px;
    font-size: 13px;
  }

  .hero {
    gap: 40px;
  }

  .section-intro {
    grid-template-columns: 0.5fr 1.2fr 0.8fr;
    gap: 24px;
  }

  .docs-columns {
    gap: 36px;
  }

  .integration-layout {
    gap: 48px;
  }
}

/* Tablet & Mobile (<= 768px): Hide mobile nav clutter & hide mode switch (adapts to OS system preference) */
@media (max-width: 768px) {
  .section-shell {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .site-header {
    padding: 0 18px !important;
    height: 64px !important;
    width: 100% !important;
    max-width: 100vw !important;
    gap: 10px !important;
    box-sizing: border-box !important;
  }

  .wordmark {
    flex-shrink: 0;
  }

  .main-nav {
    display: none !important;
  }

  /* Mode switch hidden on mobile; toggle only shows on desktop and tablet */
  .theme-switch {
    display: none !important;
  }

  .header-actions {
    gap: 8px;
    flex-shrink: 0;
  }

  .header-actions .text-link {
    display: none !important;
  }

  .header-actions .button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  .star-metric {
    padding: 7px 9px;
    font-size: 10px;
    white-space: nowrap;
  }

  .star-label {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 44px 0 68px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-atmosphere {
    inset: 0 !important;
    max-width: 100% !important;
  }

  .hero-instrument {
    width: 100% !important;
    max-width: 100% !important;
    justify-self: stretch;
    transform: none !important;
    box-shadow: 6px 6px 0 var(--acid) !important;
    box-sizing: border-box !important;
  }

  .hero-instrument:hover {
    transform: none !important;
    box-shadow: 6px 6px 0 var(--blue) !important;
  }

  .ticker {
    transform: none !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
  }

  h1 {
    font-size: clamp(38px, 9vw, 62px);
    margin: 16px 0 20px;
    word-break: break-word;
  }

  .hero-lede {
    font-size: 16px;
    max-width: 100%;
  }

  .section-pad {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .section-intro,
  .docs-columns,
  .install-layout,
  .integration-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100%;
    max-width: 100%;
  }

  .section-intro {
    margin-bottom: 36px;
  }

  .section-intro h2 {
    font-size: clamp(32px, 7vw, 44px);
  }

  .docs-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
  }

  .docs-nav-link {
    padding: 12px 14px;
    font-size: 12px;
  }

  .doc-block {
    padding: 22px 18px;
    width: 100%;
    box-sizing: border-box;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
  }

  .feature-card {
    min-height: auto;
    padding: 24px 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .install-band,
  .integration-band {
    padding: 68px 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .code-stack {
    width: 100%;
    max-width: 100%;
  }

  .code-window {
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: 6px 6px 0 var(--amber) !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  pre {
    padding: 18px 14px;
    font-size: 11px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
  }

  .closing {
    padding: 75px 0;
    width: 100%;
  }

  .closing h2 {
    font-size: clamp(36px, 8.5vw, 60px);
  }

  .hero-actions,
  .closing-actions,
  .integration-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

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

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 28px 0 36px;
  }

  .footer-left,
  .footer-right {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* Small mobile (<= 480px) */
@media (max-width: 480px) {
  .section-shell {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .site-header {
    padding: 0 14px !important;
  }

  .wordmark {
    font-size: 13px;
    gap: 7px;
  }

  .wordmark-mark {
    width: 26px;
    height: 26px;
    font-size: 15px;
  }

  h1 {
    font-size: clamp(32px, 9.5vw, 42px);
  }

  .docs-nav {
    grid-template-columns: 1fr;
  }

  .instrument-body {
    padding: 18px 14px;
  }

  .instrument-row-muted {
    flex-direction: column;
    gap: 4px;
  }

  .instrument-row-muted strong {
    text-align: left;
  }

  .command-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  pre {
    font-size: 10.5px;
    padding: 14px 12px;
  }
}