/* ===========================================================
   Plaindown — minimal dark marketing site
   =========================================================== */

:root {
  --bg:        oklch(0.135 0.005 250);
  --bg-1:      oklch(0.16 0.006 250);
  --bg-2:      oklch(0.185 0.006 250);
  --line:      oklch(0.255 0.008 250);
  --line-soft: oklch(0.22 0.008 250);
  --fg:        oklch(0.97 0.005 250);
  --fg-2:      oklch(0.78 0.008 250);
  --fg-3:      oklch(0.58 0.01 250);
  --fg-4:      oklch(0.42 0.01 250);

  --accent: #8B7CF6;
  --accent-oklch: oklch(0.68 0.16 290);
  --accent-soft: oklch(0.68 0.16 290 / 0.16);
  --accent-faint: oklch(0.68 0.16 290 / 0.08);
  --radius: 20px;

  --shadow-1: 0 1px 0 0 oklch(1 0 0 / 0.04) inset, 0 0 0 1px var(--line) inset;
  --shadow-2: 0 12px 40px -12px oklch(0 0 0 / 0.6), 0 0 0 1px var(--line) inset;

  --mono: "Geist Mono", ui-monospace, "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;
  --sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --max: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  font-family: var(--sans);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
code, pre { font-family: var(--mono); font-feature-settings: "ss01"; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent-soft); color: var(--fg); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.is-shown { opacity: 1; transform: translateY(0); }

/* ============== Nav ============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: oklch(0.135 0.005 250 / 0.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.nav__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
}
.nav--scrolled {
  background: oklch(0.135 0.005 250 / 0.85);
  border-bottom-color: var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
}
.brand__mark {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 7px;
  background: linear-gradient(160deg, var(--accent) 0%, oklch(from var(--accent) calc(l - 0.18) c h) 100%);
  position: relative;
  box-shadow: 0 0 0 1px oklch(from var(--accent) calc(l - 0.25) c h / 0.5), 0 6px 18px -6px var(--accent-soft);
}
.brand__mark-inner {
  width: 9px; height: 9px;
  background: var(--bg);
  border-radius: 2px;
  box-shadow: 0 0 0 1.4px var(--bg);
}
.brand__name { color: var(--fg); }
.brand__ver {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  color: var(--fg-3);
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  margin-left: 2px;
}
.nav__links {
  display: flex; gap: 26px; justify-content: center;
  font-size: 13.5px; color: var(--fg-2);
}
.nav__links a {
  position: relative;
  transition: color .2s ease;
}
.nav__links a:hover { color: var(--fg); }
.nav__links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.nav__links a:hover::after { transform: scaleX(1); }

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

/* Buttons */
.primary-btn, .ghost-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  font-size: 13px; font-weight: 500;
  border-radius: 999px;
  transition: transform .2s cubic-bezier(.22,.61,.36,1), background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.primary-btn {
  background: var(--fg);
  color: var(--bg);
  box-shadow: 0 0 0 1px oklch(from var(--fg) calc(l - 0.05) c h), 0 6px 16px -8px oklch(0 0 0 / 0.6);
}
.primary-btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--fg), 0 10px 22px -8px oklch(0 0 0 / 0.7); }
.primary-btn:active { transform: translateY(0); }
.ghost-btn {
  color: var(--fg-2);
  border: 1px solid var(--line);
  background: oklch(1 0 0 / 0.02);
}
.ghost-btn:hover { color: var(--fg); border-color: oklch(0.32 0.008 250); background: oklch(1 0 0 / 0.04); }

.primary-btn--lg, .ghost-btn--lg {
  padding: 12px 20px;
  font-size: 14px;
  border-radius: 999px;
}

/* ============== Hero ============== */
.hero {
  position: relative;
  padding: 80px 20px 56px;
  overflow: hidden;
  isolation: isolate;
}
.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  opacity: 0.55;
  z-index: -1;
}
.hero__glow {
  position: absolute;
  top: -10%; left: 50%;
  width: 720px; height: 540px;
  transform: translateX(-50%);
  background: radial-gradient(60% 60% at 50% 40%, var(--accent-soft), transparent 65%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
  animation: heroPulse 8s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1.0;  transform: translateX(-50%) scale(1.06); }
}

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  font-size: 12px; font-family: var(--mono);
  color: var(--fg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: oklch(1 0 0 / 0.02);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.badge:hover { color: var(--fg); border-color: oklch(0.32 0.008 250); background: oklch(1 0 0 / 0.04); }
.badge__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px var(--accent-soft); }
  50%      { box-shadow: 0 0 0 5px var(--accent-faint); }
}

