:root {
  /* cream system */
  --cream-1: #fff5ea;
  --cream-2: #fdf8f3;
  --cream-3: #f4f1fa;
  --cream-panel: #fbf6ee;
  --cream-panel-2: #f7f0e3;
  --cream-line: rgba(26, 22, 17, 0.08);
  --cream-line-strong: rgba(26, 22, 17, 0.14);

  /* dark system */
  --panel: #0d0d0d;
  --panel-2: #131313;
  --panel-3: #1a1a1a;
  --panel-hover: #1e1e1e;
  --hairline: rgba(255, 255, 255, 0.06);
  --hairline-2: rgba(255, 255, 255, 0.1);

  /* ink */
  --ink: #f4f4f5;
  --ink-muted: #a1a1aa;
  --ink-dim: #71717a;

  /* on cream */
  --on-cream: #14110d;
  --on-cream-soft: #1f1b16;
  --on-cream-muted: #5a5249;
  --on-cream-dim: #8a8278;

  /* accents */
  --amber: #d97706;
  --amber-ink: #fbbf24;
  --amber-bg: rgba(251, 191, 36, 0.16);
  --green: #15803d;
  --green-soft: #16a34a;
  --green-ink: #4ade80;
  --red: #b91c1c;
  --red-ink: #f87171;
  --blue-ink: #93c5fd;

  /* type */
  --sans: "Inter", "SF Pro Text", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* metrics */
  --max: 1180px;
  --gutter: 32px;
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
}

*,*::before,*::after { box-sizing: border-box; }
html,body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--on-cream);
  background: var(--cream-2);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
code, pre, .mono { font-family: var(--mono); font-feature-settings: "ss01", "ss02", "calt"; }

/* ── background ───────────────────────────────────────────── */

.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.bg-mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(at 12% -5%, var(--cream-1) 0%, transparent 50%),
    radial-gradient(at 90% 40%, #fdf2e2 0%, transparent 45%),
    radial-gradient(at 50% 100%, var(--cream-3) 0%, transparent 55%),
    linear-gradient(180deg, var(--cream-1) 0%, var(--cream-2) 35%, #f8f3ec 100%);
}

.bg-glow {
  position: absolute;
  width: 760px; height: 760px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.45;
  mix-blend-mode: multiply;
  animation: drift 32s ease-in-out infinite alternate;
}
.bg-glow-1 { background: radial-gradient(circle, #ffd2a3 0%, transparent 65%); top: -200px; left: -180px; }
.bg-glow-2 { background: radial-gradient(circle, #e9dcf3 0%, transparent 65%); bottom: -260px; right: -200px; animation-delay: -10s; }

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(50px, -30px, 0) scale(1.05); }
  100% { transform: translate3d(-30px, 40px, 0) scale(0.97); }
}

.bg-dots {
  position: absolute;
  top: 480px; right: -40px;
  width: 360px; height: 360px;
  background-image: radial-gradient(circle, rgba(26,22,17,0.16) 1px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
}

.bg-grain {
  position: absolute; inset: 0;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.45 0 0 0 0 0.4 0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ── nav ──────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 18px var(--gutter) 0;
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-cream); font-size: 14.5px; }

.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--panel);
  color: var(--amber-ink);
  border: 1px solid var(--hairline);
}
.brand-mark svg { width: 16px; height: 16px; }
.brand-name { font-weight: 600; letter-spacing: -0.01em; }

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--on-cream-muted);
  justify-content: center;
}

.nav-links a {
  position: relative;
  transition: color 160ms ease;
}
.nav-links a::after {
  content: ""; position: absolute;
  left: 50%; bottom: -4px;
  width: 0; height: 1px;
  background: var(--on-cream);
  transition: width 200ms ease, left 200ms ease;
}
.nav-links a:hover { color: var(--on-cream); }
.nav-links a:hover::after { width: 100%; left: 0; }

