:root {
  color-scheme: dark;
  --bg: #080b0f;
  --bg-elevated: #0d1117;
  --panel: #10151c;
  --panel-hover: #141b24;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f2f6f4;
  --muted: #98a39f;
  --muted-strong: #c1cbc7;
  --violet: #a78bfa;
  --violet-deep: #8b5cf6;
  --yellow: #fde047;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --max-width: 1240px;
  --radius: 18px;
  /* Type scale: 5 fixed sizes + fluid display sizes */
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-md: 16px;
  --fs-lg: 20px;
  --fs-xl: 28px;
  --fs-2xl: clamp(38px, 5vw, 64px);
  --fs-hero: clamp(52px, 6.2vw, 88px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 8%, rgba(139, 92, 246, 0.09), transparent 24rem),
    radial-gradient(circle at 12% 18%, rgba(253, 224, 71, 0.05), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  pointer-events: none;
}

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

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

button {
  color: inherit;
  font: inherit;
}

svg {
  display: block;
}

code {
  font-family: var(--mono);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--violet);
  color: #140f1f;
  font-weight: 700;
  transform: translateY(-150%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid transparent;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(8, 11, 15, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 11px;
  font-family: var(--mono);
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-muted {
  color: var(--muted);
}

.brand-mark {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 4px);
  align-items: end;
  width: 24px;
  height: 24px;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(167, 139, 250, 0.38);
  border-radius: 7px;
  background: rgba(167, 139, 250, 0.07);
}

.brand-mark span {
  border-radius: 1px;
  background: var(--violet);
}

.brand-mark span:nth-child(1) {
  height: 7px;
}

.brand-mark span:nth-child(2) {
  height: 14px;
}

.brand-mark span:nth-child(3) {
  height: 10px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 650;
}

.site-nav a,
.footer-links a {
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.header-link {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  color: var(--muted-strong);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.header-link svg,
.button svg,
.card-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(460px, 0.98fr);
  align-items: center;
  min-height: 730px;
  gap: clamp(52px, 7vw, 96px);
  padding: 92px 0 78px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow,
.section-index,
.panel-label {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--violet);
  box-shadow: 0 0 0 5px rgba(167, 139, 250, 0.09);
}

.hero h1 {
  max-width: 760px;
  margin: 28px 0 26px;
  font-size: var(--fs-hero);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero h1 span {
  display: block;
  color: var(--violet);
}

.hero-lead {
  max-width: 620px;
  margin: 0;
  color: var(--muted-strong);
  font-size: var(--fs-lg);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 12px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  font-size: var(--fs-sm);
  font-weight: 750;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

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

.button-primary {
  border-color: var(--violet);
  background: var(--violet);
  color: #140f1f;
}

.button-primary:hover,
.button-primary:focus-visible {
  border-color: #ddd6fe;
  background: #ddd6fe;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted-strong);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.hero-facts {
  display: flex;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.hero-facts li {
  display: grid;
  gap: 2px;
  padding: 0 24px;
  border-left: 1px solid var(--line);
}

.hero-facts li:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-facts strong {
  color: var(--text);
  font-family: var(--mono);
  font-size: var(--fs-sm);
}

.hero-facts span {
  color: var(--muted);
  font-size: var(--fs-xs);
}

.hero-console {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(13, 17, 23, 0.88);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(167, 139, 250, 0.025) inset;
}

.hero-console::before {
  position: absolute;
  top: -120px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.08);
  content: "";
  filter: blur(50px);
  pointer-events: none;
}

.console-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: #77817e;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
}

.console-dots {
  display: flex;
  gap: 6px;
}

.console-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #303841;
}

.console-state {
  justify-self: end;
  color: var(--violet);
}

.console-body {
  padding: 28px;
}

.orchestrator-node {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-radius: 12px;
  background: rgba(167, 139, 250, 0.045);
}

.node-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 9px;
  color: var(--violet);
  font-family: var(--mono);
  font-size: var(--fs-md);
  font-weight: 800;
}

.orchestrator-node div:nth-child(2) {
  display: grid;
  gap: 1px;
}

.node-kicker {
  color: #708078;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.13em;
}

.orchestrator-node strong {
  font-family: var(--mono);
  font-size: var(--fs-sm);
}

.node-pulse {
  position: relative;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--violet);
}

.node-pulse::after {
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(167, 139, 250, 0.4);
  border-radius: inherit;
  content: "";
  animation: pulse 1.9s ease-out infinite;
}

@keyframes pulse {
  from {
    opacity: 1;
    transform: scale(0.6);
  }
  to {
    opacity: 0;
    transform: scale(1.3);
  }
}

.flow-line {
  width: 1px;
  height: 22px;
  margin-left: 34px;
  background: linear-gradient(var(--violet), var(--line));
}

.tool-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.flow-node {
  min-width: 0;
  padding: 11px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.015);
}

