:root {
  --bg-a: #020716;
  --bg-b: #020d2c;
  --grid: rgba(57, 204, 244, 0.16);
  --frame: rgba(56, 225, 255, 0.48);
  --text: #e8f5ff;
  --muted: rgba(194, 220, 239, 0.78);
  --glow-cyan: rgba(0, 232, 255, 0.28);
  --glow-amber: rgba(252, 137, 38, 0.24);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(to right, transparent 0, transparent 69px, var(--grid) 70px),
    linear-gradient(to bottom, transparent 0, transparent 69px, var(--grid) 70px),
    radial-gradient(circle at 16% 4%, rgba(0, 214, 255, 0.16), rgba(0, 0, 0, 0) 38%),
    radial-gradient(circle at 85% 90%, rgba(0, 237, 255, 0.14), rgba(0, 0, 0, 0) 34%),
    linear-gradient(120deg, var(--bg-a) 4%, #041432 42%, #03193b 100%);
  background-size:
    70px 70px,
    70px 70px,
    auto,
    auto,
    auto;
  overflow-x: clip;
}

body.modal-open {
  overflow: hidden;
}

.sky-glow {
  position: fixed;
  z-index: 0;
  pointer-events: none;
}

.sky-glow-top {
  top: -120px;
  right: -80px;
  width: 700px;
  height: 420px;
  background: radial-gradient(circle, var(--glow-amber), rgba(0, 0, 0, 0) 66%);
}

.sky-glow-bottom {
  bottom: -250px;
  right: -110px;
  width: 760px;
  height: 620px;
  background: radial-gradient(circle, var(--glow-cyan), rgba(0, 0, 0, 0) 68%);
}

.lang-control {
  display: inline-flex;
  align-items: center;
  min-width: 214px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 234, 255, 0.08), rgba(7, 41, 94, 0.55));
  border: 1px solid rgba(122, 238, 255, 0.44);
  box-shadow: 0 8px 20px rgba(3, 13, 36, 0.38);
}

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

.lang-control select {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  outline: none;
  text-align: center;
  cursor: pointer;
}

.lang-control select:focus {
  box-shadow: 0 0 0 3px rgba(21, 221, 243, 0.18);
}

.slide-nav {
  position: fixed;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slide-nav a {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(180, 209, 229, 0.36);
  border: 1px solid rgba(117, 209, 238, 0.6);
  transition: all 240ms ease;
  box-shadow: 0 0 0 0 rgba(30, 226, 255, 0.7);
}

.slide-nav a.active {
  background: #15ddf3;
  box-shadow: 0 0 0 5px rgba(30, 226, 255, 0.24);
}

.deck {
  position: relative;
  z-index: 1;
  width: min(1450px, calc(100% - 44px));
  margin: 8px auto 70px;
}

.slide {
  --parallax: 0px;
  min-height: auto;
  display: grid;
  place-items: center;
  padding: 22px 0;
}

.slide-frame {
  width: 100%;
  margin: 0;
  border-radius: 28px;
  border: 2px solid var(--frame);
  overflow: hidden;
  box-shadow:
    0 28px 70px rgba(2, 10, 30, 0.62),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  opacity: 0;
  transform: translateY(56px) scale(0.95);
  filter: saturate(0.8) blur(1px);
  transition:
    opacity 760ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 900ms ease;
}

.slide.is-in .slide-frame {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: saturate(1) blur(0);
}

.slide-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 8, 25, 0.04), rgba(0, 8, 25, 0.2));
}

.slide-frame {
  position: relative;
}

.intro-frame {
  display: grid;
  place-items: center;
  min-height: min(74vh, 760px);
  padding: clamp(24px, 4vw, 56px);
  background:
    radial-gradient(circle at 16% 10%, rgba(0, 232, 255, 0.2), rgba(0, 0, 0, 0) 42%),
    radial-gradient(circle at 84% 92%, rgba(252, 137, 38, 0.2), rgba(0, 0, 0, 0) 46%),
    linear-gradient(148deg, rgba(3, 18, 46, 0.96), rgba(2, 10, 31, 0.95));
  overflow: hidden;
}

