:root {
  --bg: #050607;
  --bg-2: #0a0c10;
  --text: #d8d8d3;
  --text-strong: #d1d1cc;
  --muted: #989da8;
  --line: #d9dee82e;
  --line-strong: #d9dee852;
  --line-subtle: #d9dee81a;
  --line-faint: #d9dee814;
  --panel: #0c0e12c7;
  --panel-solid: #0d1015;
  --purple: #4b2376;
  --blue: #3b7cff;
  --red: #ff2c5f;
  --green: #22c55e;
  --yellow: #f59e0b;
  --alpha-clear: #00000000;
  --current-color: #f2f2ee;
  --logo-text: #d1d1cc;
  --button-text: #f2f2ee;
  --button-border: #4b2376b8;
  --header-bg-start: #050607eb;
  --header-bg-end: #05060700;
  --page-bg-overlay: #00000041;
  --mobile-menu-bg: #050607f5;
  --nav-text: #f2f2eed1;
  --button-bg-ghost: #080a0d66;
  --button-bg-ghost-strong: #080a0db8;
  --button-text-ghost: #f2f2eee0;
  --hero-orbit-border: #506ab447;
  --hero-orbit-start: #111522;
  --hero-orbit-mid: #07090f;
  --hero-orbit-end: #020307;
  --hero-orbit-shadow: #000000c7;
  --hero-statement: #f2f2eed6;
  --noise-dot: #ffffff47;
  --accent-dim: #3b7cff47;
  --accent-node-border: #4b23769e;
  --feature-glass-bg: #0c0e128c;
  --feature-glass-border: #d9dee826;
  --feature-glass-shine: #ffffff0a;
  --feature-glass-shadow: #00000040;
  --glass-inner-padding: 29px;
  --glass-item-padding: clamp(14px, 1.45vw, 20px);
  --page-max: 1920px;
  --page-gutter: clamp(18px, 7vw, 108px);
  --header-gutter: clamp(18px, 3vw, 44px);
  --font: "Outfit", system-ui, sans-serif;
  --brand-font: "BBH Hegarty", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image: linear-gradient(var(--page-bg-overlay), var(--page-bg-overlay)), url("assets/clear.png");
  background-position: center, center;
  background-size: cover, cover;
  background-attachment: fixed, fixed;
  background-repeat: no-repeat, no-repeat;
  color: var(--text);
  font-family: var(--font);
  font-weight: 800;
  font-synthesis-weight: none;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  filter: blur(10px);
  transition:
    opacity 720ms ease,
    transform 720ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 720ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

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

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.mobile-fixed-bg {
  display: none;
}

.site-noise {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.12;
  background-image: radial-gradient(circle, var(--noise-dot) 0 1px, var(--alpha-clear) 1px);
  background-size: 150px 170px;
  mix-blend-mode: screen;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 18px var(--header-gutter);
  background: linear-gradient(180deg, var(--header-bg-start), var(--header-bg-end));
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--logo-text);
  font-family: var(--brand-font);
  font-size: clamp(23px, 2vw, 31px);
  line-height: 0.95;
}

