* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #1f2b3d 0%, #050608 45%, #000 100%);
  font-family: "Inter", "Segoe UI", sans-serif;
  color: #f5f6f8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  position: relative;
  cursor: none;
}

#background-particles {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle at var(--cursor-x, 50%) var(--cursor-y, 50%),
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.15) 18%,
    rgba(255, 255, 255, 0.05) 36%,
    rgba(255, 255, 255, 0) 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: screen;
}

.cursor-glow.is-active {
  opacity: 0.75;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(116, 173, 255, 0.85);
  background: rgba(116, 173, 255, 0.2);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.2s ease, height 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.25s ease;
  mix-blend-mode: screen;
  z-index: 3;
  opacity: 0;
}

.custom-cursor.is-visible {
  opacity: 0.85;
}

.custom-cursor.is-interactive {
  width: 28px;
  height: 28px;
  border-color: rgba(172, 214, 255, 0.95);
  background: rgba(120, 185, 255, 0.28);
}

.custom-cursor.is-pressed {
  transform: translate(-50%, -50%) scale(0.85);
}

.custom-cursor.is-hidden {
  opacity: 0;
}

.page {
  width: min(960px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 32px;
  position: relative;
  z-index: 1;
}

input,
textarea {
  cursor: text;
}

.screen {
  display: none;
  animation: fade-in 0.4s ease;
}

.screen.is-active {
  display: block;
}

.screen[hidden] {
  display: none !important;
}

#loading-section.is-active,
#result-section.is-active {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.hero {
  text-align: center;
  margin-bottom: 32px;
}

.handle {
  display: inline-block;
  font-family: "Clash Display", "Inter", sans-serif;
  font-size: clamp(32px, 6vw, 60px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: transparent;
  background: linear-gradient(125deg, #ffffff 0%, #c7d3ff 30%, #5ca3ff 65%, #f8fbff 100%);
  background-size: 220% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: heroGradient 6s ease-in-out infinite alternate;
  text-shadow: 0 18px 42px rgba(12, 22, 53, 0.45);
}

.hero h1 {
  margin: 12px 0 4px;
  font-family: "Clash Display", "Inter", sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 4.4vw, 40px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.9);
  position: relative;
  display: inline-block;
  padding: 6px 24px;
}

.community {
  margin: 0;
  color: rgba(208, 214, 230, 0.7);
  font-size: 15px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.form-card,
.loading-card,
.result-card {
  background: rgba(19, 22, 29, 0.86);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  display: grid;
  gap: 24px;
}

.email-card {
  background: rgba(19, 22, 29, 0.9);
  border-radius: 26px;
  padding: 36px 32px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 18px;
  text-align: center;
}

.email-card h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 32px);
  font-family: "Clash Display", "Inter", sans-serif;
}

.email-description {
  margin: 0;
  color: rgba(220, 228, 245, 0.8);
  font-size: 15px;
}

.email-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

.email-input {
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(140, 160, 255, 0.25);
  background: rgba(12, 13, 18, 0.8);
  color: #eef3ff;
  padding: 0 20px;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.email-input:focus {
  outline: none;
  border-color: rgba(126, 164, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(90, 135, 255, 0.25);
}

.email-message {
  min-height: 20px;
  margin: 0;
  font-size: 14px;
  color: #ff6b6b;
}

.loading-card,
.result-card {
  max-width: 560px;
  text-align: center;
}

.loading-card h2,
.result-card h2 {
  margin: 16px 0 8px;
  font-size: clamp(24px, 4vw, 32px);
}

.loading-text {
  margin: 0;
  font-size: 15px;
  color: rgba(245, 246, 248, 0.8);
}

.loading-countdown {
  margin-top: 8px;
  font-family: "Clash Display", "Inter", sans-serif;
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #e6edff;
}

.result-card {
  gap: 20px;
}

.video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(12, 13, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  padding: 12px;
}

.video-wrapper:empty {
  display: none;
}

.video-wrapper video,
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 18px;
  background: #000;
}

.result-message {
  margin: 0;
  font-size: 14px;
  color: rgba(245, 246, 248, 0.75);
}

.result-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(135, 182, 255, 0.95), rgba(82, 126, 255, 0.95));
  color: #06112c;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 16px 28px rgba(82, 126, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 8px auto 0;
  max-width: 100%;
}

.result-cta:hover,
.result-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(82, 126, 255, 0.42);
  outline: none;
}

.secondary-button {
  justify-self: center;
  padding: 14px 28px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(12, 13, 18, 0.65);
  color: #f5f6f8;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(66, 149, 255, 0.8);
  background: rgba(58, 134, 255, 0.35);
}

.primary-description {
  position: relative;
  display: grid;
  gap: 12px;
}