.nav-cta {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--panel);
  color: var(--ink);
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid var(--hairline);
  transition: background 160ms ease, transform 160ms ease;
}
.nav-cta:hover { background: var(--panel-hover); transform: translateY(-1px); }

.nav-cta-prompt { color: var(--amber-ink); font-family: var(--mono); font-size: 12.5px; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
}

/* ── main ─────────────────────────────────────────────────── */

main { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: 96px 0; }

@media (max-width: 720px) {
  .section { padding: 64px 0; }
}

.section-head {
  max-width: 720px;
  margin: 0 0 48px;
}
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-center .panel-eyebrow { justify-content: center; }

.section-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 14px 0 16px;
  color: var(--on-cream);
}

.section-sub {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--on-cream-muted);
  max-width: 580px;
}
.section-head-center .section-sub { margin-left: auto; margin-right: auto; }

/* ── eyebrows ─────────────────────────────────────────────── */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.7);
  border: 1px solid var(--cream-line-strong);
  color: var(--on-cream);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.pill svg { color: var(--amber); }

.panel-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.panel-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  display: inline-block;
}
.panel-eyebrow .eyebrow-sep { color: var(--on-cream-dim); margin: 0 2px; }
.panel-eyebrow .eyebrow-aux {
  color: var(--on-cream-muted);
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--sans);
  font-size: 13.5px;
}

/* ── hero ─────────────────────────────────────────────────── */

.hero { padding: 56px 0 80px; }

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

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
}

.hero-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(48px, 7vw, 80px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 22px 0 26px;
  color: var(--on-cream);
}
.hero-title .amber { color: var(--amber-ink); -webkit-text-fill-color: var(--amber); }

.hero-lead {
  font-size: clamp(16.5px, 1.4vw, 18px);
  line-height: 1.6;
  color: var(--on-cream-muted);
  max-width: 540px;
  margin: 0 0 24px;
}

.hero-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-list li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: var(--on-cream-soft);
}
.hero-list li svg {
  color: var(--amber);
  flex-shrink: 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
  border: 1px solid transparent;
}

.btn-dark {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--hairline);
}
.btn-dark:hover { background: var(--panel-hover); transform: translateY(-1px); }
.btn-prompt { color: var(--amber-ink); font-family: var(--mono); font-size: 13.5px; }

.btn-ghost {
  background: transparent;
  color: var(--on-cream);
  border-color: var(--cream-line-strong);
}
.btn-ghost:hover {
  background: rgba(26, 22, 17, 0.04);
  border-color: rgba(26, 22, 17, 0.28);
  transform: translateY(-1px);
}

/* ── hero terminal ────────────────────────────────────────── */

.hero-right { position: relative; }

.terminal {
  position: relative;
  z-index: 2;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow:
    0 36px 70px -22px rgba(26, 22, 17, 0.25),
    0 14px 28px -14px rgba(26, 22, 17, 0.14);
}
.terminal::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 35%);
}

