/* ==========================================================================
   Moon Executor — site styles
   Night-instrument aesthetic: near-black, moonlight accent, hairline rules,
   monospaced instrumentation around an editorial display face.
   ========================================================================== */

:root {
  --bg: #07080b;
  --bg-2: #0a0c11;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);

  --ink: #eceef6;
  --ink-2: #c3c9d8;
  --muted: #8d95a9;
  --faint: #757e92;

  --moon: #a9baff;
  --moon-2: #d8e0ff;

  --ok: #6ccb5f;
  --warn: #ffc83d;
  --err: #ff8b9a;
  --log: #60cdff;

  --sans: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: "Cascadia Code", "Cascadia Mono", "JetBrains Mono", "SF Mono", Consolas, ui-monospace, monospace;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, dl, dd, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code, kbd, pre { font-family: var(--mono); }

::selection { background: rgba(169, 186, 255, 0.28); color: #fff; }

:focus-visible {
  outline: 2px solid var(--moon);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 24px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--moon);
  color: #08090d;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 16px; }

/* grain ---------------------------------------------------------------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* header --------------------------------------------------------------- */

.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-head.is-stuck {
  background: rgba(7, 8, 11, 0.78);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  min-width: 0;
}
.brand-mark {
  width: 28px;
  height: 28px;
  flex: none;
  display: block;
  border-radius: 7px;
  filter: drop-shadow(0 2px 7px rgba(111, 125, 255, 0.3));
}
.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-dim { color: var(--muted); font-weight: 500; }

.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--moon);
  border: 1px solid rgba(169, 186, 255, 0.28);
  background: rgba(169, 186, 255, 0.07);
  border-radius: 4px;
  padding: 3px 7px;
  white-space: nowrap;
}

.head-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13.5px;
  color: var(--muted);
}
.head-nav a { transition: color 0.2s; }
.head-nav a:hover { color: var(--ink); }

/* buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.25s;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, #f3f5ff 0%, #dbe2f9 100%);
  color: #0a0b10;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 10px 30px -12px rgba(169, 186, 255, 0.55);
}
.btn-primary:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 16px 40px -14px rgba(169, 186, 255, 0.75);
}
.btn-primary .btn-meta { color: rgba(10, 11, 16, 0.52); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover {
  border-color: rgba(169, 186, 255, 0.42);
  color: var(--ink);
  background: rgba(169, 186, 255, 0.06);
}

.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 15px; border-radius: 10px; }

.btn-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  padding-left: 10px;
  border-left: 1px solid currentColor;
  border-left-color: rgba(255, 255, 255, 0.16);
  font-weight: 500;
}
.btn-sm .btn-meta { border-left-color: rgba(10, 11, 16, 0.2); }

.ico { width: 16px; height: 16px; flex: none; }
.arrow { color: var(--muted); transition: transform 0.2s var(--ease), color 0.2s; }
.btn:hover .arrow { color: var(--moon); transform: translate(1px, -1px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--moon);
  border-bottom: 1px solid rgba(169, 186, 255, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.text-link:hover { border-color: var(--moon); color: #e3e9ff; }

/* hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: 72px;
  overflow: hidden;
}

.hero-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-disc {
  position: absolute;
  top: -420px;
  right: -180px;
  width: 1000px;
  height: 1000px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, rgba(216, 224, 255, 0.5), rgba(143, 162, 255, 0.22) 42%, rgba(111, 125, 255, 0.05) 62%, transparent 70%);
  filter: blur(14px);
  opacity: 0.5;
}

.hero-ring {
  position: absolute;
  top: -300px;
  right: -60px;
  width: 860px;
  height: 860px;
  border-radius: 50%;
  border: 1px solid rgba(169, 186, 255, 0.13);
  mask-image: linear-gradient(200deg, #000 10%, transparent 62%);
  -webkit-mask-image: linear-gradient(200deg, #000 10%, transparent 62%);
}
.hero-ring::after {
  content: "";
  position: absolute;
  inset: 88px;
  border-radius: 50%;
  border: 1px solid rgba(169, 186, 255, 0.08);
}

.hero-lines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(to right, rgba(255, 255, 255, 0.032) 0 1px, transparent 1px 110px);
  mask-image: radial-gradient(120% 90% at 70% 0%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 0%, #000 10%, transparent 70%);
}

.hero-inner {
  position: relative;
  padding-top: clamp(56px, 9vw, 110px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 34px;
}
.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--moon);
  box-shadow: 0 0 0 4px rgba(169, 186, 255, 0.12);
  animation: breathe 3.4s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 3px rgba(169, 186, 255, 0.1); }
  50% { box-shadow: 0 0 0 7px rgba(169, 186, 255, 0.04); }
}

.hero h1 {
  font-size: clamp(3.1rem, 8.2vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  font-weight: 600;
  max-width: 14ch;
  background: linear-gradient(175deg, #ffffff 12%, #d5dbf0 52%, #98a3c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  padding-right: 0.06em;
  background: linear-gradient(170deg, #e8edff 0%, var(--moon) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 38px;
}

.lede {
  max-width: 52ch;
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.65;
  color: var(--muted);
}
.lede b { color: var(--ink-2); font-weight: 500; }

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.free-pill {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  padding: 8px 15px 8px 13px;
  border: 1px solid rgba(169, 186, 255, 0.24);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(169, 186, 255, 0.1), rgba(169, 186, 255, 0.03));
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.free-pill b { color: var(--moon); font-weight: 600; }
.free-sep { color: rgba(255, 255, 255, 0.26); }
.free-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--moon);
  box-shadow: 0 0 0 3px rgba(169, 186, 255, 0.14);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 46px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-meta > div {
  padding: 16px 24px 16px 0;
  border-right: 1px solid var(--line);
}
.hero-meta > div:last-child { border-right: 0; padding-right: 0; }
.hero-meta > div + div { padding-left: 24px; }
.hero-meta dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 5px;
}
.hero-meta dd { font-size: 13.5px; color: var(--ink-2); }

.sha {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  padding: 0;
}
.sha-text { border-bottom: 1px dashed rgba(255, 255, 255, 0.18); }
.sha-copy {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  transition: color 0.2s;
}
.sha:hover .sha-copy { color: var(--moon); }
.sha.is-copied .sha-copy { color: var(--ok); }

/* screenshot frame ------------------------------------------------------ */

