:root {
  --blue: #0757ff;
  --deep: #02102f;
  --white: #f7fbff;
  --line: rgba(247, 251, 255, 0.3);
  --muted: rgba(247, 251, 255, 0.72);
  --yellow: #ffdc3d;
  --font-brand: "Filson Soft", "Filson Pro", "Avenir Next Rounded", "Nunito Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background: var(--blue);
  font-family: var(--font-brand);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background: var(--blue);
}

main {
  position: relative;
  z-index: 1;
}

.scroll-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--scroll-glow-x, 50%) 54%, var(--scroll-glow-color, rgba(247, 251, 255, 0.34)), transparent 31rem),
    radial-gradient(circle at 50% 105%, rgba(247, 251, 255, calc(0.1 + (var(--scroll-white-fade, 0) * 0.5))), transparent 34rem),
    linear-gradient(180deg, transparent 0%, rgba(247, 251, 255, calc(var(--scroll-white-fade, 0) * 0.38)) 100%);
  mix-blend-mode: screen;
  opacity: var(--scroll-glow-opacity, 0.24);
  transform: translate3d(0, calc(var(--scroll-progress, 0) * -4rem), 0);
  transition: background 420ms ease, opacity 240ms ease;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.top-nav {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 15rem 1fr;
  align-items: center;
  min-height: 5.5rem;
  padding: 1.4rem clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(2, 16, 47, 0.72);
  backdrop-filter: blur(12px);
}

.logo-box {
  display: inline-flex;
  width: max-content;
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: none;
}

.brand-logo {
  --logo-color: currentColor;
  --logo-thickness: 6px;
  --size-inner: 18px;
  --size-middle: 42px;
  --size-outer: 66px;
  display: inline-grid;
  justify-items: center;
  gap: 16px;
  color: currentColor;
  line-height: 1;
}

.brand-logo-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--size-outer);
  height: var(--size-outer);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 66 66' xmlns='http://www.w3.org/2000/svg'%3E%3Cmask id='m'%3E%3Crect width='66' height='66' fill='white'/%3E%3Crect x='33' y='30' width='44' height='6' fill='black' transform='rotate(-45 33 33)'/%3E%3C/mask%3E%3Crect width='66' height='66' fill='black' mask='url(%23m)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 66 66' xmlns='http://www.w3.org/2000/svg'%3E%3Cmask id='m'%3E%3Crect width='66' height='66' fill='white'/%3E%3Crect x='33' y='30' width='44' height='6' fill='black' transform='rotate(-45 33 33)'/%3E%3C/mask%3E%3Crect width='66' height='66' fill='black' mask='url(%23m)'/%3E%3C/svg%3E");
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.brand-logo-ring {
  position: absolute;
  box-sizing: border-box;
  border: var(--logo-thickness) solid var(--logo-color);
  border-radius: 50%;
}

.brand-logo-ring-inner {
  width: var(--size-inner);
  height: var(--size-inner);
}

.brand-logo-ring-middle {
  width: var(--size-middle);
  height: var(--size-middle);
}

.brand-logo-ring-outer {
  width: var(--size-outer);
  height: var(--size-outer);
}

.brand-logo-word {
  font-family: "Poppins", var(--font-brand);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: lowercase;
}

.logo-box .brand-logo {
  --logo-thickness: 3px;
  --size-inner: 9px;
  --size-middle: 21px;
  --size-outer: 33px;
  gap: 0.38rem;
  color: var(--white);
}

.logo-box .brand-logo-word {
  font-size: 1rem;
}

.top-nav nav {
  position: relative;
  display: flex;
  justify-content: center;
  gap: clamp(1.6rem, 5vw, 5rem);
  font-family: var(--font-brand);
  font-weight: 800;
  text-transform: uppercase;
  opacity: 0.78;
  min-width: 0;
}

.contact-nav-link {
  position: relative;
}

.contact-nav-link::after {
  position: absolute;
  right: 0;
  top: calc(100% + 0.85rem);
  z-index: 30;
  content: attr(data-email);
  padding: 0.72rem 1rem;
  border: 1px solid rgba(247, 251, 255, 0.3);
  border-radius: 999rem;
  background: rgba(247, 251, 255, 0.96);
  color: #00a5ad;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: lowercase;
  white-space: nowrap;
  box-shadow: 0 1rem 2.5rem rgba(1, 10, 34, 0.18);
  opacity: 0;
  transform: translateY(-0.35rem);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.contact-nav-link:hover::after,
.contact-nav-link:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.ape-hero {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: calc(100svh - 5.5rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 4rem) clamp(1rem, 3vw, 2.5rem) clamp(2rem, 4vw, 4rem);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at calc(50% + (var(--hero-x, 0) * 20%)) calc(50% + (var(--hero-y, 0) * 16%)), rgba(255, 255, 255, 0.22), transparent 20rem),
    linear-gradient(180deg, #0757ff 0%, #0d47cc 100%);
}

.ape-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.28;
  background:
    radial-gradient(circle at calc(52% + (var(--hero-x, 0) * -10%)) calc(42% + (var(--hero-y, 0) * -8%)), rgba(255, 255, 255, 0.34), transparent 24rem),
    linear-gradient(180deg, rgba(2, 16, 47, 0.5), transparent);
  transform:
    translate3d(calc(var(--hero-x, 0) * -24px), calc(var(--hero-y, 0) * -16px), 0)
    rotate(calc(var(--hero-x, 0) * -0.5deg));
}

