:root {
  --bg: #060b0f;
  --panel: #0a1218;
  --panel-strong: #0f1b23;
  --panel-soft: #111827;
  --ink: #f8fafc;
  --text: #d8e2ea;
  --muted: #8ba3b0;
  --line: rgba(148, 163, 184, 0.22);
  --line-strong: rgba(103, 232, 249, 0.34);
  --cyan: #67e8f9;
  --blue: #2563eb;
  --violet: #a78bfa;
  --green: #34d399;
  --warning: #f59e0b;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  --content: 1120px;
  --rewrite-cols: minmax(170px, 0.32fr) 2rem minmax(0, 1fr);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(103, 232, 249, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.22), transparent 35rem),
    var(--bg);
  background-size: 40px 40px, 40px 40px, auto, auto;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

img {
  display: block;
}

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

code {
  color: #e0fbff;
  background: rgba(103, 232, 249, 0.08);
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 6px;
  padding: 0.08rem 0.3rem;
  font-size: 0.93em;
}

pre {
  margin: 0;
  overflow-x: auto;
  color: #dffbff;
  line-height: 1.55;
  white-space: pre;
  scrollbar-color: rgba(103, 232, 249, 0.45) rgba(15, 27, 35, 0.9);
}

pre::-webkit-scrollbar,
.rewrite-row code::-webkit-scrollbar,
.pipeline-node code::-webkit-scrollbar {
  height: 0.55rem;
}

pre::-webkit-scrollbar-track,
.rewrite-row code::-webkit-scrollbar-track,
.pipeline-node code::-webkit-scrollbar-track {
  background: rgba(15, 27, 35, 0.9);
}

pre::-webkit-scrollbar-thumb,
.rewrite-row code::-webkit-scrollbar-thumb,
.pipeline-node code::-webkit-scrollbar-thumb {
  background: rgba(103, 232, 249, 0.45);
  border-radius: 999px;
}

pre code {
  display: block;
  min-width: max-content;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: 0.88rem;
}

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

h1,
h2,
h3,
strong {
  color: var(--ink);
}

h1 {
  max-width: var(--content);
  margin: 0 auto 1rem;
  font-size: clamp(3.5rem, 4.8vw, 4.35rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

h2 {
  max-width: 16em;
  margin-bottom: 0.9rem;
  font-size: 2.7rem;
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 76px;
  padding: 0.9rem max(1.25rem, calc((100vw - 1180px) / 2));
  background: rgba(6, 11, 15, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: var(--ink);
  font-weight: 760;
  line-height: 1.15;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 0 28px rgba(103, 232, 249, 0.18);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  min-height: 2.25rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: rgba(103, 232, 249, 0.08);
  border-color: var(--line-strong);
}

.hero,
.site-footer {
  width: 100%;
  max-width: 100%;
  padding-right: max(1.25rem, calc((100vw - 1180px) / 2));
  padding-left: max(1.25rem, calc((100vw - 1180px) / 2));
}

.hero {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding-top: 4.5rem;
  padding-bottom: 4.25rem;
  border-bottom: 1px solid var(--line);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 100%;
  margin-bottom: 1.35rem;
  padding: 0.45rem 0.9rem 0.45rem 0.45rem;
  color: var(--cyan);
  background: rgba(10, 18, 24, 0.82);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
  box-shadow: 0 0 40px rgba(103, 232, 249, 0.12);
}

.hero-kicker img {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
}

.hero-kicker span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.hero-text {
  max-width: 48rem;
  width: 100%;
  margin-bottom: 1.8rem;
  color: var(--muted);
  font-size: 1.15rem;
  text-align: center;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2.3rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.72rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.2;
}

.button-primary {
  color: #031014;
  background: var(--cyan);
  box-shadow: 0 0 36px rgba(103, 232, 249, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #9af3ff;
}

.button-secondary {
  color: var(--ink);
  background: rgba(15, 27, 35, 0.82);
  border-color: var(--line);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--violet);
}

.pipeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  width: min(100%, var(--content));
  max-width: 100%;
  margin-bottom: 1rem;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(103, 232, 249, 0.08), rgba(167, 139, 250, 0.08)),
    rgba(10, 18, 24, 0.78);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.pipeline-node {
  min-width: 0;
  padding: 1rem;
  background: #050a0e;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
}

.pipeline-node code {
  display: block;
  overflow-x: auto;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--ink);
  font-size: 1.05rem;
  white-space: nowrap;
}

.node-label,
.eyebrow {
  display: block;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 820;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
}

.node-label {
  margin-bottom: 0.5rem;
}

.target-node {
  border-color: rgba(52, 211, 153, 0.38);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.08);
}

