/* =========================================================
   LEGEN — Shared brand / design system
   One source of truth for tokens + base atoms across the
   company portal (/), profile (/me), and deck (/deck).
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap");

:root {
  /* surfaces */
  --bg: #06070f;
  --bg-soft: #0b0c16;
  --bg-card: #10111d;
  --bg-card-hover: #161826;
  --bg-elevated: #14162400;
  --border: #222433;
  --border-soft: #191b27;

  /* text */
  --text: #eef0f8;
  --text-dim: #9b9bb3;
  --text-faint: #6a6a80;

  /* brand accents (deck-led: blue → purple → teal) */
  --accent: #5b7fff;
  --accent-2: #9b6dff;
  --accent-glow: rgba(91, 127, 255, 0.35);
  --blue: #5b7fff;
  --purple: #9b6dff;
  --teal: #22d3ee;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --violet: #a78bfa;

  /* scale */
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --shadow: 0 22px 55px -22px rgba(0, 0, 0, 0.88);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: hidden; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Ambient backdrop ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg-orbs::before, .bg-orbs::after { content: ""; position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.5; }
.bg-orbs::before {
  width: 600px; height: 600px; top: -180px; left: -120px;
  background: radial-gradient(circle, rgba(91,127,255,0.45), transparent 70%);
  animation: bfloat1 18s ease-in-out infinite;
}
.bg-orbs::after {
  width: 520px; height: 520px; top: 240px; right: -160px;
  background: radial-gradient(circle, rgba(155,109,255,0.32), transparent 70%);
  animation: bfloat2 22s ease-in-out infinite;
}
@keyframes bfloat1 { 50% { transform: translate(60px, 80px) scale(1.1); } }
@keyframes bfloat2 { 50% { transform: translate(-50px, 60px) scale(1.08); } }
.grid-overlay {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

/* ---------- Shared atoms ---------- */
.eyebrow { color: var(--accent); font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; font-family: var(--font-mono); }
.grad {
  background: linear-gradient(120deg, #fff 18%, var(--accent) 60%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-weight: 600; font-size: 14.5px; border-radius: 999px; border: 1px solid transparent;
  padding: 11px 22px; transition: transform .15s, box-shadow .25s, background .25s, border-color .2s;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -8px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px var(--accent-glow); background: #6d8bff; }
.btn-ghost { background: rgba(255,255,255,0.03); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; background: rgba(91,127,255,0.08); }
.btn-disabled { background: rgba(255,255,255,0.02); border-color: var(--border-soft); color: var(--text-faint); cursor: not-allowed; }

/* ---------- Cross-site top switcher ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100; backdrop-filter: blur(14px);
  background: rgba(6, 7, 15, 0.6); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-nav.scrolled { border-color: var(--border-soft); background: rgba(6,7,15,0.84); }
.site-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand-logo { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 9px; }
.brand-logo .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent-glow); }
.brand-logo .hl { color: var(--accent); }
.site-links { display: flex; align-items: center; gap: 8px; }
.site-links a {
  color: var(--text-dim); font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.site-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.site-links a.active { color: #fff; background: rgba(91,127,255,0.14); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