.flow-node span {
  display: block;
  color: #59635f;
  font-family: var(--mono);
  font-size: var(--fs-xs);
}

.flow-node strong {
  display: block;
  overflow: hidden;
  margin-top: 7px;
  color: #76807d;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-overflow: ellipsis;
}

.flow-node i {
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 10px;
  border-radius: 999px;
  background: #242b31;
}

.flow-node.is-complete {
  border-color: rgba(167, 139, 250, 0.13);
}

.flow-node.is-complete strong,
.flow-node.is-complete span {
  color: #9ab2a3;
}

.flow-node.is-complete i {
  background: var(--violet);
}

.flow-node.is-active {
  border-color: rgba(253, 224, 71, 0.3);
  background: rgba(253, 224, 71, 0.045);
}

.flow-node.is-active strong,
.flow-node.is-active span {
  color: var(--yellow);
}

.flow-node.is-active i {
  background: linear-gradient(90deg, var(--yellow) 62%, #242b31 62%);
}

.metric-grid {
  display: grid;
  grid-template-columns: 0.8fr 0.8fr 1.4fr;
  gap: 9px;
  margin-top: 22px;
}

.metric-card {
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
}

.metric-card > span {
  display: block;
  color: #626d69;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
}

.metric-card strong {
  display: block;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: var(--fs-lg);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.metric-card small {
  display: block;
  margin-top: 2px;
  color: #68726f;
  font-size: var(--fs-xs);
}

.metric-card small.positive {
  color: var(--violet);
}

.metric-chart svg {
  width: 100%;
  height: 54px;
  margin-top: 11px;
  overflow: visible;
}

.chart-area {
  fill: rgba(253, 224, 71, 0.06);
}

.chart-line {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.console-log {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #838d89;
  font-family: var(--mono);
  font-size: var(--fs-xs);
}

.console-log .log-time {
  color: #4f5955;
}

.console-log .log-ok {
  color: var(--violet);
}

.console-log code {
  margin-left: auto;
  color: #5e6864;
}

.signal-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #77817e;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.signal-strip i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #303a36;
}

.section {
  padding: 128px 0 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: 60px;
  margin-bottom: 48px;
}

.section-index {
  margin: 0 0 14px;
  color: var(--violet);
}

.section-heading h2,
.cta h2 {
  margin: 0;
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.section-heading > p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-md);
  line-height: 1.75;
}

.section-heading code {
  color: var(--muted-strong);
  font-size: 0.9em;
}

.tool-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--accent) 7%, transparent), transparent 14rem),
    rgba(13, 17, 23, 0.73);
  transition:
    border-color 200ms ease,
    background-color 200ms ease,
    transform 200ms ease;
}

.tool-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 96px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
  content: "";
  opacity: 0.55;
}

.tool-card:hover {
  border-color: color-mix(in srgb, var(--accent) 32%, transparent);
  background-color: rgba(20, 27, 36, 0.83);
  transform: translateY(-3px);
}

.tool-card-featured {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  min-height: 330px;
  padding: 38px;
  border-color: rgba(167, 139, 250, 0.22);
  background:
    radial-gradient(circle at 10% 0%, rgba(167, 139, 250, 0.09), transparent 23rem),
    linear-gradient(135deg, rgba(21, 15, 35, 0.96), rgba(12, 16, 21, 0.94));
}

.tool-card-featured::before {
  position: absolute;
  inset: auto -4rem -8rem auto;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(167, 139, 250, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 45px rgba(167, 139, 250, 0.025),
    0 0 0 90px rgba(167, 139, 250, 0.015);
  content: "";
}

.tool-topline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
}

