/* orbital — the private-beta teaser.
   Colours are the brand tokens (orbital-tokens.json); the page is dark only,
   because the brand's background is space. No JavaScript and no inline
   styles: the page's CSP allows this file and Google Fonts, nothing else. */

:root {
  --orbital-50:  #eef0fe;
  --orbital-100: #e0e2fc;
  --orbital-200: #c7c9f7;
  --orbital-300: #a5a6f3;
  --orbital-400: #8688ec;
  --orbital-500: #6f71e6;
  --orbital-600: #6366e0;
  --orbital-700: #4f51c0;
  --orbital-900: #373983;
  --orbital-950: #1d1e3e;

  --space:   #0b0b16;
  --space-2: #14142c;
  --ink:     #f4f4fb;
  --muted:   #a9abc9;
  --faint:   #6c6e92;
  --line:    rgba(134, 136, 236, 0.16);
  --danger:  #fda4af;

  --font: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: dark;
}

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

html, body { margin: 0; background: var(--space); }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--orbital-300);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---- Sky: three drifting star layers and a glow from the top. ---- */

.sky { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }

.stars { position: absolute; inset: -200px; background-repeat: repeat; }
.stars-1 {
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.9), transparent),
    radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.5px 1.5px at 50% 70%, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 70% 60%, rgba(199,201,247,.8), transparent),
    radial-gradient(1px 1px at 35% 85%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,.7), transparent);
  background-size: 600px 600px;
  animation: drift 140s linear infinite;
}
.stars-2 {
  background-image:
    radial-gradient(1px 1px at 15% 50%, rgba(166,166,243,.6), transparent),
    radial-gradient(1px 1px at 60% 40%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 85% 65%, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 40% 15%, rgba(255,255,255,.5), transparent);
  background-size: 480px 480px;
  opacity: .7;
  animation: drift 90s linear infinite reverse;
}
.stars-3 {
  background-image:
    radial-gradient(2px 2px at 25% 25%, rgba(134,136,236,.5), transparent),
    radial-gradient(2px 2px at 75% 75%, rgba(255,255,255,.4), transparent);
  background-size: 760px 760px;
  animation: twinkle 6s ease-in-out infinite;
}
.glow {
  position: absolute; inset: 0 0 auto 0; height: 65vh;
  background: radial-gradient(60% 80% at 50% -10%, rgba(99,102,224,.24), transparent 70%);
}

@keyframes drift   { to { transform: translate3d(-600px, -300px, 0); } }
@keyframes twinkle { 0%, 100% { opacity: .35; } 50% { opacity: .7; } }

/* ---- Layout ---- */

.bar, .hero, .foot { position: relative; z-index: 1; width: 100%; max-width: 72rem; margin: 0 auto; padding-inline: 1.5rem; }

.bar {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1.5rem;
}
.brand { display: inline-flex; }
.brand img { height: 32px; width: auto; display: block; }

.pill-link {
  font-size: 13px; font-weight: 500; text-decoration: none;
  color: var(--orbital-200);
  padding: .4rem 1rem; border-radius: 999px;
  border: 1px solid rgba(134,136,236,.3);
  background: rgba(255,255,255,.04);
  transition: border-color .15s, background-color .15s, color .15s;
}
.pill-link:hover { border-color: rgba(165,166,243,.55); background: rgba(255,255,255,.08); color: #fff; }

.hero {
  flex: 1;
  display: grid;
  gap: 3rem;
  align-items: center;
  padding-block: 2rem 5rem;
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.05fr .95fr; padding-top: 4rem; }
}

.pitch { max-width: 36rem; }

/* ---- Copy ---- */

.badge {
  display: inline-flex; align-items: center; gap: .55rem;
  margin: 0;
  font-size: 12px; font-weight: 500; letter-spacing: .02em;
  color: var(--orbital-200);
  padding: .3rem .8rem; border-radius: 999px;
  border: 1px solid rgba(134,136,236,.28);
  background: rgba(111,113,230,.1);
}
.beacon { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--orbital-300); }
.beacon::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--orbital-400);
  animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }

