:root {
  color-scheme: light;
  --ink: #21282e;
  --muted: #526273;
  --line: #dfe6ee;
  --surface: #ffffff;
  --page: #f5f7fa;
  --green: #0d6f50;
  --amber: #8b5716;
  --red: #a93640;
  --blue: #1d5dda;
  --brand: #1b5dda;
  --brand-soft: #eff7ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #2373ed; outline-offset: 3px; }
[hidden] { display: none !important; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -70px; z-index: 20; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 6px; }
.skip-link:focus { top: 12px; }

.site-header { position: relative; z-index: 2; background: #fff; border-bottom: 1px solid #e7ecf2; }
.header-inner { min-height: 88px; display: flex; align-items: center; gap: 42px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; flex-shrink: 0; }
.brand img { display: block; }
.brand-copy { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.brand-copy strong { color: #374151; font-size: 22px; font-weight: 750; letter-spacing: -.045em; }
.brand-copy small { color: #526273; font-size: 9px; font-weight: 700; letter-spacing: .19em; }
.header-nav { display: flex; align-items: center; gap: 30px; margin-inline: auto; }
.header-nav a { color: #45515f; text-decoration: none; font-size: 14px; font-weight: 550; transition: color .18s ease; }
.header-nav a:hover { color: var(--blue); }
.header-home { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 40px; padding: 10px 15px; background: var(--brand); color: #fff; text-decoration: none; font-size: 12px; font-weight: 650; white-space: nowrap; transition: background .18s ease, transform .18s ease; }
.header-home:hover { background: #1d4bb0; transform: translateY(-1px); }
.header-home span { font-size: 17px; line-height: 0; }
.header-live { display: inline-flex; align-items: center; gap: 9px; margin-top: 24px; padding: 9px 13px; border: 1px solid #dce5ed; border-radius: 999px; background: #fff; color: #45515f; font-size: 12px; font-weight: 600; box-shadow: 0 4px 15px #3444580d; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #159265; box-shadow: 0 0 0 4px #1592651a; }
.header-live.is-offline .live-dot { background: #a96a1b; box-shadow: 0 0 0 4px #a96a1b1a; }

.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, #f5f7fa 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 85% at 50% 66%, #d2dbe58f 0%, #e6eef8aa 45%, transparent 84%), radial-gradient(circle at 82% 26%, #dbedfe88, transparent 36%); pointer-events: none; }
.hero-content { position: relative; min-height: 367px; display: grid; place-items: start center; padding-top: 58px; padding-bottom: 115px; text-align: center; }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: 10px; line-height: 1.3; font-weight: 800; letter-spacing: .16em; }
.eyebrow.light { color: var(--blue); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin: 0; font-family: Lexend, Inter, ui-sans-serif, system-ui, sans-serif; font-size: clamp(42px, 4.7vw, 66px); line-height: 1.12; letter-spacing: -.055em; font-weight: 700; }
.hero h1 span { color: var(--blue); }
.hero-intro { max-width: 680px; margin: 18px auto 0; color: #45515f; font-size: 16px; line-height: 1.65; }

.content-stack { position: relative; margin-top: -68px; padding-bottom: 64px; }
.service-panel { --status: #697c8e; display: grid; grid-template-columns: 60px minmax(0, 1fr) minmax(210px, auto); align-items: center; gap: 18px; min-height: 158px; padding: 28px 34px; border: 1px solid var(--line); border-top: 3px solid var(--status); border-radius: 14px; background: var(--surface); box-shadow: 0 20px 44px #34445814, 0 3px 10px #34445808; }
.service-panel[data-state="operational"] { --status: var(--green); }
.service-panel[data-state="maintenance"], .service-panel[data-state="degraded"] { --status: var(--amber); }
.service-panel[data-state="incident"] { --status: var(--red); }
.service-icon { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid #d8eafd; border-radius: 11px; background: var(--brand-soft); color: var(--blue); }
.service-icon svg { width: 28px; height: 28px; }
.service-copy .eyebrow { margin-bottom: 9px; }
.service-copy h2 { margin: 0 0 6px; font-family: Lexend, Inter, ui-sans-serif, system-ui, sans-serif; font-size: 19px; line-height: 1.25; font-weight: 700; letter-spacing: -.025em; }
.service-copy p:last-child { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.service-state { display: flex; align-items: flex-end; flex-direction: column; gap: 7px; text-align: right; }
.state-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; color: var(--status); background: color-mix(in srgb, var(--status) 9%, #fff); border: 1px solid color-mix(in srgb, var(--status) 17%, #fff); border-radius: 100px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.state-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.service-state strong { font-size: 15px; font-weight: 700; letter-spacing: -.015em; }
.service-timestamp { color: var(--muted); font-size: 11px; }
.connection-message { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 16px; padding: 13px 17px; color: #7c422e; background: #fff7ef; border: 1px solid #efdfcc; border-radius: 10px; font-size: 13px; }
.connection-message button { border: 0; background: transparent; color: #79511f; font-weight: 700; cursor: pointer; white-space: nowrap; }

.section { margin-top: 58px; scroll-margin-top: 26px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading h2 { margin: 0; font-family: Lexend, Inter, ui-sans-serif, system-ui, sans-serif; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -.04em; font-weight: 700; }
.section-heading > p { margin: 0 0 2px; color: var(--muted); font-size: 12px; text-align: right; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.metric-card { padding: 24px 27px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 3px 14px #34445808; }
.metric-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 13px; font-weight: 650; }
.metric-period { padding: 5px 7px; background: var(--brand-soft); color: var(--blue); border-radius: 4px; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.metric-value { display: block; min-height: 54px; margin-top: 16px; font-family: Lexend, Inter, ui-sans-serif, system-ui, sans-serif; font-size: clamp(34px, 3.2vw, 42px); font-weight: 650; letter-spacing: -.045em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.metric-value.unknown { color: #9aa8b4; }
.metric-coverage { min-height: 18px; margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.metric-rule { height: 1px; margin: 17px 0 14px; background: var(--line); }
.metric-detail { margin: 0; color: #536679; font-size: 12px; }
.coverage-note { margin: 14px 0 0; padding: 11px 14px; border-left: 3px solid #ad8552; color: #715b3d; background: #fbf7f0; border-radius: 3px 8px 8px 3px; font-size: 12px; line-height: 1.55; }

.history-card { padding: 28px 29px 25px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 3px 14px #34445808; }
.history-top { display: flex; justify-content: space-between; color: #576a7b; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.day-chart { display: flex; align-items: end; gap: 7px; min-height: 86px; overflow-x: auto; padding: 14px 3px 17px; scrollbar-color: #c4d0da transparent; }
.day-item { display: flex; align-items: end; justify-content: center; flex: 1 0 11px; max-width: 34px; min-width: 11px; height: 53px; }
.day-bar { display: block; width: 100%; height: 47px; padding: 0; border: 1px solid transparent; border-radius: 4px; background: #d5dde5; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.day-bar:hover { transform: translateY(-4px); }
.day-bar[aria-pressed="true"] { box-shadow: 0 0 0 3px #2373ed30; outline: 2px solid var(--blue); outline-offset: 2px; }
.day-bar.healthy { background: #309473; }
.day-bar.warning { background: #c89b5b; }
.day-bar.critical { background: #c75d62; }
.day-bar.unknown { background: #c5cfd8; }
.day-bar.partial { opacity: .56; }
.chart-placeholder { margin: auto; color: var(--muted); font-size: 13px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 9px 22px; padding-top: 8px; color: #526575; font-size: 11px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.legend-dot.healthy { background: #309473; }
.legend-dot.warning { background: #c89b5b; }
.legend-dot.critical { background: #c75d62; }
.legend-dot.unknown { background: #c5cfd8; }
.day-detail { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 21px; min-height: 49px; margin-top: 22px; padding: 14px 16px; border: 1px solid #e3eaf2; border-radius: 7px; color: #526273; background: #f5f7fa; font-size: 12px; }
.day-detail strong { color: var(--ink); font-size: 13px; }
.day-detail span + span::before { content: "·"; margin-right: 21px; color: #a9b5bf; }

.lower-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 58px; }
.info-card { min-height: 255px; padding: 26px 27px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 3px 14px #34445808; scroll-margin-top: 26px; }
.card-heading { display: flex; align-items: center; gap: 15px; padding-bottom: 21px; border-bottom: 1px solid var(--line); }
.card-heading .eyebrow { margin-bottom: 6px; }
.card-heading h2 { margin: 0; font-family: Lexend, Inter, ui-sans-serif, system-ui, sans-serif; font-size: 18px; line-height: 1.2; font-weight: 700; letter-spacing: -.025em; }
.card-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; background: var(--brand-soft); border: 1px solid #d8eafd; border-radius: 9px; color: var(--blue); font-size: 21px; font-weight: 400; }
.card-icon.activity { font-size: 24px; }
.event-list { padding-top: 2px; }
.empty-copy { max-width: 330px; margin: 25px 0 0; color: #536677; font-size: 13px; line-height: 1.6; }
.event-row { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid #edf0f3; }
.event-row:last-child { border-bottom: 0; }
.event-date { width: 44px; flex: 0 0 44px; text-align: center; color: #546a7e; line-height: 1.05; }
.event-date strong { display: block; font-size: 20px; letter-spacing: -.05em; }
.event-date small { display: block; margin-top: 4px; font-size: 10px; text-transform: uppercase; font-weight: 750; letter-spacing: .06em; }
.event-copy { min-width: 0; }
.event-copy strong { display: block; font-size: 13px; font-weight: 690; }
.event-copy small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.event-status { margin-left: auto; color: var(--green); font-size: 11px; font-weight: 700; white-space: nowrap; }
.event-status.upcoming { color: var(--blue); }

.method-note { display: flex; gap: 15px; align-items: start; margin-top: 24px; padding: 18px 21px; border: 1px solid #d8eafd; border-radius: 9px; background: var(--brand-soft); }
.method-icon { display: grid; place-items: center; flex: 0 0 21px; width: 21px; height: 21px; border: 1.5px solid var(--blue); border-radius: 50%; color: var(--blue); font-size: 12px; font-weight: 800; font-family: Georgia, serif; }
.method-note h2 { margin: 0 0 5px; font-size: 12px; font-weight: 750; }
.method-note p { margin: 0; color: #4c6071; font-size: 11px; line-height: 1.6; }
.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #566979; font-size: 11px; }

@media (max-width: 900px) {
  .header-inner { gap: 20px; }
  .header-nav { gap: 16px; }
}
@media (max-width: 700px) {
  .container { width: min(100% - 32px, 1160px); }
  .header-inner { min-height: 74px; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; padding-block: 12px; }
  .header-nav { order: 3; width: 100%; justify-content: flex-start; margin-inline: 0; padding-top: 5px; gap: 22px; overflow-x: auto; }
  .header-nav a { white-space: nowrap; padding: 4px 0 8px; }
  .hero-content { min-height: 346px; padding-top: 48px; padding-bottom: 110px; }
  .hero-intro { font-size: 14px; }
  .service-panel { grid-template-columns: 54px minmax(0, 1fr); padding: 22px; min-height: 0; }
  .service-state { grid-column: 1 / -1; align-items: flex-start; text-align: left; padding-top: 17px; border-top: 1px solid var(--line); }
  .metric-grid, .lower-grid { grid-template-columns: 1fr; }
  .section, .lower-grid { margin-top: 42px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .section-heading > p { text-align: left; }
  .history-card { padding: 24px 18px 20px; }
  .day-item { flex-basis: 13px; }
}
@media (max-width: 430px) {
  .brand img { width: 40px; height: 40px; }
  .brand-copy strong { font-size: 18px; }
  .brand-copy small { font-size: 8px; }
  .header-home { min-height: 36px; padding: 8px 10px; font-size: 11px; }
  .hero h1 { font-size: 38px; }
  .metric-card { padding: 22px; }
  .metric-value { font-size: 36px; }
  .chart-legend { gap: 8px 14px; }
  .day-detail span + span::before { margin-right: 10px; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .header-nav a, .header-home, .day-bar { transition: none; }
}
