:root {
  color-scheme: light;
  --bg: #f5f7f7;
  --surface: #ffffff;
  --surface-2: #e8eef0;
  --ink: #121719;
  --muted: #667177;
  --line: #d6dee1;
  --blue: #265f8a;
  --green: #0d7561;
  --amber: #9d6d17;
  --dark: #101719;
  --shadow: 0 18px 48px rgba(18, 30, 36, 0.1);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button { border: 0; cursor: pointer; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 32px;
  background: rgba(245, 247, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand, .nav, .builder, .report-head, .payload, .footer { display: flex; align-items: center; }
.brand { gap: 10px; font-weight: 780; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, var(--green), var(--blue)); }
.nav { gap: 24px; color: var(--muted); font-size: 14px; font-weight: 660; }
.ghost, .primary {
  border-radius: 8px;
  font-weight: 760;
}
.ghost { padding: 9px 13px; background: var(--surface); border: 1px solid var(--line); }
.primary { min-height: 45px; padding: 0 16px; color: #fff; background: var(--dark); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 44px;
  align-items: center;
  max-width: 1180px;
  min-height: 520px;
  margin: 0 auto;
  padding: 54px 32px 30px;
}
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: 12px; font-weight: 820; letter-spacing: 0; text-transform: uppercase; }
h1, h2 { margin: 0; line-height: 1.06; letter-spacing: 0; }
h1 { max-width: 720px; font-size: clamp(42px, 7vw, 82px); }
h2 { font-size: 30px; }
.lead { max-width: 620px; margin: 22px 0 0; color: var(--muted); font-size: 19px; }
.visual {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.visual img { width: 100%; min-height: 360px; object-fit: cover; display: block; }
.report-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  min-width: 148px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}
.report-badge span, label span, .metrics span, .report-head span { color: var(--muted); }
.report-badge strong { display: block; font-size: 36px; }
.builder {
  gap: 14px;
  flex-wrap: wrap;
  max-width: 1180px;
  margin: 0 auto 16px;
  padding: 0 32px;
}
label { display: grid; gap: 6px; font-size: 13px; font-weight: 720; }
select {
  min-width: 210px;
  min-height: 45px;
  padding: 0 38px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px 18px;
}
.metrics article, .report, .payload {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.metrics article { padding: 18px; }
.metrics strong { display: block; margin: 8px 0 12px; font-size: 30px; }
.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}
.bar i { display: block; height: 100%; width: 50%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--blue)); }
.report {
  max-width: 1180px;
  margin: 0 auto 18px;
  padding: 24px;
}
.report-head { justify-content: space-between; gap: 18px; }
ol { display: grid; gap: 12px; margin: 22px 0 0; padding-left: 22px; }
li { padding-left: 8px; color: var(--muted); }
li strong { color: var(--ink); }
.payload {
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto 54px;
  padding: 22px 24px;
}
.payload pre {
  width: min(540px, 100%);
  max-height: 220px;
  overflow: auto;
  margin: 0;
  padding: 16px;
  border-radius: 8px;
  background: var(--dark);
  color: #d8f3ec;
}
code { color: var(--green); font-weight: 760; }
.payload pre code { color: inherit; font-weight: 500; }
.footer { justify-content: space-between; padding: 22px 32px; color: var(--muted); border-top: 1px solid var(--line); }
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--dark);
  opacity: 0;
  transform: translateY(8px);
  transition: 0.18s ease;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
@media (max-width: 900px) {
  .topbar { padding: 0 18px; }
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 36px 18px 24px; }
  h1 { font-size: 42px; }
  .builder, .metrics { padding-left: 18px; padding-right: 18px; }
  .metrics { grid-template-columns: 1fr; }
  .report, .payload { margin-left: 18px; margin-right: 18px; }
  .payload { flex-direction: column; }
  select { min-width: min(280px, 82vw); }
}

