:root {
  --bg: #0e0f11;
  --bg-deep: #0a0b0d;
  --panel: #131416;
  --panel-2: #17191c;
  --panel-3: #1b1e22;
  --border: #1f2125;
  --border-strong: #2b2e35;
  --text: #f3f4f6;
  --text-soft: #c9cdd4;
  --muted: #969ca6;
  --dim: #6c727d;
  --flame: #e8912a;
  --flame-bright: #ff9e3b;
  --cyan: #38bdf8;
  --green: #4ade80;
  --red: #f87171;
  --amber: #fbbf24;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shell: 1200px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

::selection {
  background: rgba(232, 145, 42, 0.32);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--flame-bright);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: clamp(18px, 4vw, 40px);
  padding-right: clamp(18px, 4vw, 40px);
}

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 15%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 15%, transparent 75%);
}

.ambient {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(110px);
  pointer-events: none;
  opacity: 0.5;
}

.ambient-one {
  top: -220px;
  left: 48%;
  width: 620px;
  height: 420px;
  background: radial-gradient(circle, rgba(232, 145, 42, 0.2), transparent 68%);
}

.ambient-two {
  top: 120px;
  right: -240px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.1), transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

code,
kbd {
  font-family: var(--mono);
}

p code,
li code,
dd code {
  padding: 2px 5px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--flame-bright);
  font-size: 0.88em;
}

