/* Nimbrae shell — modern, layered, high-contrast. */
:root {
  --bg: #0a0b14;
  --bg-2: #0f1120;
  --surface: #161a2e;
  --surface-2: #1d2238;
  --border: #2a3152;
  --text: #f4f6ff;
  --muted: #9aa3c7;
  --accent: #7c5cff;
  --accent-2: #22a7f0;
  --live: #18b26b;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(0,0,0,.45);
  --shadow-sm: 0 4px 16px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 12% -10%, rgba(124,92,255,.22), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(34,167,240,.16), transparent 55%),
    radial-gradient(700px 500px at 50% 120%, rgba(24,178,107,.12), transparent 60%),
    var(--bg);
  min-height: 100vh;
}
#app { min-height: 100vh; display: flex; flex-direction: column; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(22,26,46,.85), rgba(22,26,46,.4));
  backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 18px rgba(124,92,255,.4); color: #fff;
}
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.top-right { display: flex; align-items: center; gap: 12px; }
.who { color: var(--muted); font-weight: 600; font-size: 14px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Layout */
.center { flex: 1; display: grid; place-items: center; padding: 40px 20px; }
.wrap { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 36px 24px 72px; }
.page-head { margin-bottom: 26px; }
.page-head h1 { font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin: 0 0 6px; }
.sub { color: var(--muted); font-size: 16px; margin: 0; }
.fam-title { display: flex; align-items: center; gap: 14px; }
.fam-title .fam-glyph.lg { color: var(--accent); }

/* Hero / login */
.hero { text-align: center; max-width: 520px; }
.hero-mark {
  display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 24px; margin-bottom: 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  box-shadow: 0 16px 48px rgba(124,92,255,.5);
}
.hero h1 { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin: 0 0 12px; }
.hero .sub { font-size: 18px; margin-bottom: 30px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.fineprint { margin-top: 26px; color: var(--muted); font-size: 13px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 14px; border-radius: 11px;
  padding: 10px 16px; border: 1px solid transparent; transition: transform .08s ease, box-shadow .15s ease, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn.lg { padding: 14px 26px; font-size: 16px; border-radius: 13px; }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 8px 24px rgba(124,92,255,.42); }
.btn.primary:hover { box-shadow: 0 12px 30px rgba(124,92,255,.55); }
.btn.outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn.outline:hover { background: var(--surface-2); }
.btn.ghost { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.btn.ghost:hover { color: var(--text); }
.btn.disabled { background: var(--surface); color: var(--muted); cursor: not-allowed; border: 1px dashed var(--border); }

/* Family grid */
.fam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.fam-card {
  display: flex; align-items: center; gap: 16px; text-align: left; cursor: pointer;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; color: var(--text);
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden; transition: transform .12s ease, box-shadow .2s ease, border-color .2s;
  font-family: inherit;
}
.fam-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent); }
.fam-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.fam-glyph {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; flex: none;
  background: color-mix(in srgb, var(--accent) 22%, var(--surface)); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.fam-body { flex: 1; min-width: 0; }
.fam-name { display: block; font-weight: 700; font-size: 19px; margin-bottom: 3px; }
.fam-tag { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.fam-meta { display: flex; align-items: center; gap: 8px; flex: none; }
.pill { font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--bg-2); border: 1px solid var(--border); padding: 3px 9px; border-radius: 999px; }
.pill.live { color: var(--live); border-color: color-mix(in srgb, var(--live) 45%, transparent); background: color-mix(in srgb, var(--live) 14%, var(--bg-2)); }
.chev { color: var(--muted); display: grid; place-items: center; }
.fam-card:hover .chev { color: var(--accent); }

/* Back link */
.back { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; color: var(--muted); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; margin-bottom: 18px; padding: 6px 2px; }
.back:hover { color: var(--text); }

/* App list */
.app-list { display: flex; flex-direction: column; gap: 14px; }
.app-card {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .2s;
}
.app-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.app-card.soon { opacity: .82; }
.app-glyph { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; flex: none; background: color-mix(in srgb, var(--accent) 20%, var(--surface)); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 36%, transparent); }
.app-body { flex: 1; min-width: 0; }
.app-name { font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.app-blurb { color: var(--muted); font-size: 14px; margin-top: 4px; line-height: 1.45; }
.tag-soon { font-size: 11px; font-weight: 600; color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 16%, var(--bg-2)); border: 1px solid color-mix(in srgb, var(--accent-2) 40%, transparent); padding: 2px 8px; border-radius: 999px; }
.app-cta { flex: none; }

@media (max-width: 560px) {
  .wrap { padding: 24px 16px 60px; }
  .fam-grid { grid-template-columns: 1fr; }
  .app-card { flex-wrap: wrap; }
  .hero h1 { font-size: 32px; }
}
