/* ============================================================================
   Veritas dashboard — a restrained, editorial luxury aesthetic.
   Deep ink ground, champagne-gold accent, fine serif display, generous space.
   ========================================================================== */

:root {
  --ink:        #090c14;
  --ink-2:      #0c1019;
  --ink-3:      #11161f;
  --panel:      rgba(255, 255, 255, 0.022);
  --panel-2:    rgba(255, 255, 255, 0.04);
  --hair:       rgba(201, 169, 106, 0.16);
  --hair-soft:  rgba(255, 255, 255, 0.07);

  --gold:       #c9a96a;
  --gold-bright:#e6c98f;
  --gold-dim:   rgba(201, 169, 106, 0.55);
  --gold-glow:  rgba(201, 169, 106, 0.10);

  --text:       #ece7da;
  --muted:      #99a0b2;
  --muted-2:    #626a7e;

  --pass:       #6cb79a;
  --fail:       #d98472;
  --error:      #d96c6c;
  --warn:       #d9b06a;
  --slate:      #7e8aa6;
  --info:       #7fa8d9;

  --crit:       #d96c6c;
  --high:       #d9a85f;
  --med:        #8e9ab8;
  --low:        #69728a;

  --radius:     16px;
  --radius-sm:  10px;
  --shadow:     0 24px 60px -28px rgba(0, 0, 0, 0.8);
  --serif:      'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:       'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---- ambient background ------------------------------------------------- */
.bg-glow {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1100px 600px at 78% -8%, rgba(201, 169, 106, 0.10), transparent 60%),
    radial-gradient(900px 700px at 8% 4%, rgba(86, 110, 160, 0.10), transparent 55%),
    linear-gradient(180deg, #0a0e17 0%, #090c14 38%, #080a11 100%);
}
.bg-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(201, 169, 106, 0.28); color: #fff; }

/* ---- scrollbars --------------------------------------------------------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(201,169,106,0.22); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ============================ Top bar ==================================== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 56px);
  background: rgba(9, 12, 20, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--hair);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  color: var(--gold); font-size: 17px;
  filter: drop-shadow(0 0 10px rgba(201,169,106,0.6));
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:.85} 50%{opacity:.45} }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--serif); font-weight: 600; font-size: 21px;
  letter-spacing: 0.42em; padding-left: 0.42em;
  background: linear-gradient(180deg, #fff, var(--gold-bright));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-sub { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); }

.topnav { display: flex; gap: 30px; }
.topnav a {
  color: var(--muted); text-decoration: none; font-size: 13px; letter-spacing: 0.04em;
  position: relative; padding: 4px 0; transition: color 0.25s;
}
.topnav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--gold); transition: width 0.3s ease;
}
.topnav a:hover { color: var(--text); }
.topnav a:hover::after { width: 100%; }

.topbar-right { display: flex; align-items: center; gap: 16px; }
.repro-badge {
  display: flex; align-items: center; gap: 8px;
  font-size: 10.5px; letter-spacing: 0.16em; font-weight: 500;
  padding: 7px 13px; border-radius: 100px;
  border: 1px solid rgba(108, 183, 154, 0.3);
  background: rgba(108, 183, 154, 0.07); color: var(--pass);
}
.repro-badge.bad { border-color: rgba(217,108,108,.4); background: rgba(217,108,108,.08); color: var(--error); }
.repro-badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--pass);
  box-shadow: 0 0 10px var(--pass); animation: pulse 2.4s ease-in-out infinite;
}
.repro-badge.bad .dot { background: var(--error); box-shadow: 0 0 10px var(--error); }

.btn-rerun {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 12.5px; letter-spacing: 0.05em; color: var(--ink);
  padding: 9px 18px; border: none; border-radius: 100px; cursor: pointer;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  box-shadow: 0 6px 18px -6px rgba(201,169,106,0.6); transition: transform .2s, box-shadow .2s;
}
.btn-rerun:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -8px rgba(201,169,106,0.75); }
.btn-rerun:disabled { opacity: 0.6; cursor: progress; }
.btn-rerun .btn-icon { font-size: 14px; }
.btn-rerun.spinning .btn-icon { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================ Layout ===================================== */
main { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }

.block { padding: 60px 0; border-top: 1px solid var(--hair-soft); }
.block-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 34px; flex-wrap: wrap;
}
.block-title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.01em;
}
.block-sub { color: var(--muted); font-size: 14px; max-width: 56ch; margin-top: 6px; }

