@font-face {
  font-family: "Surgena";
  src: url("assets/fonts/surgena-semibold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Somerun";
  src: url("assets/fonts/somerun-regular.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #050712;
  --ink: #f8fbff;
  --muted: rgba(235, 244, 255, 0.7);
  --line: rgba(255, 255, 255, 0.14);
  --blue: #2f66ff;
  --cyan: #54d6ff;
  --mint: #6fffd2;
  --rose: #ff6f9e;
  --violet: #8e7dff;
  --panel: rgba(9, 14, 28, 0.66);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 20%, rgba(142, 125, 255, 0.28), transparent 27rem),
    radial-gradient(circle at 84% 14%, rgba(111, 255, 210, 0.15), transparent 25rem),
    radial-gradient(circle at 70% 88%, rgba(255, 111, 158, 0.12), transparent 28rem),
    linear-gradient(135deg, #050712 0%, #08101e 46%, #030409 100%);
  font-family: Inter, Arial, sans-serif;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 55% 50%, black 0%, rgba(0, 0, 0, 0.74) 42%, transparent 82%);
}

body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    radial-gradient(circle, rgba(84, 214, 255, 0.75) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(111, 255, 210, 0.55) 0 1px, transparent 1.5px);
  background-position: 0 0, 44px 38px;
  background-size: 150px 150px, 210px 210px;
  opacity: 0.36;
  animation: starDrift 18s linear infinite;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

.nexus-page {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100svh;
  padding: clamp(96px, 9vw, 130px) clamp(24px, 5vw, 70px) clamp(24px, 5vw, 70px);
}

.nexus-header {
  position: fixed;
  z-index: 10;
  top: clamp(18px, 3vw, 34px);
  left: clamp(18px, 4vw, 64px);
}

.nexus-header-brand {
  display: inline-grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(5, 8, 18, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 22px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px) saturate(140%);
}

.nexus-header-brand > span {
  font-family: "Surgena", Inter, Arial, sans-serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 0.96;
  letter-spacing: 0;
  color: var(--ink);
  text-shadow: 0 0 34px rgba(84, 214, 255, 0.18);
}

.nexus-header-brand small {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 22px;
}

.nexus-header-brand em {
  color: rgba(248, 251, 255, 0.68);
  font-family: "Somerun", Inter, Arial, sans-serif;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nexus-header-brand img {
  width: 86px;
  height: auto;
  filter: drop-shadow(0 10px 22px rgba(84, 214, 255, 0.16));
}

.portal-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(560px, 1.18fr);
  gap: clamp(38px, 7vw, 126px);
  align-items: center;
  width: min(1540px, 100%);
  margin: auto;
}

.portal-copy {
  display: grid;
  gap: 16px;
  align-content: center;
  justify-items: start;
}

.portal-kicker,
.portal-domain span {
  margin: 0;
  color: var(--mint);
  font-family: "Somerun", Inter, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
strong {
  font-family: "Surgena", Inter, Arial, sans-serif;
}

h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(2.3rem, 3.7vw, 4.35rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.portal-lead {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.68;
}

.portal-domain {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 20px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.portal-domain span {
  padding-left: 8px;
  color: rgba(235, 244, 255, 0.72);
  font-size: 0.68rem;
}

.portal-domain strong {
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  color: #03101d;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  box-shadow: 0 0 34px rgba(84, 214, 255, 0.28);
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.portal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  font-family: "Surgena", Inter, Arial, sans-serif;
  font-weight: 900;
  backdrop-filter: blur(18px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.portal-button:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 255, 210, 0.52);
  box-shadow: 0 18px 52px rgba(84, 214, 255, 0.12);
}

.portal-button:disabled {
  cursor: progress;
  opacity: 0.74;
  transform: none;
}

.portal-button--primary {
  color: #03101d;
  border-color: transparent;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  box-shadow: 0 20px 58px rgba(84, 214, 255, 0.22);
}

.portal-stage {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-height: min(620px, calc(100svh - 120px));
  overflow: hidden;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 66% 18%, rgba(111, 255, 210, 0.18), transparent 16rem),
    radial-gradient(circle at 30% 74%, rgba(142, 125, 255, 0.22), transparent 18rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 38px 110px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(24px) saturate(145%);
}

.portal-stage::before,
.portal-stage::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.portal-stage::before {
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(140deg, transparent 0%, black 28%, black 78%, transparent 100%);
}

.portal-stage::after {
  width: 340px;
  height: 340px;
  right: -120px;
  bottom: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(84, 214, 255, 0.3), transparent 66%);
  filter: blur(8px);
}

.console-topbar,
.console-main,
.console-tracks,
.console-footer {
  position: relative;
  z-index: 2;
}

.console-topbar {
  display: grid;
  grid-template-columns: repeat(3, 10px) 1fr auto;
  gap: 9px;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(4, 8, 18, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.console-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(248, 251, 255, 0.28);
}

.console-topbar span:nth-child(1) {
  background: var(--rose);
}

.console-topbar span:nth-child(2) {
  background: var(--mint);
}

.console-topbar span:nth-child(3) {
  background: var(--cyan);
}

.console-topbar strong,
.console-topbar em {
  font-family: "Somerun", Inter, Arial, sans-serif;
  font-style: normal;
  letter-spacing: 0;
  text-transform: uppercase;
}

.console-topbar strong {
  justify-self: center;
  color: rgba(248, 251, 255, 0.88);
  font-size: 0.86rem;
}

.console-topbar em {
  color: rgba(111, 255, 210, 0.78);
  font-size: 0.72rem;
}

.console-main {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(240px, 1fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  padding: clamp(38px, 5vw, 76px) clamp(12px, 3vw, 40px);
}

.console-core {
  position: relative;
  display: grid;
  place-items: center;
  width: min(260px, 100%);
  aspect-ratio: 1;
  justify-self: center;
  border: 1px solid rgba(111, 255, 210, 0.2);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(111, 255, 210, 0.22), transparent 52%),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    0 0 0 34px rgba(84, 214, 255, 0.035),
    0 0 0 70px rgba(142, 125, 255, 0.025),
    0 34px 100px rgba(84, 214, 255, 0.12);
}

.console-core::before,
.console-core::after {
  position: absolute;
  inset: 18%;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  animation: ringPulse 5s ease-in-out infinite;
}

.console-core::after {
  inset: -18%;
  border-color: rgba(84, 214, 255, 0.12);
  animation-delay: 560ms;
}

.console-core span {
  font-family: "Surgena", Inter, Arial, sans-serif;
  font-size: clamp(5rem, 9vw, 8rem);
  line-height: 1;
  color: rgba(248, 251, 255, 0.94);
  text-shadow:
    0 0 24px rgba(84, 214, 255, 0.32),
    0 0 68px rgba(111, 255, 210, 0.18);
}

.console-copy {
  display: grid;
  gap: 12px;
}

.console-copy p {
  margin: 0;
  color: var(--mint);
  font-family: "Somerun", Inter, Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.console-copy strong {
  max-width: 440px;
  color: var(--ink);
  font-size: clamp(2.15rem, 3.6vw, 4.35rem);
  line-height: 0.95;
}

.console-tracks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.console-track {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 14px;
  align-items: center;
  min-height: 88px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(5, 9, 20, 0.5);
}

.console-track span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #05101c;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  font-family: "Somerun", Inter, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
}

.console-track strong {
  color: rgba(248, 251, 255, 0.9);
  font-size: 1rem;
}

.console-track i {
  grid-column: 1 / -1;
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.console-track i::before {
  display: block;
  width: 72%;
  height: 100%;
  content: "";
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--mint));
  animation: trackLoad 3.4s ease-in-out infinite;
}

.console-track:nth-child(2) i::before {
  width: 58%;
  animation-delay: 220ms;
}

.console-track:nth-child(3) i::before {
  width: 66%;
  animation-delay: 440ms;
}

.console-track:nth-child(4) i::before {
  width: 46%;
  animation-delay: 660ms;
}

.console-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(111, 255, 210, 0.18);
  border-radius: 18px;
  background: rgba(111, 255, 210, 0.07);
}

.console-footer span,
.console-footer strong {
  font-family: "Somerun", Inter, Arial, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.console-footer span {
  color: rgba(235, 244, 255, 0.72);
}

.console-footer strong {
  color: var(--mint);
}

.waitlist-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.waitlist-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.waitlist-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(84, 214, 255, 0.18), transparent 34rem),
    rgba(2, 4, 10, 0.76);
  backdrop-filter: blur(18px);
}

.waitlist-dialog {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
  max-height: calc(100svh - 44px);
  overflow: auto;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 12%, rgba(111, 255, 210, 0.16), transparent 17rem),
    radial-gradient(circle at 14% 86%, rgba(142, 125, 255, 0.18), transparent 17rem),
    rgba(7, 12, 26, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 34px 120px rgba(0, 0, 0, 0.5);
}

.waitlist-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(248, 251, 255, 0.78);
  background: rgba(255, 255, 255, 0.05);
}