.hero-shot { margin-top: clamp(48px, 7vw, 84px); }

.shot {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #08090d;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 50px 120px -30px rgba(0, 0, 0, 0.95),
    0 0 90px -30px rgba(122, 140, 255, 0.35);
}
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 18%);
}

.shot-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 38px;
  padding: 0 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #0a0b0f;
}
.lights { display: inline-flex; gap: 6px; }
.lights i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #262932;
}
.shot-title {
  font-family: var(--mono);
  font-size: 11px;
  color: #767d90;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.shot-note {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  color: #4d5364;
  white-space: nowrap;
}
.shot-body { background: #111318; }
.shot-body img { width: 100%; }

/* ticker ---------------------------------------------------------------- */

.ticker {
  position: relative;
  margin-top: clamp(56px, 8vw, 92px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 14px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.ticker-track span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}
.ticker-track b {
  font-size: 7px;
  color: rgba(169, 186, 255, 0.45);
  font-weight: 400;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* facts ----------------------------------------------------------------- */

.facts { padding: clamp(56px, 7vw, 88px) 0; }

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.fact {
  padding: 0 28px;
  border-left: 1px solid var(--line);
}
.fact:first-child { border-left: 0; padding-left: 0; }
.fact:last-child { padding-right: 0; }
.fact-num {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--faint);
  display: block;
  margin-bottom: 14px;
}
.fact h2 {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.fact p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* sections -------------------------------------------------------------- */

.section {
  position: relative;
  padding: clamp(72px, 9vw, 124px) 0;
  border-top: 1px solid var(--line);
}

.sec-head { max-width: 720px; margin-bottom: clamp(44px, 6vw, 68px); }

.sec-index {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 22px;
}
.sec-index span { color: var(--moon); }
.sec-index::after {
  content: "";
  height: 1px;
  width: 64px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.sec-title {
  font-size: clamp(2.05rem, 4.3vw, 3.4rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: #f4f6ff;
}
.sec-lede {
  margin-top: 20px;
  max-width: 62ch;
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--muted);
}
.sec-lede b { color: var(--ink-2); font-weight: 500; }

/* split layout ---------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.spec { display: grid; gap: 26px; }
.spec li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 16px;
}
.spec .ico { margin-top: 4px; color: var(--moon); width: 17px; height: 17px; }
.spec h3 {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  color: #e8ebf6;
}
.spec p { font-size: 13.8px; line-height: 1.62; color: var(--muted); }

.keys {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.keys-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
  width: 100%;
  margin-bottom: 2px;
}
.key { display: inline-flex; align-items: center; gap: 5px; }
.kbd, kbd {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  background: #14161d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom-color: rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  padding: 3px 6px;
  line-height: 1.2;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}
.key em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--faint);
}

/* code cards ------------------------------------------------------------ */

.code-card, .mcp-code, .cli {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: #0a0c11;
  overflow: hidden;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9);
}

.code-top, .cli-head {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 14px;
  background: #0d0f15;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.code-file {
  font-family: var(--mono);
  font-size: 11px;
  color: #8a92a6;
}
.code-lang {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
}

pre.code {
  margin: 0;
  padding: 22px 20px;
  overflow-x: auto;
  font-size: 12.7px;
  line-height: 1.75;
  color: #c9cfdd;
  tab-size: 2;
}
.code-sm { font-size: 12px; line-height: 1.8; }

.c-com { color: #5c6a7d; font-style: italic; }
.c-kw { color: #a3b2ff; }
.c-fn { color: #7fd0ff; }
.c-str { color: #a9d8a2; }
.c-key { color: #c3cdf5; }

.code-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #0d0f15;
  font-family: var(--mono);
  font-size: 10.5px;
  color: #6b7387;
}
.dot-ok {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(108, 203, 95, 0.6);
}
.code-ver { margin-left: auto; color: #4e5566; }

.figure-note {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--faint);
}

/* console section ------------------------------------------------------- */

.section-console {
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(122, 140, 255, 0.05), transparent 70%),
    var(--bg-2);
}

.term {
  border: 1px solid #22252d;
  border-radius: 11px;
  overflow: hidden;
  background: #0c0d10;
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.95);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 40px;
  padding: 0 15px;
  background: #0a0b0e;
  border-bottom: 1px solid #1b1c21;
}
.term-lights { display: inline-flex; gap: 6px; }
.term-lights i { width: 9px; height: 9px; border-radius: 50%; background: #2e2f36; }
.term-name {
  font-family: var(--mono);
  font-size: 11.5px;
  color: #8a8e99;
}
.term-count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: #5b5d66;
}

.term-body {
  padding: 20px 20px 28px;
  font-family: var(--mono);
  font-size: 12.8px;
  line-height: 1.85;
}
.term-body .row {
  display: grid;
  grid-template-columns: 62px 46px minmax(0, 1fr);
  gap: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.t { color: #4a4f5a; }
.lvl { font-weight: 600; }
.lvl.s { color: #8b93a0; }
.lvl.i { color: #e6e6e6; }
.lvl.l { color: var(--log); }
.lvl.w { color: var(--warn); }
.lvl.e { color: var(--err); }
.lvl.o { color: var(--ok); }
.m { color: #dfe2e8; }
.lvl.w + .m { color: #ffd878; }
.lvl.e + .m { color: #ffa2ae; }

.term-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #121317;
  border-top: 1px solid #1b1c21;
  font-family: var(--mono);
}
.term-chev { color: #8b9cff; font-size: 16px; font-weight: 700; line-height: 1; }
.term-placeholder {
  flex: 1;
  font-size: 12.5px;
  color: #6a7080;
  border: 1px solid #1f2028;
  background: #0d0e12;
  border-radius: 6px;
  padding: 8px 12px;
}
.term-run {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: #0a0b10;
  background: linear-gradient(180deg, #eef1ff, #d7deff);
  border-radius: 6px;
  padding: 8px 16px;
}

.inline-spec {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 34px;
}
.inline-spec li {
  padding: 0 26px;
  border-left: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}
.inline-spec li:first-child { border-left: 0; padding-left: 0; }
.inline-spec b { display: block; color: var(--ink-2); font-weight: 600; margin-bottom: 4px; font-size: 13.5px; }

/* MCP ------------------------------------------------------------------- */

.mcp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(24px, 3.5vw, 40px);
  align-items: stretch;
}

.mcp-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0d1017, #0a0c11);
  padding: 8px 24px 22px;
  display: flex;
  flex-direction: column;
}
.mcp-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.mcp-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.mcp-value {
  font-size: 12.5px;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.mcp-row:nth-child(1) .mcp-value { color: var(--moon); }

.tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 22px;
}
.tool-chips span {
  font-family: var(--mono);
  font-size: 11px;
  color: #9aa3b8;
  background: #11141b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  padding: 4px 8px;
}

.mcp-code { display: flex; flex-direction: column; }
.mcp-code pre.code { flex: 1; }
.copy-btn {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 8px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.copy-btn:hover { color: var(--ink); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.04); }
.copy-btn.is-copied { color: var(--ok); border-color: rgba(108, 203, 95, 0.4); }

/* settings -------------------------------------------------------------- */

.settings-grid {
  display: grid;
  gap: clamp(30px, 4vw, 46px);
}

.settings-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.setting {
  padding: 22px 26px 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.setting:first-child { border-left: 0; padding-left: 0; }
.setting:last-child { padding-right: 0; }
.setting h3 {
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #e8ebf6;
}
.setting p { font-size: 13.3px; line-height: 1.65; color: var(--muted); }

/* install --------------------------------------------------------------- */

.section-install {
  background:
    radial-gradient(70% 50% at 80% 0%, rgba(122, 140, 255, 0.06), transparent 65%),
    var(--bg-2);
}

.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.steps { display: grid; gap: 8px; }
.steps li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 0; }
.step-n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--moon);
  border: 1px solid rgba(169, 186, 255, 0.24);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin-top: 2px;
  background: rgba(169, 186, 255, 0.06);
}
.steps h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 7px;
  color: #e8ebf6;
}
.steps p { font-size: 13.8px; line-height: 1.65; color: var(--muted); margin-bottom: 12px; }
.steps p.step-meta {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--faint);
}
.step-meta a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.step-meta a:hover { color: var(--moon-2); border-color: rgba(169, 186, 255, 0.5); }
.steps code, .cli-note code, .req dd code {
  font-size: 12px;
  color: var(--moon-2);
  background: rgba(169, 186, 255, 0.08);
  border-radius: 4px;
  padding: 1px 5px;
}

.req-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0d1017, #0a0c11);
  padding: 24px;
}
.req-title {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}
.req > div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.req dt { color: var(--faint); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 2px; }
.req dd { color: var(--ink-2); line-height: 1.55; }
.req-note { margin-top: 16px; font-size: 12px; line-height: 1.6; color: var(--faint); }

.cli { margin-top: 56px; }
.cli-head { justify-content: space-between; }
.cli-title {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
}
.cli-hint { font-size: 12px; color: #4e5566; }
.cli-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.cli-row code {
  font-size: 12.3px;
  color: #c6cddc;
  overflow-x: auto;
  white-space: nowrap;
  padding: 2px 0;
}
.cli-row .copy-btn { flex: none; }
.cli-note {
  padding: 14px 18px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--faint);
  background: #0b0d12;
}

.update-note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid rgba(169, 186, 255, 0.16);
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(169, 186, 255, 0.07), rgba(169, 186, 255, 0.015));
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.update-note b { color: #fff; font-weight: 600; }
.update-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--moon);
  margin-top: 8px;
  box-shadow: 0 0 0 4px rgba(169, 186, 255, 0.12), 0 0 14px rgba(169, 186, 255, 0.7);
}

/* changelog ------------------------------------------------------------- */

.log-list { display: grid; gap: 0; }
.log-entry {
  border-top: 1px solid var(--line);
  padding: 30px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: clamp(16px, 4vw, 48px);
}
.log-entry:first-child { border-top-color: var(--line-strong); }

.log-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  align-content: flex-start;
  gap: 10px;
}
.log-head h3 {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  color: #f0f3ff;
  letter-spacing: -0.01em;
}
.log-badge {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--moon);
  border: 1px solid rgba(169, 186, 255, 0.3);
  background: rgba(169, 186, 255, 0.08);
  border-radius: 4px;
  padding: 2px 6px;
}
.log-badge.ghost { color: var(--faint); border-color: var(--line); background: none; }
.log-link {
  flex-basis: 100%;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
  margin-top: 4px;
  transition: color 0.2s;
}
.log-link:hover { color: var(--moon); }

.log-body { display: grid; gap: 12px; }
.log-body li {
  position: relative;
  padding-left: 18px;
  font-size: 13.8px;
  line-height: 1.68;
  color: var(--muted);
  max-width: 74ch;
}
.log-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 1px;
  background: rgba(169, 186, 255, 0.55);
}
.log-body b { color: var(--ink-2); font-weight: 600; }
.log-body code { font-size: 12.5px; color: var(--moon-2); }

.history-link { margin-top: 18px; }

/* final CTA ------------------------------------------------------------- */

.cta-final {
  position: relative;
  border-top: 1px solid var(--line);
  padding: clamp(72px, 9vw, 116px) 0;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -40%;
  width: 900px;
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(143, 162, 255, 0.16), transparent 72%);
  pointer-events: none;
}
.cta-final-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-final h2 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-weight: 600;
}
.cta-copy { max-width: 48ch; }
.cta-note {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.8;
  text-transform: uppercase;
  color: var(--muted);
}
.cta-note b { color: var(--moon); font-weight: 600; }
.cta-final-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* footer ---------------------------------------------------------------- */

