@font-face {
  font-family: "Onest";
  src: url("fonts/Onest-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("fonts/Onest-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}

@font-face {
  font-family: "Expletus Sans";
  src: url("fonts/ExpletusSans-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #070a0f;
  --surface: rgba(14, 19, 28, 0.82);
  --surface-strong: rgba(18, 24, 34, 0.96);
  --text: #f7f9fc;
  --muted: rgba(232, 238, 248, 0.56);
  --quiet: rgba(232, 238, 248, 0.36);
  --ring: rgba(255, 255, 255, 0.09);
  --green: #55e6a5;
  --green-soft: rgba(85, 230, 165, 0.11);
  --yellow: #f7cd69;
  --yellow-soft: rgba(247, 205, 105, 0.11);
  --red: #ff7f86;
  --red-soft: rgba(255, 127, 134, 0.11);
  --blue: #86baff;
  --blue-soft: rgba(134, 186, 255, 0.11);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--bg);
  background-size: 56px 56px;
  color: var(--text);
  font-family: Onest, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.page-glow {
  position: fixed;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(130px);
  opacity: 0.16;
  pointer-events: none;
}

.page-glow--left { top: -17rem; left: -14rem; background: #33d18c; }
.page-glow--right { top: 18rem; right: -20rem; background: #478fff; opacity: 0.13; }

.shell { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }

.site-header {
  position: relative;
  z-index: 10;
  padding-top: max(18px, env(safe-area-inset-top));
}

.header-inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.brand-word {
  font-family: "Expletus Sans", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.text-link, .footer-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-inline: 10px;
  color: var(--muted);
  font-size: 14px;
  transition-property: color;
  transition-duration: 160ms;
}
.text-link:hover, .footer-links a:hover { color: var(--text); }

.updates-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 6px 24px -16px rgba(0, 0, 0, 0.9);
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  padding: 0 14px 0 16px;
  font-size: 14px;
  font-weight: 650;
  transition-property: color, background-color, box-shadow, scale;
  transition-duration: 160ms;
  transition-timing-function: ease-out;
}

.updates-link:hover {
  background: rgba(255, 255, 255, 0.085);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 9px 28px -16px rgba(0, 0, 0, 0.9);
  color: white;
}
.updates-link:active { scale: 0.96; }
.updates-link:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.updates-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.main-content { padding-top: clamp(58px, 8vw, 106px); padding-bottom: 100px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  padding-bottom: clamp(58px, 8vw, 96px);
}

.eyebrow {
  margin: 0 0 14px;
  color: rgba(169, 205, 255, 0.58);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.05em;
}

.hero .eyebrow { margin-bottom: 20px; }
.overall-line { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 26px); }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
h1 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -0.038em; }
h2 { margin: 0; font-size: clamp(25px, 3vw, 34px); line-height: 1.08; letter-spacing: -0.035em; }
h3 { margin: 0; font-size: 16px; letter-spacing: -0.015em; }

.overall-orb {
  position: relative;
  display: grid;
  width: clamp(30px, 3.5vw, 36px);
  height: clamp(30px, 3.5vw, 36px);
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px rgba(85, 230, 165, 0.23), 0 0 44px -10px rgba(85, 230, 165, 0.55);
  transition-property: background-color, box-shadow;
  transition-duration: 260ms;
}
.overall-orb span { width: 34%; height: 34%; border-radius: inherit; background: var(--green); box-shadow: 0 0 16px rgba(85, 230, 165, 0.85); }
.overall-orb.is-degraded { background: var(--yellow-soft); box-shadow: inset 0 0 0 1px rgba(247, 205, 105, 0.25), 0 0 44px -10px rgba(247, 205, 105, 0.5); }
.overall-orb.is-degraded span { background: var(--yellow); box-shadow: 0 0 16px rgba(247, 205, 105, 0.82); }
.overall-orb.is-outage { background: var(--red-soft); box-shadow: inset 0 0 0 1px rgba(255, 127, 134, 0.25), 0 0 44px -10px rgba(255, 127, 134, 0.48); }
.overall-orb.is-outage span { background: var(--red); box-shadow: 0 0 16px rgba(255, 127, 134, 0.82); }
.overall-orb.is-maintenance, .overall-orb.is-loading { background: var(--blue-soft); box-shadow: inset 0 0 0 1px rgba(134, 186, 255, 0.2); }
.overall-orb.is-maintenance span, .overall-orb.is-loading span { background: var(--blue); box-shadow: 0 0 16px rgba(134, 186, 255, 0.72); }
.overall-orb.is-loading span { animation: breathe 1.6s ease-in-out infinite; }

.hero-description { max-width: 650px; margin: 28px 0 0; color: var(--muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.75; }
.freshness { display: grid; min-width: 184px; justify-items: end; gap: 5px; padding-bottom: 4px; }
.freshness-label { color: var(--quiet); font-size: 12px; }
.freshness strong { font-size: 14px; font-weight: 650; }
.next-check { color: var(--quiet); font-size: 12px; }
.tabular { font-variant-numeric: tabular-nums; }

.notice-stack { display: grid; gap: 12px; margin-bottom: 32px; }
.maintenance-notice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(134, 186, 255, 0.11), rgba(14, 19, 28, 0.84));
  box-shadow: inset 0 0 0 1px rgba(134, 186, 255, 0.16);
  padding: 17px 18px;
}
.maintenance-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }
.maintenance-notice strong { display: block; font-size: 14px; }
.maintenance-notice p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.maintenance-time { color: rgba(204, 224, 255, 0.72); font-size: 12px; }

