/* PLEx landing page */

.wrap {
  width: min(1200px, 100% - 48px);
  margin: 0 auto;
}

.btn-lg {
  height: 48px;
  padding: 0 22px;
  font-size: 15px;
  border-radius: 12px;
}

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav.scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.brand img {
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  padding: 6px 11px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* ----------------------------------------------------------------- hero */
.hero {
  position: relative;
  padding: 72px 0 40px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -200px 0 auto;
  height: 900px;
  pointer-events: none;
  background:
    radial-gradient(600px 380px at 78% 30%, rgba(139, 92, 246, 0.22), transparent 70%),
    radial-gradient(520px 340px at 60% 55%, rgba(34, 211, 238, 0.14), transparent 70%),
    radial-gradient(420px 300px at 15% 10%, rgba(59, 130, 246, 0.12), transparent 70%);
}

.hero-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--border) 60%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--border) 60%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 40%, #000 30%, transparent 75%);
  opacity: 0.45;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
}

.eyebrow:hover {
  color: var(--text);
}

.eyebrow .icon {
  width: 14px;
  height: 14px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(40px, 5.4vw, 66px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero h1 .grad-text {
  display: inline-block;
  padding-bottom: 0.08em;
}

.lede {
  max-width: 540px;
  margin: 0;
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.install {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 14px 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--text-2);
  font: 13.5px var(--mono);
}

.install:hover {
  color: var(--text);
  border-color: var(--muted);
}

.install .prompt {
  color: var(--accent);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 13.5px;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-points li::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E")
      center / 9px no-repeat,
    var(--grad);
}

/* window chrome */
.window {
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

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

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.window-title {
  color: var(--text-2);
  font: 12px var(--mono);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.window-badge {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--grad-soft);
  color: var(--text-2);
  font: 11px var(--mono);
  white-space: nowrap;
}

.hero-visual {
  position: relative;
  padding: 58px 0 96px 26px;
}

.window-code {
  padding: 12px 0;
  font: 13px/1.8 var(--mono);
  overflow-x: auto;
}

.ln-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  min-width: max-content;
  padding-right: 20px;
  white-space: pre;
}

.ln-row .no {
  padding-right: 14px;
  color: var(--muted);
  text-align: right;
  opacity: 0.6;
  user-select: none;
}

.ln-row.add {
  background: var(--add-bg);
}

.ln-row.add .no {
  color: var(--add-fg);
  opacity: 1;
}

.ln-row.hot {
  background: color-mix(in srgb, var(--sev-medium) 14%, transparent);
}

.ln-row.hot span:last-child {
  text-decoration: underline wavy color-mix(in srgb, var(--sev-medium) 85%, transparent);
  text-underline-offset: 5px;
  text-decoration-skip-ink: none;
}

.ln-row.del {
  background: var(--del-bg);
}

.float-card {
  position: absolute;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  font-size: 13px;
}

.float-card.regression {
  right: -18px;
  bottom: 0;
  width: min(330px, 80%);
  padding: 14px 16px;
  animation: float 6s ease-in-out infinite;
}

.float-card.check {
  left: -6px;
  top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px 9px 10px;
  animation: float 6s ease-in-out -3s infinite;
}

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

.check-ico {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--bad);
  color: #fff;
}

.check-ico .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
}

.float-card .muted {
  color: var(--muted);
  font-size: 12px;
}

.reg-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.reg-head code {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}

.reg-big {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 20px var(--mono);
  letter-spacing: -0.02em;
}

.reg-big .from {
  color: var(--text-2);
}

.reg-big .to {
  color: var(--bad);
}

.reg-big .icon {
  color: var(--muted);
}

.reg-meta {
  display: flex;
  gap: 14px;
  margin-top: 6px;
  color: var(--text-2);
  font-size: 12px;
}

.reg-meta b {
  color: var(--text);
  font-family: var(--mono);
}

.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 56px 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  backdrop-filter: blur(8px);
}

.stats div {
  padding: 20px 22px;
}

.stats div + div {
  border-left: 1px solid var(--border);
}

.stats dt {
  color: var(--text-2);
  font-size: 13px;
}

