/* stp:base */
@import url('https://fonts.googleapis.com/css2?family=Boogaloo&family=DM+Sans:opsz,wght@9..40,400;9..40,600&display=swap');

:root {
  --primary: #F5A623;
  --secondary: #3DFFC0;
  --accent: #C0392B;
  --text: #E8F5FF;
  --bg: #1A0A2E;
  --bg-2: #0C0A21;
  --font-head: 'Boogaloo', cursive;
  --font-body: 'DM Sans', sans-serif;
}

html { font-size: calc(100vw / 1440 * 10); overflow-x: hidden; overflow-y: scroll; }
@media (max-width: 1024px) { html { font-size: calc(100vw / 1024 * 10); } }
@media (max-width: 640px) { html { font-size: calc(100vw / 375 * 10); } }

html.menu-lock, html.menu-lock body { overflow: hidden; }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; overflow-x: hidden; }
h1, h2, h3, h4, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.3s, opacity 0.3s, transform 0.3s; }
button { font: inherit; cursor: pointer; }
main { display: block; }

#preloader { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: var(--bg); }

.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; height: 6rem; background: var(--bg); transition: box-shadow 0.3s; }
.header.scrolled { box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.35); }
.header__inner { width: 100%; max-width: 144rem; height: 100%; margin: 0 auto; padding: 0 16rem; display: flex; align-items: center; justify-content: space-between; }
.logo { display: block; flex: 0 0 auto; width: 4.4rem; height: 4.4rem; border-radius: 1rem; overflow: hidden; position: relative; }
.logo img { position: absolute; left: 50%; top: -0.25rem; width: 5rem; height: 5rem; max-width: none; transform: translateX(-50%); }
.logo:hover { opacity: 0.8; transform: scale(1.05); }
.nav { display: flex; align-items: center; justify-content: space-between; width: 54.4rem; }
.nav-link { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }
.nav-link:hover { color: var(--primary); }

.burger-btn { display: none; position: relative; width: 4.4rem; height: 4.4rem; padding: 0; background: transparent; border: 0; z-index: 110; }
.burger-btn span { position: absolute; left: 1rem; width: 2.4rem; height: 0.2rem; background: var(--text); border-radius: 0.1rem; transition: transform 0.3s, opacity 0.3s, top 0.3s, background 0.3s; }
.burger-btn span:nth-child(1) { top: 1.3rem; }
.burger-btn span:nth-child(2) { top: 2.1rem; }
.burger-btn span:nth-child(3) { top: 2.9rem; }
.burger-btn:hover span { background: var(--primary); }
.burger-btn.act span:nth-child(1) { top: 2.1rem; transform: rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { top: 2.1rem; transform: rotate(-45deg); }

#mobile-menu { position: fixed; inset: 0; z-index: 90; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3.2rem; padding: 8rem 1.6rem 1.6rem; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
#mobile-menu .nav-link { font-size: 2.4rem; }

.footer { background: var(--bg-2); color: var(--secondary); text-align: center; padding: 4rem 16rem 1.6rem; display: flex; flex-direction: column; align-items: center; gap: 4rem; }
.footer__links { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; font-size: clamp(14px, 1.8rem, 1.8rem); }
.footer a:hover { color: var(--primary); }
.footer__copy { font-size: clamp(12px, 1.2rem, 1.2rem); }

.container { width: 100%; max-width: 144rem; margin: 0 auto; padding: 0 16rem; }

.title { font-family: var(--font-head); font-weight: 400; font-size: 6.4rem; line-height: 1.2; color: var(--primary); }

@keyframes store-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1rem); } }

@media (max-width: 1024px) {
  .header__inner, .container { padding: 0 6rem; }
  .footer { padding-left: 6rem; padding-right: 6rem; }
  .title { font-size: 5.2rem; }
}