.primary-description textarea {
  width: 100%;
  border-radius: 20px;
  background: rgba(12, 13, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 80px 24px 24px;
  color: #f5f6f8;
  font-size: 16px;
  resize: vertical;
  min-height: 140px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.primary-description textarea:focus {
  outline: none;
  border-color: rgba(66, 149, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(66, 149, 255, 0.25);
}

.input-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.upload {
  position: absolute;
  top: 24px;
  right: 24px;
}

.upload input {
  display: none;
}

.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(45, 54, 66, 0.85);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, background 0.2s ease;
}

.upload-button:hover,
.upload-button:focus {
  background: rgba(54, 105, 255, 0.85);
  transform: scale(1.05);
}

.upload-preview {
  margin-top: 12px;
  min-height: 64px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(10, 11, 15, 0.6);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 12px 16px;
  color: rgba(245, 246, 248, 0.75);
  font-size: 14px;
}

.upload-preview.is-empty {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(245, 246, 248, 0.55);
  justify-content: center;
}

.upload-preview img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.upload-preview .file-meta {
  display: grid;
  gap: 4px;
}

.upload-preview .file-name {
  font-weight: 500;
  color: #f5f6f8;
}

.upload-preview .file-size {
  font-size: 12px;
  color: rgba(245, 246, 248, 0.55);
}

.shortcut-tip {
  font-size: 13px;
  color: rgba(245, 246, 248, 0.7);
  margin: 0;
}

.field-group {
  display: grid;
  gap: 12px;
}

.field-label {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 246, 248, 0.65);
}

.field-group input {
  height: 54px;
  border-radius: 16px;
  background: rgba(12, 13, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 20px;
  color: #f5f6f8;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-group input:focus {
  outline: none;
  border-color: rgba(66, 149, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(66, 149, 255, 0.25);
}

.selection-group {
  display: grid;
  gap: 16px;
}

.options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.option-button {
  height: 52px;
  border-radius: 30px;
  border: 1px solid rgba(119, 131, 255, 0.12);
  background: rgba(19, 23, 35, 0.75);
  color: rgba(228, 233, 255, 0.88);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.option-button:hover,
.option-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(126, 161, 255, 0.6);
  background: rgba(44, 56, 92, 0.85);
  box-shadow: 0 16px 30px rgba(42, 118, 255, 0.22);
  outline: none;
}

.option-button.is-selected {
  background: linear-gradient(135deg, #5a8bff 0%, #8c6dff 100%);
  border-color: rgba(126, 151, 255, 0.45);
  color: #f6f8ff;
  box-shadow: 0 20px 38px rgba(74, 120, 255, 0.38);
}

.actions {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.submit-button {
  font-size: 18px;
  display: inline-block;
  outline: 0;
  border: 0;
  cursor: pointer;
  will-change: box-shadow, transform;
  background: radial-gradient(100% 100% at 100% 0%, #89e5ff 0%, #5468ff 100%);
  box-shadow: 0px 0.01em 0.01em rgba(45, 35, 66, 0.4), 0px 0.3em 0.7em -0.01em rgba(45, 35, 66, 0.3), inset 0px -0.01em 0px rgba(58, 65, 111, 0.5);
  padding: 0 2.4em;
  border-radius: 0.9em;
  color: #ffffff;
  height: 58px;
  letter-spacing: 0.02em;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.submit-button:hover,
.submit-button:focus-visible {
  outline: none;
  transform: translateY(-0.1em);
  box-shadow: 0px 0.1em 0.2em rgba(45, 35, 66, 0.4), 0px 0.4em 0.7em -0.1em rgba(45, 35, 66, 0.3), inset 0px -0.1em 0px #3c4fe0;
}

.submit-button:active {
  box-shadow: inset 0px 0.1em 0.6em #3c4fe0;
  transform: translateY(0);
}

.submit-button:disabled {
  cursor: progress;
  opacity: 0.7;
  box-shadow: none;
  transform: none;
}

.form-message {
  min-height: 20px;
  margin: 0;
  font-size: 14px;
}

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

.form-message.success {
  color: #1dd1a1;
}

.skool-button {
  position: fixed;
  top: 28px;
  right: 36px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 15px;
  color: #f5fbff;
  background: linear-gradient(135deg, rgba(0, 107, 179, 1) 0%, rgba(0, 140, 215, 1) 100%);
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 18px 32px rgba(0, 102, 204, 0.35);
  text-decoration: none;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  overflow: hidden;
  isolation: isolate;
}

.skool-button::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0) 65%
  );
  z-index: -1;
  opacity: 0.8;
}

.skool-button:hover::before {
  animation: button-shine 1.6s ease-out;
}

.skool-button:hover,
.skool-button:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 22px 36px rgba(0, 107, 179, 0.45);
  border-color: rgba(255, 255, 255, 0.55);
  outline: none;
}

.skool-button__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.skool-button__label {
  white-space: nowrap;
  font-size: 15px;
}

.skool-button__sub {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: rgba(240, 247, 255, 0.85);
  line-height: 1.3;
}

.skool-button__icon {
  width: 22px;
  height: 22px;
  transition: transform 0.25s ease;
}

.skool-button:hover .skool-button__icon {
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .skool-button {
    position: static;
    align-self: center;
    margin-bottom: 20px;
  }

  .form-card,
  .loading-card,
  .result-card,
  .email-card {
    padding: 24px;
    border-radius: 20px;
  }

  .email-form {
    grid-template-columns: 1fr;
  }

  .primary-description textarea {
    padding-right: 68px;
  }

  .upload-button {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .upload-preview {
    min-height: 56px;
  }

  .upload-preview img {
    width: 52px;
    height: 52px;
  }
}

@keyframes heroGradient {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes button-shine {
  0% {
    transform: translateX(-120%);
  }
  60% {
    transform: translateX(120%);
  }
  100% {
    transform: translateX(120%);
  }
}

.title-shine {
  position: relative;
  display: inline-block;
  font-family: "Clash Display", "Inter", sans-serif;
  background: linear-gradient(120deg, #6d8dff 0%, #b8c8ff 25%, #5475ff 50%, #b8c8ff 75%, #6d8dff 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: titleShine 3.2s linear infinite;
  text-shadow: 0 12px 28px rgba(8, 16, 40, 0.5);
}

@keyframes titleShine {
  0% {
    background-position: 0% 50%;
  }
  60% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}
