@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/NunitoSans-Variable.ttf") format("truetype");
  font-weight: 200 1000;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --purple: #aa6bfb;
  --green: #5eea85;
  --yellow: #fdd365;
  --red: #e2596c;
  --black: #2e2e2e;
  --white: #fbfbfb;
  --glass: rgba(251, 251, 251, 0.14);
  --glass-strong: rgba(251, 251, 251, 0.22);
  --stroke: rgba(251, 251, 251, 0.35);
  --shadow: 0 18px 50px rgba(46, 46, 46, 0.22);
  --font: "Nunito Sans", "Nunito", system-ui, sans-serif;
  --max: 72rem;
  --pad: clamp(0.75rem, 2.5vw, 1.25rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--white);
  background: var(--purple);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--yellow);
  color: var(--black);
}

::-moz-selection {
  background: var(--yellow);
  color: var(--black);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--yellow);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--white);
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--purple) 0%, var(--green) 100%);
  background-attachment: fixed;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      55% 40% at 50% 0%,
      rgba(251, 251, 251, 0.18),
      transparent 70%
    ),
    radial-gradient(
      40% 35% at 85% 70%,
      rgba(253, 211, 101, 0.16),
      transparent 70%
    );
  pointer-events: none;
  animation: wash 12s ease-in-out infinite alternate;
}

@keyframes wash {
  from {
    opacity: 0.75;
    transform: scale(1);
  }
  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--pad);
  backdrop-filter: blur(12px);
  background: rgba(170, 107, 251, 0.28);
  border-bottom: 1px solid rgba(251, 251, 251, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand__mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  box-shadow: 0 6px 18px rgba(46, 46, 46, 0.2);
}

.brand__name {
  font-size: 1.05rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
}

.nav a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.92;
}

.nav a:hover {
  opacity: 1;
  color: var(--yellow);
}

.nav__cta {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--black);
  color: var(--white) !important;
}

.nav__cta:hover {
  background: rgba(46, 46, 46, 0.85);
  color: var(--yellow) !important;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--glass-strong);
  color: var(--white);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.lang-toggle:hover {
  color: var(--yellow);
  border-color: rgba(253, 211, 101, 0.55);
}

.lang-toggle__icon {
  display: block;
  flex-shrink: 0;
}

.lang-toggle__code {
  line-height: 1;
}

.confirm-header {
  justify-content: space-between;
}

@media (max-width: 640px) {
  .lang-toggle {
    flex-shrink: 0;
  }
}

main {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 var(--pad) 4rem;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(1.5rem, 6vw, 3.5rem) 0 clamp(2rem, 7vw, 4rem);
  min-height: min(100svh, 56rem);
}

.hero__logo {
  width: min(100%, 19.6rem);
  margin: 0 auto 1.1rem;
  filter: drop-shadow(0 16px 30px rgba(46, 46, 46, 0.28));
  animation: rise 0.9s ease-out both;
}

.hero__title {
  margin: 0;
  max-width: none;
  white-space: nowrap;
  font-size: clamp(1.35rem, 5.2vw, 3.4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-shadow: 0 8px 28px rgba(46, 46, 46, 0.25);
  animation: rise 0.9s ease-out 0.08s both;
}

.hero__lead {
  margin: 1rem 0 0;
  max-width: 48rem;
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  font-weight: 700;
  color: rgba(251, 251, 251, 0.92);
  animation: rise 0.9s ease-out 0.16s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  animation: rise 0.9s ease-out 0.24s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border-radius: 0.55rem;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--black);
  color: var(--white);
}

.btn--primary:hover {
  color: var(--yellow);
}

.btn--ghost {
  background: var(--glass-strong);
  color: var(--white);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  color: var(--yellow);
}

.hero__video {
  width: min(100%, 52rem);
  margin-top: clamp(1.75rem, 5vw, 2.75rem);
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(251, 251, 251, 0.28);
  background: rgba(46, 46, 46, 0.35);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-fallback {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

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

.section-title {
  margin: 0 auto 1rem;
  max-width: 22ch;
  font-size: clamp(1.55rem, 4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-align: center;
}

.section-title--nowrap {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(1.15rem, 4.2vw, 2.2rem);
}

.story,
.play,
.faq {
  padding: clamp(2rem, 6vw, 3.5rem) 0;
  text-align: center;
}

.story__text,
.steps {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.08rem;
  font-weight: 700;
  color: rgba(251, 251, 251, 0.94);
  text-align: center;
}

.story__text + .story__text {
  margin-top: 1rem;
}

.steps {
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
  list-style-position: inside;
  display: grid;
  gap: 0.85rem;
}

.steps a {
  font-weight: 800;
}

.faq__list {
  display: grid;
  gap: 0.75rem;
  max-width: 52rem;
  margin: 0 auto;
  text-align: left;
}

.faq__item {
  border: 1px solid var(--stroke);
  border-radius: 0.85rem;
  background: var(--glass);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq__item[open] {
  border-color: rgba(253, 211, 101, 0.55);
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  font-weight: 800;
  font-size: 1.05rem;
  text-align: left;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  flex: 0 0 auto;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  opacity: 0.85;
}

.faq__item[open] summary::after {
  transform: rotate(225deg);
  margin-top: 0.25rem;
}

.faq__body {
  padding: 0 1.1rem 1.1rem;
  color: rgba(251, 251, 251, 0.9);
  font-weight: 700;
  text-align: left;
}

.faq__body p {
  margin: 0;
}

.site-footer {
  padding: 2.5rem var(--pad) 2.75rem;
  text-align: center;
  border-top: 1px solid rgba(251, 251, 251, 0.16);
  background: rgba(46, 46, 46, 0.12);
}

.site-footer__brand {
  margin: 0;
  font-weight: 900;
  font-size: 1.15rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.35rem;
  margin: 0.85rem 0 0;
  font-weight: 800;
}

.site-footer__links a {
  color: var(--white);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--yellow);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1.25rem;
  margin: 1.15rem 0 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-footer__legal a {
  color: rgba(251, 251, 251, 0.72);
  text-decoration: none;
}

.site-footer__legal a:hover {
  color: var(--yellow);
}

.site-footer__note {
  margin: 1rem 0 0;
  opacity: 0.7;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.confirm {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100svh;
  padding: var(--pad);
}

.confirm__logo {
  width: min(100%, 16rem);
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 16px 30px rgba(46, 46, 46, 0.28));
}

.confirm__text {
  margin: 0;
  max-width: 22rem;
  font-size: clamp(1.2rem, 3.5vw, 1.55rem);
  font-weight: 800;
  line-height: 1.35;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .bg::after,
  .hero__logo,
  .hero__title,
  .hero__lead,
  .hero__actions,
  .hero__video {
    animation: none !important;
  }

  .btn:hover {
    transform: none;
  }
}