kbd {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid var(--border-strong);
  border-bottom-color: #3a3e46;
  border-radius: 5px;
  background: linear-gradient(#1c1f24, #141619);
  color: var(--text-soft);
  font-size: 0.74rem;
  line-height: 1.4;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(14, 15, 17, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(14, 15, 17, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: linear-gradient(145deg, #1c1f24, #101113);
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(232, 145, 42, 0.06) inset, 0 6px 18px rgba(0, 0, 0, 0.3);
}

.brand-name {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.version-badge {
  padding: 2px 7px;
  border: 1px solid rgba(232, 145, 42, 0.24);
  border-radius: 999px;
  background: rgba(232, 145, 42, 0.08);
  color: var(--flame-bright);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.02em;
}

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

.nav-link {
  position: relative;
  padding: 8px 11px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 3px;
  height: 1px;
  background: var(--flame);
  transform: scaleX(0);
  transition: transform 0.22s var(--ease);
}

.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link-github {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link-github svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.icon-link {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.icon-link:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.035);
}

.icon-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-flame {
  background: linear-gradient(180deg, var(--flame-bright), var(--flame));
  color: #17120a;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.24) inset, 0 8px 22px rgba(232, 145, 42, 0.16);
}

.button-flame:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 12px 28px rgba(232, 145, 42, 0.24);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 10px;
  width: 16px;
  height: 1.5px;
  background: var(--text-soft);
  transition: transform 0.2s ease, top 0.2s ease;
}

.menu-toggle span:first-child {
  top: 15px;
}

.menu-toggle span:last-child {
  top: 21px;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  top: 18px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  top: 18px;
  transform: rotate(-45deg);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(34px, 5vw, 64px);
  padding-top: clamp(56px, 8vw, 92px);
  padding-bottom: clamp(64px, 8vw, 104px);
  scroll-margin-top: 80px;
}

.hero-copy {
  max-width: 560px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.3;
}

.pulse-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(74, 222, 128, 0.34);
  animation: dotPulse 2.4s ease-out infinite;
}

.hero h1 {
  margin: 24px 0 20px;
  font-size: clamp(2.55rem, 4.6vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.flame-text {
  background: linear-gradient(120deg, var(--flame-bright) 5%, #ffd08a 55%, var(--flame) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 54ch;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  line-height: 1.72;
}

.install-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 55%), var(--panel);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  scroll-margin-top: 92px;
}

.install-tabs {
  display: flex;
  gap: 0;
  padding: 0 8px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

.install-tab {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  align-items: flex-start;
  padding: 11px 12px 10px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.install-tab span {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.install-tab:hover {
  color: var(--text-soft);
}

.install-tab.is-active {
  color: var(--text);
  border-bottom-color: var(--flame);
}

.install-tab.is-active span {
  color: var(--flame);
}

.install-panel {
  padding: 12px;
}

.code-shell {
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-deep);
  overflow: hidden;
}

.code-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 31px;
  padding: 4px 6px 4px 11px;
  border-bottom: 1px solid var(--border);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.01em;
}

.code-lang {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.copy-button:hover {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.copy-icon {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy-button.is-copied {
  color: var(--green);
}

.copy-button.is-copied .copy-icon {
  stroke: var(--green);
}

.copy-button.is-error {
  color: var(--red);
}

.copy-button.is-error .copy-icon {
  stroke: var(--red);
}

.code-line,
.code-block {
  margin: 0;
  padding: 13px 14px;
  overflow-x: auto;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: clamp(0.69rem, 0.9vw, 0.76rem);
  line-height: 1.65;
  scrollbar-width: thin;
  scrollbar-color: #30343b transparent;
}

.code-line code,
.code-block code {
  font: inherit;
  white-space: pre;
}

.code-line code {
  color: #e8e9eb;
}

.install-note {
  margin: 0;
  padding: 0 14px 14px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.note-dim {
  color: var(--dim);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.66rem;
}

.hero-meta span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta span::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-strong);
}

/* Terminal */

.hero-visual {
  position: relative;
  min-width: 0;
  scroll-margin-top: 92px;
}

.terminal-glow {
  position: absolute;
  inset: 9% -6% -8% -6%;
  z-index: -1;
  border-radius: 40px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(232, 145, 42, 0.18), transparent 52%),
    radial-gradient(ellipse at 80% 70%, rgba(56, 189, 248, 0.09), transparent 55%);
  filter: blur(32px);
  opacity: 0.9;
}

.terminal {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: 15px;
  background: #0b0c0e;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.045) inset,
    0 34px 90px rgba(0, 0, 0, 0.62),
    0 10px 30px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.terminal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 145, 42, 0.7), transparent);
  opacity: 0.6;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 11px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #181a1e, #121315);
}

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

.traffic i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2a2d33;
}

.traffic i:nth-child(1) { background: #3d2628; }
.traffic i:nth-child(2) { background: #3b3323; }
.traffic i:nth-child(3) { background: #23352a; }

.terminal-title {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.01em;
}

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

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 7px;
  border: 1px solid rgba(74, 222, 128, 0.18);
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.06);
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.replay-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.63rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.replay-button:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
}

.replay-button svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.board-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #2b2e35 transparent;
}

.board-scroll::-webkit-scrollbar {
  height: 8px;
}

.board-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #2b2e35;
}

.board {
  min-width: 700px;
  padding: 13px 15px 10px;
  background:
    radial-gradient(ellipse at 50% -30%, rgba(255, 255, 255, 0.035), transparent 60%),
    #101114;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: clamp(0.58rem, 0.76vw, 0.67rem);
  line-height: 1.55;
  font-variant-ligatures: none;
}

.board-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
}

.board-brand {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
}

.board-logo {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.board-crew {
  color: var(--flame);
  font-weight: 600;
}

.board-scope {
  color: var(--dim);
  font-size: 0.85em;
}

.board-load {
  flex-shrink: 0;
  color: var(--text-soft);
  font-size: 0.88em;
}

.board-load span {
  color: var(--dim);
}

.board-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 9px;
}

.board-menu span {
  padding: 1px 5px;
  border: 1px solid #24272c;
  border-radius: 4px;
  background: #16181b;
  color: var(--dim);
  font-size: 0.86em;
  white-space: nowrap;
}

.board-banner {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 -4px 8px;
  padding: 4px 8px;
  border-left: 2px solid var(--red);
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.13), rgba(248, 113, 113, 0.02));
  color: #f5b5b5;
  font-size: 0.9em;
}

.board-banner strong {
  color: var(--red);
  font-weight: 700;
}