.hero__title {
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 22px 0 20px;
  text-wrap: balance;
}
.hero__title-accent {
  background: linear-gradient(120deg, var(--fg) 0%, var(--fg-2) 30%, var(--accent) 70%, var(--fg) 100%);
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientSlide 9s ease-in-out infinite;
}
@keyframes gradientSlide {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.hero__sub {
  font-size: 17px; line-height: 1.55;
  color: var(--fg-2);
  max-width: 560px;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.hero__sub code {
  font-size: 14px; padding: 2px 6px; border-radius: 5px;
  background: var(--bg-1); border: 1px solid var(--line);
  color: var(--fg);
}
.hero__ctas {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero__meta {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px;
  color: var(--fg-3);
}
.hero__meta strong { color: var(--fg-2); font-weight: 500; }
.hero__meta-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--fg-4); }

/* Hero visual */
.hero__visual {
  position: relative;
}
.hero__visual-glow {
  position: absolute; inset: -30px;
  background: radial-gradient(50% 50% at 50% 50%, var(--accent-soft), transparent 70%);
  filter: blur(40px);
  z-index: -1;
}

/* ============== Terminal ============== */
.term {
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px -12px oklch(0 0 0 / 0.6);
  overflow: hidden;
  transition: transform .4s cubic-bezier(.22,.61,.36,1), border-color .3s ease;
}
.term:hover { transform: translateY(-2px); border-color: oklch(0.3 0.008 250); }
.term__chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: oklch(0.16 0.006 250 / 0.7);
}
.term__dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: oklch(0.28 0.008 250);
}
.term__dot:nth-child(1) { background: oklch(0.45 0.12 30); }
.term__dot:nth-child(2) { background: oklch(0.55 0.13 80); }
.term__dot:nth-child(3) { background: oklch(0.58 0.14 145); }
.term__title {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--fg-3);
  margin-left: 12px;
  flex: 1;
  text-align: center;
  margin-right: 50px;
}
.term__pill {
  font-family: var(--mono); font-size: 10px;
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.term__body {
  padding: 18px 18px 22px;
  font-family: var(--mono); font-size: 13px; line-height: 1.65;
  min-height: 260px;
}
.term__line {
  display: flex; align-items: baseline; gap: 10px;
  white-space: pre;
  opacity: 0;
  transform: translateY(4px);
  height: 0;
  margin: 0;
  overflow: hidden;
  transition:
    height .32s cubic-bezier(.22,.61,.36,1),
    opacity .28s ease .04s,
    transform .32s cubic-bezier(.22,.61,.36,1);
}
.term__line.is-shown {
  opacity: 1;
  transform: translateY(0);
  height: calc(1em * 1.65);
}
.term__line--blank.is-shown { height: calc(0.6em * 1.65); }
.term__line--out  { color: var(--fg-2); }
.term__line--plain { color: var(--fg-2); }
.term__line--plain .term__check { color: oklch(0.78 0.14 165); }
.term__line--cmd  { color: var(--fg); }
.term__line--ok   { color: oklch(0.78 0.14 165); }
.term__line--blank { height: 8px; }
.term__prompt { color: var(--accent); font-weight: 600; }
.term__check  { color: oklch(0.78 0.14 165); }
.term__tag { color: var(--accent); font-weight: 500; }
.term__caret {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--fg);
  vertical-align: text-bottom;
  transform: translateY(2px);
}

