:root {
  --ink: #11110f;
  --muted: #6e6e68;
  --subtle: #96968f;
  --line: #e4e4df;
  --surface: #f6f6f3;
  --paper: #fff;
  --black: #0b0b0b;
  --green: #1fb45f;
  --green-soft: #e5f8ec;
  --yellow: #d9a62e;
  --yellow-soft: #faf0d4;
  --red: #ba4f47;
  --red-soft: #f7e5e2;
  --radius: 14px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }

.shell {
  width: min(100% - 40px, 1040px);
  margin-inline: auto;
}

.site-header {
  height: 72px;
  background: var(--black);
  color: #fff;
  border-bottom: 1px solid #252525;
}

.header-inner, .footer-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 560;
  letter-spacing: .01em;
}

.brand img {
  width: 91px;
  height: auto;
  display: block;
}

.brand-divider { width: 1px; height: 24px; background: #444; }

.subscribe-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid #3b3b3b;
  border-radius: 8px;
  background: #181818;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 560;
  transition: background .18s, border-color .18s, transform .18s;
}

.subscribe-button:hover { background: #252525; border-color: #555; transform: translateY(-1px); }
.subscribe-button svg { width: 16px; fill: currentColor; }

.hero { padding: 30px 0 12px; }
.eyebrow, .section-kicker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.eyebrow { display: flex; align-items: center; gap: 8px; }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.hero-copy { margin: 18px 0 33px; }
.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.05;
}
.hero-copy p { max-width: 540px; margin: 15px 0 0; color: var(--muted); font-size: 17px; }

.overall-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(0,0,0,.035);
}