/* ---- eyebrow / hairline accents ---------------------------------------- */
.eyebrow {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px; display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--gold-dim); }

/* ============================ Hero ====================================== */
.hero { padding: clamp(48px, 7vw, 92px) 0 56px; }
.hero-title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 6vw, 62px);
  line-height: 1.04; letter-spacing: -0.02em; max-width: 18ch;
}
.hero-title em {
  font-style: italic; font-weight: 400;
  background: linear-gradient(120deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lede { color: var(--muted); font-size: 16px; max-width: 62ch; margin-top: 26px; font-weight: 300; }

.kpis {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  margin-top: 54px; border: 1px solid var(--hair); border-radius: var(--radius);
  overflow: hidden; background: var(--hair-soft);
}
.kpi {
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  padding: 26px 24px; position: relative;
}
.kpi-value {
  font-family: var(--serif); font-weight: 600; font-size: 40px; line-height: 1;
  color: var(--text); letter-spacing: -0.02em;
}
.kpi-value .unit { font-size: 16px; color: var(--gold); margin-left: 4px; font-family: var(--sans); }
.kpi-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-top: 12px; }
.kpi-foot { font-size: 12px; color: var(--muted); margin-top: 4px; }
.kpi.feature .kpi-value { color: var(--gold-bright); }

@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, 1fr); } }

/* ============================ Leaderboard =============================== */
.block-aside {
  text-align: right; font-size: 13px; color: var(--muted);
  border-left: 1px solid var(--hair); padding-left: 20px;
}
.block-aside strong { color: var(--gold-bright); font-family: var(--serif); font-size: 17px; font-weight: 600; }

.leaderboard { display: flex; flex-direction: column; gap: 14px; }
.model-card {
  display: grid; grid-template-columns: 60px 1fr 168px; align-items: center; gap: 28px;
  padding: 24px 28px; border: 1px solid var(--hair-soft); border-radius: var(--radius);
  background: linear-gradient(120deg, var(--panel), rgba(255,255,255,0.008));
  transition: border-color .3s, transform .25s, box-shadow .3s; position: relative; overflow: hidden;
}
.model-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent, var(--muted-2)); opacity: 0.0; transition: opacity .3s;
}
.model-card:hover { transform: translateX(3px); border-color: var(--hair); box-shadow: var(--shadow); }
.model-card:hover::before { opacity: 0.8; }
.model-card.rank-1 {
  border-color: var(--gold-dim);
  background: linear-gradient(120deg, rgba(201,169,106,0.10), rgba(255,255,255,0.012));
}
.model-card.rank-1::before { opacity: 1; background: var(--gold); }

.rank-badge {
  font-family: var(--serif); font-size: 40px; font-weight: 600; color: var(--muted-2);
  text-align: center; line-height: 1;
}
.rank-1 .rank-badge { color: var(--gold); }
.rank-badge .crown { display: block; font-size: 13px; color: var(--gold); margin-bottom: 2px; letter-spacing: .1em; }

