:root{
  --bg: #07080c;
  --surface: #12141c;
  --surface-2: #181b26;
  --ink: #f4f5f9;
  --muted: #9298a8;
  --line: rgba(255,255,255,.09);
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 20px 48px -20px rgba(47,111,237,.35);

  --accent: #3b82f6;      /* sequential hue — core */
  --accent-light: #93c5fd; /* de-emphasis step — trend line */
  --accent-dim: #1e2a44;   /* lightest-on-dark step — unfilled/track */

  /* status palette — fixed, reserved meaning, never reused for series identity */
  --st-good: #0ca30c;
  --st-warning: #fab219;
  --st-critical: #d03b3b;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  background:var(--bg);
  color:var(--ink);
  font-family:"Inter",system-ui,-apple-system,sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
h1{
  font-family:"Fraunces",Georgia,serif;
  font-weight:600;
  margin:0;
  letter-spacing:-.01em;
}
em{
  font-style:italic;color:var(--accent);
  text-decoration-line:underline; text-decoration-style:wavy; text-decoration-color:var(--accent);
  text-decoration-thickness:2px; text-underline-offset:4px;
}
a{color:inherit;text-decoration:none}
p{margin:0;color:var(--muted);line-height:1.6}

.blob{
  position:fixed; width:46vw; height:46vw; max-width:620px; max-height:620px;
  border-radius:50%; filter:blur(70px); opacity:.35; pointer-events:none; z-index:0;
}
.blob--a{ top:-14vw; right:-14vw; background:radial-gradient(circle, var(--accent), transparent 70%); opacity:.55; animation:float-blob 12s ease-in-out infinite; }
.blob--b{ bottom:-18vw; left:-16vw; background:radial-gradient(circle, var(--accent), transparent 70%); opacity:.22; animation:float-blob 14s ease-in-out infinite reverse; }
@keyframes float-blob{ 0%,100%{ transform:translate(0,0) scale(1); } 50%{ transform:translate(3vw,-3vw) scale(1.05); } }

.topbar{
  position:sticky; top:0; z-index:40;
  display:flex; align-items:center;
  padding:14px 6vw;
  backdrop-filter:blur(14px);
  background:rgba(7,8,12,.72);
  border-bottom:1px solid var(--line);
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand-logo{ height:30px; width:auto; display:block; filter:drop-shadow(0 0 10px rgba(59,130,246,.4)); }
.brand-divider{ width:1px; height:20px; background:var(--line); }
.brand-name{ font-weight:600; letter-spacing:-.01em; }

.hero{
  position:relative; z-index:1;
  max-width:720px; margin:0 auto;
  padding:7vh 6vw 3vh; text-align:center;
}
.eyebrow{
  display:inline-block; font-size:.8rem; font-weight:700; letter-spacing:.14em;
  text-transform:uppercase; color:var(--accent); margin-bottom:18px;
}
.hero h1{ font-size:clamp(1.8rem, 4.2vw, 3rem); line-height:1.15; }
.hero-copy{ max-width:46ch; margin:14px auto 0; font-size:1rem; }

.btn{
  margin-top:26px;
  padding:14px 30px; border-radius:999px; font-weight:600; font-size:.95rem;
  border:none; cursor:pointer;
  display:inline-flex; align-items:center; gap:8px;
  transition:transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn-primary{ background:var(--accent); color:#fff; box-shadow:var(--shadow); }
.btn-primary:hover{ transform:translateY(-1px); }
.btn-primary:disabled{ opacity:.55; cursor:default; transform:none; }

.phase{ margin-top:16px; min-height:1.2em; font-size:.9rem; color:var(--accent-light); font-weight:500; }

.tiles{
  position:relative; z-index:1;
  max-width:860px; margin:2vh auto 4vh;
  padding:0 6vw;
  display:grid; grid-template-columns:1fr 1fr; gap:14px;
  opacity:0; transition:opacity .3s ease;
}
.tiles.is-visible{ opacity:1; }

.tile{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  padding:18px 20px;
  display:flex; flex-direction:column; gap:6px;
}
.tile--wide{ grid-column:1 / -1; }

.tile-label{ font-size:.82rem; color:var(--muted); font-weight:500; }
.tile-value{ font-size:1.9rem; font-weight:600; font-variant-numeric:proportional-nums; }
.tile-value small{ font-size:.95rem; font-weight:500; color:var(--muted); margin-left:4px; }

.tile-spark{ width:100%; height:32px; margin-top:4px; display:block; }
.tile--wide .tile-spark{ height:48px; }
.tile-spark .spark-line{ fill:none; stroke:var(--accent-light); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.tile-spark .spark-dot{ fill:var(--accent); stroke:var(--surface); stroke-width:2; }
.tile-spark .spark-track{ fill:none; stroke:var(--accent-dim); stroke-width:1; }

.note{
  max-width:520px; margin:0 auto 6vh; padding:0 6vw;
  text-align:center; font-size:.82rem; color:var(--muted); min-height:1em;
}

@media (max-width: 640px){
  .tiles{ grid-template-columns:1fr; }
  .tile--wide{ grid-column:auto; }
}

.status-panel{
  position:relative; z-index:1;
  max-width:860px; margin:0 auto 8vh;
  padding:0 6vw;
}
.status-title{
  font-family:"Fraunces",Georgia,serif; font-weight:600; font-size:1.3rem;
  margin:0 0 14px;
}
.status-list{
  list-style:none; margin:0; padding:0;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  overflow:hidden;
}
.status-row{
  display:flex; align-items:center; gap:12px;
  padding:14px 18px;
  border-bottom:1px solid var(--line);
}
.status-row:last-child{ border-bottom:none; }

.status-dot{
  flex:none; width:10px; height:10px; border-radius:50%;
  background:var(--muted);
}
.status-row[data-status="up"] .status-dot{ background:var(--st-good); }
.status-row[data-status="degraded"] .status-dot{ background:var(--st-warning); }
.status-row[data-status="down"] .status-dot{ background:var(--st-critical); }
.status-row[data-status="planned"] .status-dot{
  background:transparent; border:2px solid var(--muted);
  width:6px; height:6px;
}
.status-row[data-status="checking"] .status-dot{ background:var(--muted); opacity:.5; }

.status-name{ font-weight:600; flex:1 1 auto; min-width:0; }
/* Label text stays on text tokens (never the status hue) — the dot carries
   the color, the word carries the meaning, so it reads even without color. */
.status-label{
  font-size:.85rem; font-weight:500; color:var(--muted);
}
.status-row[data-status="down"] .status-label{ color:var(--ink); font-weight:600; }

.status-latency{
  font-size:.8rem; color:var(--muted); font-variant-numeric:tabular-nums;
  min-width:3.5em; text-align:right;
}

.status-updated{
  margin-top:10px; font-size:.78rem; color:var(--muted); text-align:right;
}

@media (max-width: 560px){
  .status-row{ flex-wrap:wrap; }
  .status-latency{ order:1; flex:0 0 100%; text-align:left; margin-left:22px; }
}
