:root {
  color-scheme: dark;
  --ink: #f2f5f3;
  --muted: #929d98;
  --quiet: #68726e;
  --mint: #9edbbc;
  --mint-strong: #7bd5a7;
  --void: #080a0a;
  --surface: rgba(17, 22, 21, .78);
  --line: rgba(229, 242, 236, .12);
  --line-strong: rgba(229, 242, 236, .2);
  --danger: #ffaaa3;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--void); }
body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 28%, rgba(181, 133, 121, .105), transparent 29rem),
    radial-gradient(circle at 88% 74%, rgba(110, 161, 145, .11), transparent 32rem),
    linear-gradient(135deg, #090b0b, #070909 48%, #0a0d0c);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  opacity: .32;
  background:
    radial-gradient(ellipse at 36% 48%, rgba(158, 219, 188, .08), transparent 30%),
    radial-gradient(ellipse at 70% 42%, rgba(142, 177, 202, .055), transparent 28%);
  filter: blur(54px);
  animation: ambient 18s ease-in-out infinite alternate;
}

a { color: inherit; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
::selection { color: white; background: rgba(158, 219, 188, .28); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }

.apply-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 72px 34px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) 1px minmax(420px, 1fr);
  gap: clamp(46px, 6vw, 82px);
  align-items: center;
}