.tool-symbol {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  color: var(--accent);
}

.tool-symbol svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.tool-tag,
.tool-number {
  color: var(--accent);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.tool-number {
  color: #4f5a56;
}

.tool-title {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 20px;
  margin-top: 30px;
}

.tool-title h3 {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: -0.045em;
}

.tool-title p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.tool-card-featured .tool-title {
  margin-top: 66px;
}

.tool-card-featured .tool-title h3 {
  font-size: var(--fs-2xl);
}

.tool-card-featured .tool-title p {
  max-width: 430px;
  margin-top: 12px;
  color: var(--muted-strong);
  font-size: var(--fs-lg);
}

.card-link {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background-color 160ms ease;
}

.card-link:hover,
.card-link:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  color: var(--accent);
}

.featured-detail {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-detail > p,
.tool-description {
  color: var(--muted-strong);
  font-size: var(--fs-md);
  line-height: 1.75;
}

.featured-detail > p {
  max-width: 480px;
  margin: 0;
}

.tool-description {
  min-height: 74px;
  margin: 24px 0 0;
  color: var(--muted);
}

.feature-list {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  color: #9ca7a3;
  font-size: var(--fs-sm);
}

.feature-list li::before {
  position: absolute;
  top: 0.74em;
  left: 0;
  width: 6px;
  height: 1px;
  background: var(--accent);
  content: "";
}

.install-command,
.terminal-command {
  display: flex;
  align-items: center;
  width: 100%;
  cursor: pointer;
}

.install-command {
  min-height: 45px;
  gap: 10px;
  margin-top: 28px;
  padding: 0 13px;
  border: 1px solid rgba(167, 139, 250, 0.15);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--violet);
  text-align: left;
}

.install-command code {
  color: #b9c7bf;
  font-size: var(--fs-sm);
}

.copy-label {
  margin-left: auto;
  color: #65716b;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
}

.tool-grid .tool-card {
  display: flex;
  flex-direction: column;
}

.tool-grid .feature-list {
  margin-bottom: 28px;
}

.tool-grid .install-command {
  margin-top: auto;
}

.tool-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.tool-badge {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--fs-xs);
}

.tool-meta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: color 160ms ease;
}

.tool-meta a:hover,
.tool-meta a:focus-visible {
  color: var(--text);
}

.tool-meta a svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.workflow-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.workflow-track li {
  position: relative;
  display: grid;
  min-height: 220px;
  grid-template-columns: auto 1fr;
  align-content: start;
  gap: 20px;
  padding: 30px 25px 30px 0;
  border-right: 1px solid var(--line);
}

.workflow-track li:not(:first-child) {
  padding-left: 25px;
}

.workflow-track li:last-child {
  border-right: 0;
}

.workflow-track li::before {
  position: absolute;
  top: -4px;
  left: -1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 5px var(--bg);
  content: "";
}

.workflow-track li:not(:first-child)::before {
  left: 24px;
}

.step-number {
  color: #4c5752;
  font-family: var(--mono);
  font-size: var(--fs-xs);
}

.workflow-track strong {
  font-family: var(--mono);
  font-size: var(--fs-lg);
  font-weight: 600;
}

.workflow-track p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

.comparison-panel {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: 70px;
  min-height: 470px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(167, 139, 250, 0.035), transparent 46%),
    rgba(13, 17, 23, 0.8);
}

.panel-label {
  color: var(--violet);
}

.comparison-copy h3 {
  max-width: 480px;
  margin: 20px 0;
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.comparison-copy > p {
  max-width: 490px;
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-md);
  line-height: 1.75;
}

.comparison-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 28px;
}

.comparison-tags span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #89948f;
  font-family: var(--mono);
  font-size: var(--fs-xs);
}

.comparison-chart {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(5, 8, 11, 0.52);
}

.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.chart-head > div:first-child {
  display: grid;
  gap: 4px;
}

.chart-head span {
  color: #69736f;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.07em;
}

.chart-head strong {
  font-family: var(--mono);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 13px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0;
}

.chart-legend i {
  width: 7px;
  height: 2px;
  background: currentColor;
}

.chart-legend .baseline {
  color: #64748b;
}

