@import url('styles/tokens.css');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--c-action);
  outline-offset: 2px;
}

.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;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--c-action);
  color: var(--bg);
  padding: 8px 16px;
  z-index: 200;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

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

.mono { font-family: var(--font-mono); }
.dimmed { color: var(--text-2); }

.link-inherit { color: inherit; text-decoration: none; }
.link-action { color: var(--c-action); text-decoration: none; }
.link-action:hover { text-decoration: underline; }
.text-action { color: var(--c-action); }
.text-status { color: var(--c-status); }
.text-dim { color: var(--text-3); }


/* ================================================================
   SHARED WATERFALL COMPONENTS (matches dashboard/share viewer)
   ================================================================ */
.waterfall-pane {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
}
.ruler {
  display: flex;
  justify-content: space-between;
  padding: 5px 12px 5px calc(200px + 12px);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-2);
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.02em;
}
.span-row {
  display: flex;
  align-items: center;
  height: 38px;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
  cursor: pointer;
}
.span-row:last-child { border-bottom: none; }
.span-row:hover { background: rgba(255,255,255,0.02); }
.span-label {
  width: 200px;
  flex-shrink: 0;
  padding: 0 12px;
  font-size: 11px;
  color: var(--text-2);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-right: 1px solid var(--border);
  height: 100%;
  display: flex;
  align-items: center;
}
.span-track {
  flex: 1;
  position: relative;
  height: 100%;
}
.span-bar {
  position: absolute;
  top: 8px;
  height: calc(100% - 16px);
  border-radius: var(--r-bar);
  cursor: pointer;
  transition: filter 0.12s, transform 0.1s, outline 0.1s;
  min-width: 4px;
}
.span-bar:hover {
  filter: brightness(1.25);
  transform: scaleY(1.08);
}
.span-bar.active {
  filter: brightness(1.3);
  outline: 2px solid rgba(255,255,255,0.25);
  outline-offset: 2px;
}
.kind-llm    { background: var(--c-action); box-shadow: var(--glow-action); }
.kind-tool   { background: var(--c-label);  box-shadow: var(--glow-label); }
.kind-custom { background: var(--c-status); box-shadow: var(--glow-status); }
.kind-agent  { background: var(--c-agent);  box-shadow: var(--glow-agent); }
.kind-error  { background: var(--c-error);  box-shadow: var(--glow-error); }
.kind-dot { font-size: 9px; }

.detail-pane {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 16px;
  min-height: 180px;
}
.detail-hint { font-size: 12px; color: var(--text-2); }
.detail-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 500;
}
.detail-grid {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 5px 10px;
  font-size: 12px;
  margin-bottom: 12px;
}
.detail-grid dt {
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 11px;
  align-self: start;
  padding-top: 1px;
}
.detail-grid dd {
  font-family: var(--font-mono);
  overflow-wrap: break-word;
  font-size: 12px;
}
.detail-section { margin-top: 10px; }
.detail-section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  margin-bottom: 5px;
}
.detail-json {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: break-word;
  max-height: 160px;
  overflow-y: auto;
  line-height: 1.6;
}
.detail-json::-webkit-scrollbar { width: 4px; }
.detail-json::-webkit-scrollbar-track { background: transparent; }
.detail-json::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 2px; }
.detail-close {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
  cursor: pointer;
  background: none;
  border: none;
  padding: 2px 0;
  transition: color 0.1s;
}
.detail-close:hover { color: var(--text); }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-ok      { background: var(--c-status-dim);  color: var(--c-status);  border: 1px solid var(--c-status-border); }
.badge-kind {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 6px;
  border-radius: var(--r);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-kind.kind-llm   { background: var(--c-action-dim); color: var(--c-action); border: 1px solid var(--c-action-border); }
.badge-kind.kind-tool  { background: var(--c-label-dim);  color: var(--c-label);  border: 1px solid var(--c-label-border); }
.badge-kind.kind-agent { background: var(--c-agent-dim);  color: var(--c-agent);  border: 1px solid var(--c-agent-border); }


/* ================================================================
   BRACKET LABELS (replaces .tag pills)
   ================================================================ */
.bracket-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: none;
  margin-bottom: 16px;
}
.bracket-label .code {
  color: var(--c-label);
  text-transform: uppercase;
}
.bracket-label .label-text {
  color: var(--text-2);
  text-transform: none;
}


