/* ============ TalosOps — Endfield Tools ============ */
:root {
  --bg: #0a0a0a;
  --bg-2: #101010;
  --panel: #141414;
  --line: #242424;
  --line-soft: #1c1c1c;
  --text: #f5f4f0;
  --muted: #8f8e88;
  --faint: #5c5b56;
  --accent: #f0b429;
  --accent-dim: rgba(240, 180, 41, 0.12);
  --good: #4ade80;
  --bad: #f87171;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #0a0a0a; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---- topbar ---- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 32px; height: 56px; }
.brand { font-family: var(--mono); font-weight: 600; font-size: 15px; letter-spacing: 0.04em; }
.brand em { color: var(--accent); font-style: normal; }
.brand span { color: var(--faint); font-weight: 400; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  font-size: 13.5px; color: var(--muted); padding: 6px 12px;
  border-bottom: 2px solid transparent; transition: color .15s;
  position: relative;
}
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); border-bottom-color: var(--accent); }
@media (max-width: 760px) {
  .topbar .wrap { gap: 12px; height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .nav { margin-left: 0; flex-wrap: wrap; }
}

/* ---- hero ---- */
.hero { padding: 96px 0 64px; border-bottom: 1px solid var(--line); }
.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(44px, 8vw, 96px);
  line-height: 0.98; font-weight: 700; letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero h1 .dim { color: var(--faint); display: block; }
.hero p.sub { margin-top: 24px; max-width: 560px; color: var(--muted); font-size: 17px; }

/* ---- live strip ---- */
.livestrip {
  display: flex; flex-wrap: wrap; gap: 1px; background: var(--line);
  border: 1px solid var(--line); margin-top: 48px;
}
.livestrip > div { background: var(--bg); padding: 18px 24px; flex: 1 1 200px; }
.livestrip .lab { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.livestrip .val { font-family: var(--mono); font-size: 20px; margin-top: 6px; }
.livestrip .val em { font-style: normal; color: var(--accent); }

/* ---- section ---- */
section.block { padding: 72px 0; border-bottom: 1px solid var(--line-soft); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.sec-head h2 { font-size: 28px; font-weight: 600; letter-spacing: -0.01em; }
.sec-head .note { font-family: var(--mono); font-size: 12px; color: var(--faint); }

/* ---- tool index (table rows, no cards) ---- */
.index-list { border-top: 1px solid var(--line); }
.index-row {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 24px;
  align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.index-row:hover { background: var(--bg-2); }
.index-row .num { font-family: var(--mono); color: var(--faint); font-size: 13px; }
.index-row h3 { font-size: 19px; font-weight: 600; }
.index-row p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.index-row .go {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  border: 1px solid var(--line); padding: 8px 16px; white-space: nowrap;
  transition: border-color .15s, background .15s;
}
.index-row:hover .go { border-color: var(--accent); background: var(--accent-dim); }
@media (max-width: 640px) { .index-row { grid-template-columns: 32px 1fr; } .index-row .go { display: none; } }

/* ---- data tables ---- */
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.data th {
  text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint);
  padding: 10px 14px; border-bottom: 1px solid var(--line);
}
table.data td { padding: 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data tr:hover td { background: var(--bg-2); }
.mono { font-family: var(--mono); }
.tag {
  display: inline-block; font-family: var(--mono); font-size: 11px;
  padding: 2px 8px; border: 1px solid var(--line); color: var(--muted);
}
.tag.new { color: var(--accent); border-color: var(--accent); }
.tag.pc { color: var(--muted); }
.tag.exp { color: var(--bad); border-color: rgba(248,113,113,.35); text-decoration: line-through; }
.copy-btn {
  font-family: var(--mono); font-size: 11px; cursor: pointer;
  background: none; border: 1px solid var(--line); color: var(--muted);
  padding: 5px 12px; transition: all .15s;
}
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.copy-btn.done { color: var(--good); border-color: var(--good); }

/* ---- calculator ---- */
.calc { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.field { margin-bottom: 24px; }
.field label {
  display: block; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.field input[type="number"] {
  width: 100%; background: var(--panel); border: 1px solid var(--line);
  color: var(--text); font-family: var(--mono); font-size: 18px;
  padding: 12px 14px; outline: none; transition: border-color .15s;
}
.field input[type="number"]:focus { border-color: var(--accent); }
.field .hint { font-size: 12px; color: var(--faint); margin-top: 6px; }
.checks { display: flex; flex-direction: column; gap: 10px; margin: 28px 0; }
.checks label {
  display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); cursor: pointer;
  font-family: var(--sans); letter-spacing: 0; text-transform: none;
}
.checks input { accent-color: var(--accent); width: 16px; height: 16px; }
.result-hero {
  border: 1px solid var(--line); padding: 32px;
  background: linear-gradient(160deg, var(--panel), var(--bg-2));
}
.result-hero .big {
  font-family: var(--mono); font-size: clamp(40px, 6vw, 64px); font-weight: 600;
  color: var(--accent); line-height: 1.05;
}
.result-hero .lab { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 24px; }
.stat-grid > div { background: var(--bg); padding: 18px; }
.stat-grid .v { font-family: var(--mono); font-size: 22px; }
.stat-grid .l { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-top: 4px; }
.bar-track { height: 8px; background: var(--panel); border: 1px solid var(--line); margin-top: 24px; position: relative; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); width: 0%; transition: width .4s ease; }
.bar-marks { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--faint); margin-top: 6px; }

/* ---- countdown ---- */
.countdown { display: flex; gap: 32px; flex-wrap: wrap; }
.cd-unit { text-align: left; }
.cd-unit .n { font-family: var(--mono); font-size: clamp(36px, 5vw, 56px); font-weight: 600; line-height: 1; }
.cd-unit .u { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-top: 6px; }

/* ---- tier list ---- */
.tier-row { display: grid; grid-template-columns: 64px 1fr; border: 1px solid var(--line); border-top: none; }
.tier-row:first-of-type { border-top: 1px solid var(--line); }
.tier-label {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 26px; font-weight: 600;
  border-right: 1px solid var(--line); background: var(--bg-2);
}
.tier-row[data-tier="S"] .tier-label { color: var(--accent); }
.tier-row[data-tier="A"] .tier-label { color: #e8e6df; }
.tier-row[data-tier="B"] .tier-label { color: var(--muted); }
.tier-row[data-tier="C"] .tier-label { color: var(--faint); }
.tier-ops { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line-soft); }
.op {
  background: var(--bg); padding: 12px 18px; min-width: 150px; flex: 0 0 auto;
}
.op .nm { font-weight: 600; font-size: 14.5px; display: block; }
.op .mt { font-family: var(--mono); font-size: 10.5px; color: var(--faint); margin-top: 2px; display: block; }
.op .tag { border: none; padding: 0; font-size: 9.5px; }
.filter-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--faint); align-self: center; margin: 0 4px 0 12px; }
.filter-label:first-child { margin-left: 0; }
.tier-note { font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin-top: 16px; }
.fine-print { font-size: 13px !important; color: var(--faint) !important; border-top: 1px solid var(--line-soft); padding-top: 16px; margin-top: 24px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filters button {
  font-family: var(--mono); font-size: 12px; background: none; cursor: pointer;
  border: 1px solid var(--line); color: var(--muted); padding: 7px 14px; transition: all .15s;
}
.filters button:hover { color: var(--text); border-color: var(--muted); }
.filters button.on { color: #0a0a0a; background: var(--accent); border-color: var(--accent); }

/* ---- faq / prose ---- */
.prose { max-width: 720px; }
.prose h3 { font-size: 18px; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--muted); font-size: 15px; }
.prose ul { padding-left: 20px; margin-top: 8px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
details { border-bottom: 1px solid var(--line-soft); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::after { content: "+"; font-family: var(--mono); color: var(--faint); }
details[open] summary::after { content: "–"; color: var(--accent); }
details p { color: var(--muted); font-size: 14.5px; margin-top: 12px; max-width: 720px; }

/* ---- footer ---- */
footer { padding: 48px 0 64px; }
footer .cols { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
footer .faint { color: var(--faint); font-size: 12.5px; max-width: 460px; line-height: 1.7; }
footer .flinks { display: flex; gap: 24px; font-family: var(--mono); font-size: 12px; }
footer .flinks a { color: var(--muted); }
footer .flinks a:hover { color: var(--accent); }
.cr { margin-top: 32px; font-family: var(--mono); font-size: 11px; color: var(--faint); border-top: 1px solid var(--line-soft); padding-top: 20px; }

.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 700; letter-spacing: -0.02em; text-transform: uppercase; line-height: 1.02; }
.page-head .lede { color: var(--muted); max-width: 640px; margin-top: 16px; font-size: 16px; }
.updated { font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin-top: 20px; }
.updated em { color: var(--accent); font-style: normal; }

/* ---- banner schedule ---- */
.banner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 900px) { .banner-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .tier-row { grid-template-columns: 44px 1fr; } .op { min-width: 120px; padding: 10px 14px; } }
