/* Phoenix AI — splash */
:root {
  --ink: #090909;
  --cream: #F8F4E9;
  --cream-muted: #c8c0b4;
  --purple: #6B4FC8;
  --blue: #4A7FD4;
  --sky: #5A9FD8;
  --wine: #A81830;
  --wine-deep: #480818;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body {
  min-height: 100%;
  background: var(--ink);
  color: var(--cream);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
}

/* ── WebGL stage ── */
#stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#stage canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Atmospheric vignette over WebGL */
.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 50% 42%, transparent 0%, rgba(9, 9, 9, 0.15) 55%, rgba(9, 9, 9, 0.72) 100%),
    linear-gradient(180deg, rgba(9, 9, 9, 0.55) 0%, transparent 22%, transparent 58%, rgba(9, 9, 9, 0.88) 100%);
}

/* ── UI shell ── */
.shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.shell a,
.shell button,
.shell input,
.shell textarea,
.shell label {
  pointer-events: auto;
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem clamp(1.25rem, 3vw, 2.5rem);
  opacity: 0;
  animation: rise-in 1.1s var(--ease-out) 0.35s forwards;
}

.topbar__mark {
  width: 36px;
  height: 36px;
  display: block;
}

.topbar__domain {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-muted);
  opacity: 0.7;
}

.topbar__domain span {
  color: var(--sky);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: none;
  font-size: 0.85rem;
  opacity: 1;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  flex: 1 0 auto;
  min-height: calc(100vh - 7rem);
  min-height: calc(100dvh - 7rem);
  padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 8vh, 5rem);
  gap: 0;
}

.hero__lockup {
  width: min(92vw, 34rem);
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 40px rgba(74, 40, 160, 0.35));
  opacity: 0;
  transform: translateY(28px);
  animation: rise-in 1.25s var(--ease-out) 0.55s forwards;
}

.hero__line {
  margin-top: 1.35rem;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--cream-muted);
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(20px);
  animation: rise-in 1.15s var(--ease-out) 0.85s forwards;
}

.hero__cta {
  margin-top: 2.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.85rem;
  border: 1px solid color-mix(in srgb, var(--purple) 55%, transparent);
  border-radius: 999px;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--purple) 32%, transparent),
      color-mix(in srgb, var(--blue) 22%, transparent));
  color: var(--cream);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--sky) 18%, transparent),
    0 18px 48px rgba(74, 127, 212, 0.18),
    inset 0 1px 0 rgba(248, 244, 233, 0.12);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 1.1s var(--ease-out) 1.1s forwards;
}

.hero__cta:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--sky) 70%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--sky) 28%, transparent),
    0 22px 56px rgba(107, 79, 200, 0.28),
    inset 0 1px 0 rgba(248, 244, 233, 0.18);
}

.hero__cta:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
}

.hero__cta-arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease-out);
}

.hero__cta:hover .hero__cta-arrow {
  transform: translateX(3px);
}

.hero__soon {
  margin-top: 1.1rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-muted);
  opacity: 0;
  animation: fade-in 1.2s ease 1.35s forwards;
}

/* Footer */
.foot {
  padding: 1.25rem clamp(1.25rem, 3vw, 2.5rem) 1.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-muted);
  opacity: 0;
  animation: fade-in 1.2s ease 1.5s forwards;
}

.foot__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--wine);
  opacity: 0.8;
}


/* Connect */
.connect {
  width: min(100% - 2.5rem, 28rem);
  margin: 0 auto 3.5rem;
  padding: 2rem 0 1rem;
  pointer-events: auto;
  scroll-margin-top: 2rem;
}

.connect__label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.65rem;
}

.connect__title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.connect__lead {
  color: var(--cream-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.connect__form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.connect__form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cream-muted);
}

.connect__form input,
.connect__form textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--purple) 35%, transparent);
  background: rgba(18, 14, 28, 0.72);
  color: var(--cream);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 400;
}

.connect__form input:focus-visible,
.connect__form textarea:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

.connect__submit {
  margin-top: 0.35rem;
  align-self: flex-start;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--purple) 55%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--purple) 40%, transparent), color-mix(in srgb, var(--blue) 28%, transparent));
  color: var(--cream);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.connect__sent {
  text-align: left;
  padding: 1rem 0;
}

.connect__sent h2 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.connect__sent p {
  color: var(--cream-muted);
}

.honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__lockup,
  .hero__line,
  .hero__cta,
  .topbar,
  .hero__soon,
  .foot {
    opacity: 1;
    transform: none;
  }
}

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

@keyframes fade-in {
  to { opacity: 0.55; }
}

@media (max-width: 640px) {
  .hero {
    justify-content: flex-end;
    padding-bottom: 3.5rem;
  }
  .hero__lockup {
    width: min(88vw, 22rem);
  }
}