.intro-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(1.1) contrast(1.05);
}

.intro-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(160deg, rgba(2, 8, 24, 0.62), rgba(2, 10, 27, 0.78)),
    radial-gradient(circle at 10% 12%, rgba(0, 217, 255, 0.16), transparent 38%),
    radial-gradient(circle at 88% 86%, rgba(255, 152, 82, 0.13), transparent 42%);
}

.intro-content {
  width: min(920px, 100%);
  text-align: left;
  position: relative;
  z-index: 2;
}

.intro-kicker {
  margin: 0 0 10px;
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(122, 238, 255, 0.62);
  background: rgba(0, 196, 255, 0.1);
  color: #8ceeff;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-content h1 {
  margin: 8px 0 14px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
  text-wrap: balance;
}

.intro-steps {
  margin: 0;
  padding-left: 1.3em;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.32rem);
  line-height: 1.55;
}

.intro-steps li + li {
  margin-top: 8px;
}

.intro-highlight {
  margin: 24px 0 0;
  font-size: clamp(1.25rem, 2.8vw, 2rem);
  font-weight: 800;
  color: #7ff4ff;
  text-shadow: 0 0 22px rgba(23, 229, 251, 0.35);
}

.intro-scroll-cue {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  text-decoration: none;
  color: #b7ecff;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
}

.intro-scroll-text {
  font-size: clamp(1.08rem, 2.1vw, 1.42rem);
  line-height: 1.15;
  text-shadow: 0 0 14px rgba(23, 229, 251, 0.25);
}

.intro-scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 3px solid #70ecff;
  border-bottom: 3px solid #70ecff;
  border-radius: 2px;
  transform: rotate(45deg);
  filter: drop-shadow(0 0 8px rgba(23, 229, 251, 0.45));
  animation: introArrowBounce 1.35s ease-in-out infinite;
}

.intro-scroll-cue:hover .intro-scroll-arrow,
.intro-scroll-cue:focus-visible .intro-scroll-arrow {
  animation-duration: 0.9s;
}

.intro-scroll-cue:focus-visible {
  outline: 2px solid #9beeff;
  outline-offset: 4px;
  border-radius: 8px;
}

@keyframes introArrowBounce {
  0%,
  100% {
    transform: rotate(45deg) translate(0, 0);
    opacity: 0.78;
  }

  50% {
    transform: rotate(45deg) translate(6px, 6px);
    opacity: 1;
  }
}

.slide-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transform: translateY(var(--parallax));
  transition: transform 80ms linear, opacity 180ms ease, filter 180ms ease;
}

.slide-frame img.is-switching {
  opacity: 0.14;
  filter: saturate(0.82) blur(1.2px);
}

.slide-social-hotspots {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.social-hotspot {
  position: absolute;
  pointer-events: auto;
  border-radius: 999px;
  outline: none;
}

.social-hotspot:focus-visible,
.social-hotspot:hover {
  box-shadow: 0 0 0 2px rgba(122, 244, 255, 0.92), 0 0 18px rgba(50, 228, 255, 0.52);
}

.social-hotspot-x,
.social-hotspot-telegram,
.social-hotspot-discord,
.social-hotspot-web {
  width: 5.5%;
  aspect-ratio: 1 / 1;
  top: 89.08%;
  transform: translate(-50%, -50%);
}

.social-hotspot-x {
  left: 43.02%;
}

.social-hotspot-telegram {
  left: 47.67%;
}

.social-hotspot-discord {
  left: 52.34%;
}

.social-hotspot-web {
  left: 57.03%;
}

.social-hotspot-handle {
  top: 95.2%;
  left: 53.8%;
  width: 14%;
  height: 4.8%;
  transform: translate(-50%, -50%);
  border-radius: 10px;
}

@media (max-width: 980px) {
  .social-hotspot-x,
  .social-hotspot-telegram,
  .social-hotspot-discord,
  .social-hotspot-web {
    width: 5.8%;
  }

  .social-hotspot-handle {
    width: 22%;
    height: 6.4%;
    top: 95%;
  }
}

.floating-cta {
  position: fixed;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.97;
}

.cta-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  white-space: normal;
  line-height: 1.15;
  overflow-wrap: anywhere;
  min-width: 214px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.cta-btn:hover {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.04);
}