.banner-mark {
  color: var(--red);
}

.board-table {
  border-top: 1px solid #22252a;
}

.board-row {
  display: grid;
  grid-template-columns: minmax(155px, 1.55fr) 42px 58px 112px 34px 56px 50px 40px minmax(120px, 1.3fr);
  align-items: center;
  column-gap: 9px;
  padding: 3px 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.025);
}

.board-head {
  padding-top: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid #22252a;
  color: var(--dim);
  font-size: 0.86em;
}

.board-row .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.pane-row {
  min-height: 22px;
}

.pane-row:hover {
  background: rgba(255, 255, 255, 0.026);
}

.tag {
  display: inline-block;
  margin-right: 4px;
  font-family: var(--sans);
  font-size: 0.95em;
}

.pane-name {
  overflow: hidden;
  color: var(--text);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.role {
  color: var(--dim);
  font-weight: 400;
}

.pane-id {
  color: var(--cyan);
  opacity: 0.8;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.status i {
  font-style: normal;
}

.status.working { color: var(--green); }
.status.idle { color: var(--amber); }
.status.blocked { color: var(--red); }
.status.done { color: var(--cyan); }

.lower-bound {
  color: inherit;
  opacity: 0.7;
}

.task {
  overflow: hidden;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ws-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 5px 4px;
  color: var(--dim);
  font-size: 0.86em;
}

.ws-caret {
  color: var(--text-soft);
}

.ws-rule {
  width: 16px;
  height: 1px;
  background: #2a2d33;
}

.ws-name {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.ws-name.ws-blue { color: var(--cyan); }
.ws-name.ws-amber { color: var(--flame); }

.ws-count {
  margin-left: auto;
  color: var(--dim);
}

.limits {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid #22252a;
}

.limits-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 5px;
}

.limits-source {
  color: var(--flame);
  font-weight: 700;
}

.limits-note {
  color: var(--dim);
  font-size: 0.8em;
}

.limit-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 0;
  white-space: nowrap;
}

.limit-name {
  width: 30px;
  color: var(--text-soft);
}

.limit-bar {
  position: relative;
  width: 74px;
  height: 6px;
  border-radius: 2px;
  background: #24272c;
  overflow: hidden;
}

.limit-bar i {
  display: block;
  width: var(--pct);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f9d62, var(--green));
}

.limit-row:last-child .limit-bar i {
  background: linear-gradient(90deg, #2f9d62, var(--green));
  opacity: 0.85;
}

.limit-pct {
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.limit-reset {
  color: var(--dim);
}

.metric-badge {
  padding: 1px 5px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.9em;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  cursor: help;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.metric-badge:hover,
.metric-badge.is-open {
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.045);
}

.metric-badge.pace {
  color: var(--red);
}

.metric-badge.warn {
  color: var(--flame-bright);
}

.board-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 11px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid #22252a;
  color: var(--dim);
  font-size: 0.86em;
}

.board-foot .green { color: var(--green); }
.board-foot .amber { color: var(--amber); }
.board-foot .red { color: var(--red); }
.board-foot .cyan { color: var(--cyan); }

.foot-hint {
  margin-left: auto;
  color: #565b64;
}

.terminal.is-replaying .pane-row {
  animation: rowIn 0.55s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}

.terminal.is-replaying .limit-bar i {
  animation: barFill 1.2s var(--ease) both;
  animation-delay: 0.1s;
}

.terminal.is-replaying .live-dot {
  animation: livePulse 0.8s ease-in-out infinite;
}

.terminal.is-replaying .metric-badge.pace {
  animation: badgeFlash 1.4s ease 0.45s both;
}

/* Sections */

.section {
  padding-top: clamp(64px, 8vw, 104px);
  padding-bottom: clamp(64px, 8vw, 104px);
  border-top: 1px solid var(--border);
  scroll-margin-top: 70px;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 3.1vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-wrap: balance;
}

.section-head p {
  max-width: 64ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.2vw, 1.02rem);
  line-height: 1.72;
}

