/* ============================================================
   Landing page — brand register.
   Technical / systems-minded lane: precise, confident, typed.
   ============================================================ */

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
}

/* thin, site-wide scanner line at the very top — uptime as atmosphere */
body::before {
  content: "";
  display: block;
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--ok), var(--accent) 45%, var(--accent) 55%, var(--ok));
  background-size: 200% 100%;
  animation: scan 8s linear infinite;
  z-index: 60;
  pointer-events: none;
}
@keyframes scan {
  from { background-position: 0 0; }
  to   { background-position: -200% 0; }
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: var(--sp-2) var(--sp-4); border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.muted { color: var(--text-muted); }

/* ---------- nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: oklch(0.16 0.012 75 / 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 var(--sp-6);
  height: 64px; display: flex; align-items: center; gap: var(--sp-6);
}
.brand { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 700; color: var(--text); font-size: var(--fs-lg); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 20px; height: 20px; display: inline-block; flex: 0 0 auto; }
.nav-links { display: flex; gap: var(--sp-5); margin-left: var(--sp-3); }
.nav-links a { color: var(--text-muted); font-size: var(--fs-sm); }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; gap: var(--sp-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 9px 16px; border-radius: var(--radius-md); border: 1px solid var(--border-strong);
  background: transparent; color: var(--text); font-size: var(--fs-sm); font-weight: 600;
  cursor: pointer; transition: background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:hover { text-decoration: none; background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn.primary {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
}
.btn.primary:hover { background: var(--accent-strong); }
.btn.ghost { border-color: var(--border); color: var(--text-muted); }
.btn.ghost:hover { border-color: var(--border-strong); color: var(--text); }
.btn.lg { padding: 12px 22px; font-size: var(--fs-md); }

/* ---------- hero ---------- */
.hero {
  max-width: 1120px; margin: 0 auto; padding: var(--sp-12) var(--sp-6) var(--sp-9);
  display: grid; gap: var(--sp-9);
}
@media (min-width: 900px) {
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--sp-12); align-items: center; }
}
.hero-copy { min-width: 0; }
.hero-copy .eyebrow { margin-bottom: var(--sp-4); }
.hero h1 {
  font-size: clamp(var(--fs-3xl), 5vw, var(--fs-4xl));
  line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 var(--sp-4);
  max-width: 12ch;
  overflow-wrap: break-word;
}
.hero-sub {
  color: var(--text-muted); font-size: var(--fs-lg); max-width: 48ch;
  margin: 0 0 var(--sp-6); line-height: var(--lh-normal);
}
.hero-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.hero-note { color: var(--text-faint); font-size: var(--fs-xs); margin-top: var(--sp-4); }

/* ---------- live status panel (proof object) ---------- */
.status-panel-wrap { position: relative; }
.status-panel-wrap::before {
  content: ""; position: absolute; inset: -40px -40px; z-index: -1;
  background: radial-gradient(60% 60% at 50% 40%, var(--accent-soft), transparent 70%);
  filter: blur(10px);
}
.status-panel {
  background: var(--surface-1); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-2);
  padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3);
}
.status-head { display: flex; align-items: center; gap: var(--sp-2); }
.status-title { font-weight: 600; }
.status-updated { margin-left: auto; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.status-pulse {
  width: 10px; height: 10px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 10px var(--ok); animation: pulse 2s var(--ease-out) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.status-list { display: flex; flex-direction: column; gap: var(--sp-2); min-height: 60px; }
.status-placeholder { font-size: var(--fs-sm); margin: var(--sp-2) 0; }
.status-row {
  display: flex; align-items: center; gap: var(--sp-3);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--sp-3) var(--sp-4);
}
.status-row .status-name { font-weight: 600; font-size: var(--fs-sm); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-row .status-lat { color: var(--text-faint); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.status-dot.up { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.status-dot.down { background: var(--down); box-shadow: 0 0 8px var(--down); }
.status-dot.unknown { background: var(--text-faint); }
.status-dot.pending { background: var(--warn); animation: pulse 1.2s var(--ease-out) infinite; }
.status-foot { font-size: var(--fs-xs); display: flex; align-items: center; gap: var(--sp-1); }
.status-foot .status-dot { width: 8px; height: 8px; }

/* ---------- sections ---------- */
.section { border-top: 1px solid var(--border); padding: var(--sp-12) 0; }
.section-inner { max-width: 1120px; margin: 0 auto; padding: 0 var(--sp-6); }
.eyebrow {
  text-transform: uppercase; letter-spacing: var(--tracking-label);
  font-size: var(--fs-xs); font-weight: 600; color: var(--accent);
  margin: 0 0 var(--sp-2);
}
.section h2 { font-size: var(--fs-2xl); letter-spacing: -0.02em; margin: 0 0 var(--sp-3); max-width: 22ch; }
.section-sub { color: var(--text-muted); max-width: 60ch; margin: 0 0 var(--sp-9); }

/* steps */
.steps { display: grid; gap: var(--sp-6); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  border-top: 1px solid var(--border-strong); padding-top: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.step-num { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--accent); }
.step h3 { margin: 0; font-size: var(--fs-lg); }
.step p { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); line-height: var(--lh-normal); }

/* pricing */
.plans { display: grid; gap: var(--sp-4); }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-3);
  position: relative;
}
.plan.featured { border-color: var(--accent); box-shadow: var(--shadow-2); }
.plan-tag {
  position: absolute; top: -12px; left: var(--sp-6);
  background: var(--accent); color: var(--accent-ink);
  font-size: var(--fs-xs); font-weight: 700; padding: 3px 12px; border-radius: 999px;
}
.plan h3 { margin: 0; font-size: var(--fs-lg); }
.plan-price { font-size: var(--fs-3xl); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan-price span { font-size: var(--fs-sm); color: var(--text-muted); font-weight: 400; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--text-muted); flex: 1; }
.plan ul li::before { content: "—"; color: var(--text-faint); margin-right: var(--sp-2); }
.plan .btn { margin-top: var(--sp-2); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: var(--sp-9) 0; }
.footer-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 var(--sp-6);
  display: flex; align-items: center; gap: var(--sp-6); flex-wrap: wrap;
}
.footer-inner .brand { font-size: var(--fs-md); }
.footer-inner p { font-size: var(--fs-xs); margin: 0; }
.footer-links { margin-left: auto; display: flex; gap: var(--sp-5); }
.footer-links a { color: var(--text-muted); font-size: var(--fs-sm); }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-cta .btn.ghost { display: none; }
  .hero { padding-top: var(--sp-9); }
  .hero h1 { font-size: var(--fs-3xl); }
  .status-panel-wrap::before { inset: -20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { margin-left: 0; }
}
