:root {
  --ink: #0b1220;
  --ink-2: #1e293b;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #ffffff;
  --soft: #f8fafc;
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --max: 1120px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  font:
    16px/1.65 "Segoe UI",
    system-ui,
    -apple-system,
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--indigo);
}
code {
  font:
    0.9em Consolas,
    Menlo,
    "Cascadia Mono",
    monospace;
  background: #eef2ff;
  color: #3730a3;
  padding: 0.1em 0.4em;
  border-radius: 6px;
}
:not(pre) > code {
  white-space: nowrap;
}
h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
}

/* language switch: show only the active language */
html[data-lang="en"] body [lang="it"],
html[data-lang="it"] body [lang="en"] {
  display: none !important;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap.narrow {
  max-width: 820px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus {
  left: 8px;
}
:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}
.links {
  display: flex;
  gap: 22px;
  margin-left: 16px;
  flex: 1;
}
.links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14.5px;
}
.links a:hover {
  color: #fff;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.lang {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 3px;
}
.lang button {
  border: 0;
  background: transparent;
  color: #cbd5e1;
  font: 600 12px/1 inherit;
  letter-spacing: 0.5px;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.lang button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #0b1220;
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.35);
}
.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}
.btn-sm {
  padding: 8px 14px;
  font-size: 13.5px;
}
.final .btn-ghost,
.hero .btn-ghost {
  color: #fff;
}

/* hero */
.hero {
  position: relative;
  color: #e2e8f0;
  background: #0b1220;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      900px 420px at 85% -10%,
      rgba(139, 92, 246, 0.45),
      transparent 60%
    ),
    radial-gradient(
      700px 380px at 0% 100%,
      rgba(34, 211, 238, 0.22),
      transparent 60%
    ),
    linear-gradient(160deg, #0b1220 0%, #1e1b4b 60%, #3b1a7a 100%);
}
.hero-in {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 96px;
}
.badge {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 20px;
  font-size: 13px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 14px;
  border-radius: 999px;
}
.badge span:first-child {
  color: var(--cyan);
  font-weight: 700;
}
.hero h1 {
  color: #fff;
  font-size: clamp(38px, 5.2vw, 62px);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--cyan), #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: 19px;
  color: #cbd5e1;
  max-width: 560px;
  margin: 0 0 28px;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}