.ape-hero::after {
  position: absolute;
  inset: auto -14vw -32svh -14vw;
  z-index: -1;
  height: 44svh;
  content: "";
  opacity: 0;
  background:
    radial-gradient(ellipse at 50% 64%, rgba(255, 255, 255, 0.84) 0, transparent 42%),
    radial-gradient(ellipse at 35% 78%, rgba(107, 231, 255, 0.24) 0, transparent 30%),
    linear-gradient(180deg, transparent 0%, rgba(247, 251, 255, 0.96) 100%);
  filter: blur(1.8rem) saturate(1.2);
  transform: translate3d(0, calc(var(--hero-y, 0) * -12px), 0);
  transition: background 900ms ease, transform 160ms ease-out;
}

.hero-white-fade {
  position: relative;
  z-index: 1;
  height: 7rem;
  margin-top: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #0d47cc 0%, rgba(247, 251, 255, 0.64) 55%, var(--white) 100%);
}

.hero-orb-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: pan-y;
}

.hero-brand-lockup {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: min(124rem, 165vw);
  pointer-events: none;
  filter: drop-shadow(0 1.4rem 3rem rgba(1, 10, 34, 0.36));
  clip-path: inset(-22% 100% -42% 0);
  transform: translate3d(-50%, -50%, 0);
  animation:
    hero-logo-write 1.25s cubic-bezier(0.16, 1, 0.3, 1) 220ms forwards,
    hero-logo-pulse 900ms ease-in-out 1.75s 1;
}

.hero-brand-logo {
  --logo-thickness: clamp(0.6rem, 1vw, 1.15rem);
  --size-inner: calc(var(--logo-thickness) * 3);
  --size-middle: calc(var(--logo-thickness) * 7);
  --size-outer: calc(var(--logo-thickness) * 11);
  width: 100%;
  color: var(--white);
  font-size: clamp(5.4rem, 7.5vw, 10rem);
}

.hero-brand-logo .brand-logo-mark {
  margin-bottom: clamp(0.25rem, 0.7vw, 0.7rem);
}

.hero-brand-logo .brand-logo-word {
  font-size: 1em;
  line-height: 1.08;
  padding-bottom: 0.08em;
}

.hero-tagline {
  position: absolute;
  z-index: 5;
  top: calc(50% + clamp(10.4rem, 15.2vw, 13.3rem));
  left: clamp(1rem, 2.2vw, 2.7rem);
  margin: 0;
  color: rgba(247, 251, 255, 0.78);
  font-size: clamp(1rem, 2.25vw, 1.8rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.8;
  text-align: left;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transform: translateY(0.75rem);
  animation: hero-tagline-in 720ms ease 1.25s forwards;
}

.hero-tagline span {
  display: block;
}

.hero-brand-lockup::after {
  position: absolute;
  inset: 13% 9%;
  z-index: -1;
  content: "";
  border-radius: 999rem;
  background: rgba(255, 255, 255, 0.15);
  filter: blur(2rem);
  opacity: 0;
  animation: hero-logo-aura 900ms ease 1.25s forwards;
}

.intro-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.7fr 2fr 0.7fr;
  gap: clamp(1rem, 4vw, 4rem);
  padding: 5rem clamp(1rem, 3vw, 2.5rem);
  border-top: 1px solid rgba(2, 16, 47, 0.12);
  border-bottom: 1px solid rgba(2, 16, 47, 0.1);
  color: var(--deep);
  background: var(--white);
}

.intro-grid::before,
.upcoming-access::before,
.feature-board::before,
.closing-ape::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(247, 251, 255, 0.22), transparent 18%, transparent 76%, rgba(247, 251, 255, 0.12)),
    radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.16), transparent 24rem);
  opacity: 0.72;
}

.intro-grid > *,
.upcoming-access > *,
.feature-board > *,
.closing-ape > * {
  position: relative;
  z-index: 1;
}

