:root {
  color-scheme: light;
  --bg: #f4f6f7;
  --surface: #ffffff;
  --surface-2: #e9eef1;
  --ink: #111619;
  --muted: #667078;
  --line: #d7dee2;
  --blue: #245c86;
  --green: #0c7a62;
  --amber: #9c6b16;
  --dark: #101619;
  --shadow: 0 18px 50px rgba(20, 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(244, 246, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand, .nav, .actions, .endpoint, .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, .secondary {
  border-radius: 8px;
  font-weight: 760;
}
.ghost { padding: 9px 13px; background: var(--surface); border: 1px solid var(--line); }
.primary { padding: 12px 16px; background: var(--dark); color: #fff; }
.secondary { padding: 10px 14px; color: #fff; background: var(--blue); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 44px;
  align-items: center;
  max-width: 1180px;
  min-height: calc(100vh - 68px);
  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.05; letter-spacing: 0; }
h1 { max-width: 680px; font-size: clamp(42px, 7vw, 86px); }
h2 { font-size: 30px; }
.lead { max-width: 600px; margin: 22px 0 0; color: var(--muted); font-size: 19px; }
.actions { gap: 12px; margin-top: 28px; flex-wrap: wrap; }
select {
  min-height: 46px;
  padding: 0 38px 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}
.visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}
.score {
  position: absolute;
  right: 18px;
  bottom: 18px;
  min-width: 168px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
}
.score span, .metric span, .metric small { color: var(--muted); }
.score strong { display: block; margin-top: 4px; font-size: 34px; }
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px 42px;
}
.metric, .panel, .endpoint {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.metric { padding: 18px; }
.metric strong { display: block; margin: 8px 0 4px; font-size: 30px; }
.panel {
  max-width: 1180px;
  margin: 0 auto 18px;
  padding: 24px;
}
.events { display: grid; gap: 10px; padding: 0; margin: 20px 0 0; list-style: none; }
.events li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.events strong { color: var(--ink); }
.endpoint {
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto 54px;
  padding: 20px 24px;
}
code { color: var(--green); font-weight: 760; }
.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: 860px) {
  .topbar { padding: 0 18px; }
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 36px 18px 24px; }
  h1 { font-size: 42px; }
  .visual, .visual img { min-height: 300px; }
  .grid { grid-template-columns: 1fr; padding: 0 18px 28px; }
  .panel, .endpoint { margin-left: 18px; margin-right: 18px; }
  .endpoint { align-items: flex-start; flex-direction: column; }
}

