/* Daily Regime — Linear-inspired dark design system
   (tokens match strategy-summaries / hypurr house style) */

:root {
  --bg: #08090a;
  --panel: #0f1011;
  --surface: #191a1b;
  --text: #f7f8f8;
  --text-2: #d0d6e0;
  --muted: #8a8f98;
  --faint: #62666d;
  --accent: #5e6ad2;
  --accent-bright: #7170ff;
  --green: #10b981;
  --red: #ef4444;
  --amber: #f59e0b;
  --border: rgba(255,255,255,0.08);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,9,10,0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  font-family: "JetBrains Mono", monospace;
  font-weight: 600; font-size: 15px; letter-spacing: 0.04em;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.brand-dot { color: var(--accent-bright); }
.nav-links { display: flex; gap: 18px; flex-wrap: wrap; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 13px;
  font-weight: 500; transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

/* ---- Hero ---- */
.hero { padding: 64px 24px 40px; border-bottom: 1px solid var(--border); }
.hero-inner { max-width: 1180px; margin: 0 auto; }
.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-bright); margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.08;
  margin-bottom: 14px;
}
.accent { color: var(--accent-bright); }
.lede { color: var(--text-2); max-width: 640px; font-size: 16px; margin-bottom: 34px; }

.regime-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px;
}
@media (max-width: 900px) { .regime-row { grid-template-columns: 1fr; } }

.regime-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 20px 16px;
}
.card-label {
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.12em;
  color: var(--muted); text-transform: uppercase; margin-bottom: 8px;
}
.blend-tag {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 1px 6px; margin-left: 6px; font-size: 10px;
}
.gauge-wrap { display: flex; justify-content: center; }
.gauge-wrap canvas { width: 100%; max-width: 300px; max-height: 160px; }
.regime-label { font-size: 22px; font-weight: 700; margin-top: 6px; text-align: center; }
.regime-score {
  font-family: "JetBrains Mono", monospace; font-size: 13px;
  color: var(--muted); text-align: center; margin-top: 2px;
}
.cross-big { font-size: 22px; font-weight: 700; text-align: center; margin: 18px 0 4px; }
.cross-list { list-style: none; margin-top: 8px; }
.cross-list li {
  font-size: 12.5px; color: var(--text-2); padding: 3px 0;
  border-top: 1px dashed var(--border);
}

.why-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 22px;
}
.why-panel h2 { font-size: 18px; margin-bottom: 14px; }
.why-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .why-cols { grid-template-columns: 1fr 1fr; } }
.why-col {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px;
}
.why-title { font-size: 11.5px; font-weight: 600; margin-bottom: 8px; color: var(--muted); }
.why-cols ul { list-style: none; }
.why-cols li {
  font-size: 12.5px; color: var(--text-2); padding: 3px 0 3px 12px;
  position: relative;
}
.why-cols li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--faint);
}
.why-cols .pos li::before { background: var(--green); }
.why-cols .neg li::before { background: var(--red); }
.unvalidated-note {
  margin-top: 14px; font-size: 12.5px; color: var(--amber);
  border-top: 1px dashed var(--border); padding-top: 10px;
}

/* ---- Sections ---- */
.section { padding: 56px 24px; }
.section.alt { background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-inner { max-width: 1180px; margin: 0 auto; }
.section h2 { font-size: 28px; letter-spacing: -0.01em; margin-bottom: 8px; }
.section-desc { color: var(--muted); margin-bottom: 26px; max-width: 760px; }
.sub-h { font-size: 15px; margin: 6px 0 12px; }
.muted { color: var(--muted); }

/* ---- Pillar grid ---- */
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1000px) { .pillar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillar-grid { grid-template-columns: 1fr; } }

.pillar-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 8px;
}
.pillar-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pillar-name { font-size: 13.5px; font-weight: 600; }
.pillar-w { font-family: "JetBrains Mono", monospace; font-size: 10.5px; color: var(--faint); }
.pillar-score { font-family: "JetBrains Mono", monospace; font-size: 19px; font-weight: 600; }
.pillar-bar {
  height: 5px; border-radius: 3px; background: var(--surface);
  position: relative; overflow: hidden;
}
.pillar-bar .fill {
  position: absolute; top: 0; bottom: 0; left: 50%;
  border-radius: 3px; transition: width 0.4s ease;
}
.pillar-reason { font-size: 12px; color: var(--muted); line-height: 1.4; }
.pillar-metrics { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--faint); }

.badge {
  display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0.06em;
  padding: 1px 7px; border-radius: 999px; border: 1px solid var(--border);
  color: var(--muted); text-transform: uppercase;
}
.badge.high { color: var(--green); border-color: rgba(16,185,129,0.35); }
.badge.med { color: var(--amber); border-color: rgba(245,158,11,0.35); }
.badge.low { color: var(--red); border-color: rgba(239,68,68,0.35); }

/* ---- Tables ---- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); padding: 8px 10px;
  border-bottom: 1px solid var(--border); cursor: pointer; user-select: none;
  white-space: nowrap;
}
.data-table th:hover { color: var(--text); }
.data-table td { padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.data-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.data-table td.num { font-family: "JetBrains Mono", monospace; font-size: 12px; text-align: right; }
.data-table th.num { text-align: right; }

#cx-search {
  width: 100%; max-width: 360px; margin-bottom: 14px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-size: 13.5px; padding: 9px 13px; font-family: inherit;
  outline: none;
}
#cx-search:focus { border-color: var(--accent); }

/* ---- History chart ---- */
.chart-box { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.chart-box canvas { display: block; width: 100% !important; height: 300px !important; }

/* ---- Methodology ---- */
.method-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .method-cols { grid-template-columns: 1fr; } }
.method-list { list-style: none; }
.method-list li {
  font-size: 13px; color: var(--text-2); padding: 6px 0 6px 14px; position: relative;
}
.method-list li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--border); padding: 26px 24px; }
.footer-inner { max-width: 1180px; margin: 0 auto; font-size: 12.5px; color: var(--text-2); }
.footer .muted { margin-top: 4px; }

/* ---- Colors ---- */
.txt-green { color: var(--green); }
.txt-red { color: var(--red); }
.txt-amber { color: var(--amber); }
.pos { color: var(--green); }
.neg { color: var(--red); }

/* verdict pills */
.pill {
  display: inline-block; padding: 1px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em;
}
.pill.leading { background: rgba(16,185,129,0.12); color: var(--green); }
.pill.lagging { background: rgba(239,68,68,0.12); color: var(--red); }
.pill.neutral { background: rgba(255,255,255,0.05); color: var(--muted); }