.overall-card.degraded { background: var(--yellow-soft); border-color: #e5ce91; }
.overall-card.outage { background: var(--red-soft); border-color: #dfaaa4; }
.overall-icon {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; background: var(--green-soft); color: var(--green);
}
.overall-card.degraded .overall-icon { background: #f3dfaa; color: #896514; }
.overall-card.outage .overall-icon { background: #ecc5c1; color: var(--red); }
.overall-icon svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.overall-card strong, .overall-card span { display: block; }
.overall-card strong { font-size: 16px; font-weight: 640; letter-spacing: -.01em; }
.overall-card span { margin-top: 3px; color: var(--muted); font-size: 13px; }
.overall-card time { color: var(--subtle); font-size: 12px; white-space: nowrap; }

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.metrics article { padding: 22px 24px; }
.metrics article + article { border-left: 1px solid var(--line); }
.metrics span, .metrics small { display: block; color: var(--muted); font-size: 12px; }
.metrics strong { display: block; margin: 5px 0 1px; font-size: 26px; font-weight: 520; letter-spacing: -.04em; }

.status-section { padding-top: 24px; }
.incidents-section { padding-top: 84px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.section-heading h2 { margin: 5px 0 0; font-size: 27px; font-weight: 570; letter-spacing: -.035em; }
.range-control { display: flex; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
.range-control button { border: 0; border-radius: 6px; padding: 6px 11px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; }
.range-control button.active { color: var(--ink); background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.1); }

.legend { display: flex; flex-wrap: wrap; gap: 17px; margin: -9px 0 18px; color: var(--muted); font-size: 11px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 7px; height: 7px; border-radius: 2px; background: var(--green); }
.legend i.degraded { background: var(--yellow); }
.legend i.outage { background: var(--red); }
.legend i.no-data { background: #d9d9d4; }

.product-list { display: grid; gap: 14px; }
.product-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.product-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; background: #fbfbf9; border-bottom: 1px solid var(--line); }
.product-name { display: flex; align-items: center; gap: 11px; }
.product-initial { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: var(--black); color: #fff; font-size: 12px; font-weight: 700; }
.product-name h3 { margin: 0; font-size: 15px; font-weight: 650; }
.product-name small { display: block; margin-top: 1px; color: var(--subtle); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.state-label { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 12px; font-weight: 590; }
.state-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.state-label.degraded { color: #9a731b; }
.state-label.outage { color: var(--red); }

.component-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.component {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 20px;
  align-items: start;
  min-height: 148px;
  padding: 23px 20px 20px;
}
.component:nth-child(even) { border-left: 1px solid #edede9; }
.component:nth-child(n + 3) { border-top: 1px solid #edede9; }
.component-title { min-width: 0; }
.component-title strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 560; }
.component-title span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; color: var(--subtle); font-size: 11px; }
.history-wrap { min-width: 0; grid-column: 1 / -1; }
.history-bars { height: 39px; display: flex; align-items: stretch; gap: 2px; }
.history-bar { position: relative; flex: 1 1 0; min-width: 2px; border: 0; border-radius: 2px; background: var(--green); cursor: help; padding: 0; transition: transform .12s, filter .12s; }
.history-bar:hover, .history-bar:focus-visible { z-index: 2; transform: scaleY(1.2); filter: brightness(.9); outline: 0; }
.history-bar.degraded { background: var(--yellow); }
.history-bar.outage { background: var(--red); }
.history-bar.no-data { background: #deded9; }
.history-axis { display: flex; justify-content: space-between; margin-top: 8px; color: var(--subtle); font-size: 10px; }
.uptime { text-align: right; }
.uptime strong { display: block; font-size: 14px; font-variant-numeric: tabular-nums; font-weight: 650; }
.uptime span { color: var(--subtle); font-size: 10px; }

.bar-tooltip {
  position: fixed;
  z-index: 20;
  width: max-content;
  max-width: 250px;
  pointer-events: none;
  padding: 9px 11px;
  color: #fff;
  background: #151515;
  border: 1px solid #383838;
  border-radius: 7px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  opacity: 0;
  transform: translate(-50%, -100%) translateY(-8px);
  transition: opacity .1s;
  font-size: 11px;
  line-height: 1.35;
}
.bar-tooltip.visible { opacity: 1; }
.bar-tooltip strong { display: block; margin-bottom: 2px; font-size: 12px; }
.bar-tooltip span { color: #bcbcb7; }

.incident-period { color: var(--muted); font-size: 12px; }
.incident-list { border-top: 1px solid var(--line); }
.incident-item { display: grid; grid-template-columns: 110px 1fr; gap: 28px; padding: 25px 4px; border-bottom: 1px solid var(--line); }
.incident-date { color: var(--muted); font-size: 12px; }
.incident-content h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 620; }
.incident-content p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.incident-update { margin-top: 13px; padding-left: 13px; border-left: 2px solid var(--line); }
.incident-update strong { display: inline; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.incident-update time { margin-left: 7px; color: var(--subtle); font-size: 11px; }
.incident-badge { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 99px; background: var(--green-soft); color: var(--green); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.incident-badge.monitoring { background: var(--yellow-soft); color: #856416; }
.no-incidents { padding: 28px 4px; border-bottom: 1px solid var(--line); color: var(--muted); }
.no-incidents strong { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }
.no-incidents span { font-size: 13px; }

.loading-card { display: grid; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.loading-card span { display: block; height: 13px; border-radius: 5px; background: linear-gradient(90deg,#eee 25%,#f7f7f5 50%,#eee 75%); background-size: 200% 100%; animation: loading 1.2s infinite; }
.loading-card span:nth-child(1) { width: 26%; }.loading-card span:nth-child(2) { width: 100%; }.loading-card span:nth-child(3) { width: 83%; }
@keyframes loading { to { background-position: -200% 0; } }

footer { margin-top: 100px; height: 112px; background: var(--black); color: #8d8d88; }
.footer-inner { gap: 25px; font-size: 12px; }
.footer-inner img { width: 76px; }
.footer-inner p { flex: 1; padding-left: 24px; border-left: 1px solid #333; }
.footer-inner a { text-underline-offset: 3px; }

.subscribe-dialog { width: min(440px, calc(100% - 32px)); padding: 35px; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 80px rgba(0,0,0,.24); }
.subscribe-dialog::backdrop { background: rgba(0,0,0,.55); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; right: 14px; top: 10px; border: 0; background: none; color: var(--muted); font-size: 24px; cursor: pointer; }
.dialog-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--black); color: #fff; }
.subscribe-dialog h2 { margin: 20px 0 8px; font-size: 23px; letter-spacing: -.03em; }
.subscribe-dialog p { margin: 0 0 24px; color: var(--muted); }
.subscribe-dialog a { display: block; padding: 11px; border-radius: 8px; text-align: center; text-decoration: none; background: var(--black); color: #fff; font-weight: 600; font-size: 13px; }

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1040px); }
  .hero { padding-top: 20px; }
  .overall-card { grid-template-columns: auto 1fr; }
  .overall-card time { grid-column: 2; }
  .metrics { grid-template-columns: 1fr; }
  .metrics article + article { border-left: 0; border-top: 1px solid var(--line); }
  .component-grid { grid-template-columns: 1fr; }
  .component { min-height: 138px; grid-template-columns: 1fr auto; gap: 12px; }
  .component:nth-child(even) { border-left: 0; }
  .component:nth-child(n + 2) { border-top: 1px solid #edede9; }
  .incident-item { grid-template-columns: 1fr; gap: 7px; }
  .footer-inner p { display: none; }
}

@media (max-width: 500px) {
  .site-header { height: 66px; }
  .brand img { width: 78px; }
  .subscribe-button { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .subscribe-button svg { width: 17px; }
  .subscribe-button { font-size: 0; }
  .hero h1 { font-size: 42px; }
  .overall-card { padding: 18px; }
  .overall-icon { display: none; }
  .overall-card, .overall-card time { grid-template-columns: 1fr; grid-column: 1; }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 23px; }
  .legend { gap: 8px 13px; }
  .product-header, .component { padding-inline: 15px; }
  .product-name small { display: none; }
  .component { grid-template-columns: 1fr auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
