:root {
  color-scheme: dark;
  --page-bg: #04060e;
  --text: #f2f5ff;
  --muted: #aeb4ce;
  --line: rgba(133, 163, 255, 0.24);
  --line-strong: rgba(170, 201, 255, 0.5);
  --field: rgba(16, 21, 39, 0.72);
  --danger: #ff879d;
  --success: #8cc4ff;
  --radius-lg: 22px;
}

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

html,
body {
  min-width: 320px;
}

body {
  position: relative;
  margin: 0;
  min-height: 100svh;
  color: var(--text);
  overflow-x: hidden;
  background: var(--page-bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(140deg, rgba(1, 3, 11, 0.72), rgba(1, 4, 12, 0.86)),
    url("assets/back.png") center / cover no-repeat;
  background-position: 50% 42%;
  pointer-events: none;
  transform: scale(1.01);
  filter: saturate(0.84) contrast(1.08);
}

.page-backdrop::before,
.page-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-backdrop::before {
  background:
    radial-gradient(circle at 18% 10%, rgba(86, 129, 255, 0.15), rgba(6, 10, 24, 0) 46%),
    radial-gradient(circle at 82% 82%, rgba(13, 41, 106, 0.34), rgba(5, 6, 13, 0) 50%),
    linear-gradient(180deg, rgba(0, 1, 8, 0.22), rgba(0, 2, 12, 0.84));
}

.page-backdrop::after {
  background:
    radial-gradient(70% 65% at 50% 0%, rgba(0, 0, 0, 0) 18%, rgba(0, 0, 0, 0.42) 72%);
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 0.4px, transparent 0.4px),
    radial-gradient(rgba(255, 255, 255, 0.05) 0.9px, transparent 0.9px);
  background-size: 6px 6px, 13px 13px;
  background-position: 0 0, 3px 3px;
  mix-blend-mode: soft-light;
}

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

button,
select {
  cursor: pointer;
}

.landing-shell {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 70px));
  min-height: calc(100svh - 72px);
  margin: 0 auto;
  padding: 54px 0 30px;
  display: grid;
  gap: clamp(34px, 4vw, 58px);
  grid-template-columns: minmax(330px, 0.96fr) minmax(560px, 1.08fr);
  align-items: center;
}

.hero-panel,
.application-card {
  min-width: 0;
}

.hero-panel {
  color: #f3f6ff;
  padding-bottom: 10px;
}

.kicker {
  margin: 0 0 16px;
  color: rgba(182, 205, 255, 0.86);
  letter-spacing: 0.32em;
  font-size: 0.66rem;
  font-weight: 700;
}

.hero-panel h1 {
  margin: 0;
  color: #f4f6ff;
  font-size: clamp(3rem, 5vw, 5.4rem);
  letter-spacing: 0.19em;
  text-indent: 0.19em;
  line-height: 0.95;
  font-weight: 500;
  text-transform: uppercase;
  text-shadow: 0 1px 22px rgba(0, 0, 0, 0.72);
}