.cta.center {
  justify-content: center;
}
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
}
.chips li {
  font-size: 13.5px;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

/* terminal */
.term-wrap {
  margin: 0;
}
.term {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12.5px;
  color: #94a3b8;
}
.term-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ef4444;
  display: inline-block;
}
.term-bar i:nth-child(2) {
  background: #f59e0b;
}
.term-bar i:nth-child(3) {
  background: #22c55e;
}
.term-bar span {
  margin-left: 8px;
}
.term-body {
  padding: 18px 18px 22px;
  font:
    13.5px/1.75 Consolas,
    Menlo,
    "Cascadia Mono",
    monospace;
  color: #e2e8f0;
  min-height: 280px;
}
.term-body .l {
  white-space: normal;
  overflow-wrap: break-word;
}
.l.p {
  color: #7dd3fc;
  margin-top: 8px;
}
.l.p:first-child {
  margin-top: 0;
}
.l.ok {
  color: #86efac;
}
.l.warn {
  color: #fcd34d;
}
html.js .term-body .l {
  opacity: 0;
  animation: line 0.4s ease forwards;
  animation-delay: calc(var(--d) * 0.45s + 0.3s);
}
@keyframes line {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.term-wrap figcaption {
  text-align: center;
  font-size: 12.5px;
  color: #94a3b8;
  margin-top: 12px;
}

/* stats */
.stats {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.stats-in {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 48px;
  padding-bottom: 48px;
}
.stats-in div {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 26px 24px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.stats-in div::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}
.stats-in div:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}
.stats-in strong {
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(
    135deg,
    var(--indigo),
    var(--violet) 55%,
    var(--cyan)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats-in b {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.stats-in span {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

/* sections */
.section {
  padding: 96px 0;
}
.section.soft {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sec-head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
}
.sec-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.sec-head p {
  color: var(--muted);
  font-size: 17.5px;
  margin: 0;
}
.sec-head p.eyebrow {
  color: var(--violet);
  font-size: 13px;
  margin: 0 0 12px;
}

.grid {
  display: grid;
  gap: 22px;
}
.g3 {
  grid-template-columns: repeat(3, 1fr);
}
.g4 {
  grid-template-columns: repeat(4, 1fr);
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}
.card h3 {
  font-size: 19px;
  margin: 16px 0 8px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}
.profile h3 {
  font-family: Consolas, Menlo, monospace;
}
.ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
}
.i-indigo {
  background: #e0e7ff;
}
.i-sky {
  background: #e0f2fe;
}
.i-amber {
  background: #fef3c7;
}
.i-green {
  background: #dcfce7;
}
.i-violet {
  background: #ede9fe;
}
.i-pink {
  background: #fce7f3;
}

.shot {
  margin: 0 0 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--soft);
}
.shot img {
  display: block;
  width: 100%;
}

.scripts {
  margin-top: 12px;
}
.mini {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}
.mini code {
  align-self: flex-start;
}
.mini span {
  color: var(--muted);
  font-size: 14.5px;
}
.mini-note {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  justify-content: center;
}
.mini-note strong {
  font-size: 44px;
  line-height: 1;
  color: var(--indigo);
}

.ticks {
  list-style: none;
  max-width: 820px;
  margin: 8px auto 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.ticks li {
  position: relative;
  padding-left: 34px;
  color: var(--ink-2);
  font-size: 16.5px;
}
.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
}

/* start */
.start {
  background: linear-gradient(180deg, #fff, #f5f3ff);
}
.steps {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}
.steps ol {
  list-style: none;
  counter-reset: s;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.steps li {
  counter-increment: s;
  position: relative;
  padding: 16px 18px 16px 64px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 2px;
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #0b1220;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.steps li b {
  color: var(--ink);
}
.steps li span {
  color: var(--muted);
  font-size: 15px;
}
.code {
  background: #0f172a;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.code-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  font-size: 12.5px;
}
.copy {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 4px 10px;
  font: 600 12px inherit;
  cursor: pointer;
}
.copy:hover {
  background: rgba(255, 255, 255, 0.12);
}
.code pre {
  margin: 0;
  padding: 18px;
  color: #e2e8f0;
  overflow-x: auto;
  font:
    13.5px/1.7 Consolas,
    Menlo,
    monospace;
}
.code pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}
.note {
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
  margin: 28px 0 0;
}

/* faq */
.faq {
  display: grid;
  gap: 12px;
}
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 20px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--violet);
  font-size: 22px;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "−";
}
.faq details p {
  margin: 0 0 16px;
  color: var(--muted);
}
.docs {
  margin-top: 48px;
  text-align: center;
}
.docs h3 {
  font-size: 20px;
  margin-bottom: 14px;
}
.docs ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  padding: 0;
  margin: 0;
}
.docs a {
  text-decoration: none;
  font-weight: 600;
}
.docs a:hover {
  text-decoration: underline;
}

/* final cta + footer */
.final {
  text-align: center;
  color: #fff;
  padding: 88px 0;
  background: linear-gradient(135deg, #0b1220, #1e1b4b 55%, #5b21b6);
}
.final h2 {
  color: #fff;
  font-size: clamp(28px, 3.6vw, 42px);
  margin-bottom: 28px;
  letter-spacing: -0.015em;
}
.foot {
  background: #070c17;
  color: #94a3b8;
  font-size: 14px;
}
.foot-in {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
}
.foot a {
  color: #cbd5e1;
}

/* wizard page */
[hidden] {
  display: none !important;
}
.hero-sub .hero-in {
  grid-template-columns: 1fr;
  max-width: 880px;
  text-align: center;
  padding-top: 72px;
  padding-bottom: 80px;
}
.hero-sub .lead {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.hero-sub .cta {
  justify-content: center;
  margin-bottom: 0;
}
.hero-sub .lead code {
  background: rgba(255, 255, 255, 0.12);
  color: #e0e7ff;
}
.wz {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 32px;
  align-items: start;
}
.wz-side {
  position: sticky;
  top: 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
}
.wz-progress {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--muted);
  box-shadow: var(--shadow);
}
.wz-progress b {
  color: var(--ink);
}
.wz-bar {
  height: 8px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: #eef2ff;
  overflow: hidden;
}
.wz-bar i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transition: width 0.3s ease;
}
.wz-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  counter-reset: wz -1;
}
.wz-nav li {
  counter-increment: wz;
}
.wz-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
}
.wz-nav a::before {
  content: counter(wz);
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  background: #eef2ff;
  color: #3730a3;
}
.wz-nav a:hover {
  background: #f1f5f9;
}
.wz-nav a[aria-current="step"] {
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--shadow);
}
.wz-nav a[aria-current="step"]::before {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #0b1220;
}
.wz-nav a.done::before {
  content: "✓";
  background: #dcfce7;
  color: #15803d;
}
.wz-reset {
  justify-self: start;
  border: 0;
  background: none;
  padding: 0 12px;
  color: var(--muted);
  font: inherit;
  font-size: 13.5px;
  text-decoration: underline;
  cursor: pointer;
}
.wz-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  min-width: 0;
}
.wz-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 36px;
  scroll-margin-top: 88px;
}
html.js .wz-panel {
  animation: line 0.35s ease;
}
.wz-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.wz-num {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #0b1220;
}
.wz-kicker {
  margin: 0 0 4px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
}
.wz-head h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  outline: none;
}
.wz-panel ol,
.wz-panel ul {
  padding-left: 22px;
}
.wz-panel li + li {
  margin-top: 6px;
}
.tbl {
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow-x: auto;
}
.tbl table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.tbl th,
.tbl td {
  text-align: left;
  vertical-align: top;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}