.chart-legend .candidate {
  color: var(--violet);
}

.comparison-chart > svg {
  width: 100%;
  height: auto;
  overflow: visible;
  margin-top: 17px;
}

.grid-lines path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.055);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.axis-labels text {
  fill: #59635f;
  font-family: var(--mono);
  font-size: var(--fs-xs);
}

.comparison-chart .line {
  fill: none;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.comparison-chart .line.baseline {
  stroke: #64748b;
}

.comparison-chart .line.candidate {
  stroke: var(--violet);
}

.comparison-chart .points {
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.comparison-chart .points.baseline {
  fill: #121820;
  stroke: #64748b;
}

.comparison-chart .points.candidate {
  fill: #1a1226;
  stroke: var(--violet);
}

.code-panel {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(5, 8, 11, 0.52);
}

.code-panel-bar {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: #77817e;
  font-family: var(--mono);
  font-size: var(--fs-xs);
}

.code-panel pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
}

.code-panel code {
  color: var(--muted-strong);
  font-size: var(--fs-xs);
  line-height: 1.75;
}

.code-panel code i {
  color: var(--violet);
  font-style: normal;
}

.code-panel code s {
  color: var(--yellow);
  text-decoration: none;
}

.code-panel code b {
  color: #59635f;
  font-weight: 500;
}

.e2e {
  margin-top: 14px;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principle {
  min-height: 270px;
  padding: 34px 34px 34px 0;
  border-right: 1px solid var(--line);
}

.principle:not(:first-child) {
  padding-left: 34px;
}

.principle:last-child {
  border-right: 0;
}

.principle > span {
  color: var(--violet);
  font-family: var(--mono);
  font-size: var(--fs-xs);
}

.principle h3 {
  margin: 74px 0 14px;
  font-family: var(--mono);
  font-size: var(--fs-lg);
  font-weight: 600;
}

.principle p {
  max-width: 310px;
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.cta {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: end;
  gap: 70px;
  margin-top: 128px;
  padding: 58px;
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 22px;
  background:
    radial-gradient(circle at 86% 0%, rgba(167, 139, 250, 0.12), transparent 22rem),
    #15101f;
}

.cta h2 {
  font-size: var(--fs-2xl);
}

.cta-action {
  min-width: 0;
}

.terminal-command {
  min-height: 60px;
  gap: 13px;
  padding: 0 18px;
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-radius: 10px;
  background: #0e0a18;
  text-align: left;
  transition: border-color 160ms ease;
}

.terminal-command:hover,
.terminal-command:focus-visible {
  border-color: rgba(167, 139, 250, 0.5);
}

.terminal-prompt {
  color: var(--violet);
  font-family: var(--mono);
}

.terminal-command code {
  overflow: hidden;
  color: #c9d3cf;
  font-size: var(--fs-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-copy {
  margin-left: auto;
  color: #617069;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
}

.cta-action p {
  margin: 12px 0 0;
  color: #68736e;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  text-align: center;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 150px;
  margin-top: 70px;
  border-top: 1px solid var(--line);
}

.site-footer > p {
  margin: 0;
  color: #66716d;
  font-size: var(--fs-xs);
}

.footer-links {
  display: flex;
  justify-self: end;
  gap: 24px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.copy-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  padding: 10px 14px;
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 8px;
  background: #1a1428;
  color: var(--violet);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

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

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 80px;
  }

  .hero-copy {
    max-width: 820px;
  }

  .hero-console {
    width: min(100%, 720px);
  }

  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow-track {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow-track li:nth-child(2) {
    border-right: 0;
  }

  .workflow-track li:nth-child(3),
  .workflow-track li:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .comparison-panel {
    grid-template-columns: 1fr;
    gap: 45px;
  }

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

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 66px;
  }

  .site-nav {
    display: none;
  }

  .hero {
    gap: 50px;
    padding: 64px 0 58px;
  }

  .hero-lead {
    font-size: var(--fs-md);
  }

  .hero-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-facts li {
    padding: 0 12px;
  }

  .hero-facts strong {
    font-size: var(--fs-xs);
  }

  .hero-facts span {
    font-size: var(--fs-xs);
    line-height: 1.35;
  }

  .console-bar {
    grid-template-columns: 1fr auto;
  }

  .console-bar > span:nth-child(2) {
    display: none;
  }

  .console-body {
    padding: 17px;
  }

  .tool-flow {
    grid-template-columns: repeat(5, minmax(72px, 1fr));
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .flow-node strong {
    font-size: var(--fs-xs);
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-chart {
    grid-column: 1 / -1;
  }

  .signal-strip {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 4px;
  }

  .signal-strip span {
    flex: 0 0 auto;
  }

  .section {
    padding-top: 92px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 34px;
  }

  .tool-card-featured {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 27px;
  }

  .tool-card-featured .tool-title {
    margin-top: 44px;
  }

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

  .tool-description {
    min-height: auto;
  }

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

  .workflow-track li,
  .workflow-track li:not(:first-child) {
    min-height: auto;
    padding: 27px 8px 27px 0;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .workflow-track li:first-child {
    border-top: 0;
  }

  .workflow-track li:not(:first-child)::before {
    left: -1px;
  }

  .comparison-panel {
    padding: 27px;
  }

  .chart-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .principle,
  .principle:not(:first-child) {
    min-height: auto;
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .principle:last-child {
    border-bottom: 0;
  }

  .principle h3 {
    margin-top: 42px;
  }

  .cta {
    margin-top: 92px;
    padding: 30px 25px;
  }

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

  .site-footer > p {
    display: none;
  }
}

@media (max-width: 430px) {
  .header-link {
    font-size: var(--fs-xs);
  }

  .hero h1 {
    letter-spacing: -0.07em;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-facts {
    gap: 12px;
  }

  .hero-facts li {
    padding: 0 8px;
  }

  .metric-card strong {
    font-size: var(--fs-md);
  }

  .tool-card {
    padding: 23px;
  }

  .tool-title h3 {
    overflow-wrap: anywhere;
  }

  .terminal-command {
    padding: 0 12px;
  }
}

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

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

/* Articles: index page and article pages */

.page-head {
  max-width: 760px;
  padding: 88px 0 48px;
}

.page-head h1 {
  margin: 0 0 18px;
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.page-head > p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-md);
  line-height: 1.75;
}

.article-list {
  display: grid;
  gap: 12px;
  padding-bottom: 28px;
}

.article-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 17, 23, 0.73);
  transition:
    border-color 200ms ease,
    background-color 200ms ease,
    transform 200ms ease;
}

.article-row:hover,
.article-row:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 32%, transparent);
  background-color: rgba(20, 27, 36, 0.83);
  transform: translateY(-2px);
}

.article-row-tag,
.article-tag {
  padding: 5px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.article-row-main {
  display: grid;
  gap: 4px;
}

.article-row-main strong {
  font-size: var(--fs-md);
  font-weight: 650;
}

.article-row-main span {
  color: var(--muted);
  font-size: var(--fs-sm);
}

.article-row-meta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  white-space: nowrap;
}

.articles-note {
  margin: 0 0 40px;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.article {
  max-width: 780px;
  margin: 0 auto;
  padding: 72px 0 40px;
}

.article-back {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: color 160ms ease;
}

.article-back:hover,
.article-back:focus-visible {
  color: var(--text);
}

.article-head {
  display: grid;
  justify-items: start;
  gap: 20px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.article-head h1 {
  margin: 0;
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--fs-xs);
}

.article-body {
  padding-top: 12px;
}

.article-body h2 {
  margin: 44px 0 14px;
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.article-body h3 {
  margin: 32px 0 12px;
  font-size: var(--fs-lg);
  font-weight: 600;
}

.article-body p,
.article-body li {
  color: var(--muted-strong);
  font-size: var(--fs-md);
  line-height: 1.8;
}

.article-body p {
  margin: 0 0 18px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.article-body a {
  color: var(--violet);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85em;
}

.article-body pre {
  margin: 0 0 18px;
  padding: 18px 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(5, 8, 11, 0.52);
}

.article-body pre code {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted-strong);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

@media (max-width: 760px) {
  .page-head {
    padding: 64px 0 36px;
  }

  .article-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .article-row-tag {
    justify-self: start;
  }

  .article {
    padding-top: 52px;
  }
}