.hero-panel h1 span {
  display: inline-block;
  color: transparent;
  background: linear-gradient(114deg, #f8fbff 12%, #7db6ff 55%, #cfe5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead,
.hero-sub {
  margin: 0;
  color: #d6ddf5;
  font-size: 1.03rem;
  line-height: 1.48;
}

.hero-lead {
  margin: 12px 0 10px;
}

.hero-sub {
  color: #a8b4d2;
  max-width: 560px;
}

.signal-stack {
  margin-top: 30px;
  display: grid;
  gap: 12px;
}

.signal {
  border: 1px solid rgba(186, 209, 255, 0.2);
  border-radius: 12px;
  padding: 13px 14px 12px;
  background: linear-gradient(140deg, rgba(9, 13, 28, 0.45), rgba(7, 9, 20, 0.32));
  backdrop-filter: blur(11px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.signal strong {
  display: block;
  color: #e8edff;
  font-size: 0.87rem;
}

.signal span {
  display: block;
  margin-top: 5px;
  color: #a8b4d2;
  font-size: 0.8rem;
  line-height: 1.44;
}

.application-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(12, 16, 33, 0.94), rgba(7, 9, 20, 0.9)),
    rgba(6, 8, 18, 0.68);
  backdrop-filter: blur(16px) saturate(125%);
  box-shadow:
    0 32px 95px rgba(0, 0, 0, 0.55),
    0 0 35px rgba(59, 95, 196, 0.18);
}

.application-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(208, 220, 255, 0.07);
  border-radius: calc(var(--radius-lg) - 2px);
  pointer-events: none;
}

.application-body {
  position: relative;
  z-index: 1;
  padding: clamp(33px, 3.6vw, 50px) clamp(38px, 4.5vw, 58px) 30px;
}

.form-heading {
  margin-bottom: 25px;
}

.form-kicker {
  margin: 0 0 12px;
  color: rgba(178, 206, 255, 0.84);
  letter-spacing: 0.3em;
  font-size: 0.67rem;
  font-weight: 700;
}

.form-heading h2 {
  margin: 0;
  font-size: clamp(1.78rem, 2.2vw, 2.3rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #f7faff;
}

.form-heading p {
  margin: 12px 0 0;
  color: #a8b2d2;
  line-height: 1.52;
}

.access-form {
  display: grid;
  gap: 17px;
}

.field-grid {
  display: grid;
  gap: 17px;
}

.two-columns {
  grid-template-columns: 1fr 1fr;
}

.field {
  min-width: 0;
}

.field label {
  display: block;
  margin: 0 0 8px;
  color: #f0f4ff;
  font-size: 0.82rem;
  font-weight: 500;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(179, 202, 248, 0.3);
  border-radius: 9px;
  color: #f2f6ff;
  background: linear-gradient(180deg, rgba(21, 27, 53, 0.84), rgba(13, 16, 33, 0.8));
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input,
.field select {
  height: 46px;
  padding: 0 14px;
}

.field textarea {
  min-height: 98px;
  padding: 13px 14px;
  resize: vertical;
  line-height: 1.45;
}

.field input::placeholder,
.field textarea::placeholder,
.field select:invalid {
  color: #95a0c0;
}

.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: rgba(190, 213, 255, 0.56);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(126, 171, 255, 0.92);
  background: linear-gradient(180deg, rgba(31, 37, 70, 0.9), rgba(17, 20, 38, 0.85));
  box-shadow: 0 0 0 3px rgba(101, 149, 249, 0.16), 0 0 20px rgba(88, 141, 219, 0.16);
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: rgba(255, 129, 154, 0.82);
  box-shadow: 0 0 0 3px rgba(255, 110, 132, 0.08);
}

.field-error {
  min-height: 0;
  display: block;
  margin-top: 6px;
  color: var(--danger);
  font-size: 0.72rem;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translateY(-50%) rotate(45deg);
  border-right: 1.5px solid #d0d5e8;
  border-bottom: 1.5px solid #d0d5e8;
  pointer-events: none;
}

.field select {
  appearance: none;
  padding-right: 42px;
}

.field select option {
  color: #f3f5ff;
  background: #080d1c;
}

.apply-button {
  position: relative;
  isolation: isolate;
  height: 52px;
  margin-top: 2px;
  width: 100%;
  border: 1px solid rgba(211, 233, 255, 0.8);
  border-radius: 9px;
  color: #090c16;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(205, 230, 255, 0.95)),
    #cce2ff;
  font-size: 1.04rem;
  font-weight: 500;
  box-shadow:
    0 0 0 1px rgba(118, 167, 255, 0.36),
    0 0 25px rgba(80, 135, 241, 0.35),
    0 16px 35px rgba(20, 58, 154, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: translate 150ms ease, filter 150ms ease, box-shadow 150ms ease;
}

.apply-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  translate: -110% 0;
  background: linear-gradient(100deg, transparent 22%, rgba(255, 255, 255, 0.85) 52%, transparent 78%);
  transition: translate 600ms ease;
}

.apply-button:hover {
  filter: brightness(1.03);
  translate: 0 -1px;
  box-shadow:
    0 0 0 1px rgba(149, 192, 255, 0.48),
    0 0 33px rgba(84, 142, 235, 0.58),
    0 20px 36px rgba(28, 74, 177, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.apply-button:hover::before {
  translate: 110% 0;
}

.apply-button:active {
  translate: 0 1px;
}

.apply-button:focus-visible {
  outline: 3px solid rgba(154, 199, 255, 0.5);
  outline-offset: 4px;
}

.apply-button[disabled] {
  cursor: wait;
  filter: saturate(0.7) brightness(0.86);
}

.button-spinner {
  display: none;
  width: 17px;
  height: 17px;
  margin-left: 10px;
  border: 2px solid rgba(16, 22, 41, 0.28);
  border-top-color: #101833;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -3px;
}

.apply-button.is-loading .button-spinner {
  display: inline-block;
}

.form-status {
  margin: 0;
  min-height: 1.05em;
  text-align: center;
  color: var(--success);
  font-size: 0.8rem;
}

.form-status.error {
  color: var(--danger);
}

.application-footer {
  display: grid;
  border-top: 1px solid rgba(202, 215, 255, 0.22);
  background: linear-gradient(180deg, rgba(12, 16, 36, 0.78), rgba(9, 11, 22, 0.84));
}

.waitlist-block {
  padding: 22px clamp(28px, 3vw, 42px);
}

.waitlist-copy {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}

.waitlist-copy h3 {
  margin: 0;
  color: #d6e5ff;
  font-size: 1rem;
  font-weight: 500;
}

.waitlist-copy p {
  margin: 8px 0 0;
  color: #a0aac9;
  font-size: 0.84rem;
}

.waitlist-copy strong {
  color: #8fc0ff;
  font-size: 1.45rem;
  font-weight: 400;
}

.progress-track {
  position: relative;
  margin-top: 14px;
  height: 4px;
  border-radius: 99px;
  overflow: visible;
  background: rgba(184, 197, 236, 0.16);
}

.progress-track span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #3f70d4, #80b8ff);
  box-shadow: 0 0 12px rgba(82, 138, 239, 0.75);
}

.progress-track span::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  translate: 0 -50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f4f7ff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.95), 0 0 16px rgba(94, 144, 241, 0.95);
}

.security-note {
  position: relative;
  z-index: 2;
  min-height: 78px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 12px 24px 26px;
  color: #7f86a1;
  font-size: 0.86rem;
  text-align: center;
}

.security-note svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #6f7690;
  stroke-width: 1.4;
}