.model-meta { min-width: 0; }
.model-name { font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: -0.01em; }
.model-lab { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.chips { display: flex; gap: 7px; margin-top: 12px; flex-wrap: wrap; }
.chip {
  font-size: 10.5px; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 100px;
  border: 1px solid var(--hair-soft); color: var(--muted); background: rgba(255,255,255,0.02);
}
.chip.lang { text-transform: uppercase; }
.chip.tier { border-color: var(--gold-dim); color: var(--gold); }
.chip.stat-pass { color: var(--pass); border-color: rgba(108,183,154,.25); }
.chip.stat-fail { color: var(--fail); border-color: rgba(217,132,114,.25); }
.chip.stat-error { color: var(--error); border-color: rgba(217,108,108,.25); }
.chip.stat-timeout { color: var(--warn); border-color: rgba(217,176,106,.25); }

.cap-bars { display: grid; gap: 6px; margin-top: 15px; max-width: 460px; }
.cap-row { display: grid; grid-template-columns: 116px 1fr 38px; align-items: center; gap: 12px; }
.cap-name { font-size: 11px; color: var(--muted-2); letter-spacing: .03em; }
.cap-track { height: 5px; background: rgba(255,255,255,0.05); border-radius: 4px; overflow: hidden; }
.cap-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); width: 0; transition: width 1s cubic-bezier(.2,.7,.2,1); }
.cap-val { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }

/* score ring */
.score-ring { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ring-wrap { position: relative; width: 116px; height: 116px; }
.ring-wrap svg { transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 7; }
.ring-fg { fill: none; stroke: url(#goldgrad); stroke-width: 7; stroke-linecap: round;
  transition: stroke-dashoffset 1.3s cubic-bezier(.2,.7,.2,1); }
.ring-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.ring-score { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--text); line-height: 1; }
.ring-score .pct { font-size: 14px; color: var(--gold); }
.ring-sub { font-size: 11px; color: var(--muted-2); font-variant-numeric: tabular-nums; margin-top: 3px; }

@media (max-width: 820px) {
  .model-card { grid-template-columns: 44px 1fr; }
  .score-ring { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; gap: 18px; margin-top: 8px; }
  .cap-bars { max-width: none; }
}

/* ============================ Matrix ==================================== */
.legend { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted-2); }
.legend .scale { width: 130px; height: 8px; border-radius: 6px;
  background: linear-gradient(90deg, #2a1c16, #6b4f2c 45%, var(--gold) 78%, var(--gold-bright)); }
.matrix-wrap { overflow-x: auto; border: 1px solid var(--hair-soft); border-radius: var(--radius); }
.matrix { border-collapse: collapse; width: 100%; min-width: 680px; }
.matrix th, .matrix td { padding: 0; text-align: center; }
.matrix thead th {
  font-family: var(--sans); font-weight: 500; font-size: 12px; color: var(--text);
  padding: 16px 12px; border-bottom: 1px solid var(--hair); background: var(--ink-2);
}
.matrix thead th.lab { font-size: 10px; color: var(--muted-2); font-weight: 400; }
.matrix tbody th {
  text-align: left; padding: 0 18px; font-weight: 400; font-size: 13px; color: var(--text);
  background: var(--ink-2); border-right: 1px solid var(--hair-soft); white-space: nowrap;
}
.matrix tbody th .tlang { font-size: 10px; color: var(--muted-2); margin-left: 8px; text-transform: uppercase; letter-spacing: .08em; }
.cell { height: 56px; cursor: pointer; position: relative; transition: transform .15s; }
.cell:hover { transform: scale(1.06); z-index: 2; box-shadow: 0 0 0 1px var(--gold) inset; }
.cell .cval { font-size: 12.5px; font-variant-numeric: tabular-nums; color: rgba(255,255,255,0.92); position: relative; z-index: 1; font-weight: 500; }

/* ============================ Findings ================================== */
.findings-filter { display: flex; gap: 8px; }
.fbtn {
  font-family: var(--sans); font-size: 11.5px; letter-spacing: .04em; cursor: pointer;
  padding: 7px 14px; border-radius: 100px; border: 1px solid var(--hair-soft);
  background: transparent; color: var(--muted); transition: all .2s;
}
.fbtn:hover { color: var(--text); border-color: var(--hair); }
.fbtn.active { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 500; }

.findings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 900px) { .findings { grid-template-columns: 1fr; } }

.finding {
  border: 1px solid var(--hair-soft); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, var(--panel), rgba(255,255,255,0.006));
  transition: border-color .25s;
}
.finding:hover { border-color: var(--hair); }
.finding-head { padding: 20px 22px; cursor: pointer; display: flex; gap: 16px; align-items: flex-start; }
.sev-tag {
  font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  padding: 5px 10px; border-radius: 6px; white-space: nowrap; margin-top: 2px;
}
.sev-critical { background: rgba(217,108,108,0.14); color: var(--crit); border: 1px solid rgba(217,108,108,.3); }
.sev-high { background: rgba(217,168,95,0.13); color: var(--high); border: 1px solid rgba(217,168,95,.3); }
.sev-medium { background: rgba(142,154,184,0.12); color: var(--med); border: 1px solid rgba(142,154,184,.3); }
.sev-low { background: rgba(105,114,138,0.12); color: var(--low); border: 1px solid rgba(105,114,138,.3); }

