:root {
  color-scheme: dark;
  --background: #020612;
  --panel: #081122;
  --panel-raised: #111b2d;
  --border: #1c2b43;
  --border-strong: #30425f;
  --text: #fbfdff;
  --text-secondary: #dce7f7;
  --text-muted: #9dafca;
  --accent: #315fce;
  --accent-hover: #3f72df;
  --accent-bright: #78afff;
  --accent-pale: #b8d6ff;
  --danger: #ff8e8e;
  --success: #76e6ae;
  --font: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, sans-serif;
  --heading-spacing: -.035em;
  --heading-leading: 1.08;
  --body-leading: 1.66;
  --iti-border-color: var(--border-strong);
  --iti-country-selector-bg: var(--panel-raised);
  --iti-icon-color: var(--text-secondary);
  --iti-hover-color: rgba(120, 175, 255, .12);
  --iti-mobile-popup-margin: 18px;
  --iti-strict-reject-flash-color: rgba(255, 142, 142, .14);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--background);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

button,
input,
select { font: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: #ffffff;
  color: #02050b;
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.brandbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 18px clamp(22px, 4vw, 56px);
  pointer-events: none;
}

.brandbar > * { pointer-events: auto; }

.wordmark {
  display: inline-block;
  text-decoration: none;
}

.wordmark__logo {
  display: block;
  width: clamp(170px, 15vw, 220px);
  height: auto;
}

.campaign-date {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 520;
}

.campaign-date span {
  color: var(--text-muted);
  margin-right: 6px;
}

.brandbar__actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-register {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.header-register:hover { background: var(--accent-hover); }

.landing-grid {
  display: block;
}

.story {
  position: relative;
  min-width: 0;
}

.visual-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--background);
}

.scene-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 440ms ease;
  will-change: opacity;
}

.scene-image.is-active { opacity: 1; }
.scene-image.is-video-active { opacity: 0; }

.scene-image img,
.scene-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.scene-image img {
  transform: scale(var(--scene-scale, 1.025)) translate3d(0, var(--scene-shift, 0), 0);
  transform-origin: center;
  will-change: transform;
}

.scene-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 440ms ease;
  will-change: opacity;
}

.scene-video.is-active { opacity: 1; }

.scene-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(2, 5, 11, .9) 0%, rgba(2, 5, 11, .55) 35%, rgba(2, 5, 11, .06) 68%),
    linear-gradient(0deg, rgba(2, 5, 11, .76) 0%, transparent 36%);
}

.story-steps {
  position: relative;
  z-index: 4;
  margin-top: -100vh;
  margin-top: -100svh;
}

.story-step {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 104px clamp(24px, 5.4vw, 80px) 72px;
}

.story-copy {
  width: min(650px, 64vw);
  margin-left: clamp(-22px, -1.5vw, -12px);
  padding: clamp(22px, 2.2vw, 32px);
  border: 1px solid rgba(139, 177, 232, .16);
  border-left: 2px solid rgba(120, 175, 255, .7);
  border-radius: 4px 16px 16px 4px;
  background: linear-gradient(118deg, rgba(2, 6, 18, .94), rgba(5, 13, 29, .79));
  box-shadow: 0 22px 64px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 255, 255, .035);
  backdrop-filter: blur(15px) saturate(115%);
  -webkit-backdrop-filter: blur(15px) saturate(115%);
  opacity: .22;
  transform: translateY(18px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.story-step.is-active .story-copy {
  opacity: 1;
  transform: translateY(0);
}

.conversion-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: clamp(40px, 7vw, 104px);
  align-items: center;
  width: min(100%, 1180px);
  margin: 0 auto;
}

.story-copy--conversion { width: min(610px, 100%); }