/* Features */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 42%), var(--panel);
  overflow: hidden;
  transition: border-color 0.22s ease, transform 0.22s var(--ease), box-shadow 0.22s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 145, 42, 0.45), transparent);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #16181b;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tone-cyan { color: var(--cyan); }
.tone-flame { color: var(--flame-bright); }
.tone-green { color: var(--green); }

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.68;
}

/* Preview */

.preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 14px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--panel);
  overflow: hidden;
}

.panel-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 15px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.16);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.panel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--flame);
}

.panel-dot.cyan {
  background: var(--cyan);
}

.panel-meta {
  margin-left: auto;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 400;
}

.detail-body {
  padding: 20px;
  font-family: var(--mono);
}

.detail-title {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
}

.detail-list {
  display: grid;
  gap: 7px;
  margin: 0;
  font-size: 0.7rem;
}

.detail-list > div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
}

.detail-list dt {
  color: var(--dim);
}

.detail-list dd {
  margin: 0;
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.green { color: var(--green); }

.today-body {
  padding: 20px;
  font-family: var(--mono);
}

.today-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.today-amount {
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.today-caption {
  color: var(--dim);
  font-size: 0.65rem;
}

.spend-list {
  display: grid;
  gap: 10px;
}

.spend-row {
  display: grid;
  grid-template-columns: 76px minmax(50px, 1fr) 44px 36px;
  align-items: center;
  gap: 8px;
  font-size: 0.67rem;
}

.spend-name {
  color: var(--text-soft);
}

.spend-bar {
  height: 5px;
  border-radius: 2px;
  background: #24272c;
  overflow: hidden;
}

.spend-bar i {
  display: block;
  width: var(--pct);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b96c17, var(--flame));
}

.spend-bar.cyan i { background: linear-gradient(90deg, #1b7fa8, var(--cyan)); }
.spend-bar.green i { background: linear-gradient(90deg, #2f9d62, var(--green)); }
.spend-bar.muted i { background: linear-gradient(90deg, #4b5059, #717782); }

.spend-value {
  color: var(--text);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.spend-tokens {
  color: var(--dim);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.today-foot {
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  color: var(--dim);
  font-size: 0.66rem;
}

.today-foot strong {
  color: var(--flame-bright);
  font-weight: 600;
}

.preview-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.preview-note {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.012);
}

.note-index {
  color: var(--flame);
  font-family: var(--mono);
  font-size: 0.62rem;
  padding-top: 3px;
}

.preview-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.65;
}

.preview-note strong {
  color: var(--text-soft);
  font-weight: 600;
}

.preview-note code {
  font-size: 0.9em;
}

/* Integrations */

.integration-shell {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.tab-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tab-button {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.tab-button:hover {
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.02);
}

.tab-button.is-active {
  color: var(--text);
  border-color: var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent), var(--panel);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.tab-title {
  font-size: 0.87rem;
  font-weight: 600;
}

.tab-sub {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.6rem;
}

.tab-button.is-active .tab-sub {
  color: var(--flame);
}

.tab-panels {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 50%), var(--panel);
  overflow: hidden;
}

.tab-panel {
  padding: 24px;
}

.panel-copy {
  margin-bottom: 18px;
}

.panel-copy h3 {
  margin: 0 0 7px;
  font-size: 1.02rem;
  font-weight: 600;
}

.panel-copy p {
  max-width: 66ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.68;
}

/* Quickstart */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.step {
  position: relative;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--panel);
}

.step-number {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-bottom: 14px;
  border: 1px solid rgba(232, 145, 42, 0.28);
  border-radius: 50%;
  background: rgba(232, 145, 42, 0.07);
  color: var(--flame-bright);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
}

.step h3 {
  margin: 0 0 7px;
  font-size: 0.94rem;
  font-weight: 600;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.66;
}

.inline-command {
  display: block;
  margin-top: 14px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg-deep);
  color: var(--text-soft);
  font-size: 0.66rem;
  overflow-x: auto;
  white-space: nowrap;
}

.cli-block {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--panel);
  overflow: hidden;
}

.cli-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--border);
}

.cli-head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.cli-head span {
  color: var(--dim);
  font-size: 0.72rem;
}

.table-scroll {
  overflow-x: auto;
}

.cli-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  text-align: left;
}

.cli-table th {
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cli-table td {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.82rem;
}

.cli-table tr:last-child td {
  border-bottom: 0;
}

.cli-table tbody tr {
  transition: background 0.15s ease;
}

.cli-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.022);
}