.waitlist-heading {
  display: grid;
  gap: 10px;
  padding-right: 92px;
}

.waitlist-heading p {
  margin: 0;
  color: var(--mint);
  font-family: "Somerun", Inter, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.waitlist-heading h2 {
  margin: 0;
  font-family: "Surgena", Inter, Arial, sans-serif;
  font-size: clamp(2.25rem, 4.6vw, 4.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.waitlist-heading span {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.6;
}

.waitlist-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.waitlist-form label {
  display: grid;
  gap: 8px;
  color: rgba(235, 244, 255, 0.78);
  font-family: "Somerun", Inter, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.field-hint {
  justify-self: end;
  color: rgba(235, 244, 255, 0.52);
  font-family: Inter, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: none;
}

.waitlist-form input,
.waitlist-form select,
.waitlist-form textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.065);
  outline: none;
  padding: 0 14px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.waitlist-form textarea {
  min-height: 128px;
  padding-top: 13px;
  resize: vertical;
}

.waitlist-form select {
  appearance: none;
}

.waitlist-form option {
  color: #08101e;
}

.waitlist-form input:focus,
.waitlist-form select:focus,
.waitlist-form textarea:focus {
  border-color: rgba(111, 255, 210, 0.58);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 4px rgba(111, 255, 210, 0.08);
}

.waitlist-wide,
.waitlist-submit,
.waitlist-status {
  grid-column: 1 / -1;
}

.waitlist-submit {
  width: 100%;
  margin-top: 4px;
}

.waitlist-status {
  min-height: 24px;
  margin: 0;
  color: rgba(235, 244, 255, 0.78);
  line-height: 1.45;
}

.waitlist-status.is-success {
  color: var(--mint);
}

.waitlist-status.is-error {
  color: var(--rose);
}

@keyframes starDrift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-150px, 150px, 0);
  }
}