.tiny {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.intro-grid p:not(.tiny),
.intro-grid a {
  margin: 0;
  max-width: 56rem;
  font-size: clamp(1.15rem, 2.3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.03;
}

.intro-grid a {
  color: var(--blue);
}

.upcoming-access {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(22rem, 1.22fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: start;
  padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 3vw, 2.5rem);
  border-top: 1px solid rgba(2, 16, 47, 0.1);
  color: var(--deep);
  background:
    radial-gradient(circle at 86% 20%, rgba(7, 87, 255, 0.18), transparent 26rem),
    linear-gradient(180deg, var(--white) 0%, #eaf2ff 100%);
  overflow: hidden;
}

.upcoming-copy {
  display: grid;
  gap: 1rem;
  max-width: 44rem;
}

.upcoming-copy h2 {
  font-size: clamp(3.3rem, 8vw, 8.4rem);
  line-height: 0.82;
}

.upcoming-copy p:not(.tiny) {
  margin: 0;
  color: rgba(2, 16, 47, 0.72);
  font-size: clamp(1.1rem, 1.7vw, 1.55rem);
  font-weight: 800;
  line-height: 1.08;
}

.upcoming-panel {
  display: grid;
  gap: 1rem;
}

.upcoming-signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.upcoming-signals article,
.upcoming-form {
  border: 1px solid rgba(2, 16, 47, 0.16);
  background: rgba(247, 251, 255, 0.66);
  box-shadow: 0 2rem 5rem rgba(2, 16, 47, 0.08);
  backdrop-filter: blur(14px);
}

.upcoming-signals article {
  min-height: 14rem;
  padding: 1.1rem;
}

.upcoming-signals span {
  display: block;
  margin-bottom: 2.4rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.upcoming-signals h3 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2vw, 2.15rem);
  line-height: 0.88;
  text-transform: uppercase;
}

.upcoming-signals p {
  margin: 0;
  color: rgba(2, 16, 47, 0.64);
  font-weight: 800;
  line-height: 1.08;
}

.upcoming-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.upcoming-form label {
  display: grid;
  gap: 0.45rem;
}

.upcoming-form span {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.upcoming-form input,
.upcoming-form select,
.upcoming-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(2, 16, 47, 0.18);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.72);
  color: var(--deep);
  font: inherit;
  font-weight: 800;
  padding: 0.9rem 1rem;
  outline: none;
}

.upcoming-form input:focus,
.upcoming-form select:focus,
.upcoming-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 0.2rem rgba(7, 87, 255, 0.14);
}

.upcoming-form textarea {
  min-height: 8.8rem;
  resize: vertical;
}

.upcoming-form-full,
.upcoming-form button {
  grid-column: 1 / -1;
}

.upcoming-form button {
  border: 0;
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 1.05rem 1.2rem;
  text-transform: uppercase;
}

.app-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
  min-height: 95svh;
  padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 3vw, 2.5rem);
  background: var(--blue);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

.app-showcase::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(247, 251, 255, 0.2), transparent 20%, transparent 74%, rgba(247, 251, 255, 0.18)),
    radial-gradient(circle at 18% 82%, rgba(247, 251, 255, 0.16), transparent 28rem);
  opacity: 0.78;
  mix-blend-mode: screen;
}

.app-showcase.reverse {
  background:
    radial-gradient(circle at 78% 50%, rgba(255, 92, 0, 0.4), transparent 28rem),
    #113fae;
}

.kindme-showcase {
  background: #050507;
}

.doserite-showcase {
  background:
    radial-gradient(circle at 82% 18%, rgba(121, 226, 195, 0.38), transparent 28rem),
    radial-gradient(circle at 8% 86%, rgba(7, 87, 255, 0.28), transparent 30rem),
    #071e28;
}

.app-showcase.reverse .showcase-copy {
  order: 2;
}

.showcase-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.3rem;
  align-content: center;
}

.showcase-copy h2,
.board-heading h2,
.closing-ape h2 {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: clamp(4rem, 8vw, 7.8rem);
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
}

.showcase-copy p:not(.tiny) {
  margin: 0;
  max-width: 48rem;
  font-size: clamp(1.25rem, 2.25vw, 2.35rem);
  font-weight: 800;
  line-height: 1;
}

.showcase-copy .app-status {
  width: max-content;
  max-width: 100%;
  padding: 0.8rem 1rem;
  border: 0.18rem solid rgba(247, 251, 255, 0.72);
  background: rgba(247, 251, 255, 0.1);
  color: var(--white);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1;
  text-transform: uppercase;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.store-links a {
  display: inline-flex;
  align-items: center;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  border: 0.18rem solid var(--white);
  background: var(--white);
  color: var(--deep);
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: translate 160ms ease, background 160ms ease, color 160ms ease;
}

.store-links a:hover {
  background: transparent;
  color: var(--white);
  translate: 0 -0.18rem;
}

.phone-stack {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
}

.kindme-wave-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.82;
  pointer-events: none;
}