.cta-btn:focus-visible {
  outline: 2px solid #9beeff;
  outline-offset: 2px;
}

.cta-primary {
  color: #021326;
  background: linear-gradient(125deg, #7af4ff, #2de6ff 55%, #0fd3f2);
  box-shadow: 0 8px 26px rgba(12, 216, 245, 0.38);
}

.cta-secondary {
  color: #dff7ff;
  background: linear-gradient(135deg, rgba(0, 234, 255, 0.17), rgba(7, 41, 94, 0.74));
  border: 1px solid rgba(122, 238, 255, 0.66);
  box-shadow: 0 8px 20px rgba(3, 13, 36, 0.45);
}

.calculator-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  transition: opacity 240ms ease;
}

.calculator-modal[hidden] {
  display: none;
}

.calculator-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 6, 18, 0.74);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 260ms ease;
}

.calculator-modal__panel {
  position: relative;
  width: min(1280px, 100%);
  max-height: calc(100vh - 16px);
  border-radius: 22px;
  border: 1px solid rgba(91, 227, 249, 0.6);
  background: linear-gradient(160deg, rgba(6, 21, 53, 0.97), rgba(2, 14, 36, 0.95));
  box-shadow: 0 28px 84px rgba(0, 7, 24, 0.72);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px) scale(0.975);
  transition: transform 300ms cubic-bezier(0.22, 0.8, 0.22, 1), opacity 240ms ease;
}

.calculator-modal.is-open {
  opacity: 1;
}

.calculator-modal.is-open .calculator-modal__backdrop {
  opacity: 1;
}

.calculator-modal.is-open .calculator-modal__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.calculator-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(117, 209, 238, 0.35);
}

.calculator-modal__header h2 {
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.calculator-modal__close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(116, 229, 250, 0.65);
  border-radius: 999px;
  background: rgba(10, 34, 74, 0.9);
  color: var(--text);
  cursor: pointer;
}

.calculator-modal__content {
  min-height: 560px;
  height: min(88vh, 980px);
}

.calculator-modal__content iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.signup-modal .calculator-modal__content {
  display: grid;
  grid-template-rows: 1fr auto;
}

.signup-helper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  min-height: 74px;
  border-top: 1px solid rgba(117, 209, 238, 0.3);
  background: linear-gradient(120deg, rgba(5, 22, 54, 0.96), rgba(3, 18, 44, 0.94));
}

.signup-helper p {
  margin: 0;
  color: #d2e8f6;
  font-size: 1rem;
  font-weight: 600;
}