/* ================================================================
   TOPBAR
   ================================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 48px;
  background: var(--topbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  gap: 10px;
}
.topbar nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.topbar-logo {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.04em;
}
.topbar-logo-img {
  height: 22px;
  width: auto;
  border-radius: 2px;
}
.topbar-text { color: inherit; }
.topbar-logo .topbar-text span { color: var(--c-action); }
.topbar-link {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.12s;
}
.topbar-link:hover { color: var(--c-action); }
.topbar-cta {
  padding: 5px 14px;
  background: var(--c-action);
  color: var(--bg);
  border: none;
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.topbar-cta:hover {
  background: #1ad0ff;
}


/* ================================================================
   HERO — left-aligned with vertical guide line
   ================================================================ */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 80px;
  position: relative;
  z-index: 1;
}
.hero-glow {
  position: absolute;
  top: 15%;
  right: -10%;
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center,
    rgba(0,194,255,0.14) 0%,
    rgba(0,229,160,0.06) 50%,
    transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 60px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.hero-left {
  padding-left: 0;
}

.hero h1 {
  font-family: var(--font-mono);
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text);
}
.hero .sub {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.hero-footnote {
  font-size: var(--fs-xs);
  color: var(--text-3);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  margin-top: 20px;
}


/* ================================================================
   TERMINAL
   ================================================================ */
.terminal {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.terminal-bar-path { color: var(--text-2); }
.terminal-bar-meta { color: var(--c-label); }
.terminal-body {
  padding: 16px 18px 22px;
  margin: 0;
  min-height: 280px;
  white-space: pre;
  overflow-x: auto;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 13px;
}
.terminal-body .tline { display: block; }
.terminal-body .tline-cmd { color: var(--text); }
.terminal-body .out-status { color: var(--c-label); }
.terminal-body .out-ok { color: var(--c-status); }
.terminal-body .out-dim { color: var(--text-2); }
.terminal-body .tline-link {
  color: var(--c-action);
  text-decoration: none;
  display: block;
}
.terminal-body .tline-link:hover { text-decoration: underline; }
.terminal-body .cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--text);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1.05s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }
.terminal-replay {
  position: absolute;
  bottom: 8px;
  right: 12px;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-3);
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 4px 8px;
}
.terminal-replay:hover { color: var(--c-action); }
@media (prefers-reduced-motion: reduce) {
  .terminal-body .cursor { animation: none; }
  .status-dot { animation: none; }
}


/* ================================================================
   INSTALL BLOCK + BUTTONS
   ================================================================ */
.install-block {
  display: flex;
  align-items: center;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.12s;
}
.install-block:hover { border-color: var(--c-action); }
.install-block .prompt {
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-3);
  border-right: 1px solid var(--border);
  user-select: none;
}
.install-block .cmd {
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
}
.install-block .copy-btn {
  padding: 10px 14px;
  background: var(--bg-4);
  border: none;
  border-left: 1px solid var(--border);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  cursor: pointer;
}
.install-block .copy-btn:hover {
  background: var(--c-action-dim);
  color: var(--c-action);
}
.install-block .copy-btn.copied {
  color: var(--c-status);
}

.btn-primary {
  padding: 10px 20px;
  background: var(--c-action);
  color: var(--bg);
  border: none;
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover {
  background: #1ad0ff;
  box-shadow: 0 0 12px rgba(0,194,255,0.3);
}
.btn-ghost {
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-ghost:hover { border-color: var(--c-action); color: var(--c-action); }


/* ================================================================
   SECTIONS (shared)
   ================================================================ */
.section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}
.section-title {
  font-family: var(--font-mono);
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text);
}
.section-title .accent-action, .hero h1 .accent-action {
  font-weight: 600;
  font-style: normal;
  color: var(--c-action);
}
.section-sub {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 0 60px;
}
.section-caption {
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-2);
}