.content-section { margin-top: 32px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.legend { display: flex; flex-wrap: wrap; justify-content: end; gap: 14px; color: var(--quiet); font-size: 12px; }
.legend span { display: inline-flex; min-height: 32px; align-items: center; gap: 7px; }
.legend-dot, .status-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 999px; background: var(--green); box-shadow: 0 0 10px rgba(85, 230, 165, 0.45); }
.legend-dot.degraded, .status-dot.degraded { background: var(--yellow); box-shadow: 0 0 10px rgba(247, 205, 105, 0.4); }
.legend-dot.outage, .status-dot.outage { background: var(--red); box-shadow: 0 0 10px rgba(255, 127, 134, 0.4); }
.status-dot.maintenance { background: var(--blue); box-shadow: 0 0 10px rgba(134, 186, 255, 0.4); }

.service-groups { display: grid; gap: 18px; }
.service-group {
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(17, 23, 33, 0.89), rgba(10, 14, 21, 0.92));
  box-shadow: inset 0 0 0 1px var(--ring), 0 26px 70px -48px rgba(0, 0, 0, 0.95);
}
.group-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 21px 16px; }
.group-header h3 { font-size: 14px; }
.group-header span { color: var(--quiet); font-size: 12px; }
.service-list { margin: 0; padding: 0; list-style: none; }
.service-row {
  display: grid;
  grid-template-columns: minmax(190px, 0.75fr) minmax(210px, 1fr) minmax(220px, 0.8fr);
  align-items: center;
  gap: 22px;
  min-height: 92px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  padding: 17px 21px;
}
.service-name { display: flex; align-items: center; gap: 11px; }
.service-name strong { font-size: 14px; font-weight: 680; }
.service-description { margin: 5px 0 0 18px; color: var(--quiet); font-size: 12px; line-height: 1.5; }
.service-state { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.state-label { white-space: nowrap; }
.response-time { color: var(--quiet); white-space: nowrap; }
.availability { display: grid; gap: 9px; }
.availability-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--quiet); font-size: 11px; }
.availability-meta strong { color: rgba(255, 255, 255, 0.68); font-size: 12px; font-weight: 650; }
.availability-value.operational { color: var(--green); }
.availability-value.degraded { color: var(--yellow); }
.availability-value.outage { color: var(--red); }
.history-bars { display: flex; height: 24px; align-items: stretch; gap: 2px; }
.history-bar { min-width: 2px; flex: 1 1 0; border-radius: 2px; background: rgba(255, 255, 255, 0.075); }
.history-bar.operational { background: rgba(85, 230, 165, 0.65); }
.history-bar.degraded { background: rgba(247, 205, 105, 0.72); }
.history-bar.outage { background: rgba(255, 127, 134, 0.76); }
.history-bar.maintenance { background: rgba(134, 186, 255, 0.68); }