.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #1c1c1c 0%, #141414 100%);
  border-bottom: 1px solid var(--hairline);
  position: relative;
}
.tl { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.tl-r { background: #ff5f57; }
.tl-y { background: #febc2e; }
.tl-g { background: #28c840; }
.terminal-title {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-dim);
}

.terminal-body { padding: 22px 22px 26px; min-height: 380px; }

.t-out {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.t-out .ln-prompt { color: var(--amber-ink); font-weight: 600; }
.t-out .ln-step   { color: var(--ink-muted); }
.t-out .ln-tag    { color: var(--blue-ink); }
.t-out .ln-dim    { color: var(--ink-dim); }
.t-out .ln-ok     { color: var(--green-ink); font-weight: 600; }
.t-out .ln-title  { color: var(--amber-ink); font-weight: 600; }
.t-out .ln-heading{ color: var(--ink); font-weight: 600; }
.t-out .ln-blocked{ color: var(--red-ink); font-weight: 600; }

.t-out .risk-row {
  display: inline-grid;
  grid-template-columns: 78px 110px 1fr;
  gap: 14px;
  align-items: baseline;
  width: 100%;
}
.t-out .risk-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  font-weight: 600;
  text-transform: uppercase;
  width: fit-content;
}
.t-out .risk-high { background: rgba(248, 113, 113, 0.18); color: var(--red-ink); }
.t-out .risk-med  { background: rgba(251, 191, 36, 0.18); color: var(--amber-ink); }
.t-out .risk-low  { background: rgba(74, 222, 128, 0.18); color: var(--green-ink); }

.caret {
  display: inline-block;
  color: var(--ink);
  animation: blink 1.06s steps(1, end) infinite;
  margin-left: 1px;
}
@keyframes blink { 50% { opacity: 0; } }

.terminal-glow {
  position: absolute;
  inset: 20% -10% -20% -10%;
  background: radial-gradient(ellipse at center, rgba(251, 191, 36, 0.22) 0%, transparent 60%);
  filter: blur(60px);
  z-index: 1;
  pointer-events: none;
}

/* ── checks panel ─────────────────────────────────────────── */

.checks-panel {
  background: rgba(255, 250, 244, 0.55);
  border: 1px solid var(--cream-line);
  border-radius: var(--r-xl);
  padding: 36px 40px;
  backdrop-filter: blur(8px);
}

.checks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 36px;
  margin-top: 8px;
}
@media (max-width: 880px) { .checks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .checks-grid { grid-template-columns: 1fr; } }

.check {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.check-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(26, 22, 17, 0.05);
  border: 1px solid var(--cream-line);
  color: var(--on-cream-soft);
}
.check-icon svg { width: 18px; height: 18px; }

.check-text h3 {
  margin: 2px 0 4px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--on-cream);
}
.check-text p {
  margin: 0;
  font-size: 13.5px;
  color: var(--on-cream-muted);
  line-height: 1.5;
}

.checks-note {
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px dashed var(--cream-line-strong);
  font-size: 14px;
  color: var(--on-cream-muted);
  line-height: 1.65;
}
.checks-note strong { color: var(--on-cream); font-weight: 600; }

.kbd {
  background: rgba(26, 22, 17, 0.07);
  border: 1px solid rgba(26, 22, 17, 0.1);
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 0.86em;
  color: var(--on-cream);
  font-family: var(--mono);
}

/* ── how it works ─────────────────────────────────────────── */

.how-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 960px) { .how-grid { grid-template-columns: 1fr; gap: 56px; } }

.how-steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  position: relative;
}
.how-steps::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background-image: linear-gradient(180deg, var(--cream-line-strong) 50%, transparent 0);
  background-size: 1px 8px;
}
.how-steps li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 18px;
  padding: 16px 0;
  align-items: flex-start;
  position: relative;
}
.hs-icon {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--cream-panel);
  border: 1px solid var(--cream-line-strong);
  color: var(--amber);
  position: relative;
  z-index: 1;
}
.hs-icon svg { width: 18px; height: 18px; }

.how-steps h3 {
  margin: 6px 0 4px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--on-cream);
}
.how-steps p {
  margin: 0;
  font-size: 14.5px;
  color: var(--on-cream-muted);
  line-height: 1.55;
}
.how-steps p code, .how-steps p .kbd { font-size: 0.92em; }

/* stack illustration */

.stack-img {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 24px 40px rgba(26, 22, 17, 0.12));
}

.stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px;
  background: rgba(255, 250, 244, 0.45);
  border: 1px solid var(--cream-line);
  border-radius: var(--r-xl);
}

