:root {
  --bg: #0b1020;
  --panel: #141a2e;
  --text: #e8ecf6;
  --muted: #9aa6c4;
  --line: #26304f;
  --accent: #6ea8fe;
  --accent-2: #4ad6a8;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 16px/1.6 -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
  background:
    radial-gradient(1000px 600px at 80% -10%, rgba(110,168,254,.16), transparent 60%),
    radial-gradient(800px 500px at 0% 110%, rgba(74,214,168,.12), transparent 55%),
    var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 26px; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .2px; }
.logo { font-size: 22px; }
.login-btn {
  color: var(--accent); text-decoration: none; font-size: 14px; font-weight: 600;
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; white-space: nowrap;
}
.login-btn:hover { background: var(--panel); border-color: var(--accent); }

.hero { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 26px; }
.hero-inner { max-width: 720px; text-align: center; }
.hero h1 {
  font-size: clamp(30px, 6vw, 52px); line-height: 1.1; margin: 0 0 20px; font-weight: 800;
  letter-spacing: -.5px;
}
.lede { font-size: clamp(16px, 2.5vw, 20px); color: var(--muted); margin: 0 auto 32px; max-width: 600px; }

.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 16px;
  border-radius: 10px; padding: 13px 26px; transition: filter .15s, background .15s;
}
.btn.primary { background: var(--accent); color: #08122b; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { border: 1px solid var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

.portal-note { margin-top: 30px; font-size: 14px; color: var(--muted); }
.portal-note a { color: var(--accent); text-decoration: none; }
.portal-note a:hover { text-decoration: underline; }

.foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
}
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--accent); }

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f6fb; --panel: #ffffff; --text: #1a2036;
    --muted: #5a6a86; --line: #e2e7f2;
  }
  .btn.primary { color: #ffffff; }
}