/* ============== Marquee ============== */
.marquee {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: oklch(0.13 0.005 250 / 0.5);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}
:root[data-marquee="0"] .marquee { display: none; }
.marquee__track {
  display: inline-flex; gap: 36px;
  padding: 14px 0;
  white-space: nowrap;
  animation: marqueeMove 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marqueeMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee__item {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px;
  color: var(--fg-3);
  text-transform: uppercase; letter-spacing: 0.12em;
}
.marquee__bullet {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

/* ============== Sections ============== */
.section { padding: 96px 20px; position: relative; }
.section__inner { max-width: var(--max); margin: 0 auto; }
.section__header { margin-bottom: 48px; max-width: 720px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px;
  color: var(--fg-3);
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 18px;
}
.eyebrow__dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}
.section__title {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.028em;
  font-weight: 600;
  margin: 0 0 16px;
  text-wrap: balance;
}
.section__sub {
  font-size: 17px; line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
  max-width: 580px;
  text-wrap: pretty;
}
.section__sub code {
  font-size: 14px; padding: 2px 6px; border-radius: 5px;
  background: var(--bg-1); border: 1px solid var(--line);
}

/* ============== Quick start ============== */
.qs {
  display: grid;
  gap: 20px;
}
.qs__install {
  display: grid;
  gap: 14px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-1);
  padding: 18px 22px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease;
}
.qs__install::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 0% 0%, var(--accent-faint), transparent 60%);
  pointer-events: none;
}
.qs__install:hover { border-color: oklch(0.3 0.008 250); }
.qs__install-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.qs__install-label {
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-3);
  text-transform: uppercase; letter-spacing: 0.14em;
}
.qs__install-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.qs__install-code {
  font-family: var(--mono); font-size: 15px;
  color: var(--fg);
}
.t-prompt { color: var(--accent); margin-right: 8px; }
.qs__install-note {
  font-family: var(--mono); font-size: 10px;
  font-weight: 500;
  color: var(--fg-3);
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
}
.copy-inline {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--fg-2);
  background: oklch(1 0 0 / 0.02);
  transition: all .2s ease;
}
.copy-inline:hover { color: var(--fg); border-color: oklch(0.32 0.008 250); background: oklch(1 0 0 / 0.04); }
.copy-inline.is-copied { color: oklch(0.78 0.14 165); border-color: oklch(0.4 0.1 165); }

/* Tabs */
.tabs {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-1);
}
.tabs__bar {
  display: flex; align-items: center;
  border-bottom: 1px solid var(--line);
  background: oklch(0.155 0.006 250 / 0.7);
  padding: 0 12px;
}
.tabs__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-3);
  transition: color .2s ease;
}
.tabs__btn:hover { color: var(--fg-2); }
.tabs__btn.is-active { color: var(--fg); }

/* Optional pill */
.opt-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  margin-left: 6px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-3);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  vertical-align: middle;
  line-height: 1.4;
}
.opt-pill--lg {
  font-size: 10px;
  padding: 3px 9px;
  margin-left: 10px;
  color: var(--accent);
  border-color: color-mix(in oklch, var(--accent) 35%, var(--line));
  background: color-mix(in oklch, var(--accent) 10%, transparent);
}
.tabs__underline {
  position: absolute; left: 12px; right: 12px; bottom: -1px;
  height: 1px; background: var(--accent);
  animation: tabSlide .25s cubic-bezier(.22,.61,.36,1);
}
@keyframes tabSlide { from { opacity: 0; } to { opacity: 1; } }
.tabs__filename {
  margin-left: auto;
  font-family: var(--mono); font-size: 11.5px;
  color: var(--fg-3);
  padding-right: 6px;
}

/* Code block */
.code { display: grid; }
.code__chrome {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: oklch(0.15 0.006 250 / 0.5);
}
.code__lang {
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-3);
  text-transform: uppercase; letter-spacing: 0.14em;
}
.code__copy {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 6px;
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-3);
  border: 1px solid transparent;
  transition: all .2s ease;
}
.code__copy:hover { color: var(--fg); border-color: var(--line); background: oklch(1 0 0 / 0.02); }
.code__pre {
  margin: 0;
  padding: 22px 22px;
  font-size: 13.5px; line-height: 1.7;
  overflow-x: auto;
  color: var(--fg-2);
}
.code__pre code { color: var(--fg-2); }

/* Syntax */
.t-com { color: var(--fg-4); font-style: italic; }
.t-kw  { color: oklch(0.72 0.13 290); }
.t-str { color: oklch(0.78 0.13 145); }
.t-id  { color: oklch(0.78 0.1 220); }
.t-fn  { color: var(--accent); }
.t-prop { color: oklch(0.82 0.09 200); }
.t-num { color: oklch(0.78 0.13 60); }

/* When a tabs container holds the code block, drop its top border */
.tabs .code { background: var(--bg-1); }
.tabs .code__chrome { display: none; }
.tabs .code__pre { padding: 22px 24px 26px; }