.stack-layer {
  border-radius: var(--r-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.stack-top, .stack-bot {
  background: var(--cream-panel);
  border: 1px solid var(--cream-line-strong);
  color: var(--on-cream-soft);
}

.stack-mid {
  background: var(--panel);
  border: 1px solid var(--hairline);
  color: var(--ink);
  box-shadow:
    0 18px 36px -16px rgba(26, 22, 17, 0.32),
    0 0 0 6px rgba(251, 191, 36, 0.08),
    0 0 60px rgba(251, 191, 36, 0.18);
  transform: scale(1.02);
}

.stack-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(26, 22, 17, 0.05);
  border: 1px solid var(--cream-line-strong);
  font-size: 12px;
  font-weight: 500;
  color: var(--on-cream);
  width: fit-content;
  font-family: var(--mono);
}
.stack-chip svg { color: var(--amber); }

.stack-chip-dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--hairline-2);
  color: var(--ink);
}
.stack-chip-dark svg { color: var(--amber-ink); }

.stack-line {
  height: 1px;
  background-image: linear-gradient(90deg, var(--cream-line-strong) 50%, transparent 0);
  background-size: 6px 1px;
}

.stack-meta {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--on-cream-muted);
}

.stack-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stack-rows li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-muted);
}
.stack-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 10px;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.stack-tag-low { background: rgba(74, 222, 128, 0.18); color: var(--green-ink); }
.stack-tag-med { background: rgba(251, 191, 36, 0.18); color: var(--amber-ink); }
.stack-tag-high { background: rgba(248, 113, 113, 0.18); color: var(--red-ink); }

.stack-decision {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  font-family: var(--mono);
  font-size: 12.5px;
}
.decision-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-soft);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.16);
}
.stack-meta-r {
  color: var(--on-cream-dim);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── demo player ──────────────────────────────────────────── */

.player {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 14px;
  align-items: start;
}

.player-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  background: rgba(255, 250, 244, 0.55);
  border: 1px solid var(--cream-line);
  border-radius: var(--r-lg);
}

.ptab {
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--on-cream-muted);
  font-family: var(--sans);
  font-size: 13.5px;
  cursor: pointer;
  text-align: left;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.ptab:hover { background: rgba(26, 22, 17, 0.04); color: var(--on-cream); }
.ptab.active {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--hairline);
}

.player-frame {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(26, 22, 17, 0.2);
}

.player-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #1c1c1c, #141414);
  border-bottom: 1px solid var(--hairline);
  position: relative;
}
.player-title {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-dim);
}

.player-body {
  background: var(--panel-2);
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
}
.player-body img {
  display: block; max-width: 100%; height: auto;
  border-radius: 8px;
  animation: fadeIn 260ms ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .player { grid-template-columns: 1fr; }
  .player-tabs { flex-direction: row; overflow-x: auto; }
  .ptab { flex-shrink: 0; }
}

/* ── commands ─────────────────────────────────────────────── */

.commands-panel {
  background: rgba(255, 250, 244, 0.55);
  border: 1px solid var(--cream-line);
  border-radius: var(--r-xl);
  padding: 32px 36px;
}

.cmd-primary {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13.5px;
  cursor: pointer;
  text-align: left;
  transition: background 160ms ease, transform 160ms ease;
}
.cmd-primary:hover { background: var(--panel-hover); transform: translateY(-1px); }
.cmd-primary .cmd-prompt { color: var(--amber-ink); font-weight: 600; }
.cmd-primary code { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.cmd-primary .t-cmd { color: var(--ink); }
.cmd-primary .t-sub { color: var(--amber-ink); font-weight: 500; }
.cmd-primary .copy-i-wrap {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  color: var(--ink-muted);
  position: relative;
  padding-left: 14px;
  border-left: 1px solid var(--hairline);
}
.cmd-primary .copy-i { transition: opacity 160ms ease, transform 160ms ease; }
.cmd-primary .copy-i-ok { position: absolute; left: 14px; opacity: 0; transform: scale(0.6); }
.cmd-primary.copied .copy-i-copy { opacity: 0; transform: scale(0.6); }
.cmd-primary.copied .copy-i-ok { opacity: 1; transform: scale(1); color: var(--green-ink); }

.cmd-pills {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 760px) { .cmd-pills { grid-template-columns: 1fr; } }

.cmd-pill {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: rgba(26, 22, 17, 0.03);
  border: 1px solid var(--cream-line);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.cmd-pill:hover {
  background: rgba(26, 22, 17, 0.05);
  border-color: var(--cream-line-strong);
  transform: translateY(-1px);
}
.cmd-pill code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--on-cream);
}
.cmd-pill .t-prompt { color: var(--amber); font-weight: 600; }
.cmd-pill .t-sub { color: var(--amber); font-weight: 500; }
.cmd-pill span {
  font-size: 13px;
  color: var(--on-cream-muted);
}