.kindme-showcase::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 50%, rgba(7, 87, 255, 0.26), transparent 30rem),
    linear-gradient(90deg, rgba(7, 87, 255, 0.08), rgba(2, 16, 47, 0.58));
}

.nook-egg-field {
  position: absolute;
  z-index: 0;
  right: max(-16rem, -16vw);
  bottom: max(-20rem, -24vw);
  width: min(54rem, 76vw);
  opacity: 0.34;
  pointer-events: none;
  filter: blur(0.1rem) saturate(1.28);
  animation: nook-egg-orbit 18s linear infinite;
}

.nook-egg-field img {
  width: 100%;
  height: auto;
  border-radius: 999rem;
  box-shadow: 0 3rem 7rem rgba(255, 92, 0, 0.28);
}

.doserite-icon-field {
  position: absolute;
  z-index: 0;
  left: max(-12rem, -10vw);
  bottom: max(-14rem, -16vw);
  width: min(44rem, 68vw);
  opacity: 0.18;
  pointer-events: none;
  filter: blur(0.06rem) saturate(1.18);
}

.doserite-icon-field img {
  width: 100%;
  height: auto;
  border-radius: 26%;
  box-shadow: 0 3rem 7rem rgba(121, 226, 195, 0.22);
}

.doserite-pill-animation {
  position: absolute;
  z-index: 1;
  left: clamp(1rem, 4vw, 4rem);
  bottom: clamp(4rem, 8vw, 7rem);
  width: clamp(13rem, 24vw, 20rem);
  height: clamp(13rem, 26vw, 22rem);
  overflow: hidden;
  pointer-events: none;
  opacity: 0.62;
  mix-blend-mode: screen;
}

.pill-bottle {
  position: absolute;
  right: 0.6rem;
  bottom: 0.8rem;
  width: clamp(5.6rem, 11vw, 8.6rem);
  height: clamp(8.8rem, 17vw, 12.8rem);
  border: 0.24rem solid rgba(247, 251, 255, 0.42);
  border-radius: 1.4rem 1.4rem 2.2rem 2.2rem;
  background:
    linear-gradient(180deg, rgba(247, 251, 255, 0.16), rgba(121, 226, 195, 0.08)),
    radial-gradient(circle at 50% 84%, rgba(121, 226, 195, 0.32), transparent 58%);
  box-shadow:
    inset 0 0 2.5rem rgba(247, 251, 255, 0.12),
    0 2rem 5rem rgba(1, 10, 34, 0.32);
}

.pill-bottle::before {
  position: absolute;
  left: 50%;
  top: -2.2rem;
  width: 44%;
  height: 2.2rem;
  content: "";
  border: 0.24rem solid rgba(247, 251, 255, 0.42);
  border-bottom: 0;
  border-radius: 1rem 1rem 0 0;
  background: rgba(247, 251, 255, 0.08);
  transform: translateX(-50%);
}