.stats dd {
  margin: 2px 0 0;
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------- sections */
.section {
  padding: 96px 0 0;
}

.section:last-of-type {
  padding-bottom: 96px;
}

.kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-head p,
.section-lede {
  margin: 14px 0 0;
  color: var(--text-2);
  font-size: 17px;
}

.section-lede code,
.section-head code,
.cta code {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--surface-3);
  font-size: 0.85em;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* ------------------------------------------------------------ playground */
.playground {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
}

.pg-cases {
  display: grid;
  align-content: start;
  gap: 6px;
}

.pg-case {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pg-case:hover {
  border-color: var(--border-strong);
}

.pg-case[aria-selected="true"] {
  border-color: transparent;
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
}

.pg-case .ico {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--surface-3);
  color: var(--text-2);
  font: 700 12px var(--mono);
}

.pg-case[aria-selected="true"] .ico {
  background: var(--grad);
  color: #fff;
}

.pg-case b {
  font-size: 14px;
  font-weight: 600;
}

.pg-case small {
  color: var(--muted);
  font: 11.5px var(--mono);
}

.pg-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pg-editor {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid var(--border);
  background: var(--bg-2);
}

.pg-toggle {
  margin-left: auto;
}

.segmented {
  display: inline-flex;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-2);
}

.segmented button {
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 550;
  white-space: nowrap;
}

.segmented button[aria-pressed="true"] {
  background: var(--surface-3);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.segmented button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pg-code {
  flex: 1;
  min-height: 300px;
  padding: 14px 0;
  font: 13px/1.85 var(--mono);
  overflow-x: auto;
}

.pg-code .ln-row {
  animation: line-in 0.35s ease both;
}

@keyframes line-in {
  from {
    opacity: 0;
    transform: translateX(-4px);
  }
}

.pg-finding {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.pg-finding h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.pg-finding p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
}

.pg-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pg-meta code {
  color: var(--text-2);
  font-size: 12px;
}

.pg-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pg-bar span {
  display: flex;
  justify-content: space-between;
  color: var(--text-2);
  font-size: 12px;
}

.pg-bar b {
  color: var(--text);
  font-family: var(--mono);
}

.pg-bar div {
  height: 5px;
  margin-top: 6px;
  border-radius: 4px;
  background: var(--surface-3);
  overflow: hidden;
}

.pg-bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--grad);
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pg-sugg {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
}

.pg-sugg li {
  display: flex;
  gap: 9px;
}

.pg-sugg li::before {
  content: "→";
  color: var(--accent);
  font-weight: 700;
}

.pg-sugg code {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--surface-3);
  font-size: 12px;
}

.pg-action {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pg-cmd {
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font: 12px var(--mono);
  overflow-x: auto;
  white-space: nowrap;
}

.pg-cmd::before {
  content: "$ ";
  color: var(--accent);
}

/* -------------------------------------------------------------- pipeline */
.pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.pipeline::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 10%, var(--border-strong) 90%, transparent);
}

.pipeline::after {
  content: "";
  position: absolute;
  top: 27px;
  left: 30px;
  width: 120px;
  height: 2px;
  background: var(--grad);
  filter: drop-shadow(0 0 6px rgba(91, 140, 255, 0.8));
  animation: travel 4.5s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}

@keyframes travel {
  from {
    transform: translateX(0);
    opacity: 0;
  }
  10%,
  85% {
    opacity: 1;
  }
  to {
    transform: translateX(calc(min(1200px, 100vw - 48px) - 180px));
    opacity: 0;
  }
}

.pipeline li {
  position: relative;
}

.step-n {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface);
  font: 700 14px var(--mono);
  box-shadow: var(--shadow);
}

.pipeline li:nth-child(odd) .step-n {
  color: var(--cyan);
}

.pipeline li:nth-child(even) .step-n {
  color: #a78bfa;
}

.pipeline h3 {
  margin: 18px 0 6px;
  font-size: 16px;
  font-weight: 650;
}

.pipeline p {
  margin: 0;
  color: var(--text-2);
  font-size: 13.5px;
}

.pipeline code {
  font-size: 12px;
}

/* ------------------------------------------------------------------- PR */
.pr-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.checks {
  display: grid;
  gap: 16px;
  margin: 28px 0 30px;
  padding: 0;
  list-style: none;
}

.checks li {
  display: grid;
  gap: 2px;
  padding-left: 30px;
  position: relative;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E")
      center / 11px no-repeat,
    var(--grad);
}

.checks b {
  font-size: 15px;
}

.checks span {
  color: var(--text-2);
  font-size: 14px;
}

.pr-mock {
  display: grid;
  gap: 12px;
}

.pr-status {
  display: grid;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.pr-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 13.5px;
}

.pr-status-row + .pr-status-row {
  border-top: 1px solid var(--border);
}

.pr-status-row .s {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #fff;
  flex: none;
}

.pr-status-row .s .icon {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

.pr-status-row .s.ok {
  background: var(--good);
}

.pr-status-row .s.fail {
  background: var(--bad);
}

.pr-status-row span:last-child {
  margin-left: auto;
  color: var(--muted);
  font-size: 12.5px;
}

.gh-comment {
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gh-comment-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13px;
}

.gh-comment-head img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.gh-comment-head b {
  color: var(--text);
}

.gh-comment .md {
  max-height: 360px;
  padding: 16px 18px;
  overflow: auto;
}

/* ----------------------------------------------------------------- rules */
.rule-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.rule-search {
  position: relative;
  flex: 1 1 280px;
}

.rule-search .icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.rule-search input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  font-size: 14px;
}