.site-foot {
  position: relative;
  border-top: 1px solid var(--line);
  padding-top: 56px;
  overflow: hidden;
  background: #06070a;
}
.foot-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 44px;
}
.foot-brand { display: flex; align-items: center; gap: 13px; }
.foot-brand .brand-mark { width: 30px; height: 30px; opacity: 0.9; }
.foot-name { font-size: 14.5px; font-weight: 600; }
.foot-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--faint);
  margin-top: 3px;
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 13px;
  color: var(--muted);
}
.foot-nav a { transition: color 0.2s; }
.foot-nav a:hover { color: var(--ink); }

.foot-legal {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 22px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  line-height: 1.6;
  color: #6d7488;
}
.foot-legal p:first-child { max-width: 66ch; }
.foot-copy { font-family: var(--mono); letter-spacing: 0.06em; white-space: nowrap; }

.foot-word {
  font-size: clamp(5rem, 18vw, 14rem);
  line-height: 0.72;
  font-weight: 700;
  letter-spacing: -0.05em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
  transform: translateY(0.1em);
  user-select: none;
  pointer-events: none;
}

/* reveal ---------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* If site.js never runs, the timeout in <head> reveals everything. */
html.no-reveal [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* responsive ------------------------------------------------------------ */

@media (max-width: 1024px) {
  .head-nav { gap: 18px; font-size: 13px; }
  .hero-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-meta > div:nth-child(2) { border-right: 0; }
  .hero-meta > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .hero-meta > div:nth-child(3) { padding-left: 0; }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fact:nth-child(even) { padding-right: 0; }
  .split, .mcp-grid, .install-grid { grid-template-columns: minmax(0, 1fr); }
  .settings-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .setting:nth-child(odd) { border-left: 0; padding-left: 0; }
  .setting:nth-child(even) { padding-right: 0; }
  .inline-spec { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .inline-spec li { border-left: 0; padding: 0; }
  .log-entry { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .head-nav { display: none; }
  .head-inner { height: 64px; }
  html { scroll-padding-top: 84px; }
  .hero h1 { max-width: none; }
  .hero-actions { width: 100%; }
  .btn-lg { flex: 1; }
  .term-body { font-size: 11.7px; }
  .term-body .row { grid-template-columns: 54px 42px minmax(0, 1fr); gap: 8px; }
  .hero-meta > div { padding: 14px 16px 14px 0; }
  .hero-meta > div + div { padding-left: 16px; }
}

@media (max-width: 700px) {
  .shot-note { display: none; }
}

@media (max-width: 560px) {
  .steps .text-link { display: inline; overflow-wrap: anywhere; }
  .steps .text-link span { display: none; }
  .hero-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-meta > div { border-top: 1px solid var(--line); padding: 14px 12px 14px 0; }
  .hero-meta > div:nth-child(-n + 2) { border-top: 0; }
  .hero-meta > div:nth-child(even) { border-right: 0; padding-right: 0; }
  .hero-meta > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .hero-meta > div + div { padding-left: 12px; }
  .hero-meta .meta-sha { grid-column: 1 / -1; border-right: 0; padding-left: 0; }
  .hero-meta .meta-sha dd { font-size: 12px; }
  .facts-grid { grid-template-columns: minmax(0, 1fr); }
  .fact { border-left: 0; padding: 0 0 0 0; }
  .fact + .fact { border-top: 1px solid var(--line); padding-top: 26px; }
  .brand-dim { display: inline; }
  .tag { display: none; }
  .cta-final-actions { width: 100%; }
  .cta-final-actions .btn { flex: 1; }
  .foot-legal { flex-direction: column; gap: 12px; }
  .settings-list { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .setting, .setting:nth-child(odd), .setting:nth-child(even) { border-left: 0; padding: 20px 0 0; }
  .cli-row { flex-wrap: wrap; }
  .cli-row code { white-space: pre-wrap; overflow-wrap: anywhere; }
  pre.code { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11.6px; }
  .mcp-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .mcp-value { font-size: 11.8px; }
  .term-body { font-size: 11.2px; }
  .term-body .row { grid-template-columns: 48px 38px minmax(0, 1fr); gap: 7px; }
  .term-placeholder { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .pulse { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .arrow, .sha-copy { transition: none; }
}