.registration-card {
  width: 100%;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(8, 17, 34, .96);
  opacity: .24;
  transform: translateY(18px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.registration-brand {
  width: clamp(178px, 15vw, 220px);
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(139, 177, 232, .2);
}

.registration-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.story-step.is-active .registration-card {
  opacity: 1;
  transform: translateY(0);
}

.story-copy--wide { width: min(640px, 64vw); }

.step-number {
  margin: 0 0 22px;
  color: var(--accent-pale);
  font: 620 12px/1 var(--font);
  letter-spacing: .14em;
}

.story-copy h1,
.story-copy h2 {
  max-width: 13ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(46px, 5.7vw, 84px);
  font-weight: 650;
  line-height: var(--heading-leading);
  letter-spacing: var(--heading-spacing);
  text-wrap: balance;
}

.headline-accent {
  display: block;
  color: var(--accent-bright);
}

.story-copy p:not(.step-number):not(.review-note) {
  max-width: 45ch;
  margin: 30px 0 0;
  color: var(--text-secondary);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 430;
  line-height: var(--body-leading);
}

.text-link,
.primary-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  margin-top: 28px;
  color: var(--text);
  font-weight: 620;
  text-underline-offset: 5px;
}

.benefit-pair {
  margin: 32px 0 0;
  padding: 16px 0;
  border-block: 1px solid rgba(255, 255, 255, .19);
}

.benefit-pair dt { color: var(--text-muted); font-size: 12px; letter-spacing: .02em; }
.benefit-pair dd { margin: 7px 0 0; color: var(--accent-pale); font-size: 16px; font-weight: 650; }

.eligibility-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  max-width: 540px;
  margin: 30px 0 0;
  padding: 22px 0 22px 24px;
  border-block: 1px solid rgba(255, 255, 255, .2);
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

.eligibility-list li { padding-left: 4px; }
.eligibility-list li::marker { color: var(--accent-bright); font-weight: 700; }

.review-note {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.scene-nav {
  position: fixed;
  right: 20px;
  top: 50%;
  z-index: 16;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateY(-50%);
}

.scene-nav a {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  text-decoration: none;
}

.scene-nav__dot {
  display: block;
  width: 8px;
  height: 8px;
  border: 1px solid #86a1c3;
  border-radius: 50%;
  background: #07101b;
  color: transparent;
  font-size: 0;
}

.scene-nav a.is-active .scene-nav__dot { background: var(--accent-bright); border-color: var(--accent-bright); }

.scene-nav__label {
  position: absolute;
  right: 38px;
  color: var(--text-muted);
  font-size: 11px;
  opacity: 0;
  transition: opacity 150ms ease;
}

.scene-nav a:hover .scene-nav__label,
.scene-nav a:focus-visible .scene-nav__label,
.scene-nav a.is-active .scene-nav__label { opacity: 1; }

.registration-heading h3 {
  margin: 0;
  font-size: clamp(27px, 2.4vw, 34px);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.registration-heading > p:last-child {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

#registration-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.form-progress {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 12px;
}

.form-progress__track {
  height: 2px;
  overflow: hidden;
  background: var(--border);
}

.form-progress__track span {
  display: block;
  width: 50%;
  height: 100%;
  background: var(--accent-bright);
  transition: width 180ms ease;
}

#registration-form[data-step="password"] .form-progress__track span { width: 100%; }

.form-step {
  display: grid;
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-step[hidden] { display: none; }

.form-step legend {
  margin-bottom: 3px;
  padding: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 650;
}

.form-step__intro {
  margin: -7px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
}

.form-field { display: grid; gap: 6px; }

.form-field label {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 520;
}

.form-field input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  outline: none;
  background: var(--panel-raised);
  color: var(--text);
  font-size: 15px;
}

.form-field input::placeholder { color: #788aa3; }

.form-field input:focus-visible,
.iti__selected-country:focus-visible,
.iti__search-input:focus-visible,
.submit-button:focus-visible,
.secondary-button:focus-visible,
.mobile-register:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(120, 175, 255, .85);
  outline-offset: 3px;
}

.form-field input[aria-invalid="true"] { border-color: var(--danger); }

.field-hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
}

.field-error {
  min-height: 0;
  margin: 0;
  color: var(--danger);
  font-size: 12px;
}

.field-error:empty { display: none; }

.form-disclosure {
  margin: -4px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.submit-button {
  min-height: 54px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 680;
  cursor: pointer;
}

.submit-button:hover { background: var(--accent-hover); }
.submit-button:disabled { cursor: wait; opacity: .65; }

.form-actions {
  display: grid;
  grid-template-columns: minmax(96px, .42fr) minmax(0, 1fr);
  gap: 10px;
}

.secondary-button {
  min-height: 54px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 620;
  cursor: pointer;
}

.secondary-button:hover { background: rgba(120, 175, 255, .08); }

.show-passwords {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
}

.show-passwords input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--accent-bright);
}

.iti { width: 100%; }

.iti__selected-country {
  color: var(--text-secondary);
  cursor: pointer;
}

.iti__country-selector {
  color: var(--text-secondary);
  border-color: var(--border-strong);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .24);
}

