:root {
  --bg: #070a13;
  --bg-raised: #0d1322;
  --line: #1c2a48;
  --line-strong: #2a3f6b;
  --text: #e8edf7;
  --muted: #8593b0;
  --fire: #ff7a2f;
  --fire-deep: #e2401c;
  --ice: #4fb3ff;
  --ice-deep: #2f6fe0;
  --ok: #4ade80;
  --radius: 14px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  background:
    radial-gradient(60rem 40rem at 15% -10%, rgb(255 122 47 / 0.10), transparent 60%),
    radial-gradient(60rem 40rem at 85% 110%, rgb(79 179 255 / 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 400 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

/* faint grid texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

main {
  position: relative;
  display: grid;
  place-items: center;
  padding: 48px 16px;
}

.wrap {
  width: min(100%, 760px);
  display: grid;
  gap: 32px;
  justify-items: center;
}

.brand { margin: 0; line-height: 0; }

.logo {
  width: clamp(200px, 40vw, 250px);
  height: auto;
  filter: drop-shadow(0 8px 32px rgb(79 179 255 / 0.15));
}

.panel {
  width: 100%;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.03), rgb(255 255 255 / 0.01)), var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgb(0 0 0 / 0.6);
  overflow: hidden;
}

/* fire-to-ice accent strip across the top of the panel */
.panel::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--fire-deep), var(--fire) 30%, var(--ice) 70%, var(--ice-deep));
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
}

section { padding: 24px 28px; }
section + section { border-left: 1px solid var(--line); }

h2 {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Access list */
.access { --tone: var(--ice); list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

/* each link sets its own accent colour */
.t-support { --tone: #b8a6ff; }
.t-red     { --tone: var(--fire); }
.t-blue    { --tone: var(--ice); }
.t-ops     { --tone: var(--ok); }

.access a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  background: rgb(255 255 255 / 0.015);
  transition: border-color .2s, background-color .2s, transform .2s;
}

.access a span { flex: 1; }

.access a::after {
  content: "→";
  color: var(--muted);
  transition: color .2s, transform .2s;
}

/* icon chip */
.ico {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 8px;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--tone) 28%, transparent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: background-color .2s, border-color .2s;
}

.access a:hover,
.access a:focus-visible {
  border-color: color-mix(in srgb, var(--tone) 40%, var(--line));
  background: color-mix(in srgb, var(--tone) 6%, transparent);
  transform: translateY(-1px);
}

.access a:hover .ico,
.access a:focus-visible .ico {
  background: color-mix(in srgb, var(--tone) 20%, transparent);
  border-color: color-mix(in srgb, var(--tone) 45%, transparent);
}

.access a:hover::after,
.access a:focus-visible::after { color: var(--tone); transform: translateX(3px); }

.access a:focus-visible { outline: 2px solid var(--tone); outline-offset: 2px; }

.uptime {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.uptime strong {
  font: 600 20px/1 var(--mono);
  color: var(--text);
  background: linear-gradient(90deg, var(--fire), var(--ice));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Status grid */
.status-head { display: flex; justify-content: space-between; align-items: baseline; }

.all-ok { font-size: 12px; color: var(--ok); font-weight: 500; }

.status {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 20px;
}

.status li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  white-space: nowrap;
}

.dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgb(74 222 128 / 0.7);
}

.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ok);
  animation: ping 2.4s cubic-bezier(0, 0, .2, 1) infinite;
}

/* stagger the pulses so they don't all fire at once */
.status li:nth-child(3n+2) .dot::after { animation-delay: .8s; }
.status li:nth-child(3n+3) .dot::after { animation-delay: 1.6s; }

@keyframes ping {
  0%   { transform: scale(1);   opacity: .6; }
  80%, 100% { transform: scale(2.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .dot::after { animation: none; display: none; }
  .access a, .access a::after { transition: none; }
}

footer {
  position: relative;
  padding: 20px 16px 28px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* Mobile */
@media (max-width: 680px) {
  main { padding: 32px 16px; }
  .panel-grid { grid-template-columns: 1fr; }
  section { padding: 20px; }
  section + section { border-left: 0; border-top: 1px solid var(--line); }
}

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