:root {
  color-scheme: dark;
  --bg: #101010;
  --panel: #161616;
  --chart-bg: #161616;
  --head: #212329;
  --border: #262626;
  --border2: #343740;
  --cell-border: #383b44;
  --text: #d1d4dc;
  --text-strong: #f1f4f8;
  --muted: #787b86;
  --dim: #525866;
  --green: #2e8b57;
  --green-soft: #7ec49b;
  --red: #b84040;
  --red-soft: #db8288;
  --amber: #c9972b;
  --amber-soft: #e2b866;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(255, 255, 255, 0.16); color: #fff; }
a { color: inherit; }
.mono { font-family: var(--font-mono); }

.container {
  width: min(1260px, 100% - 32px);
  margin-inline: auto;
}

/* ---------- Animations ---------- */
@keyframes ws-dot-pulse {
  from { opacity: 0.45; transform: scale(0.8); }
  75%, to { opacity: 0; transform: scale(1.6); }
}

@keyframes account-reveal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 320ms var(--ease), transform 360ms var(--ease);
  transition-delay: var(--stagger, 0ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.swap-anim { animation: account-reveal 200ms var(--ease) both; }

/* ---------- Sticky Topbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(22, 22, 22, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding-block: 5px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.ws-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
}
.ws-dot.open { background: var(--green); }
.ws-dot::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1px solid currentColor;
  color: var(--green);
  animation: ws-dot-pulse 2.8s ease-out infinite;
}
.ws-dot:not(.open)::after { color: var(--amber); }

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: #141518;
  font: 11px/1 var(--font-mono);
  color: var(--muted);
  white-space: nowrap;
}
.live-pill strong { color: var(--green-soft); font-weight: 600; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  padding: 5px 8px;
  border-radius: 3px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 120ms ease, background 120ms ease;
}
.site-nav a:hover { color: var(--text-strong); background: rgba(255, 255, 255, 0.05); }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #141518;
  overflow: hidden;
}
.lang-switch a {
  padding: 4px 7px;
  font: 600 10.5px/1 var(--font-mono);
  color: var(--muted);
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease;
}
.lang-switch a.active { background: #282a2e; color: var(--text-strong); }
.lang-switch a:hover:not(.active) { color: var(--text); }

/* ---------- Buttons & Pills (mirrors terminal) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 5px;
  border: 1px solid var(--border2);
  background: #1e1e1e;
  color: var(--text-strong);
  font: 600 13px/1 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 130ms ease, border-color 130ms ease, transform 140ms var(--ease);
}
.btn:hover { background: #272727; border-color: #484d56; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-sm { min-height: 26px; padding: 0 10px; font-size: 11.5px; border-radius: 3px; }
.btn-primary { background: #254a37; border-color: #3a8662; color: #e2f6e9; }
.btn-primary:hover { background: #315b45; border-color: #4ea57a; }
.btn-secondary { background: #1e2025; border-color: var(--border2); color: var(--text-strong); }
.btn-secondary:hover { background: #282b32; border-color: #525866; }

.pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: #1e1e1e;
  color: var(--muted);
  font: 600 11px/1 var(--font-mono);
  cursor: pointer;
  white-space: nowrap;
  transition: background 110ms ease, border-color 110ms ease, color 110ms ease;
}
.pill:hover { background: #272727; border-color: #3a3a3a; color: var(--text); }
.pill.active { background: #282a2e; border-color: #484d56; color: #ffffff; }
.pill.paused-on { background: #2d261a; border-color: #c9972b; color: #e2b866; }

/* Exact terminal signal tags from web/styles.css */
.cell-tag {
  display: inline-flex;
  align-items: center;
  font: 700 9px/1 var(--font-mono);
  padding: 2px 4px;
  border-radius: 2px;
  white-space: nowrap;
}
.cell-tag.buy { background: #1d3628; color: #7ec49b; border: 1px solid #2b4f3b; }
.cell-tag.sell { background: #3a1e22; color: #db8288; border: 1px solid #572d32; }
.cell-tag.two-sided { background: #2d261a; color: #e2b866; border: 1px solid #4d3f24; }

/* ---------- Sections ---------- */
section {
  padding-block: 56px;
  border-bottom: 1px solid var(--border);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: 22px;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-soft);
}
h1, h2, h3 { margin: 0; color: var(--text-strong); letter-spacing: -0.015em; }
h1 { font-size: clamp(26px, 3.5vw, 42px); line-height: 1.14; font-weight: 700; }
h2 { font-size: clamp(20px, 2.3vw, 29px); line-height: 1.22; font-weight: 680; }
h3 { font-size: 15px; line-height: 1.3; font-weight: 650; }
.lead { margin: 14px 0 0; max-width: 580px; color: #aeb4c0; font-size: 15px; }
.section-desc { margin: 8px 0 0; max-width: 650px; color: var(--muted); font-size: 13.5px; }

/* ---------- Hero ---------- */
.hero { padding-block: 40px 52px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.26fr);
  gap: 26px;
  align-items: stretch;
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.mobile-demo-hint {
  display: none;
  margin-top: 10px;
  font: 11px/1.45 var(--font-mono);
  color: var(--amber-soft);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}
.metric-box {
  padding: 10px 11px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 140ms ease, transform 180ms var(--ease);
}
.metric-box:hover { border-color: var(--border2); transform: translateY(-1px); }
.metric-val { display: block; font: 700 16px/1.15 var(--font-mono); color: var(--text-strong); }
.metric-key { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }

/* ---------- Real Terminal Workspace Frame (Hero 2x2 Grid) ---------- */
.terminal-shell {
  display: flex;
  flex-direction: column;
  background: #101010;
  border: 1px solid var(--cell-border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.terminal-shell-bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.terminal-shell-bar::-webkit-scrollbar { display: none; }
.tb-sep { width: 1px; height: 16px; background: var(--border); flex: none; }
.tb-stats {
  margin-left: auto;
  font: 11px/1 var(--font-mono);
  color: var(--muted);
  white-space: nowrap;
}

.terminal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  background: #101010;
  flex: 1;
  min-height: 410px;
}

/* Exact .cell + .cell-head from web/styles.css */
.cell {
  display: flex;
  flex-direction: column;
  background: var(--chart-bg);
  border: 1px solid var(--cell-border);
  min-width: 0;
  min-height: 196px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 140ms ease-out;
}
.cell:hover { border-color: #515864; }
.cell:hover .cell-head { background: #292d35; }
.cell-head {
  height: 22px;
  flex: 0 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 6px;
  background: #212329;
  border-bottom: 1px solid #343740;
  font-family: var(--font-mono);
  font-size: 11px;
  transition: background-color 140ms ease-out;
}
.cell-head.signal-arrived { box-shadow: inset 3px 0 #e5b56b; }
.cell-title-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.cell-symbol {
  color: #e5e7eb;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cell-meta {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.cell-canvas-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 172px;
  background: var(--chart-bg);
}
.cell-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- Generic Terminal Panel ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--cell-border);
  border-radius: 4px;
  overflow: hidden;
}
.panel-head {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  background: var(--head);
  border-bottom: 1px solid var(--border2);
  font-size: 12px;
}
.panel-body { padding: 14px; }

/* ---------- Section 2: Signal Modules ---------- */
.detector-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.detector-tabs::-webkit-scrollbar { display: none; }

.detector-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  gap: 14px;
}
.detector-canvas-wrap {
  position: relative;
  height: 330px;
  background: var(--chart-bg);
}
.detector-canvas { display: block; width: 100%; height: 100%; }

.essence-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.essence-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 10px;
  background: #121316;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12.5px;
  color: #c5cbd6;
  transition: border-color 140ms ease, transform 160ms var(--ease);
}
.essence-list li:hover { border-color: #3c404b; transform: translateX(2px); }
.essence-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-soft);
  margin-top: 6px;
  flex: none;
}

.detector-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.seo-card {
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 140ms ease, transform 180ms var(--ease);
}
.seo-card:hover { border-color: var(--cell-border); transform: translateY(-2px); }
.seo-card p { margin: 8px 0 0; color: #a9b0bc; font-size: 12.5px; line-height: 1.5; }

/* ---------- Section 3: Exact Focus Window Widget (#focus-modal replica) ---------- */
.focus-replica {
  display: flex;
  flex-direction: column;
  background: var(--chart-bg);
  border: 1px solid var(--cell-border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}
.focus-header {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 10px;
  background: #212329;
  border-bottom: 1px solid #343740;
  font-family: var(--font-mono);
  font-size: 11px;
}
.focus-title, .focus-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.focus-hint {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 11px;
}

/* Exact .preset-bar from web/styles.css */
.preset-bar {
  display: inline-flex;
  align-items: stretch;
  height: 22px;
  border: 1px solid var(--border2);
  border-radius: 3px;
  background: #1a1a1a;
  overflow: hidden;
}
.preset-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 7px;
  border: 0;
  border-right: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font: 11px/20px var(--font-mono);
  cursor: pointer;
  transition: background 100ms ease, color 100ms ease;
}
.preset-btn:last-child { border-right: 0; }
.preset-btn:hover { background: #242424; color: var(--text); }
.preset-btn.active { background: #282a2e; color: #e5e7eb; font-weight: 700; }
.preset-key { font-size: 9.5px; color: var(--dim); }
.preset-btn.active .preset-key { color: var(--amber-soft); }

.cell-btn {
  height: 22px;
  padding: 0 7px;
  border: 1px solid var(--border2);
  border-radius: 3px;
  background: #242424;
  color: var(--text);
  font: 600 10.5px/1 var(--font-mono);
  cursor: pointer;
  transition: background 100ms ease, border-color 100ms ease;
}
.cell-btn:hover { background: #30343d; border-color: #545b6b; color: #fff; }
.cell-btn.danger { background: #4a2022; border-color: #7c3235; color: #f5c2c5; }
.cell-btn.danger:hover { background: #5e272a; }

.focus-canvas-wrap {
  position: relative;
  height: 410px;
  background: var(--chart-bg);
  cursor: crosshair;
  user-select: none;
  touch-action: pan-y;
}
.focus-canvas { display: block; width: 100%; height: 100%; }

.focus-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 7px 10px;
  background: #141518;
  border-top: 1px solid var(--border);
  font: 11px/1.35 var(--font-mono);
  color: var(--muted);
}

.hotkey-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.hk-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 9px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 11.5px;
  transition: border-color 140ms ease, transform 150ms var(--ease);
}
.hk-item:hover { border-color: var(--cell-border); transform: translateY(-1px); }
.hk-item kbd {
  padding: 2px 5px;
  border-radius: 3px;
  background: #1f2228;
  border: 1px solid #353944;
  font: 600 10px/1 var(--font-mono);
  color: var(--text-strong);
  white-space: nowrap;
}

/* ---------- Section 4: Account Portal Replica (Exchanges + Mode Switch + Security) ---------- */
.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 16px;
  align-items: start;
}

/* Exact .account-panel styles from web/styles.css */
.account-panel-replica {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}
.account-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.account-access-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 11.5px/1 var(--font-mono);
  color: #aeb4c0;
}
.account-access-state::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.account-trading-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
}
.account-switch {
  display: inline-flex;
  align-items: center;
  flex: none;
  width: 46px;
  height: 26px;
  padding: 0 2px;
  border: 1px solid #3c404a;
  border-radius: 999px;
  background: #23252b;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.account-switch[aria-checked="true"] {
  background: #254a37;
  border-color: #3a8662;
}
.account-switch-thumb {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #cbd5e1;
  transform: translateX(0);
  transition: transform 160ms var(--ease), background-color 150ms ease;
}
.account-switch[aria-checked="true"] .account-switch-thumb {
  transform: translateX(20px);
  background: #e2f6e9;
}

.account-trading {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  overflow: hidden;
  transition: grid-template-rows 240ms var(--ease), opacity 180ms ease-out;
}
.account-trading[data-collapsed="true"] {
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
}
.account-trading-inner { min-height: 0; padding-top: 14px; }

/* Exact .trading-exchanges-list & .trading-exchange-chip from web/styles.css */
.trading-exchanges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}
.trading-exchange-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 31px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #1a1a1a;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, transform 140ms var(--ease);
}
.trading-exchange-chip:hover { border-color: #3a3a3a; background: #222222; transform: translateY(-1px); }
.trading-exchange-chip.selected { border-color: #484d56; background: #282a2e; color: #f3f4f6; }
.trading-exchange-chip .chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.trading-exchange-chip.ro .chip-dot { background: var(--amber); }
.trading-exchange-chip small {
  padding: 1px 5px;
  border-radius: 3px;
  background: #24262b;
  border: 1px solid #383b44;
  color: #aeb4c0;
  font: 600 9.5px/1.2 var(--font-mono);
}

.trading-key-preview {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
}
.trading-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.trading-market-tabs { display: inline-flex; gap: 6px; }
.trading-market-tab {
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #1a1a1a;
  color: #aeb4c0;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.trading-market-tab.active { border-color: #484d56; background: #282a2e; color: #f3f4f6; }
.trading-market-tab:disabled { opacity: 0.35; cursor: default; }
.trading-key-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--green-soft);
}
.trading-key-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.trading-key-status[data-ro="true"] { color: var(--amber-soft); }
.trading-key-status[data-ro="true"]::before { background: var(--amber); }

.sec-layers { display: grid; gap: 10px; }
.sec-item {
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 5px;
  transition: border-color 140ms ease, transform 160ms var(--ease);
}
.sec-item:hover { border-color: var(--cell-border); transform: translateY(-1px); }
.sec-item p { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; }

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.ws-card {
  padding: 14px;
  background: #131417;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 140ms ease, transform 180ms var(--ease);
}
.ws-card:hover { border-color: var(--cell-border); transform: translateY(-2px); }
.ws-num { font: 700 11px/1 var(--font-mono); color: var(--green-soft); margin-bottom: 6px; }
.ws-card p { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }

/* ---------- Section 5: Access Funnel (single clean conversion hub) ---------- */
.funnel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.step-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 140ms ease, transform 180ms var(--ease);
}
.step-card:hover { border-color: var(--cell-border); transform: translateY(-2px); }
.step-card.featured {
  border-color: #356e51;
  background: linear-gradient(180deg, rgba(37, 74, 55, 0.22), var(--panel) 55%);
}
.step-num { font: 700 11px/1 var(--font-mono); color: var(--amber-soft); margin-bottom: 10px; }
.step-card p { margin: 8px 0 18px; color: #a9b0bc; font-size: 13px; flex: 1; }

.community-bar {
  margin-top: 14px;
  padding: 14px 16px;
  background: #131518;
  border: 1px solid var(--border2);
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ---------- Section 6: FAQ ---------- */
.faq-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
details.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 140ms ease;
}
details.faq-item:hover,
details.faq-item[open] { border-color: var(--cell-border); }
details.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-strong);
  cursor: pointer;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  font: 600 16px/1 var(--font-mono);
  color: var(--muted);
  flex: none;
}
details.faq-item[open] summary::after { content: "−"; color: var(--green-soft); }
details.faq-item .faq-a {
  padding: 10px 15px 14px;
  color: #a9b0bc;
  font-size: 13px;
  line-height: 1.55;
  border-top: 1px solid #1f2127;
  animation: account-reveal 180ms var(--ease) both;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 26px 34px;
  background: #0d0e10;
  font-size: 12px;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a { color: var(--muted); text-decoration: none; transition: color 120ms ease; }
.footer-links a:hover { color: var(--text-strong); }

/* ---------- Responsive (320px .. 2560px) ---------- */
@media (max-width: 1080px) {
  .hero-grid,
  .detector-layout,
  .account-layout { grid-template-columns: 1fr; }
  .hotkey-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workspace-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detector-cards,
  .funnel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .container { width: min(1260px, 100% - 24px); }
  .site-nav, .live-pill, .focus-hint { display: none; }
  .hero { padding-block: 26px 36px; }
  section { padding-block: 36px; }
  .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terminal-grid { grid-template-columns: 1fr; min-height: 360px; }
  .detector-canvas-wrap { height: 260px; }
  .focus-canvas-wrap { height: 340px; }
  .hotkey-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detector-cards, .funnel-grid, .faq-list, .workspace-grid { grid-template-columns: 1fr; }
  .mobile-demo-hint { display: block; }
}

@media (max-width: 460px) {
  .header-inner { gap: 8px; }
  .brand-link img { width: 108px; height: auto; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .focus-canvas-wrap { height: 300px; }
  .preset-bar { width: 100%; }
  .preset-btn { flex: 1; justify-content: center; padding: 0 4px; }
  .account-panel-replica { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .ws-dot::after, .swap-anim, details.faq-item .faq-a { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