.iti__search-input {
  min-height: 44px;
  border: 0;
  background: var(--panel-raised);
  color: var(--text);
}

.iti__country-name { color: var(--text-secondary); }
.iti__dial-code { color: var(--text-muted); }

.iti--fullscreen-popup .iti__country-selector {
  border: 1px solid var(--border-strong);
  border-radius: 10px;
}

.form-status {
  min-height: 0;
  margin: 0;
  color: var(--success);
  font-size: 13px;
  line-height: 1.5;
}

.form-status:not(:empty) {
  padding: 12px 14px;
  border: 1px solid rgba(118, 230, 174, .34);
  border-radius: 8px;
  background: rgba(118, 230, 174, .08);
}

.form-status.is-error {
  color: var(--danger);
  border-color: rgba(255, 142, 142, .34);
  background: rgba(255, 142, 142, .08);
}

.mobile-register { display: none; }

@media (max-width: 1100px) and (min-width: 901px) {
  .conversion-layout {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 380px);
    gap: 36px;
  }
  .story-copy h1,
  .story-copy h2 { font-size: clamp(40px, 5vw, 62px); }
  .eligibility-list { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .brandbar {
    inset: 0 0 auto;
    min-height: 64px;
    padding: 14px 18px;
    background: linear-gradient(180deg, rgba(2, 5, 11, .88), transparent);
  }

  .wordmark__logo { width: 158px; }
  .campaign-date { font-size: 11px; }
  .campaign-date span { display: block; margin: 0; font-size: 9px; }
  .header-register { display: none; }

  .visual-stage { height: 100svh; }
  .story-steps { margin-top: -100svh; }

  .scene-image img,
  .scene-video {
    object-position: center center;
  }

  .scene-image img {
    transform: scale(var(--scene-scale, 1.015)) translate3d(0, var(--scene-shift, 0), 0);
  }

  .scene-scrim {
    background: linear-gradient(0deg, rgba(2, 5, 11, .98) 2%, rgba(2, 5, 11, .82) 22%, rgba(2, 5, 11, .1) 58%, transparent 75%);
  }

  .story-step {
    align-items: flex-end;
    min-height: 100svh;
    padding: 82px 20px calc(92px + env(safe-area-inset-bottom));
  }

  .story-copy,
  .story-copy--wide {
    width: 100%;
    max-width: 620px;
    margin-left: 0;
    padding: 20px;
    border-left-width: 1px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(2, 6, 18, .9), rgba(4, 12, 27, .96));
  }

  .story-copy h1,
  .story-copy h2 {
    max-width: 12ch;
    font-size: clamp(38px, 10.8vw, 58px);
    line-height: var(--heading-leading);
  }

  .story-copy p:not(.step-number):not(.review-note) {
    max-width: 40ch;
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.62;
  }

  .step-number { margin-bottom: 16px; }
  .text-link { margin-top: 18px; }
  .benefit-pair { margin-top: 20px; }
  .benefit-pair dt { font-size: 10px; }
  .benefit-pair dd { font-size: 13px; }

  .eligibility-list {
    grid-template-columns: 1fr;
    gap: 4px;
    margin-top: 18px;
    padding-block: 14px;
    font-size: 13px;
  }

  .review-note { margin-top: 9px; font-size: 11px; }
  .scene-nav { display: none; }

  .story-step--conversion {
    align-items: center;
    padding-top: 96px;
  }

  .conversion-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    width: min(100%, 620px);
  }

  .story-copy--conversion { max-width: 540px; }

  .registration-card {
    padding: 24px 20px;
    background: rgba(8, 17, 34, .98);
  }

  .registration-brand {
    width: 176px;
    margin-bottom: 22px;
    padding-bottom: 17px;
  }

  #registration-form { gap: 16px; }
  .form-field input { height: 50px; }
  .submit-button,
  .secondary-button { min-height: 52px; }

  .mobile-register {
    position: fixed;
    right: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    left: 16px;
    z-index: 40;
    display: grid;
    place-items: center;
    min-height: 50px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 720;
    text-decoration: none;
    transition: opacity 150ms ease;
  }

  .mobile-register.is-hidden { opacity: 0; pointer-events: none; }
}

@media (max-width: 380px) {
  .story-copy h1,
  .story-copy h2 { font-size: 35px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .scene-image img { transform: none !important; }
  .scene-video { display: none; }
}
