@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

body {
  margin: 0;
  background-color: #213666;
  color: #fff;
  overflow: hidden;
}

.title {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 100vh;
  cursor: crosshair;
  
  h1 {
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    font-size: 7.5vw;
    letter-spacing: -0.1rem;
    line-height: 0.95;
    text-align: center;
    width: 80%;
    font-weight: 300;
    font-style: normal;
    text-wrap: balance;
    white-space: nowrap;
    opacity: 0;
    will-change: opacity, transform, filter;
    animation: glass-text-appear 3.2s cubic-bezier(.16, 1, .3, 1) forwards;
    
    div {
      position: relative;
    }
  }
}

.title h1:nth-child(1) { animation-delay: 0.12s; }
.title h1:nth-child(2) { animation-delay: 0.34s; }
.title h1:nth-child(3) { animation-delay: 0.56s; }
.title h1:nth-child(4) { animation-delay: 0.78s; }
.title h1:nth-child(5) { animation-delay: 1.00s; }
.title h1:nth-child(6) { animation-delay: 1.22s; }
.title h1:nth-child(7) { animation-delay: 1.44s; }
.title h1:nth-child(8) { animation-delay: 1.66s; }

@keyframes glass-text-appear {
  0% {
    opacity: 0;
    color: rgba(255, 255, 255, 0);
    filter: blur(30px);
    transform: translateY(44px) scale(0.95);
    text-shadow:
      0 0 30px rgba(39, 128, 255, 0.88),
      0 0 90px rgba(161, 155, 255, 0.58);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0);
  }
  50% {
    opacity: 0.68;
    color: rgba(255, 255, 255, 0.30);
    filter: blur(7px);
    transform: translateY(8px) scale(0.99);
    text-shadow:
      0 0 18px rgba(255, 255, 255, 0.46),
      0 0 48px rgba(39, 128, 255, 0.62);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.30);
  }
  100% {
    opacity: 1;
    color: #fff;
    filter: blur(0);
    transform: translateY(0) scale(1);
    text-shadow: 0 0 0 rgba(39, 128, 255, 0);
    -webkit-text-stroke: 0 rgba(255, 255, 255, 0);
  }
}

@media (max-width: 700px) {
  .title h1 {
    width: 92%;
    font-size: 9vw;
    letter-spacing: -0.05rem;
  }
}

.detail-size {
  position: absolute;
  bottom: 0;
  width: 100%;
  min-width: 50px;
  height: 1px;
  font-size: 11px;
}

.drawer-trigger {
  cursor: pointer;
}

.drawer-trigger:focus-visible {
  outline: 2px solid #ffcc00;
  outline-offset: 8px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(5, 16, 42, 0.46);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 350ms ease, visibility 350ms ease;
}

.registration-drawer {
  position: fixed;
  z-index: 30;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: min(460px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 64px 38px 38px;
  overflow-y: auto;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(39, 128, 255, 0.28), rgba(33, 54, 102, 0.52)),
    rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  box-shadow: -18px 22px 70px rgba(4, 16, 45, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  transform: translateX(calc(100% + 32px));
  opacity: 0;
  transition: transform 520ms cubic-bezier(.22, 1, .36, 1), opacity 350ms ease;
  touch-action: pan-y;
}

body.drawer-open .drawer-backdrop {
  opacity: 1;
  visibility: visible;
}

body.drawer-open .registration-drawer {
  transform: translateX(0);
  opacity: 1;
}

.drawer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  padding: 0 0 3px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: 300 28px/1 Inter, sans-serif;
  cursor: pointer;
}

.drawer-swipe-handle {
  position: absolute;
  top: 50%;
  left: 9px;
  width: 4px;
  height: 54px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  transform: translateY(-50%);
}

.drawer-kicker,
.drawer-copy,
.registration-drawer h2,
.registration-form {
  font-family: Inter, sans-serif;
}

.drawer-kicker {
  margin: 0 0 18px;
  color: #ffcc00;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.registration-drawer h2 {
  margin: 0;
  max-width: 390px;
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.drawer-copy {
  margin: 22px 0 32px;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.5;
}

.registration-form {
  display: grid;
  gap: 16px;
}

.registration-form label {
  display: grid;
  gap: 7px;
}

.registration-form label span {
  padding-left: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 500;
}

.registration-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
  font: 400 15px/1.2 Inter, sans-serif;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.registration-form input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.registration-form input:focus {
  border-color: #2780ff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 4px rgba(39, 128, 255, 0.18);
}

.submit-button {
  width: 100%;
  padding: 16px 18px;
  border: 0;
  border-radius: 14px;
  background: #2780ff;
  color: #fff;
  font: 600 15px/1 Inter, sans-serif;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(39, 128, 255, 0.32);
  transition: transform 180ms ease, background 180ms ease;
}

.submit-button:hover {
  background: #4a96ff;
  transform: translateY(-2px);
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: #ffcc00;
  font-size: 13px;
}

.form-status.is-error {
  color: #ffb0c8;
}

.form-status.is-success {
  color: #ffcc00;
}

.form-disclosure {
  margin: -2px 2px 0;
  color: rgba(255, 255, 255, 0.52);
  font-family: Inter, sans-serif;
  font-size: 11px;
  line-height: 1.45;
}

.registration-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.drawer-footer {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.cancel-button {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: 500 15px/1 Inter, sans-serif;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.cancel-button:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 600px) {
  .registration-drawer {
    top: auto;
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 58px 24px 28px;
    border-radius: 22px;
    transform: translateY(calc(100% + 16px));
    touch-action: pan-x;
  }

  .drawer-swipe-handle {
    top: 10px;
    left: 50%;
    width: 54px;
    height: 4px;
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .title h1 {
    opacity: 1;
    animation: none;
  }

  .drawer-backdrop,
  .registration-drawer {
    transition-duration: 1ms;
  }
}