.signup-complete-btn {
  border: 1px solid rgba(120, 230, 250, 0.78);
  border-radius: 999px;
  padding: 12px 22px;
  min-height: 48px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: linear-gradient(125deg, #7af4ff, #2de6ff 55%, #0fd3f2);
  color: #021326;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(14, 208, 237, 0.34);
}

.signup-complete-btn:hover {
  filter: brightness(1.06);
}

.signup-complete-btn:focus-visible {
  outline: 2px solid #9beeff;
  outline-offset: 2px;
}

.calculator-modal__empty {
  height: 100%;
  display: grid;
  place-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
  color: var(--muted);
}

.calculator-modal__empty p {
  margin: 0;
}

.calculator-modal__empty a {
  color: #8ef4ff;
}

@media (max-width: 760px) {
  .deck {
    width: min(1450px, calc(100% - 20px));
  }

  .slide {
    min-height: auto;
    padding: 10px 0;
  }

  .slide-frame {
    border-radius: 14px;
  }

  .slide-nav {
    right: 8px;
    gap: 5px;
  }

  .slide-nav a {
    width: 9px;
    height: 9px;
  }

  .floating-cta {
    left: 10px;
    right: 10px;
    top: auto;
    bottom: 14px;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .lang-control {
    min-width: 0;
    width: 100%;
    max-width: none;
    min-height: 40px;
    padding: 8px 10px;
  }

  .cta-btn {
    min-width: 0;
    width: 100%;
    max-width: none;
    min-height: 44px;
    font-size: 0.92rem;
    padding: 10px 14px;
  }

  .calculator-modal {
    padding: 10px;
  }

  .intro-frame {
    min-height: min(70vh, 620px);
    padding: 22px 18px;
  }

  .intro-content h1 {
    line-height: 1.14;
  }

  .calculator-modal__panel {
    max-height: calc(100vh - 12px);
    border-radius: 14px;
  }

  .calculator-modal__content {
    min-height: 360px;
    height: min(84vh, 760px);
  }

  .signup-helper {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    min-height: 92px;
    padding: 14px;
  }

  .signup-helper p {
    font-size: 0.94rem;
  }

  .signup-complete-btn {
    width: 100%;
    min-height: 52px;
    font-size: 0.98rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slide-frame,
  .slide-frame img,
  .slide-nav a,
  .calculator-modal,
  .calculator-modal__backdrop,
  .calculator-modal__panel {
    transition: none;
  }

  .slide-frame {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* Success Modal Styles */
.success-modal__content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.success-message {
  text-align: center;
  animation: slideInUp 400ms cubic-bezier(0.22, 0.8, 0.22, 1);
}

.success-icon {
  font-size: 3.5rem;
  color: #3be47d;
  margin-bottom: 16px;
  animation: scaleIn 500ms cubic-bezier(0.22, 0.8, 0.22, 1);
}

.success-message h3 {
  font-size: 1.5rem;
  margin: 0 0 8px 0;
  color: var(--text);
}

.success-message p {
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.5;
}

.success-cta {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: linear-gradient(125deg, #7af4ff, #2de6ff 55%, #0fd3f2);
  color: #021326;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 220ms ease, filter 220ms ease;
  box-shadow: 0 8px 26px rgba(12, 216, 245, 0.38);
}

.success-cta:hover {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.04);
}

.success-cta:focus-visible {
  outline: 2px solid #9beeff;
  outline-offset: 2px;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* Interactive Hotspot Styles - Register and Domain */
.social-hotspot-register {
  /* Covers the large HypeRocket.io / Register CTA box */
  top: 62%;
  left: 36.5%;
  width: 58.5%;
  height: 20%;
  transform: none;
  border-radius: 16px;
  opacity: 0;
  transition: all 240ms ease;
  pointer-events: auto;
}

.social-hotspot-domain {
  /* Covers the HypeRocket.io domain text in the social row */
  top: 86.5%;
  left: 63%;
  width: 20%;
  height: 5%;
  bottom: auto;
  right: auto;
  transform: none;
  border-radius: 8px;
  opacity: 0;
  transition: all 240ms ease;
  pointer-events: auto;
}

.social-hotspot-register:hover,
.social-hotspot-domain:hover {
  opacity: 0.15;
  background: rgba(122, 244, 255, 0.2);
  border: 2px solid rgba(122, 244, 255, 0.6);
  box-shadow: 0 0 20px rgba(12, 216, 245, 0.4), inset 0 0 10px rgba(12, 216, 245, 0.2);
}

.social-hotspot-register:active,
.social-hotspot-domain:active {
  transform: scale(0.98);
  opacity: 0.25;
}

.social-hotspot-register:focus-visible,
.social-hotspot-domain:focus-visible {
  opacity: 0.2;
  box-shadow: 0 0 0 3px rgba(122, 244, 255, 0.92), 0 0 18px rgba(50, 228, 255, 0.52), inset 0 0 10px rgba(12, 216, 245, 0.2);
}

@media (max-width: 980px) {
  .social-hotspot-register {
    width: 58.5%;
    height: 20%;
  }

  .social-hotspot-domain {
    width: 22%;
    height: 5.5%;
  }
}

@media (max-width: 760px) {
  .social-hotspot-register {
    width: 58.5%;
    height: 20%;
  }

  .social-hotspot-domain {
    width: 24%;
    height: 6%;
  }
}
