:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --bg-2: #eef3fb;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-solid: #ffffff;
  --text: #0c1424;
  --muted: #647084;
  --line: rgba(148, 163, 184, 0.28);
  --accent: #2563eb;
  --accent-2: #06b6d4;
  --accent-soft: #eaf1ff;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.15), transparent 30rem),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--text);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  position: relative;
  overflow: hidden;
  padding: 72px 24px 54px;
  background:
    radial-gradient(circle at 80% 12%, rgba(6, 182, 212, 0.35), transparent 26rem),
    linear-gradient(135deg, #07111f 0%, #10234f 48%, #1d4ed8 100%);
  color: white;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto -10% -45% 42%;
  height: 260px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(18px);
}

.site-header.compact { padding: 38px 24px; }
.site-header.compact h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.home-link { color: white; opacity: 0.88; font-weight: 800; display: inline-block; margin-bottom: 18px; }

.site-header > div, main {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.92;
}

h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(2.7rem, 8vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.lead {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  line-height: 1.85;
  opacity: 0.9;
}

main { padding: 32px 24px 64px; }

.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.25fr) minmax(220px, 0.75fr);
  gap: 14px;
  margin: -62px 0 26px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 15px;
  font: inherit;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  outline: none;
}

input:focus, select:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 34px;
}

.card, .notes, .table-wrap, .article-panel, .link-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.card {
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.card span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.card strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.25rem, 2.3vw, 1.8rem);
  letter-spacing: -0.04em;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0;
}

.section-title h2, .notes h2, .article-panel h2 { margin: 0; letter-spacing: -0.03em; }

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

th, td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

th:first-child, td:first-child, th:nth-child(2), td:nth-child(2) { text-align: left; }

th {
  position: sticky;
  top: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(10px);
}

td strong { letter-spacing: -0.02em; }
td small { color: var(--muted); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(37, 99, 235, 0.035); }

.notes, .article-panel {
  margin-top: 28px;
  padding: 24px;
  line-height: 1.85;
}

.article-panel { margin-bottom: 22px; }

.notes p, .article-panel p {
  margin: 9px 0 0;
  color: var(--muted);
}

.breadcrumb {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.link-card {
  display: block;
  padding: 20px;
  color: var(--text);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: 0 28px 76px rgba(15, 23, 42, 0.14);
  text-decoration: none;
}

.link-card strong {
  display: block;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.link-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: white;
  color: #10234f;
  font-weight: 850;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.button-link.secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

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

@media (max-width: 720px) {
  .section-title { display: block; }
  .site-header { padding-top: 46px; }
  main { padding-inline: 16px; }
  .toolbar { margin-top: -42px; }
}

@media (max-width: 520px) {
  .summary-grid { grid-template-columns: 1fr; }
  h1 { font-size: 3rem; }
}
