/* Staging page for the AI Economy Index. Layout follows the working prototype.
   Scoped under .ix so it does not restyle the site header, the homepage, or the footer.
   The address is /ai-index because /index is the homepage. */

.ix {
  --ix-bg: #080b0a;
  --ix-panel: #111714;
  --ix-ink: #f3f4ef;
  --ix-muted: #9ba29c;
  --ix-line: #28312d;
  --ix-soft: #1a221d;
  --ix-link: #8ec0ff;
  --ix-major: #e8ebe7;
  --ix-minor: #6f8091;
  --ix-frontier: #62a8ff;
  --ix-cap: #ff7f50;
  --ix-green: #3fbf78;
  --ix-amber: #e0a43a;
  --ix-red: #ef6a5a;
  --ix-gray: #6f7d8b;
  --ix-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px clamp(22px, 5vw, 76px) 72px;
  display: grid;
  gap: 18px;
}
.ix h1, .ix h2, .ix h3 { font-family: Arial, Helvetica, sans-serif; margin: 0; letter-spacing: -0.02em; }
.ix h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.05; font-weight: 800; }
.ix h2 { font-size: 18px; font-weight: 700; }
.ix h3 { font-size: 15px; font-weight: 700; }
.ix p { margin: 0; }
.ix a { color: var(--ix-link); text-decoration: underline; text-underline-offset: 2px; }
.ix-eyebrow {
  font-family: var(--ix-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ix-muted);
}
.ix-lede { max-width: 68ch; color: var(--ix-muted); margin-top: 8px; }
.ix-rule { margin-top: 10px; font-weight: 700; }
.ix-asof { margin-top: 6px; color: var(--ix-muted); font-variant-numeric: tabular-nums; }
.ix-mono { font-family: var(--ix-mono); font-variant-numeric: tabular-nums; }
.ix-note { font-size: 12.5px; color: var(--ix-muted); }
.ix-panel {
  background: var(--ix-panel);
  border: 1px solid var(--ix-line);
  border-radius: 10px;
  padding: 16px;
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}
.ix-tape {
  background: var(--ix-panel);
  border: 1px solid var(--ix-line);
  border-radius: 10px;
  min-height: 72px;
  overflow: hidden;
}
.ix [hidden], .ix-fallback[hidden], .ix-drawer[hidden] { display: none !important; }
.ix-tape .ix-fallback:not([hidden]), .ix-tv .ix-fallback:not([hidden]) {
  display: flex;
  gap: 22px;
  padding: 12px 16px;
  white-space: nowrap;
  overflow-x: auto;
  font-family: var(--ix-mono);
  font-size: 13px;
}
.ix-tape .ix-fallback b { font-weight: 600; }
.ix-tape .tradingview-widget-copyright,
.ix-tv .tradingview-widget-copyright {
  font-size: 13px;
  line-height: 32px;
  text-align: center;
  color: var(--ix-muted);
}
.ix .blue-text { color: #2962ff; }
.ix .trademark { color: var(--ix-muted); }
.ix-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--ix-line);
  border: 1px solid var(--ix-line);
  border-radius: 10px;
  overflow: hidden;
}
.ix-stat { background: var(--ix-panel); padding: 12px 14px; display: grid; gap: 2px; min-width: 0; }
.ix-stat .v {
  font-weight: 800;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.ix-stat .k { font-size: 12.5px; color: var(--ix-muted); }
.ix-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.ix-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ix-muted); }
.ix-sw {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 5px;
  vertical-align: -1px;
}
.ix-bars { display: grid; gap: 7px; }
.ix-bar {
  display: grid;
  grid-template-columns: minmax(0, 16em) minmax(0, 1fr) 4.6em;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  cursor: pointer;
  border-radius: 6px;
  padding: 3px 4px;
  text-align: left;
  color: inherit;
  background: transparent;
  border: 0;
  width: 100%;
  font: inherit;
}
.ix-bar:hover, .ix-bar.on { background: var(--ix-soft); }
.ix-bar .lab { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ix-bar .track {
  height: 12px;
  background: var(--ix-soft);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  display: flex;
}
.ix-bar .maj { background: var(--ix-major); height: 100%; }
.ix-bar .min { background: var(--ix-minor); height: 100%; }
.ix-bar .fr { background: var(--ix-frontier); height: 100%; }
.ix-bar .pct { text-align: right; }
.ix-capline { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--ix-cap); }
.ix-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ix-chip, .ix-btn {
  font: inherit;
  cursor: pointer;
  border-radius: 8px;
}
.ix-chip {
  border: 1px solid var(--ix-line);
  background: var(--ix-panel);
  color: var(--ix-ink);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13.5px;
}
.ix-chip[aria-pressed="true"] {
  background: #16304a;
  border-color: var(--ix-link);
  color: var(--ix-link);
  font-weight: 700;
}
.ix-btn {
  padding: 7px 12px;
  background: var(--ix-ink);
  color: #11170f;
  font-weight: 700;
  font-size: 13.5px;
  border: 1px solid var(--ix-ink);
}
.ix-btn.ghost { background: transparent; color: var(--ix-ink); border: 1px solid var(--ix-line); }
.ix input[type="search"], .ix select {
  font: inherit;
  font-size: 14px;
  padding: 6px 10px;
  border: 1px solid var(--ix-line);
  border-radius: 8px;
  background: var(--ix-bg);
  color: var(--ix-ink);
  min-width: 0;
}
.ix input[type="search"] { flex: 1 1 180px; }
.ix-tablewrap { overflow-x: auto; border: 1px solid var(--ix-line); border-radius: 10px; background: var(--ix-panel); }
.ix table { border-collapse: collapse; width: 100%; min-width: 920px; font-size: 14px; }
.ix th { text-align: left; padding: 0; border-bottom: 1px solid var(--ix-line); white-space: nowrap; }
.ix th button {
  font: inherit;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ix-muted);
  background: var(--ix-panel);
  border: 0;
  padding: 9px 10px;
  cursor: pointer;
  width: 100%;
  text-align: inherit;
}
.ix td { padding: 8px 10px; border-bottom: 1px solid var(--ix-soft); vertical-align: middle; }
.ix tbody tr { cursor: pointer; }
.ix tbody tr:hover { background: var(--ix-soft); }
.ix td.num, .ix th.num { text-align: right; }
.ix .tk { font-family: var(--ix-mono); font-size: 13px; }
.ix-grp {
  font-family: var(--ix-mono);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--ix-line);
}
.ix-grp.major { background: var(--ix-ink); color: #11170f; border-color: var(--ix-ink); }
.ix-grp.frontier { color: var(--ix-frontier); border-color: var(--ix-frontier); }
.ix-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ix-gray);
  vertical-align: -1px;
}
.ix-dot.green { background: var(--ix-green); }
.ix-dot.yellow { background: var(--ix-amber); }
.ix-dot.red { background: var(--ix-red); }
.ix-dot.none { background: transparent; border: 1px solid var(--ix-gray); }
.ix-wbar { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.ix-wbar i { display: block; height: 6px; background: var(--ix-frontier); border-radius: 2px; }
.ix-drawer {
  position: fixed;
  inset: 0;
  background: rgba(8, 11, 10, 0.62);
  display: flex;
  justify-content: flex-end;
  z-index: 60;
}
.ix-drawer[hidden] { display: none; }
.ix-sheet {
  background: var(--ix-panel);
  width: min(520px, 100%);
  height: 100%;
  overflow-y: auto;
  padding: 22px 20px 32px;
  display: grid;
  gap: 14px;
  align-content: start;
  border-left: 1px solid var(--ix-line);
}
.ix-kv { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 4px 12px; font-size: 14px; margin: 0; }
.ix-kv dt { color: var(--ix-muted); }
.ix-kv dd { margin: 0; }
.ix-tv { min-height: 250px; border: 1px solid var(--ix-line); border-radius: 8px; overflow: hidden; }
.ix-tv .ix-fallback { display: grid; white-space: normal; gap: 8px; }
.ix-rules { display: grid; gap: 10px; padding-left: 1.2em; margin: 0; max-width: 78ch; }
.ix-rules li { padding-left: 0.2em; }
.ix-changelog, .ix-held { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; max-width: 78ch; }
.ix-changelog li, .ix-held li { padding-top: 8px; border-top: 1px solid var(--ix-line); }
.ix-disclaimer {
  border-top: 1px solid var(--ix-line);
  padding-top: 14px;
  font-size: 13px;
  color: var(--ix-muted);
  max-width: 86ch;
}
.ix textarea {
  width: 100%;
  font-family: var(--ix-mono);
  font-size: 12px;
  min-height: 110px;
  background: var(--ix-soft);
  color: var(--ix-ink);
  border: 1px solid var(--ix-line);
  border-radius: 6px;
  padding: 8px;
}
.ix-toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: var(--ix-ink);
  color: #11170f;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 70;
}
.ix-profile { display: grid; gap: 4px; }
.ix-profile + .ix-profile { border-top: 1px solid var(--ix-line); padding-top: 10px; }
.ix-signals { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ix-signals li { display: grid; gap: 2px; }
@media (max-width: 720px) {
  .ix-bar { grid-template-columns: minmax(0, 1fr) auto; }
  .ix-bar .track { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .ix * { scroll-behavior: auto; }
}