@keyframes spin {
  to { rotate: 360deg; }
}

@media (max-width: 1160px) {
  .landing-shell {
    width: min(980px, calc(100% - 44px));
    grid-template-columns: 1fr;
    align-items: start;
    gap: 36px;
  }

  .hero-panel {
    max-width: 720px;
  }

  .application-card {
    max-width: 920px;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .landing-shell {
    width: min(100% - 24px, 680px);
    min-height: auto;
    padding-top: 38px;
  }

  .hero-panel h1 {
    letter-spacing: 0.15em;
    font-size: clamp(2.6rem, 14vw, 4.2rem);
  }

  .kicker {
    letter-spacing: 0.24em;
  }

  .signal-stack {
    margin-top: 20px;
    gap: 10px;
  }

  .signal {
    padding: 12px;
  }

  .application-body {
    padding: 30px 20px 22px;
  }

  .two-columns,
  .waitlist-copy {
    grid-template-columns: 1fr;
  }

  .waitlist-copy {
    align-items: center;
  }

  .waitlist-copy strong {
    font-size: 1.32rem;
  }

  .waitlist-copy p {
    max-width: 205px;
  }

  .security-note {
    padding-bottom: 20px;
    font-size: 0.82rem;
    min-height: 66px;
  }
}

@media (max-width: 430px) {
  .landing-shell {
    width: min(100% - 18px, 430px);
  }

  .application-body {
    padding-inline: 15px;
  }

  .form-kicker {
    letter-spacing: 0.22em;
  }
}

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