/* ─────────────────────────────────────────────────────────────────────────
   Levirge — Coming Soon
   Self-contained stylesheet. Design tokens are lifted from the Levirge
   Design System (dark-first, warm near-black canvas, single amber accent,
   functional 4-state status colours). No external CSS dependencies.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  /* Surfaces */
  --bg-base: hsl(60 2% 12%);
  --bg-surface: rgb(38, 38, 38);
  --bg-raised: hsl(240 6% 19%);
  --bg-inset: hsl(240 6% 5%);

  /* Borders */
  --line-1: hsl(0 0% 100% / 0.06);
  --line-2: hsl(0 0% 100% / 0.10);
  --line-3: hsl(0 0% 100% / 0.18);

  /* Foreground */
  --fg-0: hsl(240 8% 92%);
  --fg-1: hsl(240 6% 70%);
  --fg-2: hsl(240 5% 52%);
  --fg-3: hsl(240 5% 36%);

  /* Accent — amber */
  --accent: oklch(0.731 0.132 73.9);
  --accent-hi: oklch(0.80 0.132 73.9);

  /* Status — functional 4-state */
  --status-online: oklch(0.74 0.13 150);
  --status-degraded: oklch(0.78 0.14 75);
  --status-unknown: transparent;

  --syn-comment: hsl(240 5% 44%);

  /* Type */
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --font-brand: "Space Grotesk", var(--font-sans);

  /* Effects */
  --shadow-lg: 0 2px 4px hsl(0 0% 0% / 0.50), 0 16px 40px hsl(0 0% 0% / 0.34);
  --surface-gradient: linear-gradient(to bottom, var(--bg-raised), var(--bg-surface));
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg-base);
  color: var(--fg-0);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
a { color: inherit; text-decoration: none; }
.accent { color: var(--accent-hi); }

/* ─── Layout ─────────────────────────────────────────────────────────── */
.shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}
.wrap { width: 100%; max-width: 900px; }

/* ─── Brand lockup ───────────────────────────────────────────────────── */
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { height: 26px; width: auto; }
.brand .w {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
  margin-top: 40px;
}

h1 {
  font-size: 44px;
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 16px 0 0;
  text-wrap: balance;
}
.sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-1);
  max-width: 520px;
  margin: 22px 0 0;
}
.trust {
  margin: 26px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.trust .sep { color: var(--line-3); }

/* ─── Status dot (pure CSS, Levirge 4-state model) ───────────────────── */
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  display: inline-block;
}
.dot.online { background: var(--status-online); }
.dot.degraded { background: var(--status-degraded); }
.dot.unknown { background: var(--status-unknown); box-shadow: inset 0 0 0 1.5px var(--fg-3); }

/* pulsing ring — the one sanctioned looping animation, on online only */
.dot.pulse { position: relative; }
.dot.pulse::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--status-online);
  animation: dot-pulse 2s var(--ease, cubic-bezier(0.4,0,0.2,1)) infinite;
}
@keyframes dot-pulse {
  0%   { transform: scale(0.7); opacity: 0.8; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dot.pulse::after { animation: none; }
}

/* ─── Terminal status card ───────────────────────────────────────────── */
.term {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--bg-surface);
  box-shadow: var(--shadow-lg);
}
.term .bar {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-1);
  background: var(--surface-gradient);
}
.term .dot3 { display: flex; gap: 6px; }
.term .dot3 i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-3); }
.term .crumb { margin-left: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--fg-2); }
.term .live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
}

.term .body {
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  background: var(--bg-inset);
}
.term .body .cmt { color: var(--syn-comment); }
.term .body .prompt { color: var(--fg-2); }
.term .body .a { color: var(--accent-hi); }

.svc {
  margin-top: 12px;
  border: 1px solid var(--line-1);
  border-radius: 6px;
  overflow: hidden;
}
.svc .row {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  align-items: center;
  padding: 6px 12px;
  font-size: 11.5px;
}
.svc .row + .row { border-top: 1px solid var(--line-1); }
.svc .row .name { color: var(--fg-0); }
.svc .row .kind { color: var(--fg-2); }
.svc .row .state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
  color: var(--fg-1);
}

.term .foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-top: 1px solid var(--line-1);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
}
.term .foot .go { margin-left: auto; color: var(--accent-hi); }

/* ─── Suite (3 sub-products) ─────────────────────────────────────────── */
.suite { margin-top: 56px; border-top: 1px solid var(--line-1); padding-top: 28px; }
.suite-head { margin-bottom: 18px; }
.suite-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pod {
  background: var(--bg-surface);
  border: 1px solid var(--line-1);
  border-radius: 8px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 150ms var(--ease, cubic-bezier(0.4,0,0.2,1)),
              background 150ms var(--ease, cubic-bezier(0.4,0,0.2,1));
}
.pod:hover { border-color: var(--line-3); background: var(--bg-raised); }
.pod-top { display: flex; align-items: center; gap: 8px; }
.pod-mark { height: 18px; width: auto; flex: none; }
.pod-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--accent-hi); }
.pod-name b { font-weight: 500; color: var(--fg-2); }
.pod-top .dot { margin-left: auto; }
.pod-desc { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--fg-1); }
.pod-tag {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* ─── Footer ─────────────────────────────────────────────────────────── */
footer.meta { border-top: 1px solid var(--line-1); padding: 18px 32px; }
footer.meta .inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  flex-wrap: wrap;
}
footer.meta a:hover { color: var(--accent-hi); }
footer.meta .right { margin-left: auto; display: flex; gap: 14px; }

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 780px) {
  .grid { grid-template-columns: 1fr; gap: 34px; }
  h1 { font-size: 34px; }
  .term { order: 2; }
  .suite-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .suite-grid { grid-template-columns: 1fr; }
}