/* ================================================================
   DEMO SECTION — Interactive mini-waterfall
   ================================================================ */

.demo-embed-wrap {
  margin: 0 auto;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--border-2);
}

.demo-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}
.chrome-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.chrome-dot--red { background: #ff5f57; }
.chrome-dot--yellow { background: #febc2e; }
.chrome-dot--green { background: #28c840; }
.chrome-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

.demo-waterfall {
  background: var(--bg-2);
  padding: 0;
  position: relative;
}
.demo-waterfall::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.demo-run-header {
  position: relative;
  padding: 16px var(--gutter) 0;
}
.demo-run-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.demo-run-name {
  font-family: var(--font-mono);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text);
}
.demo-badge-ok {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--c-status);
  background: var(--c-status-dim);
  border: 1px solid var(--c-status-border);
  border-radius: var(--r);
  padding: 1px 6px;
  letter-spacing: 0.04em;
}
.demo-run-meta {
  font-size: var(--fs-xs);
  margin-bottom: 8px;
}

.demo-tab-bar {
  position: relative;
  display: flex;
  gap: 0;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.demo-tab {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-3);
  padding: 8px 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.15s;
}
.demo-tab:hover { color: var(--text-2); }
.demo-tab.active {
  color: var(--c-label);
  border-bottom: 2px solid var(--c-label);
  margin-bottom: -1px;
}
.demo-tab-content { display: none; position: relative; }
.demo-tab-content.active { display: block; }

.demo-cost-wrap {
  position: relative;
  padding: 0 var(--gutter) 16px;
}
.demo-cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-xs);
}
.demo-cost-table th {
  padding: 8px 10px;
  background: var(--bg-3);
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
}
.demo-cost-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}
.demo-cost-table tfoot td {
  border-top: 1px solid var(--border-2);
  border-bottom: none;
  color: var(--text);
  font-weight: 600;
}

.demo-waterfall-timeline {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 12px;
  align-items: start;
  padding: 0 var(--gutter) 16px;
}


.demo-detail {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 14px;
  min-height: 160px;
  font-size: 13px;
}

.demo-placeholder-cta {
  padding: 12px var(--gutter) 18px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-3);
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .demo-waterfall-timeline {
    grid-template-columns: 1fr;
  }
  .span-label { width: 120px; }
  .ruler { padding: 5px 12px 5px calc(120px + 12px); }
}


/* ================================================================
   REAL TRACES
   ================================================================ */
.trace-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.trace-card {
  display: block;
  padding: 24px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  text-decoration: none;
  transition: border-color 0.12s, background 0.12s;
}
.trace-card:hover {
  border-color: var(--c-action);
  background: var(--bg-3);
}
.trace-card-kind {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-label);
  margin-bottom: 8px;
}
.trace-card-name {
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.trace-card-desc {
  font-size: var(--fs-sm);
  color: var(--text-2);
}


/* ================================================================
   FAQ CARDS
   ================================================================ */
.faq-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 640px;
}
.faq-card {
  padding: 24px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}
.faq-card-q {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text);
  text-align: left;
  line-height: 1.4;
  transition: color 0.12s;
}
.faq-card-q:hover { color: var(--c-action); }
.faq-card-toggle {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--c-label);
  letter-spacing: 0.06em;
}
.faq-card-a {
  display: none;
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.6;
  margin-top: 12px;
}
.faq-card.open .faq-card-a { display: block; }
.faq-card.open .faq-card-toggle { color: var(--c-action); }


