:root {
  --font-sans: "Open Sans", ui-sans-serif, system-ui, sans-serif;

  --brand-deep-blue: #00003a;
  --brand-sky-blue: #00b2ea;
  --brand-pink: #ff61d6;
  --brand-yellow: #fcdd10;
  --brand-orange: #ed6823;
  --brand-dark-red: #6b0211;
  --brand-dirty-orange: #f8a215;
  --brand-lawn-green: #9bb212;
  --brand-success-green: #19c36b;

  --bg-via: #00004a;
  --bg-to: #00002a;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: #fff;
  background: linear-gradient(135deg, var(--brand-deep-blue), var(--bg-via), var(--bg-to));
}

button,
input,
textarea {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  overflow-x: hidden;
  overflow-y: auto;
}

.bg-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-blob {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 9999px;
  filter: blur(64px);
  opacity: 0.1;
  animation: blobPulse 8s ease-in-out infinite;
}

.bg-blob--sky {
  top: -6rem;
  left: -6rem;
  background: var(--brand-sky-blue);
}

.bg-blob--pink {
  bottom: -6rem;
  right: -6rem;
  background: var(--brand-pink);
  animation-duration: 10s;
  animation-delay: 2s;
}

@keyframes blobPulse {
  0% {
    transform: scale(1);
    opacity: 0.1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.2;
  }
  100% {
    transform: scale(1);
    opacity: 0.1;
  }
}

.container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.line {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 1);
  opacity: 0.2;
  transform: scaleX(0);
  transform-origin: center;
}

.line--top {
  opacity: 0.2;
}

.line--bottom {
  opacity: 0.2;
}

.headline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.title {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  font-size: 2.25rem;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .title {
    font-size: 3.75rem;
  }
}

.subtitle {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 28rem;
  margin-inline: auto;
  color: rgba(0, 178, 234, 0.8);
}

@media (min-width: 768px) {
  .subtitle {
    font-size: 1.25rem;
  }
}

.dots {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

.dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
}

.dot--sky {
  background: var(--brand-sky-blue);
}

.dot--pink {
  background: var(--brand-pink);
}

.dot--yellow {
  background: var(--brand-yellow);
}

.video {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  display: block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  isolation: isolate;
}

