/* Cosmic Drop, the coming soon page.
   One hero, one statement, a footer. The type is the system face,
   the same face the app uses. */

:root {
  color-scheme: dark;
  --bg: #05060a;
  --ink: #f4f6fa;
  --ink-2: #c9d0db;
  --ink-3: #97a1b1;
  --ink-4: #878f9e;
  --accent: #75d2ff;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

* { box-sizing: border-box; }

html { background: var(--bg); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Noto Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

.skip {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  background: #12161f;
  color: var(--ink);
  font-size: 0.875rem;
  text-decoration: none;
  transform: translateY(-300%);
}
.skip:focus-visible { transform: none; }

/* The space behind everything. */
#space {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
}
html.js #space { opacity: 0; transition: opacity 1.4s var(--ease); }
html.js body.ready #space { opacity: 1; }

main, footer { position: relative; z-index: 2; }

/* The vignette rides above the canvas on the compositor, so the frame
   stays even without the canvas repainting it on every tick. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(85% 70% at 50% 44%, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0.16) 62%, rgba(0, 0, 0, 0.6) 100%);
}

/* Hero. */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 7rem 1.5rem 8.5rem;
}

.hero-inner {
  display: grid;
  justify-items: center;
  perspective: 900px;
  text-align: center;
}

.mark {
  position: relative;
  width: clamp(8rem, 16vw, 11rem);
  transform-style: preserve-3d;
  will-change: transform;
}
.mark::before {
  content: "";
  position: absolute;
  inset: -75%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(117, 210, 255, 0.26), rgba(117, 210, 255, 0) 72%);
  filter: blur(5px);
  transform: translateZ(-1px);
}
.mark img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22.37%;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.45),
    0 16px 32px -14px rgba(0, 0, 0, 0.6),
    0 40px 80px -28px rgba(0, 0, 0, 0.85);
}

h1 {
  margin: 2.5rem 0 0;
  color: var(--ink);
  font-size: clamp(2.75rem, 6.4vw, 4.5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.022em;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  h1 {
    background: linear-gradient(180deg, #ffffff 32%, #a9b4c4);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
  }
}

.tagline {
  margin: 0.75rem 0 0;
  color: var(--ink-2);
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.lede {
  margin: 1.75rem 0 0;
  max-width: 34rem;
  color: var(--ink-3);
  font-size: 1rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-top: 2.5rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: #f7f9fc;
  color: #0a0c13;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  box-shadow:
    inset 0 -1px 0 rgba(0, 0, 0, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.45),
    0 16px 36px -16px rgba(117, 210, 255, 0.55),
    0 2px 10px rgba(0, 0, 0, 0.5);
  transition: background-color 200ms ease, box-shadow 200ms ease, transform 160ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .cta:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow:
      inset 0 -1px 0 rgba(0, 0, 0, 0.14),
      0 1px 0 rgba(255, 255, 255, 0.55),
      0 22px 44px -18px rgba(117, 210, 255, 0.65),
      0 3px 12px rgba(0, 0, 0, 0.55);
  }
}
.cta:active { transform: scale(0.96); }

.micro {
  margin: 1rem 0 0;
  color: var(--ink-4);
  font-size: 0.8125rem;
}

.cue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: rgba(233, 240, 250, 0.6);
  transform: translateX(-50%);
  transition: color 200ms ease, opacity 500ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .cue:hover { color: #ffffff; }
}
html.js body.scrolled .cue { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .cue svg { animation: cue-bob 2.6s var(--ease) 1.4s 3; }
}
@keyframes cue-bob {
  0%, 100% { transform: none; }
  50% { transform: translateY(4px); }
}

/* The statement. */
.why {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  min-height: 88vh;
  min-height: 88svh;
  padding: 8rem 1.5rem 10rem;
}

.statement {
  max-width: 62rem;
  margin: 0;
  color: #eef2f8;
  font-size: clamp(1.6rem, 3.9vw, 3rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.018em;
  text-align: center;
  text-wrap: balance;
}
.statement .line { display: inline; }
@media (min-width: 45rem) {
  .statement .line { display: block; }
}
html.js .statement .w {
  opacity: 0.28;
  transition: opacity 520ms var(--ease);
  transition-delay: calc(var(--k, 0) * 55ms);
}
html.js .statement .w.lit { opacity: 1; }

.human {
  margin: 0;
  color: var(--ink-4);
  font-size: 0.875rem;
}
html.js .human {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
html.js .human.lit { opacity: 1; transform: none; }

/* Footer. */
footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.75rem clamp(1.5rem, 4vw, 3rem) 2.25rem;
  color: var(--ink-4);
  font-size: 0.8125rem;
}
footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding-bottom: 1px;
  transition: border-color 200ms ease, color 200ms ease;
}
footer a:hover {
  color: var(--ink-2);
  border-color: rgba(255, 255, 255, 0.4);
}

/* The entrance, split and staggered. */
html.js .rise {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  transition:
    opacity 900ms var(--ease) var(--d, 0s),
    transform 900ms var(--ease) var(--d, 0s),
    filter 900ms var(--ease) var(--d, 0s);
}
html.js body.ready .rise { opacity: 1; transform: none; filter: blur(0); }

/* 404. */
.alone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  min-height: 100vh;
  min-height: 100svh;
  padding: 6rem 1.5rem;
  text-align: center;
}
body.og .cue,
body.og .micro { display: none; }
body.og .hero { padding-bottom: 6rem; }
.alone img {
  width: 6rem;
  height: auto;
  border-radius: 22.37%;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.85);
}
.alone h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}
.alone .lede { margin: 0; }
.alone .cta { margin-top: 0.5rem; }

/* Motion, off. */
@media (prefers-reduced-motion: reduce) {
  html.js .rise {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  html.js #space { opacity: 1; transition: none; }
  html.js .statement .w { opacity: 1; transition: none; }
  html.js .human { opacity: 1; transform: none; transition: none; }
  html.js body.scrolled .cue { opacity: 1; }
  .cue svg { animation: none; }
}