.apply-intro { min-width: 0; }
.apply-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.025em;
  text-decoration: none;
}
.apply-brand img { width: 42px; height: 42px; border-radius: 12px; }
.apply-copy { margin: clamp(76px, 12vh, 132px) 0 64px; }
.apply-kicker, .card-kicker {
  margin: 0;
  color: var(--mint);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .16em;
}
.apply-copy h1 {
  max-width: 570px;
  margin: 19px 0 22px;
  font-size: clamp(48px, 5.5vw, 76px);
  line-height: 1.07;
  letter-spacing: -.065em;
  font-weight: 680;
}
.apply-lead {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.community { border-top: 1px solid var(--line); }
.community a {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease;
}
.community a:hover { color: white; border-color: var(--line-strong); }
.community-mark {
  color: var(--mint);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .08em;
}
.community strong, .community small { display: block; }
.community strong { font-size: 14px; font-weight: 590; }
.community small { margin-top: 4px; color: var(--quiet); font-size: 11px; }
.community-arrow { color: var(--quiet); font-size: 19px; transition: transform .25s var(--ease), color .2s ease; }
.community a:hover .community-arrow { color: var(--mint); transform: translate(2px, -2px); }

.signal-rail {
  position: relative;
  align-self: stretch;
  min-height: 620px;
  background: linear-gradient(transparent, var(--line) 18%, var(--line) 82%, transparent);
}
.signal-rail span {
  position: absolute;
  left: 50%;
  top: 30%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dcffed;
  box-shadow: 0 0 15px 4px rgba(123, 213, 167, .36);
  transform: translate(-50%, -50%);
  animation: signal 7s var(--ease) infinite;
}

.application-card {
  width: 100%;
  padding: clamp(28px, 4.5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,.045), transparent 36%), var(--surface);
  box-shadow: 0 28px 80px rgba(0,0,0,.22);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
}
.card-header h2, .success-state h2 {
  margin: 12px 0 8px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -.045em;
  font-weight: 660;
}
.card-header > p:last-child, .success-state > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
form { margin-top: 34px; }
.field { display: block; margin: 0 0 21px; }
.field > span {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 9px;
  color: #dce2df;
  font-size: 13px;
  font-weight: 570;
}
.field em, .field i {
  font-size: 10px;
  font-style: normal;
  font-weight: 520;
}
.field em { color: var(--mint); }
.field i { color: var(--quiet); }
.field input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(235, 246, 241, .11);
  border-radius: 16px;
  outline: none;
  color: var(--ink);
  caret-color: var(--mint);
  background: rgba(2, 5, 4, .38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.018);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field input::placeholder { color: #59625e; }
.field input:hover { border-color: var(--line-strong); }
.field input:focus {
  border-color: rgba(158, 219, 188, .58);
  background: rgba(5, 9, 8, .62);
  box-shadow: 0 0 0 4px rgba(158, 219, 188, .07);
}
.field input[aria-invalid="true"] { border-color: rgba(255, 170, 163, .58); }
.field-error { display: block; margin-top: 7px; color: var(--danger); font-size: 11px; }
.slider-field { margin: 2px 0 21px; }
.slider-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 9px;
  color: #dce2df;
  font-size: 13px;
  font-weight: 570;
}
.slider-label em { color: var(--mint); font-size: 10px; font-style: normal; font-weight: 520; }
.slider-captcha {
  --thumb-size: 46px;
  position: relative;
  width: 100%;
  height: 54px;
  overflow: hidden;
  border: 1px solid rgba(235, 246, 241, .11);
  border-radius: 16px;
  background: rgba(2, 5, 4, .38);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: border-color .2s ease, background .2s ease;
}
.slider-captcha p {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: center;
  color: #707b76;
  font-size: 12px;
  pointer-events: none;
  transition: color .2s ease;
}
.slider-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4%;
  background: linear-gradient(90deg, rgba(123,213,167,.16), rgba(123,213,167,.07));
  pointer-events: none;
}
.slider-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: var(--thumb-size);
  height: var(--thumb-size);
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(235,246,241,.13);
  border-radius: 13px;
  color: #d9e2de;
  background: #232927;
  box-shadow: 0 5px 18px rgba(0,0,0,.22);
  cursor: grab;
  will-change: transform;
}
.slider-thumb:active { cursor: grabbing; }
.slider-thumb span { font-size: 17px; pointer-events: none; }
.slider-captcha:not(.is-dragging):not(.is-checking) .slider-thumb { transition: transform .32s var(--ease), background .2s ease; }
.slider-captcha.is-dragging { border-color: rgba(158,219,188,.36); }
.slider-captcha.is-checking p, .slider-captcha.is-complete p { color: #cdebdc; }
.slider-captcha.is-checking .slider-thumb { opacity: .82; }
.slider-captcha.is-complete {
  border-color: rgba(158,219,188,.34);
  background: rgba(45, 91, 69, .13);
}
.slider-captcha.is-complete .slider-thumb { color: #102018; background: var(--mint); }
.slider-captcha.has-error { border-color: rgba(255, 170, 163, .48); }
.primary-action {
  width: 100%;
  min-height: 56px;
  margin-top: 7px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  border-radius: 17px;
  color: #111513;
  background: #f2f5f3;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s ease;
}
.primary-action:hover { transform: translateY(-2px); background: white; }
.primary-action:active { transform: scale(.985); }
.primary-action:disabled { opacity: .38; cursor: not-allowed; transform: none; }
.primary-action span { font-size: 20px; font-weight: 400; }
.privacy-note {
  margin: 15px 2px 0;
  color: var(--quiet);
  font-size: 10px;
  line-height: 1.65;
}
.privacy-note a { color: #9ba8a2; text-underline-offset: 3px; }
.form-alert {
  margin-top: 24px;
  padding: 12px 14px;
  border: 1px solid rgba(255,170,163,.2);
  border-radius: 13px;
  color: #ffd3cf;
  background: rgba(255,125,115,.07);
  font-size: 12px;
  line-height: 1.5;
}
.trap { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.success-state { padding: 22px 0 10px; }
.review-mark {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(158,219,188,.16);
  border-radius: 50%;
  color: var(--mint);
  background: rgba(158,219,188,.045);
  transition: color .45s var(--ease), background .45s var(--ease), transform .45s var(--ease);
}
.review-core {
  position: relative;
  z-index: 1;
  margin-top: -5px;
  font-size: 16px;
  letter-spacing: .16em;
}
.review-ring {
  position: absolute;
  inset: -1px;
  border: 1px solid transparent;
  border-top-color: var(--mint);
  border-radius: inherit;
  animation: review-spin 1.25s linear infinite;
}
.success-state.is-delivered .review-mark {
  color: #102018;
  background: var(--mint);
  transform: scale(1.04);
}
.success-state.is-delivered .review-core { margin: 0; font-size: 0; letter-spacing: 0; }
.success-state.is-delivered .review-core::after { content: "✓"; font-size: 22px; font-weight: 750; }
.success-state.is-delivered .review-ring,
.success-state.is-queued .review-ring { animation: none; border-color: transparent; }
.success-state.is-queued .review-core { margin: 0; font-size: 0; letter-spacing: 0; }
.success-state.is-queued .review-core::after { content: "→"; font-size: 20px; }
.review-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 34px;
}
.review-progress span {
  height: 3px;
  border-radius: 999px;
  background: rgba(235,246,241,.1);
  transition: background .4s ease, box-shadow .4s ease;
}
.review-progress span.is-active {
  background: rgba(158,219,188,.42);
  box-shadow: 0 0 12px rgba(123,213,167,.12);
  animation: review-pulse 1.1s ease-in-out infinite alternate;
}
.review-progress span.is-done { background: var(--mint); }
.review-progress span.is-waiting { background: rgba(158,219,188,.25); }
.success-actions { margin-top: 42px; }
.text-action {
  margin-top: 18px;
  display: inline-block;
  color: var(--muted);
  font-size: 12px;
  text-underline-offset: 4px;
}

@keyframes ambient {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.06); }
}
@keyframes signal {
  0%, 12% { top: 17%; opacity: 0; }
  22% { opacity: 1; }
  78% { opacity: 1; }
  88%, 100% { top: 83%; opacity: 0; }
}
@keyframes review-spin { to { transform: rotate(360deg); } }
@keyframes review-pulse { to { opacity: .48; } }

@media (max-width: 820px) {
  .apply-shell {
    min-height: auto;
    padding: max(26px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(36px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .apply-copy { margin: 68px 0 42px; }
  .apply-copy h1 { font-size: clamp(43px, 13vw, 62px); }
  .apply-lead { font-size: 15px; }
  .signal-rail {
    width: 100%;
    min-height: 1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line) 14%, var(--line) 86%, transparent);
  }
  .signal-rail span {
    top: 50%;
    left: 24%;
    animation-name: signal-mobile;
  }
  .application-card { border-radius: 26px; }
}

@media (max-width: 460px) {
  .apply-shell { padding-left: 16px; padding-right: 16px; }
  .apply-brand { margin-left: 4px; }
  .apply-copy { margin-left: 4px; margin-right: 4px; }
  .apply-copy h1 { letter-spacing: -.06em; }
  .community { margin: 0 4px; }
  .application-card { padding: 27px 20px 25px; }
  .field input { height: 52px; border-radius: 15px; font-size: 16px; }
}

@keyframes signal-mobile {
  0%, 12% { left: 12%; opacity: 0; }
  22% { opacity: 1; }
  78% { opacity: 1; }
  88%, 100% { left: 88%; opacity: 0; }
}

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