.cli-table td code {
  color: var(--flame-bright);
  font-size: 0.76rem;
  white-space: nowrap;
}

.cli-table td kbd {
  font-size: 0.64rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent), var(--bg-deep);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 28px;
  padding-top: 42px;
  padding-bottom: 30px;
}

.footer-brand p {
  margin: 12px 0 0;
  color: var(--dim);
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  justify-content: flex-end;
  padding-top: 7px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.8rem;
  transition: color 0.16s ease;
}

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

.footer-fine {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  color: #565b64;
  font-family: var(--mono);
  font-size: 0.63rem;
}

/* Tooltip */

.tooltip {
  position: fixed;
  z-index: 300;
  max-width: 290px;
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: #1a1c20;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.5;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reveal */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--reveal-i, 0) * 55ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Animations */

@keyframes dotPulse {
  0% { transform: scale(0.7); opacity: 0.8; }
  70%, 100% { transform: scale(1.5); opacity: 0; }
}

@keyframes rowIn {
  from { opacity: 0.35; transform: translateX(-5px); }
  to { opacity: 1; transform: none; }
}

@keyframes barFill {
  from { width: 0; }
  to { width: var(--pct); }
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes badgeFlash {
  0%, 100% { background: transparent; }
  40% { background: rgba(248, 113, 113, 0.16); }
}

/* Responsive */

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 46px;
    padding-top: 58px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-visual {
    max-width: 900px;
  }

  .board {
    min-width: 720px;
  }
}

@media (max-width: 920px) {
  .nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px clamp(18px, 4vw, 40px) 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(14, 15, 17, 0.97);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.34);
  }

  .nav.is-open {
    display: flex;
  }

  .nav-link {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .nav-link::after {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header-actions .icon-link {
    display: none;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-grid,
  .preview-notes {
    grid-template-columns: minmax(0, 1fr);
  }

  .integration-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .tab-list {
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .tab-list::-webkit-scrollbar {
    display: none;
  }

  .tab-button {
    width: auto;
    min-width: 150px;
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.012);
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .header-inner {
    height: 60px;
    gap: 14px;
  }

  .brand-name {
    font-size: 0.84rem;
  }

  .version-badge {
    display: none;
  }

  .header-install {
    padding: 8px 12px;
  }

  .hero {
    padding-top: 42px;
    padding-bottom: 58px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 3rem);
    margin-top: 20px;
  }

  .eyebrow {
    font-size: 0.55rem;
    letter-spacing: 0.1em;
  }

  .install-tabs {
    padding: 0 4px;
  }

  .install-tab {
    padding-left: 9px;
    padding-right: 9px;
  }

  .install-panel {
    padding: 9px;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-card {
    padding: 21px;
  }

  .preview-grid {
    gap: 12px;
  }

  .tab-panel {
    padding: 18px;
  }

  .cli-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 15px 16px;
  }

  .cli-table th,
  .cli-table td {
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-top: 34px;
  }

  .footer-links {
    justify-content: flex-start;
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .board {
    min-width: 660px;
  }

  .terminal-title {
    display: none;
  }

  .install-tab span {
    display: none;
  }

  .install-note {
    font-size: 0.73rem;
  }

  .hero-meta {
    gap: 7px 14px;
    font-size: 0.6rem;
  }

  .spend-row {
    grid-template-columns: 70px minmax(40px, 1fr) 40px 0;
  }

  .spend-tokens {
    display: none;
  }

  .tooltip {
    max-width: min(290px, calc(100vw - 28px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