.ghost-button {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.header-actions {
  position: absolute;
  top: 18px;
  right: var(--header-gutter);
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions .ghost-button {
  border-color: var(--feature-glass-border);
  background: linear-gradient(135deg, var(--feature-glass-shine), var(--feature-glass-bg));
  box-shadow: 0 18px 48px var(--feature-glass-shadow);
  backdrop-filter: blur(9px) saturate(150%);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 70px;
  padding: 0 24px;
  border: 1px solid var(--line);
  background: var(--button-bg-ghost);
  color: var(--button-text-ghost);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.ghost-button:hover {
  transform: translateY(-2px);
}

.menu-button {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-button span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 26px;
  height: 2px;
  border-radius: 99px;
  background: var(--current-color);
  transform: translate(-50%, -50%);
  transition:
    opacity 180ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-button span:first-child {
  transform: translate(-50%, calc(-50% - 8px));
}

.menu-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 2px;
  border-radius: 99px;
  background: var(--current-color);
  transform: translate(-50%, calc(-50% + 8px));
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.menu-open .menu-button span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

body.menu-open .menu-button span:nth-child(2) {
  opacity: 0;
  transform: translate(-50%, -50%) scaleX(0.2);
}

body.menu-open .menu-button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.section-shell {
  position: relative;
  padding-inline: var(--page-gutter);
}

.hero {
  min-height: auto;
  display: grid;
  align-content: start;
  padding-top: 90px;
  padding-bottom: 20px;
  overflow: hidden;
}

.hero::before {
  content: "";
  display: none;
  position: absolute;
  top: 12%;
  right: -18%;
  width: min(64vw, 880px);
  aspect-ratio: 1.38;
  border: 1px solid var(--hero-orbit-border);
  border-radius: 50%;
  background:
    linear-gradient(145deg, var(--hero-orbit-start) 0%, var(--hero-orbit-mid) 54%, var(--hero-orbit-end) 100%);
  box-shadow: inset 42px 18px 90px var(--hero-orbit-shadow);
}

.hero-lines {
  display: none;
}

.hero-lines span {
  position: absolute;
  right: -9%;
  width: 66vw;
  height: 1px;
  transform-origin: right center;
}

.line-red {
  top: 28%;
  background: linear-gradient(90deg, var(--alpha-clear), var(--red), var(--alpha-clear));
  transform: rotate(-18deg);
}

.line-blue {
  top: 60%;
  background: linear-gradient(90deg, var(--alpha-clear), var(--blue), var(--alpha-clear));
  transform: rotate(8deg);
}

.line-dim {
  top: 78%;
  background: linear-gradient(90deg, var(--alpha-clear), var(--accent-dim), var(--alpha-clear));
  transform: rotate(-4deg);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 780px);
  align-items: end;
}

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

.overall-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 16px 24px;
  border: 1px solid var(--feature-glass-border);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--feature-glass-shine), var(--feature-glass-bg));
  backdrop-filter: blur(9px) saturate(150%);
  width: fit-content;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.loading {
  background: var(--muted);
  animation: pulse 1.5s ease-in-out infinite;
}

.status-dot.up {
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.status-dot.degraded {
  background: var(--yellow);
  box-shadow: 0 0 12px var(--yellow);
}

.status-dot.down {
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
}

.status-text {
  color: var(--text-strong);
  font-size: 18px;
  font-weight: 600;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.status-rail {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  max-width: 1280px;
  margin-top: clamp(34px, 6vh, 74px);
  padding: var(--glass-inner-padding);
  border: 1px solid var(--feature-glass-border);
  border-radius: 70px;
  background: linear-gradient(135deg, var(--feature-glass-shine), var(--feature-glass-bg));
  backdrop-filter: blur(9px) saturate(150%);
  overflow: hidden;
}

.status-rail article {
  min-width: 0;
  padding: var(--glass-item-padding);
  border: 0;
}

.status-rail article + article {
  padding-left: var(--glass-item-padding);
}

.status-rail article:last-child {
  border-right: 0;
}

.stat-value {
  display: block;
  color: var(--text-strong);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  line-height: 1;
}

.section-title span {
  display: block;
  color: var(--purple);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-rail strong {
  display: block;
  margin-top: 12px;
  color: var(--text-strong);
  font-size: 22px;
}

.status-rail p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  font-variation-settings: "wght" 500;
  line-height: 1.36;
}

.servers,
.section-title {
  display: grid;
  gap: 14px;
}

.section-title h2 {
  max-width: 900px;
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(42px, 6vw, 92px);
  line-height: 0.95;
}

.section-title h2 em {
  font-style: italic;
}

.server-list {
  display: grid;
  gap: 4px;
  margin-top: 38px;
  padding: var(--glass-inner-padding);
  border: 1px solid var(--feature-glass-border);
  border-radius: 70px;
  background: linear-gradient(135deg, var(--feature-glass-shine), var(--feature-glass-bg));
  box-shadow: 0 24px 80px var(--feature-glass-shadow);
  backdrop-filter: blur(9px) saturate(150%);
  overflow: hidden;
}

.server-loading {
  padding: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 18px;
}

.server-group {
  padding: 0;
}

.server-group + .server-group {
  border-top: 1px solid var(--line-subtle);
}

.server-group-title {
  display: block;
  padding: 16px var(--glass-item-padding) 8px;
  color: var(--purple);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.server-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: var(--glass-item-padding);
}

.server-card + .server-card {
  border-top: 1px solid var(--line-subtle);
}

.server-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.server-indicator.up {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.server-indicator.degraded {
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow);
}

.server-indicator.down {
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}

.server-info {
  display: grid;
  gap: 4px;
}

.server-name {
  color: var(--text-strong);
  font-size: 20px;
  font-weight: 700;
}

.server-link {
  text-decoration: none;
  transition: color 160ms ease;
}

.server-link:hover {
  color: var(--blue);
}

.server-description {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.server-stats {
  display: flex;
  gap: 24px;
  align-items: center;
}

.server-stat {
  text-align: right;
}

.server-stat-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.server-stat-value {
  display: block;
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 700;
}

.incident-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: var(--glass-item-padding);
}

.incident-card + .incident-card {
  border-top: 1px solid var(--line-subtle);
}

.incident-card.empty {
  justify-items: center;
  text-align: center;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px var(--page-gutter) 44px;
  color: var(--muted);
  font-weight: 500;
}

.site-footer p {
  margin: 0;
  font-weight: 400;
  font-family: var(--font);
}

@media (min-width: 1600px) {
  :root {
    --page-gutter: max(108px, calc((100vw - var(--page-max)) / 2));
    --header-gutter: var(--page-gutter);
    --glass-inner-padding: 34px;
    --glass-item-padding: 24px;
  }

  .site-header {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .brand {
    font-size: 34px;
  }

  .nav {
    top: 42px;
    grid-template-columns: repeat(3, 120px);
    gap: 34px;
    font-size: 17px;
  }

  .header-actions {
    top: 22px;
  }

  .hero {
    padding-top: 90px;
    padding-bottom: clamp(30px, 4vh, 60px);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 860px);
  }

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

  .status-rail {
    max-width: none;
    margin-top: clamp(54px, 7vh, 112px);
  }

  .stat-value {
    font-size: 80px;
  }

  .status-rail strong {
    font-size: 24px;
    line-height: 1.16;
  }

  .status-rail p {
    font-size: 17px;
  }

.servers {
  padding-top: 40px;
  padding-bottom: 86px;
}

  .section-title h2 {
    max-width: 1120px;
    font-size: 96px;
  }

  .server-card {
    padding: 24px;
  }

  .server-name {
    font-size: 22px;
  }

  .site-footer {
    padding-top: 40px;
    padding-bottom: 58px;
  }
}

@media (min-width: 2200px) {
  .section-title h2 {
    max-width: 1200px;
    font-size: 108px;
  }

  .stat-value {
    font-size: 96px;
  }

  .status-rail strong {
    font-size: 26px;
  }

  .status-rail p {
    font-size: 18px;
  }
}

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .status-rail {
    grid-template-columns: 1fr;
  }

  .status-rail article,
  .status-rail article + article {
    padding: 18px;
    border-right: 0;
  }

  .status-rail article:last-child {
    border-bottom: 0;
  }

  .server-card {
    grid-template-columns: auto 1fr;
    gap: 12px;
  }

  .server-stats {
    grid-column: 1 / -1;
    justify-self: start;
    gap: 16px;
  }
}

@media (max-width: 820px) {
  body {
    background-image: none;
  }

  .mobile-fixed-bg {
    position: fixed;
    top: -240px;
    right: 0;
    left: 0;
    display: block;
    width: 100%;
    height: calc(var(--mobile-bg-height, 100vh) + 480px);
    min-height: calc(100lvh + 480px);
    z-index: 0;
    pointer-events: none;
    background-color: var(--bg);
    background-image: linear-gradient(var(--page-bg-overlay), var(--page-bg-overlay)), url("assets/clear.png");
    background-position: center, center;
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
    transform: translateZ(0);
    will-change: transform;
  }

  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .site-header .header-actions {
    position: fixed;
    left: 18px;
    right: 18px;
    width: calc(100% - 36px);
    max-width: none;
    display: flex;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    border: 1px solid var(--line);
    background: var(--mobile-menu-bg);
    backdrop-filter: blur(16px);
    transform: translateY(-10px);
    transition:
      opacity 240ms ease,
      transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 260ms;
    top: 78px;
    flex-direction: column;
    padding: 14px;
    border-radius: 8px;
  }

  .header-actions a {
    width: 100%;
  }

  body.menu-open .site-header .header-actions {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .menu-button {
    display: block;
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
  }
}

@media (max-width: 560px) {
  :root {
    --glass-inner-padding: 16px;
    --glass-item-padding: 14px;
  }

  body {
    min-width: 0;
    min-height: 100svh;
  }

  .site-header {
    padding-inline: 14px;
  }

  .site-header .header-actions {
    left: 14px;
    right: 14px;
    width: calc(100% - 28px);
  }

  .section-shell {
    padding-inline: 14px;
  }

  .overall-status {
    width: 100%;
  }

  .status-rail,
  .server-list {
    border-radius: 28px;
  }

  .stat-value {
    font-size: 56px;
  }

  .status-rail strong {
    font-size: 20px;
  }

  .server-name {
    font-size: 18px;
  }

  .section-title h2 {
    font-size: 36px;
    line-height: 1;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .status-dot.loading {
    animation: none;
  }
}
