:root {
  --ink: #eef2ed;
  --muted: #9aa49d;
  --quiet: #667169;
  --bg: #07100c;
  --panel: rgba(8, 16, 12, 0.68);
  --line: rgba(237, 243, 238, 0.12);
  --line-strong: rgba(237, 243, 238, 0.22);
  --signal: #cfff78;
  --max: 1440px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

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

body {
  margin: 0;
  min-height: 100svh;
  color: var(--ink);
  background:
    radial-gradient(circle at 76% 48%, rgba(56, 96, 71, 0.07), transparent 34rem),
    linear-gradient(135deg, #07100c 0%, #08110d 58%, #050a08 100%);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  color: #07100c;
  background: var(--signal);
}

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

button,
input {
  font: inherit;
}

#soul-engine {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 900ms ease;
}

html.webgl-ready #soul-engine {
  opacity: 1;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.topbar,
.launch,
.footer {
  position: relative;
  z-index: 4;
}

.topbar {
  width: min(calc(100% - 48px), var(--max));
  min-height: 82px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.brand img {
  border-radius: 11px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.place {
  color: var(--quiet);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.launch {
  width: min(calc(100% - 48px), var(--max));
  min-height: calc(100svh - 164px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(390px, 1.16fr);
  align-items: center;
  gap: 54px;
  padding: 72px 0 84px;
}

.message {
  max-width: 640px;
  align-self: center;
}

.prelude {
  margin: 0 0 24px;
  color: var(--quiet);
  font-size: 0.78rem;
  letter-spacing: 0.015em;
}

h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(3.55rem, 6.2vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.064em;
  font-weight: 650;
  text-wrap: balance;
}

h1 em {
  color: #cbd4cd;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.045em;
}

.intro {
  max-width: 600px;
  margin: 32px 0 0;
  color: #a8b1ab;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.64;
  letter-spacing: -0.012em;
}

.note {
  max-width: 560px;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 34px;
}

.note-line {
  height: 1px;
  margin-top: 0.72rem;
  background: rgba(207, 255, 120, 0.52);
}

.note p {
  margin: 0;
  color: #7f8982;
  font-size: 0.82rem;
  line-height: 1.6;
}

.waitlist {
  max-width: 610px;
  margin-top: 44px;
}

.waitlist label {
  display: block;
  margin-bottom: 11px;
  color: #c8d0ca;
  font-size: 0.78rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(8, 15, 12, 0.72);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(18px);
}

.form-row:focus-within {
  border-color: rgba(207, 255, 120, 0.42);
}

.form-row input {
  min-width: 0;
  height: 49px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 0.94rem;
}

.form-row input::placeholder {
  color: #5f6962;
}

.form-row button {
  height: 49px;
  min-width: 156px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 16px;
  border: 0;
  border-radius: 11px;
  color: #07100c;
  background: var(--signal);
  font-size: 0.79rem;
  font-weight: 760;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.form-row button:hover {
  transform: translateY(-1px);
  filter: brightness(1.035);
}

.form-row button:disabled {
  opacity: 0.58;
  cursor: wait;
  transform: none;
}

.arrow {
  font-size: 0.98rem;
}

.trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.form-meta {
  min-height: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 9px;
  color: #5d6861;
  font-size: 0.66rem;
}

.form-status {
  max-width: 330px;
  color: #aab4ac;
  text-align: right;
}

.form-status.ok {
  color: var(--signal);
}

.form-status.error {
  color: #d8a080;
}

.visual-note {
  align-self: end;
  justify-self: end;
  width: min(100%, 350px);
  margin: 0 12px 18px 0;
  padding-top: 13px;
  border-top: 1px solid rgba(238, 244, 240, 0.12);
  color: #606c64;
}

.visual-note strong,
.visual-note span {
  display: block;
}

.visual-note strong {
  margin-bottom: 4px;
  color: #a6afa9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.87rem;
  font-style: italic;
  font-weight: 400;
}

.visual-note span {
  font-size: 0.66rem;
  line-height: 1.5;
}

.footer {
  width: min(calc(100% - 48px), var(--max));
  min-height: 82px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: #59645d;
  font-size: 0.66rem;
}

.footer span:nth-child(2) {
  text-align: center;
}

@media (max-width: 940px) {
  .launch {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 80px;
    padding-bottom: 90px;
  }

  .message {
    max-width: 720px;
  }

  .visual-note {
    display: none;
  }

  #soul-engine {
    opacity: 0.5;
  }

  .footer {
    grid-template-columns: 1fr auto;
  }

  .footer span:nth-child(2) {
    display: none;
  }
}

@media (max-width: 620px) {
  .topbar,
  .launch,
  .footer {
    width: calc(100% - 28px);
  }

  .topbar {
    min-height: 70px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .place {
    font-size: 0.66rem;
  }

  .launch {
    padding-top: 58px;
    padding-bottom: 72px;
  }

  h1 {
    font-size: clamp(3.35rem, 17vw, 5.1rem);
    line-height: 0.94;
  }

  .intro {
    margin-top: 26px;
    font-size: 1rem;
  }

  .note {
    grid-template-columns: 42px 1fr;
    margin-top: 28px;
  }

  .waitlist {
    margin-top: 38px;
  }

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

  .form-row button {
    width: 100%;
  }

  .form-meta {
    display: block;
  }

  .form-status {
    margin-top: 8px;
    text-align: left;
  }

  .footer {
    min-height: 76px;
    grid-template-columns: 1fr auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