.pill-bottle span {
  position: absolute;
  bottom: 1rem;
  width: 1.8rem;
  height: 0.72rem;
  border-radius: 999rem;
  background: linear-gradient(90deg, #f7fbff 0 50%, #79e2c3 50% 100%);
  box-shadow: 0 0.5rem 1.2rem rgba(1, 10, 34, 0.22);
}

.pill-bottle span:nth-child(1) {
  left: 18%;
  rotate: -16deg;
}

.pill-bottle span:nth-child(2) {
  left: 44%;
  bottom: 1.9rem;
  rotate: 12deg;
}

.pill-bottle span:nth-child(3) {
  right: 15%;
  rotate: -2deg;
}

.falling-pill {
  --start-x: 6%;
  --start-y: 8%;
  --end-x: calc(100% - 5rem);
  --end-y: calc(100% - 7.8rem);
  position: absolute;
  left: var(--start-x);
  top: var(--start-y);
  width: clamp(1.2rem, 2vw, 2rem);
  height: clamp(0.5rem, 0.85vw, 0.8rem);
  border-radius: 999rem;
  background: linear-gradient(90deg, #f7fbff 0 50%, #79e2c3 50% 100%);
  box-shadow:
    0 0.9rem 1.8rem rgba(1, 10, 34, 0.2),
    0 0 1.2rem rgba(121, 226, 195, 0.24);
  animation: pill-drop 8s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.falling-pill-2 {
  --start-x: 34%;
  --start-y: 2%;
  --end-x: calc(100% - 4.1rem);
  --end-y: calc(100% - 8.6rem);
  animation-delay: -1s;
}

.falling-pill-3 {
  --start-x: 0%;
  --start-y: 36%;
  --end-x: calc(100% - 5.4rem);
  --end-y: calc(100% - 6.8rem);
  animation-delay: -2s;
}

.falling-pill-4 {
  --start-x: 48%;
  --start-y: 18%;
  --end-x: calc(100% - 3.8rem);
  --end-y: calc(100% - 7.4rem);
  animation-delay: -3s;
}

.falling-pill-5 {
  --start-x: 15%;
  --start-y: 60%;
  --end-x: calc(100% - 4.9rem);
  --end-y: calc(100% - 6.2rem);
  animation-delay: -4s;
}

.falling-pill-6 {
  --start-x: 58%;
  --start-y: 0%;
  --end-x: calc(100% - 4rem);
  --end-y: calc(100% - 8.1rem);
  animation-delay: -5s;
}

.falling-pill-7 {
  --start-x: 34%;
  --start-y: 72%;
  --end-x: calc(100% - 5.3rem);
  --end-y: calc(100% - 5.9rem);
  animation-delay: -6s;
}

.falling-pill-8 {
  --start-x: 2%;
  --start-y: 22%;
  --end-x: calc(100% - 4.5rem);
  --end-y: calc(100% - 7.7rem);
  animation-delay: -7s;
}

.nook-import-flow {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.52;
  mix-blend-mode: screen;
}

.import-phone-shell {
  position: absolute;
  right: clamp(2rem, 12vw, 12rem);
  top: clamp(4rem, 14vw, 11rem);
  width: clamp(6.5rem, 12vw, 10rem);
  aspect-ratio: 0.5;
  border: 0.22rem solid rgba(247, 251, 255, 0.52);
  border-radius: 1.8rem;
  background:
    linear-gradient(180deg, rgba(247, 251, 255, 0.18), transparent 20%),
    rgba(2, 16, 47, 0.42);
  box-shadow:
    0 0 4rem rgba(255, 92, 0, 0.24),
    inset 0 0 2.4rem rgba(247, 251, 255, 0.08);
  transform: rotate(6deg);
}

.import-phone-notch {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  width: 40%;
  height: 0.62rem;
  border-radius: 999rem;
  background: rgba(2, 16, 47, 0.8);
  transform: translateX(-50%);
}

.import-phone-screen {
  display: grid;
  gap: 0.42rem;
  padding: 2.5rem 0.75rem 0.75rem;
}

.import-phone-screen > span {
  color: rgba(247, 251, 255, 0.84);
  font-size: 0.72rem;
  font-weight: 800;
}

.import-phone-screen > span span {
  color: #ff5c00;
}

.import-phone-screen i {
  display: block;
  height: 2.15rem;
  border-radius: 0.58rem;
  background:
    linear-gradient(90deg, rgba(255, 92, 0, 0.9) 0 1rem, transparent 1rem),
    linear-gradient(180deg, rgba(247, 251, 255, 0.28), rgba(247, 251, 255, 0.08));
  opacity: 0;
  animation: phone-recipe-land 8s ease-in-out infinite;
}

.import-phone-screen i:nth-child(3) {
  animation-delay: 1.7s;
}

.import-phone-screen i:nth-child(4) {
  animation-delay: 3.35s;
}

.recipe-web-card {
  --from-x: 0rem;
  --from-y: 0rem;
  --mid-x: 0rem;
  --mid-y: 0rem;
  --to-x: 0rem;
  --to-y: 0rem;
  --from-r: -8deg;
  position: absolute;
  left: 12%;
  top: 20%;
  width: clamp(6.4rem, 11vw, 9.5rem);
  min-height: 6.2rem;
  padding: 0.62rem;
  border: 1px solid rgba(247, 251, 255, 0.28);
  border-radius: 0.9rem;
  background: rgba(247, 251, 255, 0.12);
  box-shadow: 0 1.2rem 4rem rgba(1, 10, 34, 0.24);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform-origin: 50% 50%;
  animation: recipe-card-import 8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.flow-card-1 {
  --from-x: -7rem;
  --from-y: -1rem;
  --mid-x: 22vw;
  --mid-y: 4rem;
  --to-x: 58vw;
  --to-y: 6rem;
}

.flow-card-2 {
  --from-x: 2rem;
  --from-y: 17rem;
  --mid-x: 28vw;
  --mid-y: 10rem;
  --to-x: 60vw;
  --to-y: 8rem;
  --from-r: 9deg;
  animation-delay: 1.7s;
}

.flow-card-3 {
  --from-x: -10rem;
  --from-y: 31rem;
  --mid-x: 20vw;
  --mid-y: 19rem;
  --to-x: 57vw;
  --to-y: 10rem;
  --from-r: -13deg;
  animation-delay: 3.35s;
}

.flow-card-4 {
  --from-x: 6rem;
  --from-y: 4rem;
  --mid-x: 18vw;
  --mid-y: -1rem;
  --to-x: 55vw;
  --to-y: 5rem;
  --from-r: 7deg;
  animation-delay: 5s;
}

.web-card-chrome {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.45rem;
}

.web-card-chrome span {
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 999rem;
  background: rgba(247, 251, 255, 0.7);
}

.web-card-image {
  height: 2.7rem;
  border-radius: 0.62rem;
  background:
    radial-gradient(circle at 25% 35%, rgba(255, 220, 61, 0.8), transparent 1.3rem),
    radial-gradient(circle at 68% 58%, rgba(255, 92, 0, 0.82), transparent 1.8rem),
    linear-gradient(135deg, rgba(247, 251, 255, 0.55), rgba(247, 251, 255, 0.12));
}

.recipe-web-card p,
.recipe-web-card small {
  display: block;
  margin: 0.48rem 0 0;
  color: rgba(247, 251, 255, 0.88);
  font-weight: 900;
  line-height: 0.95;
}

.recipe-web-card small {
  color: rgba(247, 251, 255, 0.58);
  font-size: 0.64rem;
  text-transform: uppercase;
}

.phone-stack img,
.detail-card img {
  width: 100%;
  border: 0.42rem solid rgba(247, 251, 255, 0.95);
  border-radius: 2rem;
  box-shadow: 0 2rem 5rem rgba(1, 10, 34, 0.34);
  object-fit: cover;
  object-position: top;
}

.phone-stack img:nth-child(2) {
  transform: translateY(4rem);
}

.phone-stack img {
  animation: float-phone 7s ease-in-out infinite;
}

.phone-stack img:nth-child(2) {
  animation-delay: -2.6s;
}

.feature-board {
  position: relative;
  scroll-margin-top: 6rem;
  padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 3vw, 2.5rem);
  background: var(--deep);
  overflow: hidden;
}

.feature-board-kindme {
  background:
    radial-gradient(circle at 78% 10%, rgba(74, 168, 255, 0.18), transparent 28rem),
    var(--deep);
}

.feature-board-nook {
  background:
    radial-gradient(circle at 14% 14%, rgba(255, 92, 0, 0.24), transparent 28rem),
    #061535;
}

.feature-board-doserite {
  background:
    radial-gradient(circle at 82% 12%, rgba(121, 226, 195, 0.2), transparent 30rem),
    #041a24;
}

.board-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: 3rem;
}

.board-heading h2 {
  max-width: 74rem;
  font-size: clamp(3.4rem, 10vw, 9rem);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.detail-card {
  display: grid;
  grid-template-columns: minmax(10rem, 0.58fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-content: start;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(247, 251, 255, 0.06);
}

.detail-card img {
  aspect-ratio: 330 / 520;
  max-height: 25rem;
  border-radius: 1.35rem;
}

.detail-card h3 {
  margin: 0.4rem 0 0.7rem;
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.detail-card p:not(.tiny) {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.18;
}

.nook-card {
  background: rgba(255, 220, 61, 0.1);
}

.doserite-card {
  background: rgba(121, 226, 195, 0.08);
}

.closing-ape {
  position: relative;
  min-height: 72svh;
  padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 3vw, 2.5rem);
  background: var(--blue);
  overflow: hidden;
}

.closing-logo {
  --logo-thickness: clamp(0.24rem, 0.52vw, 0.38rem);
  --size-inner: calc(var(--logo-thickness) * 3);
  --size-middle: calc(var(--logo-thickness) * 7);
  --size-outer: calc(var(--logo-thickness) * 11);
  width: max-content;
  margin-bottom: 2rem;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: clamp(1.1rem, 3vw, 2rem);
}

.closing-logo .brand-logo-mark {
  margin-bottom: 0.3rem;
}

.closing-logo .brand-logo-word {
  font-size: 1.15em;
}

.closing-ape h2 {
  max-width: 76rem;
  font-size: clamp(4rem, 12vw, 12rem);
}

.closing-ape p,
.closing-ape a {
  display: block;
  max-width: 42rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 800;
  line-height: 1.12;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  padding: 2rem clamp(1rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
  background: var(--deep);
}

.footer-brand {
  font-family: var(--font-brand);
  font-weight: 900;
}

.site-footer p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-weight: 700;
}

.site-footer .footer-copyright {
  margin-top: 1.2rem;
  color: rgba(247, 251, 255, 0.52);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: start;
  font-weight: 800;
}

.legal-page {
  min-height: 80svh;
  padding: 6rem clamp(1rem, 3vw, 2.5rem);
  background: var(--blue);
}

.legal-page h1 {
  margin: 0 0 2rem;
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: clamp(4rem, 14vw, 13rem);
  line-height: 0.8;
  text-transform: uppercase;
}

.legal-page h2 {
  margin: 2rem 0 0.7rem;
  font-family: var(--font-brand);
  font-weight: 900;
  text-transform: uppercase;
}

.legal-page p {
  max-width: 52rem;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.2;
}

.legal-back {
  display: inline-block;
  margin-bottom: 2rem;
  font-weight: 800;
}

.login-page {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: clamp(1rem, 4vw, 4rem);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 220, 61, 0.22), transparent 18rem),
    radial-gradient(circle at 88% 18%, rgba(247, 251, 255, 0.16), transparent 22rem),
    linear-gradient(135deg, #0757ff 0%, #063aa3 46%, #02102f 100%);
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(18rem, 28rem) minmax(16rem, 24rem);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: center;
  max-width: 68rem;
  width: 100%;
  margin: 0 auto;
  padding-block: 1rem;
}

.admin-login-shell {
  grid-template-columns: minmax(20rem, 34rem);
  justify-content: center;
}

.login-panel,
.login-context {
  border: 1px solid rgba(247, 251, 255, 0.3);
  backdrop-filter: blur(18px);
}

.login-panel {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: clamp(1.1rem, 2.5vw, 1.65rem);
  background: rgba(247, 251, 255, 0.94);
  box-shadow: 0 2rem 5rem rgba(2, 16, 47, 0.24);
  color: var(--deep);
}

.login-brand {
  display: inline-flex;
  width: max-content;
  text-decoration: none;
}

.login-brand .brand-logo {
  --logo-thickness: 3px;
  --size-inner: 8px;
  --size-middle: 18px;
  --size-outer: 28px;
  gap: 0.28rem;
  color: var(--deep);
}

.login-brand .brand-logo-word {
  font-size: 0.92rem;
}

.login-heading {
  display: grid;
  gap: 0.65rem;
}

.login-heading h1,
.login-context h2 {
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
}

.login-heading h1 {
  max-width: 12ch;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 0.88;
}

.login-heading p:not(.tiny) {
  max-width: 25rem;
  margin: 0;
  color: rgba(2, 16, 47, 0.68);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.15;
}

.login-form {
  display: grid;
  gap: 0.72rem;
}

.login-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(2, 16, 47, 0.16);
  background: rgba(255, 255, 255, 0.66);
}

.login-mode-switch button {
  min-height: 2.8rem;
  border: 0;
  background: transparent;
  color: rgba(2, 16, 47, 0.58);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-transform: uppercase;
}

.login-mode-switch button.active {
  background: var(--deep);
  color: var(--white);
}

.login-form label:not(.login-check) {
  display: grid;
  gap: 0.45rem;
}

.login-form label:not(.login-check) span,
.login-check span,
.login-links,
.login-status {
  font-weight: 900;
}

.login-form label:not(.login-check) span {
  font-size: 0.78rem;
  text-transform: uppercase;
}

.login-form input[type="email"],
.login-form input[type="password"],
.login-form input[type="text"] {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(2, 16, 47, 0.16);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--deep);
  font: inherit;
  font-weight: 800;
  padding: 0.72rem 0.9rem;
  outline: none;
}

.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus,
.login-form input[type="text"]:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 0.22rem rgba(255, 220, 61, 0.2);
}