.incidents-section { margin-top: clamp(66px, 9vw, 100px); }
.updates-link { background: transparent; }
.incident-list { display: grid; gap: 12px; }
.empty-state, .incident-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--ring);
  padding: 20px;
}
.empty-state-icon, .incident-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: var(--green-soft); color: var(--green); font-size: 17px; font-weight: 800; }
.empty-state strong, .incident-card h3 { display: block; margin-top: 1px; font-size: 14px; }
.empty-state p, .incident-card p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.incident-card { justify-content: space-between; }
.incident-main { display: flex; gap: 14px; }
.incident-card.is-active .incident-icon { background: var(--red-soft); color: var(--red); }
.incident-meta { display: grid; justify-items: end; gap: 4px; color: var(--quiet); font-size: 12px; text-align: right; white-space: nowrap; }
.incident-meta strong { color: rgba(255, 255, 255, 0.68); font-size: 12px; font-weight: 650; }
.incident-components { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.incident-components span { border-radius: 999px; background: rgba(255, 255, 255, 0.055); padding: 5px 8px; color: rgba(255, 255, 255, 0.56); font-size: 11px; }
.incident-pagination { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.incident-pagination[hidden] { display: none; }
.incident-page-summary { margin: 0; color: var(--quiet); font-size: 12px; }
.incident-pages { display: flex; align-items: center; gap: 6px; }
.incident-page-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.065);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  transition-property: transform, background-color, box-shadow, color;
  transition-duration: 150ms;
}
.incident-page-button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.075); color: var(--text); }
.incident-page-button:focus-visible { outline: 2px solid rgba(134, 186, 255, 0.7); outline-offset: 2px; }
.incident-page-button:active:not(:disabled) { transform: scale(0.96); }
.incident-page-button.is-active { background: var(--blue-soft); box-shadow: inset 0 0 0 1px rgba(134, 186, 255, 0.28); color: var(--blue); font-weight: 700; }
.incident-page-button:disabled { cursor: default; opacity: 0.32; }
.incident-page-arrow { font-size: 17px; }
.incident-page-ellipsis { display: grid; width: 22px; height: 40px; place-items: center; color: var(--quiet); font-size: 14px; }

.skeleton-card { display: grid; gap: 15px; min-height: 168px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--ring); padding: 24px; }
.skeleton-card span { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.09), rgba(255,255,255,0.04)); background-size: 200% 100%; animation: shimmer 1.6s ease-in-out infinite; }
.skeleton-card span:nth-child(1) { width: 28%; }
.skeleton-card span:nth-child(2) { width: 70%; }
.skeleton-card span:nth-child(3) { width: 52%; }

.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.065); padding: 28px 0 max(34px, env(safe-area-inset-bottom)); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand--footer { min-height: auto; }
.brand-logo--footer { width: 30px; height: 30px; }
.brand--footer .brand-word { font-size: 14px; }
.footer-inner p { margin: 7px 0 0; color: var(--quiet); font-size: 12px; }
.footer-links { display: flex; align-items: center; gap: 6px; }

@keyframes breathe { 0%, 100% { opacity: 0.48; scale: 0.72; } 50% { opacity: 1; scale: 1; } }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; align-items: start; gap: 28px; }
  .freshness { justify-items: start; }
  .service-row { grid-template-columns: minmax(0, 1fr) auto; gap: 15px; }
  .service-state { justify-content: end; }
  .availability { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 24px, 1120px); }
  .text-link { display: none; }
  .main-content { padding-top: 44px; padding-bottom: 76px; }
  .overall-line { align-items: flex-start; }
  .overall-orb { margin-top: 3px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .legend { justify-content: flex-start; }
  .group-header { padding-inline: 16px; }
  .service-row { grid-template-columns: 1fr; padding-inline: 16px; }
  .service-state { justify-content: space-between; padding-left: 18px; }
  .service-description { max-width: 34ch; }
  .maintenance-notice { grid-template-columns: auto 1fr; }
  .maintenance-time { grid-column: 2; }
  .incident-card { flex-direction: column; }
  .incident-meta { justify-items: start; padding-left: 52px; text-align: left; }
  .incident-pagination { align-items: flex-start; flex-direction: column; }
  .incident-pages { max-width: 100%; overflow-x: auto; padding: 2px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-links { margin-left: -10px; }
}

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