:root {
  color-scheme: dark;
  --bg: #05060a;
  --bg2: #0e1117;
  --fg: #e5e7eb;
  --accent: #38bdf8;
  --accent-soft: rgba(56,189,248,0.12);
  --muted: #9ca3af;
  --border: #1f2933;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 45%, #000 100%);
  color: var(--fg);
}

.shell {
  max-width: 720px;
  width: 100%;
  background:
    radial-gradient(circle at top left, rgba(56,189,248,0.06), transparent 55%),
    linear-gradient(145deg, var(--bg2), #020617);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow:
    0 24px 80px rgba(15,23,42,0.85),
    0 0 0 1px rgba(15,23,42,0.8);
  padding: 1.75rem 2rem 1.8rem;
  position: relative;
  overflow: hidden;
}

.glow {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at top, rgba(56,189,248,0.11) 0, transparent 55%),
    radial-gradient(circle at bottom, rgba(59,130,246,0.07) 0, transparent 60%);
  opacity: 0.9;
  pointer-events: none;
  mix-blend-mode: screen;
}

header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 20%, #e5e7eb 0, #38bdf8 32%, transparent 60%),
    conic-gradient(from 210deg, #38bdf8, #0ea5e9, #6366f1, #38bdf8);
  box-shadow:
    0 0 0 1px rgba(15,23,42,0.85),
    0 8px 24px rgba(56,189,248,0.5);
}

.brand-main {
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.pill {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 999px;
  background-color: var(--accent-soft);
  border: 1px solid rgba(56,189,248,0.35);
  color: var(--accent);
  padding: 0.35rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34,197,94,0.9);
}

main {
  position: relative;
}

h1 {
  font-size: clamp(1.55rem, 2vw + 1.1rem, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}

.subtitle {
  font-size: 0.93rem;
  color: var(--muted);
  max-width: 34rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(0,0.85fr);
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .shell {
    padding: 1.5rem 1.5rem 1.6rem;
  }
  .grid {
    grid-template-columns: minmax(0,1fr);
  }
  header {
    align-items: flex-start;
    flex-direction: column-reverse;
  }
}

.meta {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.3);
  background-color: rgba(15,23,42,0.65);
}

.meta-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg,#38bdf8,#6366f1);
}

.kpi-card {
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.28);
  background:
    radial-gradient(circle at top left, rgba(148,163,184,0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(15,23,42,0.95), #020617);
  padding: 0.95rem 1rem;
  font-size: 0.83rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.kpi-row {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  align-items: baseline;
}

.kpi-label {
  color: var(--muted);
}

.kpi-value {
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
}

.kpi-pill {
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a5b4fc;
  background: rgba(79,70,229,0.18);
  border: 1px solid rgba(79,70,229,0.52);
}

footer {
  margin-top: 1.4rem;
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  opacity: 0.85;
}

footer span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
