:root {
  color-scheme: light;
  --bg: #f4f7f8;
  --surface: #ffffff;
  --surface-2: #e8eef0;
  --ink: #101516;
  --muted: #627074;
  --line: #d7e0e3;
  --green: #0e7c64;
  --blue: #245f8f;
  --amber: #9a6b12;
  --red: #a43d34;
  --dark: #111819;
  --shadow: 0 20px 48px rgba(18, 30, 34, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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 {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 32px;
  background: rgba(244, 247, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background:
    linear-gradient(135deg, transparent 42%, rgba(255, 255, 255, 0.92) 43% 56%, transparent 57%),
    linear-gradient(135deg, var(--green), var(--blue));
}

.nav {
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav a:hover,
.text-link:hover {
  color: var(--ink);
}

.top-action,
.primary-btn,
.secondary-btn,
.text-link {
  font-weight: 740;
}

.top-action,
.primary-btn {
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
}

.top-action {
  padding: 10px 14px;
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 1.05fr);
  gap: 48px;
  align-items: center;
  max-width: 1240px;
  min-height: calc(100vh - 68px);
  margin: 0 auto;
  padding: 58px 32px 34px;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.2;
}

.lead,
.section p,
.history-copy p,
.event-card p {
  color: var(--muted);
  font-size: 17px;
}

.lead {
  max-width: 580px;
  margin-bottom: 30px;
}

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

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
}

.secondary-btn {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.hero-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #dfe8ea;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.04);
}

.status-panel {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: min(350px, calc(100% - 44px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  background: rgba(17, 24, 25, 0.88);
  color: #fff;
  backdrop-filter: blur(14px);
}

.status-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.status-head span,
.status-panel p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.status-head strong {
  color: #8ff0c7;
  font-size: 28px;
  line-height: 1;
}

.pulse-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.pulse-row span {
  height: 58px;
  border-radius: 7px;
  background: linear-gradient(180deg, #8ff0c7, #2e86a3);
  opacity: 0.72;
  transform-origin: bottom;
  animation: pulseBar 2.8s ease-in-out infinite;
}

.pulse-row span:nth-child(2) { animation-delay: 0.12s; }
.pulse-row span:nth-child(3) { animation-delay: 0.24s; }
.pulse-row span:nth-child(4) { animation-delay: 0.36s; }
.pulse-row span:nth-child(5) { animation-delay: 0.48s; }
.pulse-row span:nth-child(6) { animation-delay: 0.6s; }

.summary-strip,
.section,
.footer {
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: 32px;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-bottom: 76px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.summary-strip article {
  padding: 24px;
  background: var(--surface);
}

.summary-strip span,
.system-card small,
.event-card span,
.event-card time {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.summary-strip strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  line-height: 1;
}

.section {
  margin-bottom: 108px;
}

.section-head,
.two-column,
.history {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1.15fr);
  gap: 44px;
  align-items: end;
}

.section-head {
  margin-bottom: 28px;
}

.segmented-control {
  justify-self: end;
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.segmented-control button {
  min-width: 74px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 740;
}

.segmented-control button.is-active {
  background: var(--dark);
  color: #fff;
}

.system-grid,
.event-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.system-card,
.event-card,
.endpoint-card,
.table-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.system-card,
.event-card {
  padding: 22px;
}

.system-card div {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.system-card p,
.event-card p {
  margin-bottom: 18px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.dot.good {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(14, 124, 100, 0.12);
}

.dot.watch {
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(154, 107, 18, 0.13);
}

.endpoint-card {
  overflow: hidden;
}

.code-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.code-head span,
.code-head button {
  border-radius: 6px;
  background: var(--dark);
  color: #fff;
  font-size: 12px;
  font-weight: 820;
}

.code-head span {
  padding: 7px 9px;
}

.code-head button {
  min-height: 32px;
  padding: 0 12px;
}

.code-head code {
  overflow: hidden;
  color: var(--blue);
  font-size: 14px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  color: #d8f3ee;
  background: #111819;
  font-size: 14px;
  line-height: 1.65;
}

.event-card.primary {
  background: var(--dark);
  color: #fff;
}

.event-card.primary p,
.event-card.primary span,
.event-card.primary time {
  color: rgba(255, 255, 255, 0.72);
}

.text-link {
  justify-self: end;
  color: var(--blue);
}

.table-shell {
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 820;
}

.status.good {
  background: rgba(14, 124, 100, 0.12);
  color: var(--green);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 34px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  font-weight: 740;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.2s ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulseBar {
  0%, 100% { transform: scaleY(0.62); opacity: 0.58; }
  50% { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .hero,
  .section-head,
  .two-column,
  .history {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 420px;
  }

  .summary-strip,
  .system-grid,
  .event-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .segmented-control,
  .text-link {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 0 18px;
  }

  .top-action {
    display: none;
  }

  .hero,
  .summary-strip,
  .section,
  .footer {
    padding-inline: 18px;
  }

  h1 {
    font-size: 46px;
  }

  .summary-strip,
  .system-grid,
  .event-board {
    grid-template-columns: 1fr;
  }

  .summary-strip {
    margin-inline: 18px;
    padding-inline: 0;
  }

  .section {
    margin-bottom: 72px;
  }

  .segmented-control {
    width: 100%;
  }

  .segmented-control button {
    min-width: 0;
    flex: 1;
  }

  .code-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .code-head button {
    grid-column: 1 / -1;
  }

  th,
  td {
    padding: 14px 12px;
    font-size: 13px;
  }

  .footer {
    flex-direction: column;
  }
}