.more { margin-top: 20px; color: var(--on-cream-muted); font-size: 13.5px; }
.more summary {
  cursor: pointer;
  color: var(--on-cream);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  padding: 8px 12px;
  border: 1px solid var(--cream-line-strong);
  border-radius: var(--r-sm);
  font-size: 13.5px;
  transition: background 160ms ease;
}
.more summary:hover { background: rgba(26, 22, 17, 0.04); }
.more p {
  margin: 14px 0 0;
  padding: 14px 18px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.9;
}
.more p code { color: var(--amber-ink); background: rgba(255, 255, 255, 0.05); padding: 1px 6px; border-radius: 6px; }

/* ── CTA ──────────────────────────────────────────────────── */

.cta-section { padding-bottom: 80px; }

.cta {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 36px 40px;
  color: var(--ink);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.cta::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.18), transparent 60%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.cta > * { position: relative; z-index: 1; }

.cta-mark {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--panel-3);
  border: 1px solid var(--hairline-2);
  color: var(--amber-ink);
}
.cta-mark svg { width: 28px; height: 28px; }

.cta-text h2 {
  margin: 0 0 4px;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
.cta-text p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-muted);
}

.cta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.cta-note {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
}

@media (max-width: 880px) {
  .cta { grid-template-columns: 1fr; text-align: left; padding: 32px; }
  .cta-right { align-items: flex-start; width: 100%; }
}

/* ── copy card (shared) ───────────────────────────────────── */

.copy-card {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
  position: relative;
  min-width: 0;
  max-width: 100%;
}
.copy-card:hover { background: var(--panel-hover); border-color: var(--hairline-2); transform: translateY(-1px); }
.copy-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.copy-text .dim { color: var(--ink-muted); }
.copy-prompt { color: var(--amber-ink); font-weight: 600; flex-shrink: 0; }
.copy-hint {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-muted);
  font-size: 12px;
  padding-left: 14px;
  border-left: 1px solid var(--hairline);
  flex-shrink: 0;
  position: relative;
}
.copy-i { transition: opacity 160ms ease, transform 160ms ease; }
.copy-i-ok { position: absolute; opacity: 0; transform: scale(0.6); }
.copy-card.copied .copy-i-copy { opacity: 0; transform: scale(0.6); }
.copy-card.copied .copy-i-ok { opacity: 1; transform: scale(1); position: static; }
.copy-card.copied .copy-hint { color: var(--green-ink); }

.copy-card-dark {
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.12);
  min-width: 340px;
}
.copy-card-dark:hover { background: rgba(0, 0, 0, 0.6); }

/* ── footer ───────────────────────────────────────────────── */

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) 56px;
  position: relative;
  z-index: 1;
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--cream-line);
  color: var(--on-cream-muted);
  font-size: 13px;
}
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-cream);
  font-weight: 500;
}
.foot-meta {
  color: var(--on-cream-dim);
  font-family: var(--mono);
  font-size: 11.5px;
  padding-left: 8px;
  border-left: 1px solid var(--cream-line);
}
.foot-links { display: inline-flex; gap: 18px; }
.foot-links a:hover { color: var(--on-cream); }
