:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --bg-soft: #eef4f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #13202f;
  --muted: #5b6878;
  --subtle: #8090a2;
  --line: #dbe3ec;
  --line-strong: #c6d3df;
  --blue: #2454a6;
  --blue-soft: #e7eefb;
  --teal: #138f8a;
  --teal-soft: #dff7f4;
  --cyan: #26b7d8;
  --amber: #c87a16;
  --amber-soft: #fff3d8;
  --red: #b3403c;
  --red-soft: #fff0ee;
  --green: #207a57;
  --shadow: 0 22px 70px rgba(26, 48, 75, 0.12);
  --shadow-soft: 0 10px 32px rgba(26, 48, 75, 0.08);
  --radius: 18px;
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 10%, rgba(38, 183, 216, 0.12), transparent 30%),
    radial-gradient(circle at 86% 4%, rgba(19, 143, 138, 0.13), transparent 26%),
    linear-gradient(180deg, #f7fbff 0%, var(--bg) 42%, #ffffff 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.58;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: #163d7f; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(198, 211, 223, 0.72);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #fff;
  box-shadow: 0 9px 22px rgba(19, 143, 138, 0.28);
  font-size: 17px;
}

.brand-text { font-size: 1.06rem; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  padding: 8px 12px;
  border-radius: 999px;
}

.main-nav a:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 38px 24px 76px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 46px;
  align-items: center;
  padding: 56px;
  border: 1px solid rgba(198, 211, 223, 0.82);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(241, 248, 251, 0.9)),
    radial-gradient(circle at 85% 20%, rgba(38, 183, 216, 0.15), transparent 34%);
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(36, 84, 166, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 84, 166, 0.05) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, black, transparent 78%);
  pointer-events: none;
}

.hero-copy, .hero-visual { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 12px;
  border: 1px solid rgba(19, 143, 138, 0.2);
  border-radius: 999px;
  background: rgba(223, 247, 244, 0.78);
  color: #096a66;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; letter-spacing: 0; line-height: 1.1; }

h1 {
  max-width: 820px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 850;
  color: #101b2a;
}

.hero-title-sub {
  display: block;
  max-width: 720px;
  margin: 10px 0 0;
  font-size: clamp(1.35rem, 2.2vw, 2.05rem);
  line-height: 1.22;
  font-weight: 750;
  color: var(--teal);
}

.lede {
  max-width: 760px;
  margin: 22px 0 0;
  font-size: 1.13rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 750;
  box-shadow: 0 5px 16px rgba(26, 48, 75, 0.08);
}

.button.primary {
  border-color: #0f766e;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #fff;
  box-shadow: 0 14px 32px rgba(19, 143, 138, 0.24);
}

.button:hover { transform: translateY(-1px); }

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.metric {
  padding: 16px 16px 14px;
  border: 1px solid rgba(198, 211, 223, 0.82);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.metric-value {
  display: block;
  font-size: 1.65rem;
  line-height: 1;
  font-weight: 850;
  color: var(--blue);
}

.metric-label {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.atlas-card {
  border-radius: 28px;
  border: 1px solid rgba(198, 211, 223, 0.9);
  background: linear-gradient(180deg, #ffffff 0%, #f6fbfd 100%);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.atlas-svg {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
}

.visual-caption {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.section {
  margin-top: 42px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-kicker {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section h2, h2.page-title {
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 850;
}

.section-desc {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
}

.callout {
  position: relative;
  border: 1px solid rgba(179, 64, 60, 0.22);
  background: linear-gradient(135deg, #fff7f5, #fffdf8);
  color: #5c2522;
  border-radius: 18px;
  padding: 20px 22px 20px 58px;
  margin: 24px 0;
}

.callout::before {
  content: "!";
  position: absolute;
  left: 20px;
  top: 20px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-weight: 900;
}

.callout strong { color: #411816; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(198, 211, 223, 0.86);
  border-radius: 20px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(19, 143, 138, 0.38);
  box-shadow: 0 18px 48px rgba(26, 48, 75, 0.12);
}

.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 900;
}

.card h2, .card h3 {
  margin-top: 16px;
  font-size: 1.2rem;
  font-weight: 820;
}

.card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.card-link {
  margin-top: 16px;
  color: var(--teal);
  font-weight: 800;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.download-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-weight: 750;
  color: var(--ink);
}

.download-item span {
  display: block;
  margin-top: 4px;
  color: var(--subtle);
  font-size: 0.8rem;
  font-weight: 600;
}

.page-head {
  padding: 34px 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.page-head .page-title {
  max-width: 900px;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 1.05;
}

.page-head p {
  max-width: 820px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 12px;
  margin: 18px 0 12px;
}

.input, select, input[type="file"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.tablewrap {
  overflow-x: auto;
  margin: 14px 0 34px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 0.84rem;
}

th, td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #eef5fb;
  color: #294155;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

tbody tr:hover { background: #f8fbfe; }
tbody tr:last-child td { border-bottom: 0; }

tr.flag { background: var(--red-soft); }
tr.flag:hover { background: #ffe6e2; }

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
}

.badge.warn { background: var(--amber-soft); color: #8a4c05; }
.badge.good { background: #e5f7ee; color: var(--green); }

.form-panel {
  max-width: 760px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  margin: 20px 0 28px;
}

form {
  display: grid;
  gap: 16px;
}

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

button {
  justify-self: start;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #0f766e;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.error {
  padding: 12px 14px;
  border: 1px solid rgba(179, 64, 60, 0.25);
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red);
  font-weight: 750;
}

.dd {
  white-space: pre-wrap;
  overflow-x: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0f172a;
  color: #dceafe;
  font-size: 0.86rem;
  line-height: 1.65;
  box-shadow: var(--shadow-soft);
}

.site-footer {
  border-top: 1px solid rgba(198, 211, 223, 0.78);
  background: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-inner p { margin: 6px 0; }

.privacy-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: #096a66;
  font-weight: 750;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #eef3f8;
  color: #24364a;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 34px; }
  .metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards, .download-grid { grid-template-columns: 1fr; }
  .toolbar { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { width: 100vw; min-width: 0; }
  .site-header { width: 100vw; }
  .header-inner { align-items: flex-start; flex-direction: column; gap: 10px; padding: 12px 18px; }
  .main-nav {
    width: 100%;
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 3px;
  }
  .main-nav a { padding: 6px 9px; }
  main { width: 100vw; max-width: 100vw; padding: 24px 12px 54px; overflow: hidden; }
  .hero {
    display: block;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    border-radius: 22px;
    padding: 24px 18px;
    min-height: auto;
  }
  .hero-copy, .hero-visual {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .eyebrow {
    display: block;
    width: 100%;
    max-width: 100%;
    border-radius: 14px;
    white-space: normal;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  h1 { font-size: 2.55rem; }
  .hero-title-sub, .lede {
    max-width: 100%;
    overflow-wrap: break-word;
  }
  .hero-title-sub { font-size: 1.22rem; }
  .lede { font-size: 1rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .hero-visual { margin-top: 26px; }
  .atlas-card { padding: 14px; border-radius: 20px; }
  .visual-caption { font-size: 0.82rem; }
  .metric-row { grid-template-columns: 1fr; }
  .page-head .page-title { font-size: 2.4rem; }
  .section-header { display: block; }
  .callout { padding-left: 48px; }
}