.login-checks {
  display: grid;
  gap: 0.48rem;
  padding: 0.2rem 0;
}

.login-check {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  color: rgba(2, 16, 47, 0.68);
  line-height: 1.08;
}

.login-check input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.05rem 0 0;
  accent-color: var(--yellow);
}

.login-form button {
  min-height: 3rem;
  border: 0;
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0.9rem 1rem;
  text-transform: uppercase;
}

.login-form button:hover,
.login-form button:focus-visible {
  background: #0048d8;
}

.login-form .login-mode-switch button {
  min-height: 2.8rem;
  padding: 0.7rem 0.5rem;
  background: transparent;
  color: rgba(2, 16, 47, 0.58);
}

.login-form .login-mode-switch button.active,
.login-form .login-mode-switch button.active:hover,
.login-form .login-mode-switch button.active:focus-visible {
  background: var(--deep);
  color: var(--white);
}

.login-status {
  margin: 0;
  color: rgba(2, 16, 47, 0.72);
}

.login-status-error {
  color: #b00020;
}

.login-status-success {
  color: #ffdc3d;
}

.login-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(2, 16, 47, 0.72);
}

.login-context {
  display: grid;
  align-content: center;
  gap: clamp(1.2rem, 3vw, 2rem);
  padding: clamp(0.5rem, 2vw, 1rem);
  border-color: transparent;
  background: transparent;
  overflow: hidden;
}