@keyframes ringPulse {
  0%,
  100% {
    opacity: 0.58;
    transform: scale(1);
  }

  50% {
    opacity: 0.96;
    transform: scale(1.045);
  }
}

@keyframes trackLoad {
  0%,
  100% {
    transform: translateX(-8%);
  }

  50% {
    transform: translateX(12%);
  }
}

@media (max-width: 1100px) {
  .portal-shell {
    grid-template-columns: 1fr;
    max-width: 940px;
  }

  .portal-copy {
    justify-items: center;
    text-align: center;
  }

  .portal-stage {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .nexus-page {
    padding: 22px 14px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .nexus-page {
    padding-top: 118px;
  }

  .nexus-header {
    top: 14px;
    left: 14px;
  }

  .nexus-header-brand {
    padding: 12px 14px;
  }

  .nexus-header-brand > span {
    font-size: 1.9rem;
  }

  .nexus-header-brand img {
    width: 72px;
  }

  .portal-actions,
  .portal-button,
  .portal-domain {
    width: 100%;
  }

  .portal-domain {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .portal-stage {
    min-height: auto;
    border-radius: 20px;
  }

  .console-topbar {
    grid-template-columns: repeat(3, 10px) 1fr;
  }

  .console-topbar em {
    display: none;
  }

  .console-main,
  .console-tracks {
    grid-template-columns: 1fr;
  }

  .console-main {
    padding: 42px 0;
    text-align: center;
  }

  .console-copy {
    justify-items: center;
  }

  .console-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
