/* Get Nova AI admin portals launcher.
   Tokens are the Get Nova design system's, as in
   react-get-nova-ai-admin/src/scss/_tokens.scss. Light theme only, like the admins. */

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: light; }

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  padding: 28px 40px 30px;
  display: flex;
  flex-direction: column;
  background: #ebeff8;
  color: #181d33;
  font-family: Manrope, system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Backdrop: the glows and grid from the Nova login (_login.scss). Fixed, so a
   long phone page scrolls over it rather than past it. */
.bg { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.bg__orb { position: absolute; border-radius: 50%; filter: blur(20px); }
.bg__orb--a { top: -22vw; left: -14vw; width: 62vw; height: 62vw; background: radial-gradient(circle at 50% 50%, rgba(31,123,255,.18), rgba(31,123,255,0) 62%); }
.bg__orb--b { bottom: -26vw; right: -14vw; width: 58vw; height: 58vw; background: radial-gradient(circle at 50% 50%, rgba(139,47,224,.17), rgba(139,47,224,0) 62%); }
.bg__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(15,23,42,.053) 1px, transparent 1px), linear-gradient(90deg, rgba(15,23,42,.053) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 25%, transparent 76%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 25%, transparent 76%);
}

/* Positioned so they paint above the fixed backdrop. */
.top, .main, .foot { position: relative; }

.top { display: flex; align-items: center; gap: 10px; }
.top img { display: block; width: 28px; height: 28px; }
.top__brand { font-family: Sora, "Segoe UI", system-ui, sans-serif; font-size: 15px; font-weight: 600; letter-spacing: -.015em; line-height: 1.15; color: #0b0f22; }
.top__brand span { display: block; font-family: Manrope, system-ui, -apple-system, sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0; color: #545c7a; }

.main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px 0; text-align: center; }
.eyebrow { margin: 0 0 12px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #545c7a; }
h1 { margin: 0; font-family: Sora, "Segoe UI", system-ui, sans-serif; font-size: 34px; font-weight: 600; line-height: 1.15; letter-spacing: -.025em; color: #0b0f22; text-wrap: balance; }
.sub { max-width: 48ch; margin: 12px 0 32px; font-size: 15px; color: #545c7a; }

.foot { text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #545c7a; }

/* Cards */
.cards { width: 100%; max-width: 760px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; text-align: left; }

.card {
  --rgb: 11,15,34;
  display: flex; flex-direction: column; min-width: 0; min-height: 156px; padding: 20px;
  border: 1px solid rgba(11,15,34,.12); border-radius: 18px;
  background: #fff; color: #0b0f22; text-decoration: none;
  box-shadow: 0 1px 3px rgba(11,15,34,.05), 0 6px 18px rgba(11,15,34,.06);
  transition: transform .2s, box-shadow .2s;
}
a.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(11,15,34,.04), 0 14px 32px rgba(var(--rgb),.22); }
.card:focus-visible { outline: 2px solid #1663dc; outline-offset: 3px; }

.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.card__tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap;
  background: rgba(var(--rgb),.1); color: #0b0f22;
}
.card__name { margin-top: auto; font-family: Sora, "Segoe UI", system-ui, sans-serif; font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.card__domain { margin-top: 3px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #545c7a; overflow-wrap: anywhere; }

.tile { flex: none; display: flex; width: 48px; height: 48px; overflow: hidden; border-radius: 12px; background: #fff; border: 1px solid rgba(11,15,34,.1); }
.tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile--wide { width: 74px; }
.tile--wide img { object-fit: contain; padding: 8%; }

/* One rule block per portal: its own colour, kept from portal_constants.js */
.card--nova { --rgb: 31,123,255; }
.card--nova .card__tag { color: #1a5fc2; }
.card--nova .tile { background: transparent; border-color: transparent; }

.card--builders { --rgb: 79,73,48; background: #2e2a18; border-color: #2e2a18; color: #fff; }
.card--prime { --rgb: 122,26,42; background: #2b0c15; border-color: #2b0c15; color: #fff; }
.card--builders .card__tag, .card--prime .card__tag { background: rgba(255,255,255,.12); color: #fff; }
.card--builders .card__domain, .card--prime .card__domain { color: rgba(255,255,255,.66); }
a.card--builders:hover, a.card--prime:hover { border-color: rgba(255,255,255,.4); }

.card--maison { --rgb: 74,7,21; background: #f2e9d7; color: #4a0715; border: 1px solid rgba(74,7,21,.3); }
.card--maison .card__tag { background: rgba(74,7,21,.08); color: #4a0715; }
.card--maison .card__domain { color: rgba(74,7,21,.72); }
.card--maison .tile { background: #4a0715; border-color: transparent; }

/* Not live yet. A state, not a brand, so making a portal live is only an HTML edit. */
.card--soon { border-style: dashed; box-shadow: none; cursor: not-allowed; }

@media (max-width: 640px) {
  body { padding: 20px 16px 24px; }
  .main { padding: 32px 0 24px; }
  h1 { font-size: 26px; }
  .sub { margin-bottom: 24px; font-size: 14px; }
  .cards { grid-template-columns: 1fr; gap: 10px; }
  .card { min-height: 0; padding: 16px; }
  .card__name { font-size: 17px; }
}

/* a.card:hover, not .card:hover: it has to match the hover rule's weight to undo it. */
@media (prefers-reduced-motion: reduce) {
  .card, a.card:hover { transform: none; transition: none; }
}