.login-context h2 {
  max-width: 14ch;
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  line-height: 0.92;
}

.login-note-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.login-note-list article {
  min-height: auto;
  padding: 1rem;
  border: 1px solid rgba(247, 251, 255, 0.24);
  background: rgba(2, 16, 47, 0.2);
}

.login-note-list span {
  display: block;
  margin-bottom: 1.6rem;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
}

.login-note-list p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.08;
}

@media (max-width: 920px) {
  .top-nav {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .top-nav nav {
    justify-content: start;
    flex-wrap: wrap;
    gap: 0.9rem 1.2rem;
    font-size: 0.92rem;
  }

  .ape-hero {
    min-height: 44rem;
  }

  .hero-brand-lockup {
    width: 160vw;
  }

  .hero-tagline {
    top: calc(50% + 11.7rem);
    left: clamp(0.5rem, 4vw, 1.6rem);
    font-size: clamp(1.15rem, 7vw, 2.55rem);
  }

  .intro-grid,
  .upcoming-access,
  .upcoming-signals,
  .app-showcase,
  .detail-grid,
  .detail-card,
  .login-shell,
  .login-note-list,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .app-showcase.reverse .showcase-copy {
    order: initial;
  }

  .phone-stack img:nth-child(2) {
    transform: translateY(1.5rem);
  }

  .doserite-pill-animation {
    z-index: 3;
    left: clamp(0.9rem, 3vw, 1.5rem);
    bottom: clamp(3rem, 10vw, 5rem);
    opacity: 0.44;
  }

  .upcoming-form {
    grid-template-columns: 1fr;
  }

  .login-shell {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .login-context {
    display: none;
  }

  .ape-hero {
    min-height: 42rem;
  }

  .hero-brand-lockup {
    width: 174vw;
  }

  .hero-brand-logo {
    font-size: clamp(3.2rem, 14vw, 4.5rem);
  }

  .hero-tagline {
    top: calc(50% + 8.8rem);
    font-size: clamp(0.9rem, 7.2vw, 1.9rem);
  }

  .phone-stack {
    grid-template-columns: 1fr;
  }

  .phone-stack img:nth-child(2) {
    transform: none;
  }

  .showcase-copy h2,
  .upcoming-copy h2,
  .board-heading h2,
  .closing-ape h2 {
    font-size: clamp(3.1rem, 16vw, 5rem);
  }

  .upcoming-signals article {
    min-height: auto;
  }
}

@keyframes hero-logo-write {
  0% {
    clip-path: inset(-22% 100% -42% 0);
    opacity: 0.72;
    scale: 0.98;
  }

  100% {
    clip-path: inset(-22% 0 -42% 0);
    opacity: 1;
    scale: 1;
  }
}

@keyframes hero-logo-pulse {
  0%,
  100% {
    scale: 1;
  }

  45% {
    scale: 1.035;
  }
}

@keyframes hero-logo-aura {
  to {
    opacity: 1;
  }
}

@keyframes hero-tagline-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nook-egg-orbit {
  0% {
    rotate: -10deg;
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    rotate: 11deg;
    transform: translate3d(-2rem, -1rem, 0) scale(1.04);
  }

  100% {
    rotate: 350deg;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes recipe-card-import {
  0% {
    opacity: 0;
    transform: translate3d(var(--from-x), var(--from-y), 0) rotate(var(--from-r)) scale(0.92);
  }

  12% {
    opacity: 0.62;
  }

  48% {
    opacity: 0.58;
    transform: translate3d(var(--mid-x), var(--mid-y), 0) rotate(-2deg) scale(0.78);
  }

  76% {
    opacity: 0.34;
    transform: translate3d(var(--to-x), var(--to-y), 0) rotate(5deg) scale(0.34);
  }

  88%,
  100% {
    opacity: 0;
    transform: translate3d(var(--to-x), var(--to-y), 0) rotate(5deg) scale(0.18);
  }
}

@keyframes phone-recipe-land {
  0%,
  48% {
    opacity: 0;
    transform: translateY(-0.4rem);
  }

  58%,
  82% {
    opacity: 0.82;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(0.3rem);
  }
}

@keyframes pill-drop {
  0% {
    opacity: 0;
    left: var(--start-x);
    top: var(--start-y);
    transform: translate3d(0, 0, 0) rotate(-26deg) scale(0.82);
  }

  12% {
    opacity: 0.78;
  }

  68% {
    opacity: 0.78;
    left: var(--end-x);
    top: var(--end-y);
    transform: translate3d(0, 0, 0) rotate(24deg) scale(1);
  }

  78%,
  100% {
    opacity: 0;
    left: var(--end-x);
    top: calc(var(--end-y) + 2.2rem);
    transform: translate3d(0, 0, 0) rotate(82deg) scale(0.42);
  }
}

@keyframes float-phone {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ape-hero,
  .hero-brand-lockup,
  .hero-tagline,
  .hero-orb-canvas,
  .nook-egg-field,
  .falling-pill,
  .recipe-web-card,
  .import-phone-screen i,
  .ape-hero::after {
    animation: none;
    transform: none;
  }

  .ape-hero::after {
    opacity: 1;
  }

  .hero-brand-lockup {
    clip-path: inset(-22% 0 -42% 0);
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  .hero-tagline {
    opacity: 1;
    transform: none;
  }

  .phone-stack img {
    animation: none;
  }
}