.pipeline-link {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.pipeline-link span {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

.pipeline-link span:last-child {
  background: linear-gradient(90deg, var(--violet), transparent);
}

.pipeline-link img {
  width: 3.4rem;
  height: 3.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 0 34px rgba(103, 232, 249, 0.22);
}

.hero-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(100%, var(--content));
}

.hero-status div {
  min-width: 0;
  padding: 0.85rem 1rem;
  background: rgba(15, 27, 35, 0.72);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.hero-status span {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-status strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.97rem;
  line-height: 1.25;
}

.product-section {
  width: 100%;
  max-width: 100%;
  padding: 4.75rem max(1.25rem, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
}

.product-section:nth-of-type(odd) {
  background: rgba(37, 99, 235, 0.035);
}

.section-shell {
  display: grid;
  gap: 1.35rem;
  width: min(100%, var(--content));
  min-width: 0;
  margin-right: auto;
  margin-left: auto;
}

.section-shell > * {
  min-width: 0;
}

.section-head {
  display: grid;
  gap: 0.65rem;
  max-width: 56rem;
}

.section-head h2 {
  max-width: none;
  margin-bottom: 0;
  white-space: nowrap;
}

.section-head p {
  max-width: 44rem;
  margin-bottom: 0;
  color: var(--muted);
}

.tool-panel {
  overflow: hidden;
  width: 100%;
  min-width: 0;
  background: rgba(10, 18, 24, 0.88);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.panel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 3rem;
  padding: 0.8rem 1rem;
  color: var(--muted);
  background: rgba(15, 27, 35, 0.92);
  border-bottom: 1px solid var(--line);
}

.panel-header span,
.meta-badge {
  font-size: 0.75rem;
  font-weight: 820;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
}

.panel-header span:last-child {
  text-align: right;
}

.command-row,
.rewrite-row,
.status-row {
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.command-row:last-child,
.rewrite-row:last-child,
.status-row:last-child {
  border-bottom: 0;
}

.command-row {
  display: grid;
  grid-template-columns: minmax(190px, 0.32fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}

.row-meta {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.row-meta strong {
  line-height: 1.2;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 1.5rem;
  padding: 0.25rem 0.5rem;
  color: var(--warning);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 999px;
}

.meta-badge.is-tested {
  color: var(--green);
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.22);
}

.command-row pre,
.command-list {
  min-width: 0;
  padding: 1rem;
  background: rgba(5, 10, 14, 0.8);
  border: 1px solid rgba(103, 232, 249, 0.1);
  border-radius: 8px;
}

.rewrite-header {
  grid-template-columns: var(--rewrite-cols);
}

.rewrite-header span:nth-child(2) {
  text-align: center;
}

.rewrite-header span:nth-child(3) {
  text-align: left;
}

.rewrite-row {
  display: grid;
  grid-template-columns: var(--rewrite-cols);
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
}

.rewrite-row > span {
  color: var(--violet);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-weight: 800;
  text-align: center;
}

.rewrite-row code {
  overflow-x: auto;
  white-space: nowrap;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.detail-card {
  padding: 1rem;
  background: rgba(10, 18, 24, 0.68);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.detail-card > span {
  display: inline-flex;
  margin-bottom: 0.85rem;
  color: var(--cyan);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 900;
}

.detail-card p,
.status-row p,
.site-footer p {
  margin-bottom: 0;
  color: var(--muted);
}

.status-header {
  grid-template-columns: minmax(150px, 0.28fr) minmax(210px, 0.38fr) minmax(240px, 1fr);
}

.status-header span {
  text-align: left;
}

.status-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(210px, 0.38fr) minmax(240px, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--cyan);
  font-weight: 780;
}

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

@media (max-width: 980px) {
  h1 {
    max-width: 11ch;
    font-size: 3.8rem;
    white-space: normal;
  }

  h2 {
    max-width: 16em;
    font-size: 2.2rem;
  }

  .section-head h2 {
    white-space: normal;
  }

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

  .pipeline-link {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0.45rem;
    width: auto;
    min-height: 8rem;
    justify-self: center;
  }

  .pipeline-link span {
    width: 2px;
    height: 2.1rem;
    background: linear-gradient(180deg, transparent, var(--cyan));
  }

  .pipeline-link span:last-child {
    background: linear-gradient(180deg, var(--violet), transparent);
  }

  .pipeline-link img {
    transform: none;
  }

  .detail-grid,
  .hero-status {
    grid-template-columns: 1fr;
  }

  .command-row,
  .status-header,
  .status-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .status-header span,
  .panel-header span:last-child {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.85rem;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }

  .hero {
    min-height: auto;
    padding-top: 3.5rem;
  }

  .hero-kicker {
    align-items: flex-start;
    width: 100%;
    max-width: calc(100vw - 3rem);
    border-radius: 14px;
  }

  h1 {
    max-width: 8.8ch;
    font-size: 2.25rem;
    line-height: 0.98;
  }

  h2 {
    max-width: none;
    font-size: 1.9rem;
  }

  .hero-text {
    max-width: 19rem;
    font-size: 0.96rem;
  }

  .pipeline,
  .hero-status {
    max-width: calc(100vw - 3rem);
  }

  .product-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .section-shell {
    gap: 1rem;
  }

  .section-head {
    max-width: 100%;
  }

  .section-head p {
    overflow-wrap: anywhere;
  }

  .panel-header,
  .command-row,
  .rewrite-row,
  .status-row {
    padding-right: 0.85rem;
    padding-left: 0.85rem;
  }

  .panel-header {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .panel-header span:last-child {
    text-align: left;
  }

  .rewrite-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .rewrite-header {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .rewrite-header span:nth-child(2) {
    display: none;
  }

  .rewrite-row span {
    text-align: left;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  body {
    font-size: 15px;
  }

  .brand span {
    max-width: 12rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .button {
    width: 100%;
  }

  h1 {
    max-width: 8.8ch;
    font-size: 2.12rem;
  }

  .hero,
  .product-section,
  .site-footer {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .hero-kicker,
  .pipeline,
  .hero-status {
    max-width: calc(100vw - 3rem);
  }

  .hero-text {
    max-width: 18.5rem;
    font-size: 0.95rem;
  }

  pre code,
  .pipeline-node code,
  .rewrite-row code {
    font-size: 0.82rem;
  }
}