/* ================================================================
   HOW IT WORKS
   ================================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-2);
  border-radius: var(--r-card);
  overflow: hidden;
}
.step {
  background: var(--bg-2);
  padding: 36px 32px;
  border-right: 1px solid var(--border-2);
}
.step:last-child { border-right: none; }
.step-prefix {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-label);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.step-title {
  font-family: var(--font-mono);
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: 8px;
}
.step-desc {
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 16px;
}
.step-code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  line-height: 1.8;
  overflow-x: auto;
}
.step-code .kw { color: var(--c-label); }
.step-code .fn { color: var(--c-action); }
.step-code .dec { color: var(--c-label); }
.step-code .com { color: var(--text-3); }


/* ================================================================
   COMPARISON TABLE
   ================================================================ */
.compare-wrap {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow-x: auto;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
}
.compare-table th {
  padding: 14px 20px;
  background: var(--bg-3);
  text-align: left;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.compare-table th:last-child { border-right: none; }
.compare-table td {
  padding: 14px 20px;
  font-size: 13px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  vertical-align: top;
}
.compare-table td:last-child { border-right: none; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr.highlight td { background: rgba(0,194,255,0.08); }
.compare-table strong { color: var(--text); font-weight: 600; }

.pill {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
}
.pill.gp { color: var(--c-action); }
.pill.other { color: var(--text-3); }

.compare-note {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.compare-note-block {
  padding: 20px 24px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.6;
}
.compare-note-block h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.compare-note-block.gp-note h4 { color: var(--c-action); }
.compare-note-block.other-note h4 { color: var(--text-3); }

.compare-closing {
  margin-top: 24px;
  font-size: var(--fs-sm);
  color: var(--text-3);
  font-family: var(--font-mono);
}


/* ================================================================
   GET STARTED
   ================================================================ */
.get-started-section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.quickstart-block {
  max-width: 640px;
  margin: 40px 0 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
}
.quickstart-header {
  padding: 10px 18px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.quickstart-body {
  padding: 18px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  line-height: 1.8;
  overflow-x: auto;
}
.quickstart-body .kw { color: var(--c-label); }
.quickstart-body .fn { color: var(--c-action); }
.quickstart-body .dec { color: var(--c-label); }
.quickstart-body .str { color: var(--c-status); }
.quickstart-body .com { color: var(--text-3); }

.get-started-footnote {
  margin-top: 16px;
  font-size: var(--fs-xs);
  color: var(--text-3);
  font-family: var(--font-mono);
}


/* ================================================================
   STATUS STRIP
   ================================================================ */
.status-strip {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 12px var(--gutter);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-status);
}
.status-sep { color: var(--border-2); }
.status-item { white-space: nowrap; }


/* ================================================================
   FOOTER
   ================================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-row + .footer-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.footer-logo {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-2);
  font-weight: 600;
  letter-spacing: -0.04em;
}
.footer-logo span { color: var(--c-action); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: var(--fs-sm);
  font-family: var(--font-mono);
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.12s;
}
.footer-links a:hover { color: var(--c-action); }
.footer-by {
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  color: var(--text-3);
}
.footer-build {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-3);
  letter-spacing: 0.06em;
}
.footer-build a { color: inherit; text-decoration: none; }
.footer-build a:hover { color: var(--c-action); }
.footer-by a { color: var(--text-2); text-decoration: none; transition: color 0.12s; }
.footer-by a:hover { color: var(--c-action); }


/* ================================================================
   MOBILE
   ================================================================ */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { order: 2; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--border-2); }
  .step:last-child { border-bottom: none; }
  .compare-table th,
  .compare-table td { padding: 10px 12px; font-size: 12px; }
  .compare-note { grid-template-columns: 1fr; }
  .trace-cards { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 60px; }
  .container { padding: 0 20px; }
  .hero-left { padding-left: 0; }
  .topbar { padding: 0 16px; }
  .topbar nav .topbar-link { display: none; }
  .terminal { max-width: 100%; }
  .terminal-body { font-size: 12px; }
}

@media (max-width: 480px) {
  .hero-left { padding-left: 0; }
  .install-block { width: 100%; }
  .install-block .cmd { font-size: 12px; }
  .btn-primary, .btn-ghost { font-size: 12px; padding: 8px 14px; }
  .status-strip { font-size: 10px; gap: 6px; }
}