@media (max-width: 640px) {
  .header { height: 8rem; }
  .header__inner { align-items: flex-start; padding: 0 2.6rem 0 1.6rem; }
  .logo { margin-top: 2rem; }
  .nav { display: none; }
  .burger-btn { display: block; margin-top: 2.6rem; }
  #mobile-menu { padding-top: 10rem; }
  .container { padding: 0 1.6rem; }
  .footer { padding: 4rem 1.6rem 1.6rem; }
  .footer__links { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .footer__copy { font-size: clamp(11px, 1.1rem, 1.1rem); }
  .title { font-size: 5.2rem; }
}
/* /stp:base */
/* stp:hero */
#hero { position: relative; height: 75.9rem; padding-top: 15rem; overflow: hidden; background: var(--bg); }
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero__inner { position: relative; z-index: 1; }
.hero__title { font-family: var(--font-head); font-weight: 400; font-size: 12.8rem; line-height: 1.2; color: var(--primary); white-space: nowrap; }
.hero__subtitle { margin-top: 6.4rem; font-weight: 600; font-size: clamp(14px, 2.8rem, 2.8rem); line-height: 1.3; color: var(--text); }
.hero__text { margin-top: 1.6rem; width: 54.4rem; max-width: 100%; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }
@media (max-width: 1024px) {
  .hero__title { font-size: 9.6rem; }
}
@media (max-width: 640px) {
  #hero { height: 81.2rem; padding-top: 12rem; }
  .hero__title { font-size: 8.8rem; }
  .hero__subtitle { margin-top: 4.4rem; max-width: 29.3rem; font-size: 2.4rem; }
  .hero__text { margin-top: 0.8rem; width: 100%; font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:hero */
/* stp:about */
#about { padding: 8rem 0; }
.about__inner { display: flex; align-items: flex-start; gap: 3.2rem; }
.about__text, .about__media { flex: 1 1 0; min-width: 0; }
.about__text { display: flex; flex-direction: column; gap: 6.4rem; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }
.about__media img { width: 100%; height: auto; border-radius: 3.2rem; }
@media (max-width: 1024px) {
  #about { padding: 6rem 0; }
}
@media (max-width: 640px) {
  #about { padding: 6.4rem 0; }
  .about__inner { flex-direction: column; align-items: stretch; gap: 3.2rem; }
  .about__text { gap: 4.8rem; font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:about */
/* stp:how-it-works */
#how-it-works { padding: 8rem 0; }
.steps__inner { display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 3.2rem; }
.steps__text, .steps__media { flex: 1 1 0; min-width: 0; }
.steps__text { display: flex; flex-direction: column; gap: 6.4rem; }
.steps__list { display: flex; flex-direction: column; gap: 1.6rem; }
.step { display: flex; flex-direction: column; gap: 0.4rem; }
.step__title { font-weight: 600; font-size: 2rem; line-height: 1.5; color: var(--accent); }
.step__desc { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }
.steps__media img { width: 100%; height: auto; border-radius: 3.2rem; }
@media (max-width: 1024px) {
  #how-it-works { padding: 6rem 0; }
}
@media (max-width: 640px) {
  #how-it-works { padding: 6.4rem 0; }
  .steps__inner { flex-direction: column; align-items: stretch; gap: 3.2rem; }
  .steps__text { gap: 4.8rem; }
  .step__title { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .step__desc { font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:how-it-works */
/* stp:features */
#features { padding: 8rem 0; }
.features__inner { display: flex; align-items: flex-start; gap: 3.2rem; }
.features__text, .features__media { flex: 1 1 0; min-width: 0; }
.features__text { display: flex; flex-direction: column; gap: 6.4rem; }
.features__list { display: flex; flex-direction: column; gap: 1.6rem; }
.feature { display: flex; flex-direction: column; gap: 0.4rem; }
.feature__title { font-weight: 600; font-size: 2rem; line-height: 1.5; color: var(--accent); }
.feature__desc { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }
.features__media img { width: 100%; height: auto; border-radius: 3.2rem; }
@media (max-width: 1024px) {
  #features { padding: 6rem 0; }
}
@media (max-width: 640px) {
  #features { padding: 6.4rem 0; }
  .features__inner { flex-direction: column; align-items: stretch; gap: 3.2rem; }
  .features__text { gap: 4.8rem; }
  .feature__title { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .feature__desc { font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:features */
/* stp:faq */
#faq { padding: 8rem 0; }
#faq .container { display: flex; flex-direction: column; gap: 6.4rem; }
.faq__list { display: flex; flex-direction: column; gap: 1.6rem; }
.faq__item { display: flex; flex-direction: column; padding: 3.2rem; background: var(--bg-2); border-radius: 3.2rem; }
.faq__q { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.6rem; cursor: pointer; }
.faq__q:focus-visible { outline: 0.2rem solid var(--primary); outline-offset: 0.4rem; border-radius: 0.8rem; }
.faq__question { font-weight: 600; font-size: 2rem; line-height: 1.5; color: var(--primary); }
.faq__arrow { position: relative; flex: 0 0 2.8rem; width: 2.8rem; height: 2.8rem; border-radius: 0.8rem; background: var(--bg); }
.faq__arrow::before { content: ''; position: absolute; left: 50%; top: 50%; width: 0.8rem; height: 0.8rem; border-right: 0.2rem solid var(--primary); border-bottom: 0.2rem solid var(--primary); transform: translate(-50%, -75%) rotate(45deg); transition: transform 0.3s ease; }
.faq__item.active .faq__arrow::before { transform: translate(-50%, -25%) rotate(-135deg); }
.faq__item:not(.active) .faq__answer { display: none; }
.faq__answer { margin-top: 1.6rem; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }
@media (max-width: 1024px) {
  #faq { padding: 6rem 0; }
}
@media (max-width: 640px) {
  #faq { padding: 6.4rem 0; }
  #faq .container { gap: 4.8rem; }
  .faq__question { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .faq__item:not(.active) .faq__answer { display: none; }
.faq__answer { margin-top: 1.6rem; font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:faq */
/* stp:legal */
.legal-body { min-height: 100vh; display: flex; flex-direction: column; }
.legal-main { flex: 1 0 auto; padding-top: 6rem; }
.legal-page { padding: 8rem 0; }
.legal-content { width: 100%; max-width: 144rem; margin: 0 auto; padding: 0 16rem; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }
.legal-content h1 { font-family: var(--font-head); font-weight: 400; font-size: 6.4rem; line-height: 1.2; color: var(--primary); margin-bottom: 3.2rem; }
.legal-content h2 { font-weight: 600; font-size: 2.8rem; line-height: 1.3; color: var(--primary); margin: 4rem 0 1.6rem; }
.legal-content h3 { font-weight: 600; font-size: 2rem; line-height: 1.5; color: var(--accent); margin: 3.2rem 0 1.2rem; }
.legal-content h4 { font-weight: 600; font-size: clamp(14px, 1.8rem, 1.8rem); color: var(--accent); margin: 2.4rem 0 1rem; }
.legal-content p { margin: 0 0 1.6rem; }
.legal-content ul, .legal-content ol { margin: 0 0 1.6rem; padding-left: 2.8rem; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: 0.8rem; }
.legal-content a { color: var(--secondary); text-decoration: underline; }
.legal-content a:hover { color: var(--primary); }
.legal-content strong, .legal-content b { font-weight: 600; }
.legal-content em, .legal-content i { font-style: italic; }
.legal-content u { text-decoration: underline; }
@media (max-width: 1024px) {
  .legal-content { padding: 0 6rem; }
  .legal-content h1 { font-size: 5.2rem; }
}
@media (max-width: 640px) {
  .legal-main { padding-top: 8rem; }
  .legal-page { padding: 4rem 0; }
  .legal-content { padding: 0 1.6rem; font-size: clamp(14px, 1.6rem, 1.6rem); }
  .legal-content h1 { font-size: 5.2rem; }
  .legal-content h2 { font-size: 2.4rem; }
  .legal-content h3 { font-size: clamp(14px, 1.8rem, 1.8rem); }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .hero__title, .anim-on main .title { position: relative; }
.anim-on .ta-w { display: inline-block; white-space: nowrap; }
.anim-on .ta-c { display: inline-block; transform-origin: 0% 100%; opacity: 0; transform: rotate(-88deg) translateY(0.4rem); color: var(--secondary); }
.anim-on .hero__title.is-in .ta-c { animation: ta-pin-rise 0.9s cubic-bezier(0.3, 1.4, 0.5, 1) calc(0.35s + var(--i) * 0.07s) both, ta-pin-glow 1.2s ease-out calc(0.35s + var(--i) * 0.07s) both; }
.anim-on .hero__title::after { content: ''; position: absolute; left: 0; bottom: 0.4rem; width: 100%; height: 3.2rem; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 50%, #fff 0 18%, var(--secondary) 36%, rgba(61, 255, 192, 0.35) 52%, transparent 70%) no-repeat, linear-gradient(90deg, transparent, rgba(61, 255, 192, 0.55) 80%, transparent) no-repeat; background-size: 3.2rem 3.2rem, 100% 0.3rem; background-position: -15% 50%, 0 50%; clip-path: inset(0 100% 0 0); }
.anim-on .hero__title.is-in::after { animation: ta-ball-roll calc(0.6s + var(--n) * 0.07s) cubic-bezier(0.45, 0, 0.6, 1) both; }
.anim-on .hero__title.is-in .ta-pin .ta-c { animation: ta-pin-rise 0.9s cubic-bezier(0.3, 1.4, 0.5, 1) calc(0.35s + var(--i) * 0.07s) both, ta-pin-glow 1.2s ease-out calc(0.35s + var(--i) * 0.07s) both, ta-pin-wobble 7s ease-in-out calc(3s + var(--i) * 0.06s) infinite; }
.anim-on main .title::after { content: ''; position: absolute; left: 0; bottom: -0.6rem; width: 100%; height: 0.3rem; border-radius: 0.3rem; pointer-events: none; background: linear-gradient(90deg, transparent, var(--secondary) 70%, #fff); clip-path: inset(0 100% 0 0); opacity: 0; }
.anim-on main .title.is-in::after { animation: ta-lane-draw calc(0.5s + var(--n) * 0.05s) cubic-bezier(0.5, 0, 0.3, 1) both; }
.anim-on main .title.is-in .ta-c { animation: ta-pin-tip 0.7s cubic-bezier(0.3, 1.35, 0.5, 1) calc(0.15s + var(--i) * 0.05s) both, ta-pin-glow 0.9s ease-out calc(0.15s + var(--i) * 0.05s) both; }
@keyframes ta-pin-rise { 0% { opacity: 0; transform: rotate(-88deg) translateY(0.4rem); } 35% { opacity: 1; } 70% { transform: rotate(8deg) translateY(0); } 85% { transform: rotate(-4deg); } 100% { opacity: 1; transform: none; } }
@keyframes ta-pin-tip { 0% { opacity: 0; transform: rotate(-60deg) translateY(0.3rem); } 40% { opacity: 1; } 75% { transform: rotate(5deg); } 100% { opacity: 1; transform: none; } }
@keyframes ta-pin-glow { 0% { color: var(--secondary); filter: drop-shadow(0 0 0.8rem rgba(61, 255, 192, 0.9)); } 60% { color: #fff; filter: drop-shadow(0 0 0.6rem rgba(245, 166, 35, 0.8)); } 100% { color: var(--primary); filter: drop-shadow(0 0 0 rgba(245, 166, 35, 0)); } }
@keyframes ta-pin-wobble { 0%, 88%, 100% { transform: none; } 91% { transform: rotate(-7deg); } 94% { transform: rotate(5deg); } 97% { transform: rotate(-2deg); } }
@keyframes ta-ball-roll { 0% { opacity: 1; clip-path: inset(0 100% 0 0); background-position: -15% 50%, 0 50%; } 85% { opacity: 1; clip-path: inset(0 0 0 0); background-position: 112% 50%, 0 50%; } 100% { opacity: 0; clip-path: inset(0 0 0 0); background-position: 112% 50%, 0 50%; } }
@keyframes ta-lane-draw { 0% { opacity: 1; clip-path: inset(0 100% 0 0); } 70% { opacity: 1; clip-path: inset(0 0 0 0); } 100% { opacity: 0; clip-path: inset(0 0 0 0); } }
@media (max-width: 640px) {
  .anim-on .hero__title.is-in .ta-c { animation-duration: 0.7s, 1s; }
  .anim-on .hero__title.is-in .ta-pin .ta-c { animation-duration: 0.7s, 1s, 7s; }
  .anim-on .hero__title::after { height: 2.4rem; background-size: 2.4rem 2.4rem, 100% 0.25rem; }
  .anim-on main .title.is-in .ta-c { animation-duration: 0.55s, 0.8s; }
}
/* /stp:title-anim */