.rule-search input:focus {
  border-color: var(--accent);
  outline: none;
}

.rule-tools .segmented button {
  height: 32px;
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 12px;
}

.rule {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.rule:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.rule-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rule-top .badges {
  display: flex;
  gap: 5px;
  margin-left: auto;
}

.rule code {
  color: var(--accent);
  font-size: 12px;
  word-break: break-all;
}

.rule h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
}

.rule p {
  margin: 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.5;
}

.rule-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  padding-top: 4px;
}

.rule-tags span {
  color: var(--muted);
  font: 11px var(--mono);
}

.rule-tags span::before {
  content: "#";
}

.badge {
  height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 20px;
  letter-spacing: 0.02em;
  background: var(--surface-3);
  color: var(--text-2);
}

.badge.fix {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}

.badge.exp {
  background: color-mix(in srgb, var(--magenta) 14%, transparent);
  color: var(--magenta);
}

.rule-more {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.rule-empty {
  grid-column: 1 / -1;
  padding: 40px;
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  color: var(--text-2);
  text-align: center;
}

/* ---------------------------------------------------------- integrations */
.int-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: start;
}

.int-tabs {
  display: grid;
  gap: 6px;
  margin-top: 28px;
}

.int-tabs button {
  display: grid;
  gap: 1px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  text-align: left;
}

.int-tabs button:hover {
  background: var(--surface);
}

.int-tabs button[aria-selected="true"] {
  border-color: var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.int-tabs b {
  font-size: 15px;
  font-weight: 600;
}

.int-tabs span {
  color: var(--text-2);
  font-size: 13px;
}

.int-tabs button[aria-selected="true"] b {
  color: var(--accent);
}

.int-code {
  position: sticky;
  top: 90px;
}

.int-code .icon-btn {
  margin-left: auto;
  width: 28px;
  height: 28px;
}

.int-pre {
  min-height: 380px;
  max-height: 560px;
  padding: 18px 20px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre;
}

.y-key {
  color: var(--tk-fn);
}
.y-com {
  color: var(--tk-com);
  font-style: italic;
}
.y-str {
  color: var(--tk-str);
}
.y-pun {
  color: var(--muted);
}
.sh-cmd {
  color: var(--tk-bi);
}
.sh-flag {
  color: var(--tk-kw);
}

/* ------------------------------------------------------------------ CTA */
.cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 44px 48px;
  border-radius: 22px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 220px at 85% 0%, rgba(139, 92, 246, 0.2), transparent 70%);
  pointer-events: none;
}

.cta > * {
  position: relative;
}

.cta h2 {
  font-size: clamp(26px, 3vw, 34px);
}

.cta p {
  max-width: 640px;
  margin: 10px 0 0;
  color: var(--text-2);
}

/* ---------------------------------------------------------------- footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 44px;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 40px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  border-radius: 7px;
}

.footer-brand div {
  display: grid;
  font-size: 14px;
}

.footer-brand span {
  color: var(--muted);
  font-size: 13px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 20px;
  font-size: 14px;
  color: var(--text-2);
}

.footer nav a:hover {
  color: var(--text);
}

.footer-note {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

.footer-note code {
  font-size: 12px;
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }
  .hero-grid,
  .pr-grid,
  .int-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .hero-visual {
    padding-left: 0;
  }
  .pipeline {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 32px;
  }
  .pipeline::before,
  .pipeline::after {
    display: none;
  }
  .playground {
    grid-template-columns: minmax(0, 1fr);
  }
  .pg-cases {
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .int-code {
    position: static;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .hide-sm {
    display: none;
  }
  .hero {
    padding-top: 40px;
  }
  .lede {
    font-size: 16px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats div + div {
    border-left: 0;
  }
  .stats div {
    border-top: 1px solid var(--border);
  }
  .stats div:nth-child(-n + 2) {
    border-top: 0;
  }
  .stats div:nth-child(even) {
    border-left: 1px solid var(--border);
  }
  .stats div:last-child {
    grid-column: 1 / -1;
    border-left: 0;
  }
  .float-card.regression {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin-top: 12px;
    animation: none;
  }
  .hero-visual {
    padding: 44px 0 0;
  }
  .pg-stage {
    grid-template-columns: minmax(0, 1fr);
  }
  .pg-editor {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section {
    padding-top: 72px;
  }
  .cta {
    padding: 30px 24px;
  }
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer nav {
    justify-content: flex-start;
  }
}