.video__embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.icon {
  display: block;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--muted {
  color: rgba(255, 255, 255, 0.6);
}

.cta {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .cta {
    flex-direction: row;
  }
}

.btn {
  width: 100%;
  border-radius: 9999px;
  padding: 1rem 2rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 200ms ease, filter 200ms ease, background-color 200ms ease;
  user-select: none;
}

@media (min-width: 640px) {
  .btn {
    width: auto;
  }
}

.btn:hover {
  transform: scale(1.05);
}

.btn:active {
  transform: scale(0.95);
}

.btn--primary {
  background: var(--brand-orange);
  color: #fff;
  box-shadow: 0 16px 40px rgba(237, 104, 35, 0.2);
}

.btn--primary:hover {
  filter: brightness(1.1);
}

.btn--outline {
  background: transparent;
  color: var(--brand-sky-blue);
  border-color: var(--brand-sky-blue);
}

.btn--outline:hover {
  background: rgba(0, 178, 234, 0.1);
}

.btn--download {
  width: 100%;
  margin-top: 0.25rem;
  background: var(--brand-success-green);
  color: #fff;
  box-shadow: 0 16px 40px rgba(25, 195, 107, 0.24);
}

.btn--download:hover {
  filter: brightness(1.08);
}

.btn__label {
  display: inline-flex;
  align-items: center;
}

.btn.is-downloading,
.modal__submit.is-loading,
.subscribe__btn.is-loading {
  cursor: progress;
  pointer-events: none;
}

.btn.is-downloading::before,
.modal__submit.is-loading::before,
.subscribe__btn.is-loading::before {
  content: "";
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 700ms linear infinite;
}

.subscribe {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.subscribe__inner {
  width: 100%;
  max-width: 28rem;
}

.messages {
  width: 100%;
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.message {
  margin: 0;
  padding: 0.875rem 1rem;
  border-radius: 0.875rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.message--success {
  color: #fff;
  background: rgba(25, 195, 107, 0.16);
  border-color: var(--brand-success-green);
  box-shadow: 0 0 0 1px rgba(25, 195, 107, 0.18);
}

.message--error {
  color: #fff;
  background: rgba(237, 104, 35, 0.2);
  border-color: rgba(237, 104, 35, 0.5);
}

.subscribe__row {
  position: relative;
  display: flex;
  align-items: center;
}

.input {
  width: 100%;
  border-radius: 9999px;
  padding: 1rem 9rem 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
  transition: border-color 200ms ease;
}

.input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.input:focus {
  border-color: var(--brand-sky-blue);
}

.subscribe__btn {
  position: absolute;
  right: 0.375rem;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.875rem;
  background: var(--brand-sky-blue);
  color: var(--brand-deep-blue);
  border: none;
  cursor: pointer;
  transition: transform 200ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.subscribe__btn:hover {
  transform: scale(1.02);
}

.subscribe__btn:active {
  transform: scale(0.98);
}

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

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.social {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-sky-blue);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 178, 234, 0.32);
  transition: color 200ms ease, transform 200ms ease, background-color 200ms ease, border-color 200ms ease;
}

.social:hover {
  color: #fff;
  background: rgba(0, 178, 234, 0.14);
  border-color: var(--brand-sky-blue);
  transform: translateY(-2px);
}

.social:active {
  transform: scale(0.95);
}

.social:focus-visible {
  outline: 3px solid var(--brand-yellow);
  outline-offset: 4px;
}

.social__icon {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social__icon path {
  fill: currentColor;
  stroke: none;
}

.footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 1rem;
}

.footer__text {
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0;
}

/* Reveal animations (mimics motion initial/animate with delays) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 600ms ease forwards;
  animation-delay: var(--delay, 0s);
}

.line.reveal {
  transform: scaleX(0);
  opacity: 0;
  animation-name: lineIn;
  animation-duration: 1000ms;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
  animation-delay: var(--delay, 0s);
}

.footer__text.reveal {
  transform: none;
  animation-name: fadeOnly;
  animation-duration: 1000ms;
  animation-timing-function: ease;
}

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

@keyframes fadeOnly {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.5;
  }
}

@keyframes lineIn {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 0.2;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 50;
}

.modal.is-open {
  display: block;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 97, 214, 0.18), transparent 34rem),
    radial-gradient(circle at 80% 15%, rgba(0, 178, 234, 0.18), transparent 30rem),
    rgba(0, 0, 58, 0.84);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 200ms ease;
}

.modal__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: auto;
  width: min(calc(100% - 2rem), 34rem);
  max-height: calc(100vh - 2rem);
  background:
    linear-gradient(135deg, rgba(255, 97, 214, 0.18), transparent 32%),
    linear-gradient(225deg, rgba(0, 178, 234, 0.18), transparent 34%),
    linear-gradient(180deg, #050552, var(--brand-deep-blue));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.5rem;
  padding: 2rem;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(0, 178, 234, 0.08);
  opacity: 0;
  transform: translate(-50%, calc(-50% + 20px)) scale(0.96);
  transition: opacity 200ms ease, transform 200ms ease;
}

.modal__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 0.375rem;
  background: linear-gradient(
    90deg,
    var(--brand-pink),
    var(--brand-sky-blue),
    var(--brand-yellow),
    var(--brand-orange),
    var(--brand-lawn-green)
  );
}

@media (min-width: 768px) {
  .modal__panel {
    padding: 2.5rem;
  }
}

@media (max-width: 520px) {
  .modal__panel {
    border-radius: 1.25rem;
    padding: 1.5rem;
  }
}

.modal__content {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem;
  border-radius: 9999px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  transition: background-color 200ms ease, transform 200ms ease;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.04);
}

.modal__header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-right: 2.5rem;
}

.modal__title {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.08;
}

.modal__subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.label {
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  margin-left: 0.25rem;
}

.field__input {
  width: 100%;
  padding: 1rem 1.125rem;
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  outline: none;
  transition: border-color 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}

.field__input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.field__input:focus {
  border-color: var(--brand-sky-blue);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 0 0 4px rgba(0, 178, 234, 0.14);
}

.modal__submit {
  width: 100%;
  padding: 1rem;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-dirty-orange));
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 16px 40px rgba(237, 104, 35, 0.28);
  transition: filter 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.choice-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  border: 0;
}

.choice-group .label {
  margin: 0 0 0.25rem;
}

.choice {
  position: relative;
  display: grid;
  grid-template-columns: 1.125rem 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.875rem 1rem;
  border-radius: 0.875rem;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}

.choice:hover {
  border-color: rgba(0, 178, 234, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.choice__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice__mark {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.1rem;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 0 0 4px transparent;
  transition: border-color 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}

.choice__text {
  line-height: 1.4;
  font-size: 0.9375rem;
}

.choice:has(.choice__input:checked) {
  border-color: var(--brand-sky-blue);
  background: rgba(0, 178, 234, 0.12);
  box-shadow: 0 0 0 4px rgba(0, 178, 234, 0.1);
}

.choice:has(.choice__input:checked) .choice__mark {
  border-color: var(--brand-sky-blue);
  background: var(--brand-sky-blue);
  box-shadow: inset 0 0 0 4px var(--brand-deep-blue);
}

.choice:has(.choice__input:focus-visible) {
  outline: 3px solid var(--brand-yellow);
  outline-offset: 3px;
}

.modal__submit:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
  box-shadow: 0 20px 48px rgba(248, 162, 21, 0.28);
}

.modal__submit:active {
  transform: scale(0.98);
}

/* Modal open animations (mimics AnimatePresence) */
.modal.is-open .modal__backdrop {
  opacity: 1;
}

.modal.is-open .modal__panel {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .line.reveal,
  .bg-blob {
    animation: none !important;
    transition: none !important;
  }

  .modal__backdrop,
  .modal__panel {
    transition: none !important;
  }
}