h1 {
  margin: 1.5rem 0 0;
  font-size: clamp(2.25rem, 5.2vw, 3.6rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #fff;
}
.grad {
  display: block;
  background: linear-gradient(120deg, #ffffff 0%, var(--orbital-200) 45%, var(--orbital-400) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.lede {
  margin: 1.5rem 0 0;
  font-size: 16.5px; line-height: 1.65;
  color: var(--muted);
}

/* ---- Signup card ---- */

.card {
  margin-top: 2.25rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background: rgba(20,22,40,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px -40px rgba(55,57,131,.8);
  scroll-margin-top: 2rem;
}

.form { display: grid; gap: 1rem; }

.field { display: grid; gap: .4rem; }
.field label { font-size: 12.5px; font-weight: 500; color: #d6d7ef; }
.optional { margin-left: .25rem; font-weight: 400; color: var(--faint); }

input, textarea {
  width: 100%;
  font: inherit; font-size: 14px;
  color: #fff;
  padding: .7rem .9rem;
  border-radius: .7rem;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  transition: border-color .15s, background-color .15s;
}
textarea { resize: vertical; min-height: 5.5rem; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus {
  outline: none;
  border-color: rgba(134,136,236,.65);
  background: rgba(255,255,255,.07);
}
input:focus-visible, textarea:focus-visible { outline: none; }

.form-error {
  margin: 0;
  padding: .7rem .9rem;
  border-radius: .7rem;
  font-size: 13px;
  color: var(--danger);
  border: 1px solid rgba(251,113,133,.3);
  background: rgba(244,63,94,.1);
}

/* The honeypot: off-screen rather than display:none, which some bots skip. */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.submit {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%;
  margin-top: .25rem;
  padding: .8rem 1.5rem;
  font: inherit; font-size: 14px; font-weight: 600;
  color: #fff;
  border: 0; border-radius: 999px;
  background: var(--orbital-500);
  box-shadow: 0 12px 30px -12px rgba(99,102,224,.9);
  cursor: pointer;
  transition: background-color .15s, transform .15s;
}
.submit:hover { background: var(--orbital-400); }
.submit:hover svg { transform: translateX(2px); }
.submit svg { transition: transform .15s; }
.submit:active { transform: translateY(1px); }

.fineprint { margin: 0; text-align: center; font-size: 12px; color: var(--faint); }

.joined { text-align: center; padding: 1rem .5rem; }
.joined-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 50%;
  color: #6ee7b7;
  background: rgba(16,185,129,.15);
  border: 1px solid rgba(52,211,153,.3);
}
.joined-title { margin: 1rem 0 0; font-size: 17px; font-weight: 600; color: #fff; }
.joined-text  { margin: .5rem 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---- The orbital system: the mark, set in motion. ----
   Each ring box rotates whole and carries a satellite pinned to its top
   edge, so everything scales with the system's width. */

.system-wrap { display: flex; justify-content: center; }
.system { position: relative; width: min(78vw, 540px); aspect-ratio: 1; }

.ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(134,136,236,.2);
}
.ring::before { /* a brighter arc, so the ring reads as a path of travel */
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: rgba(166,166,243,.55);
  border-right-color: rgba(166,166,243,.18);
}
.ring-1 { inset: 34%; }
.ring-2 { inset: 22%; }
.ring-3 { inset: 10%; }
.ring-4 { inset: 0; border-style: dashed; border-color: rgba(134,136,236,.1); }
.ring-4::before { display: none; }

.spin-1 { animation: spin 9s linear infinite; }
.spin-2 { animation: spin 16s linear infinite reverse; }
.spin-3 { animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.sat { position: absolute; top: 0; left: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.sat-1 { width: 10px; height: 10px; background: var(--orbital-300); box-shadow: 0 0 14px 3px rgba(165,166,243,.7); }
.sat-2 { width: 8px;  height: 8px;  background: var(--orbital-200); box-shadow: 0 0 12px 3px rgba(199,201,247,.6); }
.sat-3 { width: 6px;  height: 6px;  background: var(--orbital-400); box-shadow: 0 0 10px 2px rgba(134,136,236,.6); }

.core {
  position: absolute; inset: 40%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--orbital-300), var(--orbital-600) 45%, var(--orbital-900) 80%);
  box-shadow: 0 0 60px 12px rgba(99,102,224,.5), inset -6px -8px 24px rgba(29,30,62,.7);
  animation: pulse 5s ease-in-out infinite;
}
.core::after {
  content: ""; position: absolute; inset: -18%; border-radius: 50%;
  background: radial-gradient(circle, rgba(134,136,236,.25), transparent 70%);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 60px 12px rgba(99,102,224,.45), inset -6px -8px 24px rgba(29,30,62,.7); }
  50%      { box-shadow: 0 0 90px 22px rgba(99,102,224,.7),  inset -6px -8px 24px rgba(29,30,62,.7); }
}

/* Below the two-column breakpoint the system moves above the copy and
   shrinks, so the headline stays in the first screen and the form follows
   close behind rather than a full screen of animation later. */
@media (max-width: 959px) {
  .hero { gap: 1.5rem; padding-top: .5rem; }
  .system-wrap { order: -1; }
  .system { width: min(52vw, 260px); }
}

/* ---- Entrance ---- */

.rise { opacity: 0; transform: translateY(16px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.d1 { animation-delay: .05s; }
.d2 { animation-delay: .12s; }
.d3 { animation-delay: .2s; }
.d4 { animation-delay: .28s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---- Footer ---- */

.foot {
  display: flex; align-items: center; gap: .5rem;
  padding-block: 2rem;
  border-top: 1px solid rgba(255,255,255,.05);
  font-size: 12.5px; color: var(--faint);
}

@media (prefers-reduced-motion: reduce) {
  .stars, .spin, .core, .beacon::after { animation: none; }
  .rise { animation: none; opacity: 1; transform: none; }
}
