:root {
  --bg: #0b1f17;
  --bg-2: #10261d;
  --panel: #143026;
  --panel-2: #1a3b2e;
  --ink: #e7f3eb;
  --muted: #9bb5a6;
  --line: rgba(231, 243, 235, 0.12);
  --accent: #d7f36a;
  --accent-2: #7ee0b0;
  --warn: #f0c674;
  --bad: #ff8f8f;
  --best: #d7f36a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(126, 224, 176, 0.16), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(215, 243, 106, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg), #07140f 80%);
  min-height: 100%;
  line-height: 1.5;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; position: relative; z-index: 1; }

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(11, 31, 23, 0.72);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}
.brand { display: flex; gap: 0.75rem; align-items: center; }
.mark {
  width: 2.4rem; height: 2.4rem; border-radius: 0.85rem;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  color: #102015; font-weight: 700; font-family: var(--display);
}
.brand-kicker { margin: 0; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.brand strong { font-size: 1.05rem; }
.top-meta { color: var(--muted); font-size: 0.9rem; display: flex; align-items: center; gap: 0.45rem; }
.dot { width: 0.55rem; height: 0.55rem; border-radius: 999px; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(126,224,176,0.15); }

.hero { padding: 3.2rem 0 1.5rem; }
.eyebrow {
  display: inline-flex;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--accent-2);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  max-width: 14ch;
  font-weight: 700;
}
.lede { max-width: 58ch; color: var(--muted); font-size: 1.08rem; margin: 0 0 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.15rem; border-radius: 999px; text-decoration: none;
  font-weight: 600; border: 1px solid var(--line); color: var(--ink);
}
.btn.primary { background: var(--accent); color: #132015; border-color: transparent; }
.btn.ghost:hover, .btn.primary:hover { transform: translateY(-1px); }

.legend {
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem;
  color: var(--muted); font-size: 0.92rem; margin: 1rem 0 2rem;
}
.shell-card {
  background: rgba(20, 48, 38, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow);
}
.swatch {
  display: inline-block; width: 0.85rem; height: 0.85rem; border-radius: 0.25rem;
  background: var(--panel-2); border: 1px solid var(--line); margin-right: 0.4rem; vertical-align: -1px;
}
.swatch.best { background: rgba(215, 243, 106, 0.35); border-color: var(--best); }

.section-head { margin: 2.5rem 0 1rem; }
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 0.35rem;
}
.section-head p { margin: 0; color: var(--muted); }

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 38, 29, 0.9);
  box-shadow: var(--shadow);
}
.matrix {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
  font-variant-numeric: tabular-nums;
}
.matrix th, .matrix td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}
.matrix thead th {
  position: sticky; top: 0;
  background: #18382c;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.matrix tbody th {
  text-align: left;
  font-weight: 600;
  position: sticky; left: 0;
  background: #122a21;
  z-index: 1;
}
.matrix tbody tr:hover td, .matrix tbody tr:hover th { background: rgba(215, 243, 106, 0.05); }
.bank-cell { display: flex; flex-direction: column; gap: 0.25rem; min-width: 12rem; }
.bank-name { font-size: 0.95rem; }
.bank-meta { display: flex; gap: 0.45rem; align-items: center; }
.src {
  color: var(--accent-2);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
}
.src:hover { text-decoration: underline; }
.eff { color: var(--muted); font-size: 0.86rem; text-align: left !important; }
.rate { font-weight: 600; }
.rate.best {
  color: #132015;
  background: linear-gradient(180deg, rgba(215,243,106,0.95), rgba(126,224,176,0.85));
  border-radius: 0.45rem;
  box-shadow: inset 0 0 0 1px rgba(215,243,106,0.35);
}
.badge {
  display: inline-flex; align-items: center;
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0.15rem 0.4rem; border-radius: 999px; font-weight: 700;
}
.badge.warn { background: rgba(240,198,116,0.18); color: var(--warn); }
.badge.bad { background: rgba(255,143,143,0.15); color: var(--bad); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.card {
  background: linear-gradient(165deg, rgba(26,59,46,0.95), rgba(16,38,29,0.95));
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}
.card header {
  display: flex; justify-content: space-between; gap: 0.75rem; align-items: flex-start;
  margin-bottom: 0.6rem;
}
.card h3 { margin: 0.15rem 0 0; font-size: 1.15rem; font-family: var(--display); }
.source-btn {
  flex: 0 0 auto;
  text-decoration: none;
  color: #102015;
  background: var(--accent);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}
.source-btn:hover { filter: brightness(1.05); }
.eff-line { color: var(--muted); margin: 0 0 0.85rem; font-size: 0.9rem; }
.pills { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.pill {
  background: rgba(7, 20, 15, 0.45);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.55rem 0.65rem;
  display: flex; flex-direction: column; gap: 0.15rem;
}
.pill span { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.pill strong { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.note { color: var(--warn); font-size: 0.85rem; margin: 0.75rem 0 0; }
.src-label { margin: 0.85rem 0 0; font-size: 0.82rem; }
.src-label a { color: var(--accent-2); }

.sources { margin: 2rem 0; }
.sources h2 { font-family: var(--display); margin-top: 0; }
.sources ul { margin: 0; padding-left: 1.1rem; }
.sources li { margin: 0.4rem 0; }
.sources a { color: var(--ink); text-decoration: none; }
.sources a:hover { color: var(--accent); }

.disclaimer {
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 70ch;
  margin: 1rem 0 3rem;
}
.foot {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.foot-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot a { color: var(--accent-2); }

@media (max-width: 640px) {
  h1 { max-width: none; }
  .top-meta { font-size: 0.78rem; }
  .pills { grid-template-columns: 1fr 1fr; }
}
