:root {
  color-scheme: dark;
  --bg: #090d16;
  --panel: rgba(18, 26, 43, 0.82);
  --panel-strong: #111a2c;
  --text: #eef4ff;
  --muted: #97a5ba;
  --line: rgba(255,255,255,0.10);
  --accent: #6ee7f9;
  --accent-2: #8b5cf6;
  --danger: #fb7185;
  --ok: #34d399;
  --shadow: 0 14px 42px rgba(0,0,0,0.28);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(110,231,249,.14), transparent 30rem),
    radial-gradient(circle at top right, rgba(139,92,246,.16), transparent 28rem),
    var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
.shell { width: min(1320px, calc(100% - 28px)); margin: 0 auto; padding: 16px 0 28px; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; }
.login-card, .hero, .app-card, .governance, .status-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-radius: 22px;
}
.login-card { width: min(420px, 100%); padding: 32px; }
.brand-mark { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; font-weight: 900; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #07111f; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 4px; letter-spacing: -.05em; }
h2 { font-size: clamp(1.3rem, 3vw, 2.1rem); letter-spacing: -.04em; }
.muted, .hero p, .app-card p, .fineprint, small { color: var(--muted); }
label { display: grid; gap: 8px; color: var(--muted); margin: 18px 0; }
input { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: #0b1220; color: var(--text); outline: none; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(110,231,249,.12); }
button, .ghost { border: 0; border-radius: 14px; padding: 12px 16px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #07111f; font-weight: 800; cursor: pointer; }
button { width: 100%; }
.ghost { width: auto; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--text); }
.link { display: inline-flex; align-items: center; }
.alert { background: rgba(251,113,133,.12); color: #fecdd3; border: 1px solid rgba(251,113,133,.35); padding: 12px; border-radius: 14px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.topbar.compact { padding: 4px 0 6px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .16em; font-size: .7rem; font-weight: 800; margin-bottom: 4px; }
.hero { padding: clamp(20px, 4vw, 36px); display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; margin-bottom: 18px; }
.status-card { padding: 18px; min-width: 190px; display: grid; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 999px; background: var(--ok); box-shadow: 0 0 0 8px rgba(52,211,153,.12); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.app-card { padding: 16px; display: grid; grid-template-columns: auto 1fr; gap: 12px; transition: transform .16s ease, border-color .16s ease; min-height: 128px; }
.app-card:hover { transform: translateY(-2px); border-color: rgba(110,231,249,.45); }
.icon { font-size: 1.55rem; line-height: 1.1; }
.card-head { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.app-card h3 { font-size: 1rem; margin-bottom: 6px; }
.app-card p { font-size: .88rem; line-height: 1.35; margin-bottom: 10px; }
.app-card small { font-size: .76rem; }
.pill { font-size: .64rem; padding: 4px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.pill.planned { color: #fde68a; border-color: rgba(253,230,138,.28); background: rgba(253,230,138,.08); }
.governance { margin-top: 18px; padding: 20px; }
.governance li { margin: 8px 0; color: var(--muted); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .topbar { align-items: flex-start; } }
@media (max-width: 560px) { .shell { width: min(100% - 20px, 1120px); padding-top: 12px; } .topbar { flex-direction: column; } .login-card, .hero, .app-card, .governance { border-radius: 18px; } .app-card { grid-template-columns: 1fr; min-height: 0; } }