.tbl th {
  background: var(--soft);
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tbl tr:last-child td {
  border-bottom: 0;
}
.opts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.opt {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}
.opt b {
  color: var(--ink);
}
.opt span {
  color: var(--muted);
  font-size: 14.5px;
}
.opt small {
  color: var(--muted);
  font-size: 13px;
}
.opt.rec {
  border-color: #c4b5fd;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
}
.opt .tag {
  justify-self: start;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ede9fe;
  color: #5b21b6;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.callout {
  margin: 18px 0;
  padding: 14px 16px 14px 18px;
  border-left: 4px solid;
  border-radius: 12px;
  font-size: 15px;
}
.callout.info {
  background: #eff6ff;
  border-color: #3b82f6;
}
.callout.important {
  background: #fff7ed;
  border-color: #f97316;
}
.verify {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  background: #f0fdf4;
  color: #14532d;
  font-size: 15px;
}
.wz-panel .code {
  margin: 18px 0;
}
.wz-done {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}
.wz-done input {
  width: 20px;
  height: 20px;
  accent-color: var(--violet);
}
.wz-pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
button.btn {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.btn-soft {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}
.sub-title {
  font-size: 20px;
  margin: 8px 0 16px;
}

/* environment selector: show only the blocks of the chosen tool */
html[data-env="vscode"] [data-env-only]:not([data-env-only~="vscode"]),
html[data-env="cli"] [data-env-only]:not([data-env-only~="cli"]),
html[data-env="claude"] [data-env-only]:not([data-env-only~="claude"]) {
  display: none !important;
}
.env-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.env-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px;
  text-align: left;
  font: inherit;
  color: var(--ink-2);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.env-card:hover {
  transform: translateY(-3px);
  border-color: #c4b5fd;
}
.env-card b {
  margin-top: 6px;
  font-size: 19px;
  color: var(--ink);
}
.env-d {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.env-card[aria-pressed="true"] {
  border-color: var(--violet);
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  box-shadow:
    0 0 0 4px rgba(139, 92, 246, 0.16),
    var(--shadow);
}
.env-card[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #0b1220;
  font-size: 15px;
  font-weight: 800;
}
.env-panel {
  padding: 28px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--violet);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.env-panel h3 {
  margin: 0 0 18px;
  font-size: 21px;
}
.env-steps {
  counter-reset: env;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.env-steps > li {
  counter-increment: env;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding-left: 46px;
}
.env-steps > li::before {
  content: counter(env);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 700;
  font-size: 14px;
}
.env-steps > li > b {
  color: var(--ink);
}
.env-steps > li > span,
.env-steps > li > div {
  display: block;
  color: var(--muted);
}
.env-steps .code {
  margin: 10px 0 0;
}
.wizard-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding: 20px 24px;
  border: 1px solid #c4b5fd;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink-2);
}
.wizard-cta > span:nth-child(2) {
  display: grid;
  gap: 2px;
  flex: 1;
}
.wizard-cta b {
  color: var(--ink);
  font-size: 17px;
}
.wizard-cta span span {
  color: var(--muted);
}
.wizard-cta .ico {
  flex: none;
}
.wizard-cta .arrow {
  font-size: 24px;
  color: var(--violet);
  transition: transform 0.15s ease;
}
.wizard-cta:hover .arrow {
  transform: translateX(4px);
}
.install-alt {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.install-alt h3 {
  margin: 0 0 10px;
  font-size: 16px;
}
.install-alt .code pre {
  font-size: 12.5px;
}

/* reveal on scroll */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .hero-in {
    grid-template-columns: 1fr;
    padding-top: 64px;
    padding-bottom: 72px;
  }
  .g4,
  .g3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-in {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .install-alt {
    grid-template-columns: minmax(0, 1fr);
  }
  .wz {
    grid-template-columns: minmax(0, 1fr);
  }
  .wz-side {
    position: static;
  }
  .wz-nav ol {
    display: flex;
    overflow-x: auto;
    padding-bottom: 6px;
  }
  .wz-nav a {
    white-space: nowrap;
    font-size: 14px;
  }
  .links {
    display: none;
  }
}
@media (max-width: 620px) {
  :not(pre) > code {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .g4,
  .g3,
  .stats-in {
    grid-template-columns: 1fr;
  }
  .stats-in {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .stats-in div {
    padding: 20px 16px 18px;
  }
  .stats-in strong {
    font-size: 52px;
  }
  .section {
    padding: 72px 0;
  }
  .btn-sm {
    display: none;
  }
  .term-body {
    font-size: 11.5px;
    padding: 14px 12px 18px;
    min-height: 0;
  }
  .wz-panel {
    padding: 24px 18px;
  }
  .env-panel {
    padding: 22px 18px;
  }
  .wz-num {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
  .wizard-cta .arrow {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  html.js .reveal,
  html.js .term-body .l,
  html.js .wz-panel {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .btn,
  .card {
    transition: none;
  }
}
