/* JARVIS front door. One dark screen: the orb, the name, one button. System fonts only. */
:root {
  --bg: #05070b; --ink: #f5f7fa; --muted: #a3adbb; --faint: #7d8796; --ring: #6cb6ff;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--ink); }
a:focus-visible { outline: 3px solid var(--ring); outline-offset: 4px; border-radius: 8px; }

/* ── the front door ── */
.door-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.door {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px 24px 24px;
  padding-top: max(48px, env(safe-area-inset-top));
}
.door h1 {
  margin: 44px 0 0; font-size: clamp(40px, 9vw, 64px); line-height: 1.05;
  font-weight: 700; letter-spacing: .12em; margin-right: -.12em; /* keep the spaced word centred */
}
.lede { margin: 12px 0 0; font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 40px; min-height: 52px; padding: 14px 30px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 17px; font-weight: 600; text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}
.btn:hover { background: #ffffff; }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 3px solid var(--ring); outline-offset: 4px; border-radius: 999px; }
.fine { margin: 16px 0 0; max-width: 34ch; text-wrap: balance; font-size: 14px; color: var(--muted); }
.foot {
  padding: 20px 24px; padding-bottom: max(20px, env(safe-area-inset-bottom));
  text-align: center; font-size: 13px; color: var(--faint);
}
.foot a { color: var(--muted); text-decoration: none; padding: 6px 4px; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* ── privacy / terms ── */
.legal { max-width: 640px; margin: 0 auto; padding: 40px 24px 64px; }
.legal h1 { font-size: 34px; margin: 28px 0 6px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal p { color: #d5dbe3; }
.legal .fine { margin-top: 0; max-width: none; }

/* ── the orb (copied from JARVIS's static/hq/orb.css, idle look only; no script needed) ── */
.orb {
  --size: 30px;
  position: relative; display: block; flex: none; width: var(--size); height: var(--size); border-radius: 50%;
  background:
    radial-gradient(circle at 26% 22%, rgba(255,255,255,.96) 0%, rgba(255,255,255,.6) 26%, rgba(255,255,255,0) 58%),
    radial-gradient(circle at 66% 88%, rgba(47,128,237,.9) 0%, rgba(47,128,237,0) 60%),
    radial-gradient(circle at 30% 26%, #ffffff 0%, #cfe8ff 34%, #6cb6ff 70%, #2f80ed 100%);
}
.orb[data-orb] { background: none; }
.orb-hero { --size: clamp(168px, 42vw, 232px); }
.orb-pulse { position: absolute; inset: 0; border-radius: 50%; }
.orb-ball {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 30% 26%, #ffffff 0%, #cfe8ff 34%, #6cb6ff 70%, #2f80ed 100%);
  box-shadow: 0 calc(var(--size) * .085) calc(var(--size) * .17) calc(var(--size) * -.075) rgba(24, 90, 200, .38);
  animation: orb-breathe 4.8s ease-in-out infinite;
}
.orb-drift, .orb-swirl { position: absolute; inset: 0; border-radius: 50%; }
.orb-blob { position: absolute; border-radius: 50%; }
.orb-b1 { width: 104%; height: 104%; left: -30%; top: -32%;
  background: radial-gradient(closest-side, rgba(255,255,255,.98) 0%, rgba(255,255,255,.86) 28%, rgba(255,255,255,.5) 55%, rgba(255,255,255,.16) 80%, rgba(255,255,255,0) 100%);
  animation: orb-drift-1 calc(392s / 15) ease-in-out infinite; }
.orb-b2 { width: 96%; height: 96%; left: 30%; top: -18%;
  background: radial-gradient(closest-side, rgba(170,216,255,.95) 0%, rgba(170,216,255,.7) 35%, rgba(170,216,255,.3) 68%, rgba(170,216,255,0) 100%);
  animation: orb-drift-2 calc(512s / 15) ease-in-out infinite; }
.orb-b3 { width: 110%; height: 110%; left: 12%; top: 38%;
  background: radial-gradient(closest-side, rgba(47,128,237,.92) 0%, rgba(47,128,237,.66) 36%, rgba(47,128,237,.26) 70%, rgba(47,128,237,0) 100%);
  animation: orb-drift-3 calc(452s / 15) ease-in-out infinite; }
.orb-ball::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(108,182,255,0) 66%, rgba(108,182,255,.09) 84%, rgba(108,182,255,.26) 100%);
}
@keyframes orb-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }
@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(14%, 2%) scale(1.06); }
  50% { transform: translate(22%, 16%) scale(1.14); }
  75% { transform: translate(6%, 14%) scale(1.06); }
}
@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1.05); }
  25% { transform: translate(-14%, 4%) scale(.98); }
  50% { transform: translate(-26%, 22%) scale(.9); }
  75% { transform: translate(-8%, 18%) scale(.98); }
}
@keyframes orb-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-12%, -4%) scale(1.06); }
  50% { transform: translate(-24%, -22%) scale(1.16); }
  75% { transform: translate(-6%, -14%) scale(1.07); }
}
@media (prefers-reduced-motion: reduce) {
  .orb-ball, .orb-drift, .orb-swirl, .orb-blob { animation: none !important; }
  .btn { transition: none; }
}