.finding-headline { font-size: 15px; font-weight: 500; color: var(--text); line-height: 1.4; }
.finding-headline em { color: var(--gold-bright); font-style: normal; }
.finding-tasks { font-size: 11.5px; color: var(--muted-2); margin-top: 7px; }
.finding-rate { margin-top: 12px; display: flex; align-items: center; gap: 10px; }
.rate-track { flex: 1; height: 4px; background: rgba(255,255,255,0.05); border-radius: 4px; overflow: hidden; }
.rate-fill { height: 100%; background: var(--sevcol, var(--high)); border-radius: 4px; width: 0; transition: width 1s ease; }
.rate-num { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.expand-ico { margin-left: auto; color: var(--muted-2); transition: transform .3s; font-size: 13px; }
.finding.open .expand-ico { transform: rotate(90deg); }

.finding-body { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.finding.open .finding-body { max-height: 1400px; }
.evidence { padding: 0 22px 22px; border-top: 1px solid var(--hair-soft); margin-top: 4px; }
.ev-item { padding: 16px 0; border-bottom: 1px solid var(--hair-soft); }
.ev-item:last-child { border-bottom: none; }
.ev-top { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.ev-top .tcode { font-family: var(--mono); color: var(--gold); font-size: 11.5px; }
.diff { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 560px) { .diff { grid-template-columns: 1fr; } }
.diff-col { background: rgba(0,0,0,0.28); border: 1px solid var(--hair-soft); border-radius: 8px; padding: 10px 12px; }
.diff-col .lbl { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.diff-col.exp .lbl { color: var(--pass); }
.diff-col.got .lbl { color: var(--fail); }
.diff-col code { font-family: var(--mono); font-size: 12px; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.ev-args { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.ev-args b { color: var(--muted-2); font-weight: 400; }

/* ============================ Explorer ================================== */
.explorer { display: grid; grid-template-columns: 300px 1fr; gap: 22px; }
@media (max-width: 920px) { .explorer { grid-template-columns: 1fr; } }
.task-list { display: flex; flex-direction: column; gap: 8px; }
.task-row {
  text-align: left; cursor: pointer; padding: 15px 17px; border-radius: var(--radius-sm);
  border: 1px solid var(--hair-soft); background: var(--panel); transition: all .2s;
}
.task-row:hover { border-color: var(--hair); background: var(--panel-2); }
.task-row.active { border-color: var(--gold-dim); background: rgba(201,169,106,0.08); }
.task-row .tr-title { font-size: 14px; font-weight: 500; color: var(--text); }
.task-row .tr-meta { font-size: 11px; color: var(--muted-2); margin-top: 4px; display: flex; gap: 8px; align-items: center; }
.tr-lang { font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--gold); }
.tr-pass { margin-left: auto; font-variant-numeric: tabular-nums; }

.task-detail {
  border: 1px solid var(--hair-soft); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--panel), rgba(255,255,255,0.006)); padding: 28px;
  min-height: 400px;
}
.td-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.td-title { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.td-tags { display: flex; gap: 7px; margin-top: 10px; flex-wrap: wrap; }
.td-prompt {
  margin-top: 18px; padding: 16px 18px; border-left: 2px solid var(--gold-dim);
  background: rgba(201,169,106,0.05); border-radius: 0 8px 8px 0;
  font-size: 14px; color: #d8d3c6; font-style: italic;
}
.td-section-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 28px 0 14px; }

.case-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.case-table th { text-align: left; font-weight: 500; color: var(--muted-2); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--hair-soft); }
.case-table td { padding: 9px 10px; border-bottom: 1px solid rgba(255,255,255,0.035); font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.case-table td.cat { color: var(--muted-2); }
.dot-row { display: flex; gap: 4px; }
.sdot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.sdot.pass { background: var(--pass); }
.sdot.fail { background: var(--fail); }
.sdot.error { background: var(--error); box-shadow: 0 0 6px rgba(217,108,108,.5); }
.sdot.timeout { background: var(--warn); }

/* code side-by-side */
.code-tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.code-tab {
  font-family: var(--sans); font-size: 11.5px; cursor: pointer; padding: 6px 13px; border-radius: 100px;
  border: 1px solid var(--hair-soft); background: transparent; color: var(--muted); transition: all .2s;
  display: flex; align-items: center; gap: 7px;
}
.code-tab:hover { color: var(--text); }
.code-tab.active { border-color: var(--gold-dim); background: rgba(201,169,106,.08); color: var(--gold-bright); }
.code-tab .pill { font-size: 10px; font-variant-numeric: tabular-nums; color: var(--muted-2); }
.code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .code-grid { grid-template-columns: 1fr; } }
.code-pane { border: 1px solid var(--hair-soft); border-radius: 10px; overflow: hidden; background: #07090f; }
.code-pane .cp-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid var(--hair-soft); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
.cp-head.oracle { color: var(--pass); }
.cp-head.candidate { color: var(--gold-bright); }
.cp-head .cp-verdict { font-family: var(--mono); letter-spacing: 0; text-transform: none; }
pre.code { margin: 0; padding: 14px 0; overflow-x: auto; font-family: var(--mono); font-size: 12px; line-height: 1.65; }
pre.code .ln { display: block; padding: 0 16px 0 52px; position: relative; white-space: pre; color: #cdd2dd; }
pre.code .ln::before { content: attr(data-n); position: absolute; left: 0; width: 38px; text-align: right; color: #3a4254; font-size: 11px; }
pre.code .ln.bug { background: rgba(217,108,108,0.10); box-shadow: inset 2px 0 0 var(--error); }
pre.code .cm { color: #5d6678; font-style: italic; }
pre.code .kw { color: #c79cd6; }
pre.code .str { color: #9cc99a; }
pre.code .num { color: #d9b06a; }
pre.code .bugword { color: var(--error); font-weight: 600; }

/* ============================ Footer ==================================== */
.footer {
  border-top: 1px solid var(--hair); margin-top: 40px;
  padding: 40px clamp(20px, 5vw, 56px); max-width: 1280px; margin-left: auto; margin-right: auto;
  display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-end;
}
.foot-grid { display: flex; gap: 40px; flex-wrap: wrap; }
.foot-item .fi-label { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.foot-item .fi-val { font-size: 13px; color: var(--text); margin-top: 4px; font-family: var(--mono); }
.foot-brand { font-family: var(--serif); letter-spacing: .3em; color: var(--gold); font-size: 14px; }
.foot-brand .sub { display: block; font-family: var(--sans); letter-spacing: .04em; font-size: 11px; color: var(--muted-2); margin-top: 6px; }
.foot-brand .foot-gh { display: inline-block; margin-top: 8px; font-family: var(--mono); letter-spacing: 0; font-size: 11px; color: var(--gold-dim); text-decoration: none; transition: color .2s; }
.foot-brand .foot-gh:hover { color: var(--gold-bright); }

/* ---- toast ---- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 30px);
  background: var(--ink-3); border: 1px solid var(--gold-dim); color: var(--text);
  padding: 13px 22px; border-radius: 100px; font-size: 13px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: all .35s; z-index: 100;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- loading skeleton ---- */
.loading { text-align: center; padding: 120px 0; color: var(--muted-2); }
.loading .brand-mark { font-size: 30px; display: block; margin-bottom: 16px; animation: pulse 1.4s infinite; }

[data-animate] { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
[data-animate].in { opacity: 1; transform: none; }