/* ============== Features ============== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 880px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature {
  position: relative;
  padding: 28px 26px 32px;
  background: var(--bg);
  transition: background .3s ease;
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 100% 0%, var(--accent-faint), transparent 65%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.feature:hover { background: var(--bg-1); }
.feature:hover::before { opacity: 1; }
.feature__glyph {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--accent);
  margin-bottom: 18px;
  transition: transform .35s cubic-bezier(.22,.61,.36,1), border-color .25s ease;
}
.feature:hover .feature__glyph {
  transform: translateY(-2px) rotate(-3deg);
  border-color: oklch(from var(--accent) l c h / 0.4);
}
.feature__title {
  font-size: 17px; font-weight: 600; letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: var(--fg);
}
.feature__body {
  font-size: 14px; line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
}
.feature__corner {
  position: absolute; top: 14px; right: 14px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fg-4);
  opacity: 0.4;
  transition: background .25s ease, opacity .25s ease;
}
.feature:hover .feature__corner { background: var(--accent); opacity: 1; }

/* ============== Options table ============== */
.opts {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-1);
}
.opts__head, .opts__row {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.4fr 2.4fr;
  gap: 24px;
  padding: 18px 22px;
  align-items: start;
  font-size: 13.5px;
}
.opts__head {
  background: oklch(0.155 0.006 250 / 0.7);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-3);
  text-transform: uppercase; letter-spacing: 0.14em;
}
.opts__row { border-bottom: 1px solid var(--line); transition: background .2s ease; }
.opts__row:last-child { border-bottom: 0; }
.opts__row:hover { background: oklch(0.16 0.006 250 / 0.5); }
.opts__name code {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 12.5px;
  color: var(--accent);
}
.opts__type { font-family: var(--mono); font-size: 12px; color: var(--fg-3); padding-top: 3px; }
.opts__def code { font-family: var(--mono); font-size: 12px; color: var(--fg-2); }
.opts__desc { color: var(--fg-2); line-height: 1.55; }
.opts__desc code {
  font-family: var(--mono); font-size: 12.5px;
  color: var(--fg);
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 5px;
  white-space: nowrap;
}

@media (max-width: 880px) {
  .opts__head, .opts__row {
    grid-template-columns: 1.2fr 0.8fr 2fr;
    gap: 16px;
  }
  .opts__head span:nth-child(3), .opts__row .opts__def { display: none; }
}
@media (max-width: 640px) {
  .opts__head { display: none; }
  .opts__row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 20px;
  }
  .opts__row .opts__def { display: block; }
  .opts__type::before { content: "Type: "; color: var(--fg-4); }
  .opts__def::before  { content: "Default: "; color: var(--fg-4); }
}

/* ============== How it works ============== */
.section--how { padding-bottom: 112px; }
.how {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: stretch;
}
@media (max-width: 880px) { .how { grid-template-columns: 1fr; } }

.how__rail {
  display: grid; gap: 8px;
  align-content: start;
}
.how__step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  text-align: left;
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-1);
  color: var(--fg-2);
  transition: all .25s ease;
  overflow: hidden;
}
.how__step:hover { border-color: oklch(0.3 0.008 250); color: var(--fg); }
.how__step.is-active {
  background: var(--bg-2);
  border-color: oklch(from var(--accent) l c h / 0.45);
  color: var(--fg);
}
.how__step-num {
  font-family: var(--mono); font-size: 11px;
  color: var(--accent);
  grid-column: 1; grid-row: 1;
}
.how__step-label {
  grid-column: 2; grid-row: 1;
  display: inline-flex; align-items: center; gap: 0;
  font-size: 13px; font-weight: 600; letter-spacing: -0.01em;
}
.how__step-title {
  grid-column: 1 / -1; grid-row: 2;
  font-size: 12.5px; color: var(--fg-3);
  line-height: 1.4;
}
.how__step.is-active .how__step-title { color: var(--fg-2); }
.how__step-bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.how__step.is-active .how__step-bar { transform: scaleY(1); }

.how__panel {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-1);
  padding: 28px 28px 0;
  overflow: hidden;
  position: relative;
}
.how__panel::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(50% 60% at 100% 0%, var(--accent-faint), transparent 60%);
  pointer-events: none;
}
.how__panel-head { position: relative; }
.how__panel-eyebrow {
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-3);
  text-transform: uppercase; letter-spacing: 0.14em;
}
.how__panel-head h3 {
  font-size: 22px; font-weight: 600; letter-spacing: -0.018em;
  margin: 8px 0 8px;
}
.how__panel-head p {
  margin: 0;
  font-size: 14.5px; line-height: 1.55;
  color: var(--fg-2);
  max-width: 540px;
}
.how__panel-code {
  position: relative;
  margin: 0 -28px;
  border-top: 1px solid var(--line);
}
.how__panel-code .code__chrome { display: none; }
.how__panel-code .code__pre { padding: 22px 28px 28px; }

