:root {
  color: #eef6f8;
  background: #061114;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #061114;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
}

.portal-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.motion-field {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 20%, rgba(124, 229, 202, 0.2), transparent 24%),
    radial-gradient(circle at 76% 26%, rgba(77, 134, 255, 0.24), transparent 28%),
    linear-gradient(135deg, #061114 0%, #0b2025 46%, #11292c 100%);
}

.motion-field::before {
  position: absolute;
  inset: -24%;
  content: "";
  background:
    conic-gradient(from 180deg at 50% 50%, transparent, rgba(128, 241, 211, 0.16), transparent),
    linear-gradient(115deg, transparent 0 32%, rgba(255, 255, 255, 0.08) 33%, transparent 42% 100%);
  filter: blur(18px);
  opacity: 0.82;
  animation: slow-drift 18s linear infinite;
}

.field-layer {
  position: absolute;
  width: 54vmax;
  height: 54vmax;
  border-radius: 42%;
  opacity: 0.34;
  filter: blur(20px);
  mix-blend-mode: screen;
}

.field-layer-a {
  top: -12vmax;
  left: -10vmax;
  background: linear-gradient(130deg, rgba(146, 246, 204, 0.9), rgba(68, 111, 232, 0));
  animation: orbit-a 20s ease-in-out infinite alternate;
}

.field-layer-b {
  right: -18vmax;
  bottom: -16vmax;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.12), rgba(36, 193, 175, 0.75));
  animation: orbit-b 24s ease-in-out infinite alternate;
}

.field-grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.76), transparent 78%);
  animation: grid-shift 16s linear infinite;
}

.hero {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 0;
}

.hero-center {
  display: grid;
  align-self: center;
  gap: 24px;
  width: min(100%, 760px);
  justify-self: center;
  transform: translateY(-2vh);
}

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 14px 50px rgba(92, 234, 199, 0.28);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
}

.brand small,
.eyebrow,
.access-form label,
.form-message {
  color: rgba(238, 246, 248, 0.68);
}

.brand small {
  margin-top: 1px;
  font-size: 0.76rem;
  font-weight: 700;
}

.hero-copy {
  max-width: 760px;
  padding: 0;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(3.35rem, 9vw, 7.8rem);
  line-height: 0.89;
  letter-spacing: 0;
}

.lede {
  max-width: 420px;
  margin: 14px 0 0;
  color: rgba(238, 246, 248, 0.78);
  font-size: 1rem;
  line-height: 1.55;
}

.access-form {
  width: min(720px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(4, 16, 19, 0.58);
  padding: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(24px);
}

.access-form label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 800;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.input-row input {
  min-width: 0;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  outline: none;
  color: #f7fcfd;
  background: rgba(255, 255, 255, 0.07);
  padding: 0 16px;
}

.input-row input:focus {
  border-color: rgba(154, 245, 213, 0.72);
  box-shadow: 0 0 0 4px rgba(154, 245, 213, 0.14);
}

.input-row input::placeholder {
  color: rgba(238, 246, 248, 0.4);
}

.input-row button {
  min-width: 132px;
  height: 54px;
  border: 0;
  border-radius: 8px;
  color: #061114;
  background: #9af5d5;
  padding: 0 18px;
  font-weight: 850;
  box-shadow: 0 12px 38px rgba(113, 242, 202, 0.28);
}

.input-row button:hover:not(:disabled) {
  background: #c5ffe9;
}

.input-row button:disabled {
  opacity: 0.72;
}

.form-message {
  min-height: 22px;
  margin: 10px 2px 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.form-message.error {
  color: #ffb9b9;
}

.form-message.success {
  color: #a9ffdf;
}

@keyframes slow-drift {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit-a {
  to {
    transform: translate3d(16vw, 14vh, 0) rotate(32deg) scale(1.08);
  }
}

@keyframes orbit-b {
  to {
    transform: translate3d(-12vw, -12vh, 0) rotate(-28deg) scale(1.12);
  }
}

@keyframes grid-shift {
  to {
    background-position: 56px 112px;
  }
}

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

@media (max-width: 720px) {
  .hero {
    width: min(100% - 28px, 1180px);
    padding: 18px 0;
  }

  .topline {
    align-items: flex-start;
  }

  .hero-copy {
    padding: 0;
  }

  .hero-center {
    gap: 20px;
    transform: none;
  }

  h1 {
    font-size: 3.28rem;
  }

  .lede {
    font-size: 1rem;
  }

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

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