:root {
  --ink: #07060c;
  --ink-soft: #100e18;
  --fog: #c9c2d8;
  --mist: #8f869f;
  --paper: #f4f0fa;
  --brand: #7b3dff;
  --brand-hot: #a078ff;
  --brand-deep: #4a1fb8;
  --line: rgba(255, 255, 255, 0.1);
  --ok: #6ee7a8;
  --err: #ff8a9b;
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--paper);
  background: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

/* Atmosphere */
.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(123, 61, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(74, 31, 184, 0.18), transparent 50%),
    linear-gradient(180deg, #0c0a14 0%, var(--ink) 45%, #05040a 100%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: drift 14s var(--ease) infinite alternate;
}

.glow-a {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(123, 61, 255, 0.35);
}

.glow-b {
  width: min(36vw, 280px);
  height: min(36vw, 280px);
  bottom: 10%;
  right: 8%;
  background: rgba(160, 120, 255, 0.18);
  animation-delay: -4s;
}

.grid {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent 75%);
}

@keyframes drift {
  from { transform: translateX(-50%) translateY(0); }
  to { transform: translateX(-46%) translateY(18px); }
}

/* Layout */
.top,
main,
.foot {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-mark img {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 6px 16px rgba(123, 61, 255, 0.45));
}

.top-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fog);
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 999px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.top-cta:hover {
  color: var(--paper);
  border-color: rgba(160, 120, 255, 0.45);
  background: rgba(123, 61, 255, 0.12);
}

/* Hero — one composition */
.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: clamp(28px, 5vh, 48px);
  padding: clamp(32px, 6vh, 64px) 24px 40px;
  max-width: 920px;
  margin: 0 auto;
}

.hero-visual {
  position: relative;
  width: min(72vw, 320px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  animation: rise 0.9s var(--ease) both;
}

.hero-orb {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 61, 255, 0.45), transparent 70%);
  filter: blur(28px);
  animation: pulse 4.5s ease-in-out infinite;
}

.hero-icon {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 28px 60px rgba(74, 31, 184, 0.55));
  animation: float 5.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.06); }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-copy {
  max-width: 640px;
  animation: rise 0.9s var(--ease) 0.12s both;
}

.brand-name {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  background: linear-gradient(180deg, #ffffff 20%, #cbb8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--paper);
}

.lede {
  margin: 0 auto 28px;
  max-width: 38ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--fog);
  font-weight: 450;
}

/* Waitlist */
.waitlist {
  width: min(100%, 520px);
  margin: 0 auto;
}

.waitlist-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.waitlist input {
  flex: 1 1 220px;
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
  font: 500 1rem var(--font-body);
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.waitlist input::placeholder {
  color: var(--mist);
}

.waitlist input:focus {
  border-color: rgba(160, 120, 255, 0.65);
  background: rgba(123, 61, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(123, 61, 255, 0.15);
}

.waitlist button {
  flex: 0 0 auto;
  height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-hot), var(--brand) 45%, var(--brand-deep));
  color: #fff;
  font: 700 0.98rem var(--font-body);
  letter-spacing: -0.01em;
  cursor: pointer;
  position: relative;
  box-shadow: 0 12px 32px rgba(123, 61, 255, 0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
}

.waitlist button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(123, 61, 255, 0.45);
}

.waitlist button:active:not(:disabled) {
  transform: translateY(0);
}

.waitlist button:disabled {
  cursor: wait;
  filter: saturate(0.85);
}

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.waitlist button.is-loading .btn-label {
  visibility: hidden;
}

.waitlist button.is-loading .btn-spinner {
  display: block;
  position: absolute;
  inset: 0;
  margin: auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-hint {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: var(--mist);
}

.form-msg {
  min-height: 1.4em;
  margin: 10px 0 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.form-msg.is-ok { color: var(--ok); }
.form-msg.is-err { color: var(--err); }

/* Platforms strip — one purpose */
.platforms {
  padding: 8px 24px 56px;
  text-align: center;
  animation: rise 0.9s var(--ease) 0.22s both;
}

.platforms-label {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}

.platforms ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--fog);
}

.platforms li {
  position: relative;
}

.platforms li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -16px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(160, 120, 255, 0.55);
  transform: translateY(-50%);
}

.foot {
  padding: 0 24px 36px;
  text-align: center;
  color: var(--mist);
  font-size: 0.85rem;
}

.foot a {
  color: var(--fog);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot a:hover {
  color: var(--paper);
}

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

  .waitlist-row {
    flex-direction: column;
  }

  .waitlist button,
  .waitlist input {
    width: 100%;
  }

  .hero {
    min-height: calc(100svh - 72px);
    padding-top: 28px;
  }

  .hero-visual {
    width: min(58vw, 220px);
  }

  .platforms li:not(:last-child)::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