/* ============== CTA ============== */
.cta {
  position: relative;
  padding: 88px 20px 100px;
  text-align: center;
  overflow: hidden;
}
.cta__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 60% at 50% 50%, var(--accent-soft), transparent 70%),
    linear-gradient(to bottom, transparent, var(--bg-1));
  z-index: -1;
}
.cta__bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 20%, transparent 70%);
  opacity: 0.4;
}
.cta__inner { max-width: 720px; margin: 0 auto; }
.cta__title {
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 16px;
  line-height: 1.05;
}
.cta__sub {
  color: var(--fg-2);
  font-size: 16px;
  margin: 0 0 32px;
}
.cta__row {
  display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.cta__row .primary-btn {
  font-family: var(--mono);
  font-size: 13px;
}

/* ============== Footer ============== */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 56px 20px 40px;
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
}
@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr; }
}
.footer__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.footer__cols > div { display: grid; gap: 10px; align-content: start; }
.footer__h {
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-3);
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 4px;
}
.footer__cols a {
  font-size: 13.5px;
  color: var(--fg-2);
  transition: color .2s ease;
  width: max-content;
}
.footer__cols a:hover { color: var(--fg); }
.footer__legal {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 12px;
  padding-top: 28px; margin-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11.5px;
  color: var(--fg-3);
}
.footer__sep { width: 3px; height: 3px; border-radius: 50%; background: var(--fg-4); }


@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__inner { grid-template-columns: auto auto; justify-content: space-between; }
}

/* ============== Comprehensive responsive ============== */
@media (max-width: 980px) {
  .hero { padding: 96px 18px 32px; }
  .section { padding: 72px 18px; }
  .section--how { padding-bottom: 84px; }
  .section__header { margin-bottom: 36px; }
}

@media (max-width: 760px) {
  .nav__inner { padding: 12px 16px; gap: 8px; }
  .brand__ver { display: none; }
  .ghost-btn span:not([class]) { display: none; }
  .ghost-btn { padding: 8px 10px; }

  .hero { padding: 88px 16px 24px; }
  .hero__title { margin-top: 18px; }
  .hero__sub { font-size: 16px; }
  .hero__visual { margin: 0 -4px; }

  .section { padding: 64px 16px; }
  .section__header { margin-bottom: 28px; }
  .section__sub { font-size: 15.5px; }

  .qs__install-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .qs__install-code { font-size: 13.5px; word-break: break-all; }

  .tabs__bar { padding: 0 8px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .tabs__bar::-webkit-scrollbar { display: none; }
  .tabs__btn { padding: 12px 12px; font-size: 12.5px; flex-shrink: 0; }
  .tabs__filename { display: none; }
  .code__pre { padding: 18px 18px; font-size: 12.5px; }
  .tabs .code__pre { padding: 18px 18px 22px; }

  .term__body { padding: 16px 14px 18px; font-size: 12px; min-height: 200px; }
  .term__title { display: none; }
  .term__chrome { padding: 10px 12px; }

  .feature { padding: 22px 20px 26px; }

  .how { gap: 16px; }
  .how__panel { padding: 22px 20px 0; }
  .how__panel-code { margin: 0 -20px; }
  .how__panel-code .code__pre { padding: 18px 20px 22px; }
  .how__panel-head h3 { font-size: 19px; }

  .footer { padding: 44px 18px 32px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }

  .cta { padding: 64px 16px 80px; }
  .cta__row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 360px;
    gap: 8px;
  }
  .cta__row .primary-btn,
  .cta__row .ghost-btn { justify-content: center; width: 100%; }
  .cta__row .primary-btn { font-size: 12.5px; }
  .cta__row .primary-btn span { overflow: hidden; text-overflow: ellipsis; }
}

@media (max-width: 480px) {
  .nav__cta .primary-btn span:first-child { display: inline; }
  .hero__title { font-size: clamp(34px, 11vw, 48px); }
  .hero__meta { flex-wrap: wrap; gap: 8px; }
  .hero__ctas .primary-btn--lg, .hero__ctas .ghost-btn--lg { flex: 1 1 auto; justify-content: center; }
  .features { border-radius: calc(var(--radius) - 4px); }
  .footer__cols { grid-template-columns: 1fr; } }

/* prevent code blocks from forcing horizontal scroll */
.code__pre { max-width: 100%; }
.code, .tabs, .qs__install, .opts, .how__panel, .term { min-width: 0; }
.qs, .features, .how { min-width: 0; }
