:root {
  --ink: #17192b;
  --ink-2: #565b73;
  --line: rgba(23, 25, 43, 0.14);
  --coral: #ff5a36;
  --magenta: #c42fa8;
  --green: #55d68a;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.7s ease;
}

.orb {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #fff url("/assets/images/landing/orb.webp?v=2") 100% 50% / cover no-repeat;
  animation: orb-drift 18s ease-in-out infinite alternate;
  will-change: transform;
}
/* Live liquid layer (added by landing.js) */
.orb-gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.orb.gl-on { animation: none; }
.orb.gl-on .orb-gl { opacity: 1; }

@keyframes orb-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-1.2%, 1.6%, 0) scale(1.04); }
}

.landing {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px clamp(24px, 8vw, 120px);
  max-width: 760px;
}

.greeting {
  margin: 0 0 14px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 500;
  color: var(--ink-2);
}

h1 {
  margin: 0 0 38px;
  font-family: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 6.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(100%, 440px);
}

.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border: 1.5px solid #111320;
  border-radius: 999px;
  background: #111320;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 16px 30px -18px rgba(17, 19, 32, 0.7);
  transition: transform 0.35s var(--ease), background 0.5s, border-color 0.5s, color 0.5s, box-shadow 0.5s var(--ease);
}

.choice-dot {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transition: transform 0.35s var(--ease);
}
.dot-coral { background: var(--coral); }
.dot-magenta { background: var(--magenta); }
.dot-green { background: var(--green); }

.choice-label { flex: 1; }
.choice-arrow { font-size: 1.25rem; transition: transform 0.35s var(--ease); }

.choice:hover,
.choice:focus-visible {
  transform: translateX(6px);
  background: #272b45;
  border-color: #272b45;
  box-shadow: 0 20px 34px -18px rgba(17, 19, 32, 0.85);
}
.choice:hover .choice-dot,
.choice:focus-visible .choice-dot { transform: scale(1.35); }
.choice:hover .choice-arrow,
.choice:focus-visible .choice-arrow { transform: translateX(4px); }
.choice:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.choice:active { transform: translateX(6px) scale(0.985); }

/* Dark state: hovering or focusing the buttons turns the page dark and the buttons bright */
.greeting, h1 { transition: color 0.6s ease; }
.orb { transition: background-color 0.7s ease; }
.orb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000 url("/assets/images/landing/orb-dark.webp?v=2") 100% 50% / cover no-repeat;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.orb.gl-on::after { display: none; }

body.is-dark { background: #000; }
body.gl-bg { transition: none; }
.is-dark .orb { background-color: #000; }
.is-dark .orb::after { opacity: 1; }
.is-dark .greeting { color: rgba(255, 255, 255, 0.72); }
.is-dark h1 { color: #fff; }

.choice:nth-child(1) { --glow: 255, 90, 54; }
.choice:nth-child(2) { --glow: 214, 58, 190; }
.choice:nth-child(3) { --glow: 85, 214, 138; }

.is-dark .choice {
  background: #fff;
  border-color: #fff;
  color: #111320;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 18px 40px -18px rgba(255, 255, 255, 0.45);
}
.is-dark .choice:hover,
.is-dark .choice:focus-visible {
  background: #fff;
  border-color: #fff;
  color: #111320;
  box-shadow: 0 0 0 1px rgba(var(--glow), 0.9), 0 0 38px 6px rgba(var(--glow), 0.55), 0 22px 44px -16px rgba(var(--glow), 0.7);
}

/* Entrance */
.greeting, h1, .choice {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) forwards;
}
.greeting { animation-delay: 0.1s; }
h1 { animation-delay: 0.22s; }
.choice:nth-child(1) { animation-delay: 0.38s; }
.choice:nth-child(2) { animation-delay: 0.48s; }
.choice:nth-child(3) { animation-delay: 0.58s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Phones and tall screens: text on top, orb underneath */
@media (max-width: 760px), (max-aspect-ratio: 1/1) {
  .orb {
    inset: auto 0 0 0;
    height: 60vh;
    height: 60svh;
    background-size: auto 100%;
    background-position: 84% 50%;
  }
  .orb::after {
    background-size: auto 100%;
    background-position: 84% 50%;
  }
  .landing {
    justify-content: flex-start;
    padding-top: clamp(56px, 12svh, 120px);
    padding-bottom: 40px;
  }
  .choices { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  .greeting, h1, .choice { opacity: 1; transform: none; animation: none; }
  .choice, .choice-dot, .choice-arrow { transition: none; }
}
