/* stp:base */
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;600;700;900&display=swap');

:root {
  --bg: #031118;
  --surface: #19202d;
  --accent: #fde987;
  --primary: #92b1ef;
  --text: #fefdfd;
  --font: 'Onest', sans-serif;
  --shadow: 0 1.2rem 1.2rem rgba(0, 0, 0, 0.38);
}

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, h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.3s, opacity 0.3s, background 0.3s, transform 0.3s; }
button { font-family: inherit; cursor: pointer; }
main { display: block; }
section { margin: 0; }

#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; transition: box-shadow 0.3s; }
.header.scrolled { box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.35); }

.burger-btn { display: none; background: transparent; border: 0; padding: 0; position: relative; z-index: 110; width: 6.4rem; height: 6.4rem; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; }
.burger-btn span { display: block; width: 2.4rem; height: 0.2rem; background: var(--text); transition: transform 0.3s, opacity 0.3s; }
.burger-btn.act span:nth-child(1) { transform: translateY(0.8rem) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(-0.8rem) rotate(-45deg); }

#mobile-menu { position: fixed; inset: 0; z-index: 90; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
#mobile-menu.opened { opacity: 1; pointer-events: auto; }

.nav-link:hover { color: var(--accent); }

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

h2 { font-weight: 900; font-size: 4.8rem; line-height: 1.2; color: var(--accent); }
@media (max-width: 640px) { h2 { font-size: 3.6rem; } }
/* /stp:base */
/* stp:header */
.header { background: var(--surface); }
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 144rem; height: 6rem; margin: 0 auto; padding: 0 16rem; }
.logo { display: block; width: 4.4rem; height: 4.4rem; border-radius: 1rem; overflow: hidden; flex: 0 0 auto; }
.logo:hover { opacity: 0.8; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.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); white-space: nowrap; }

@media (max-width: 1024px) {
  .header-inner { padding: 0 6rem; }
  .nav { width: 50rem; }
}
@media (max-width: 640px) {
  .header-inner { height: 8rem; padding: 0 1.6rem; }
  .nav { display: none; }
  .burger-btn { display: flex; }
}
/* /stp:header */
/* stp:menu */
#mobile-menu { background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10rem 1.6rem 4rem; }
.menu-nav { display: flex; flex-direction: column; align-items: center; gap: 2.4rem; }
.menu-nav .nav-link { font-size: 2.4rem; font-weight: 700; line-height: 1.3; color: var(--text); }
/* /stp:menu */
/* stp:hero */
#hero { position: relative; min-height: 75.9rem; background: linear-gradient(to bottom, #021015, #091737); overflow: hidden; }
.hero-pic { position: absolute; top: 0; right: 0; width: 73.6rem; height: 75.9rem; }
.hero-pic img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.hero-content { position: relative; z-index: 1; width: 100%; max-width: 144rem; margin: 0 auto; padding: 15rem 16rem 11.3rem; }
#hero h1 { font-weight: 900; font-size: 7.2rem; line-height: 1.2; color: var(--accent); white-space: nowrap; }
.hero-sub { margin-top: 9.72rem; font-weight: 700; font-size: 2.8rem; line-height: 1.3; color: var(--text); }
.hero-text { width: 54.4rem; max-width: 100%; margin-top: 1.56rem; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }
.store-btn { display: inline-flex; align-items: center; justify-content: center; gap: 1.2rem; padding: 1rem 1.2rem; background: #000; border: 1px solid #a6a6a6; border-radius: 0.6rem; overflow: hidden; animation: store-float 3s ease-in-out infinite; }
.store-btn:hover { animation-play-state: paused; opacity: 0.8; box-shadow: 0 0.4rem 1.6rem rgba(253, 233, 135, 0.35); }
.store-btn img { flex: 0 0 auto; }
.hero-store { margin-top: 6.3rem; }

@media (max-width: 1024px) {
  .hero-content { padding: 15rem 6rem 11.3rem; }
  .hero-pic { width: 44rem; }
  #hero h1 { font-size: 5.6rem; }
  .hero-sub { margin-top: 7rem; }
  .hero-text { width: 42rem; }
}
@media (max-width: 640px) {
  #hero { min-height: 81.2rem; }
  .hero-pic { width: 100%; height: 81.2rem; }
  .hero-pic img { object-position: center top; }
  .hero-content { display: flex; flex-direction: column; align-items: center; padding: 10rem 1.6rem 4.8rem; min-height: 81.2rem; }
  #hero h1 { align-self: flex-start; font-size: 4.8rem; white-space: normal; }
  .hero-sub { align-self: flex-start; margin-top: 23.8rem; font-size: 2.4rem; }
  .hero-text { align-self: flex-start; width: 100%; margin-top: 1.2rem; font-size: clamp(14px, 1.6rem, 1.6rem); }
  .hero-store { margin-top: 4.9rem; }
}
/* /stp:hero */
/* stp:how-it-works */
.split { width: 100%; max-width: 144rem; margin: 0 auto; display: grid; grid-template-columns: 54.4rem 44.8rem; justify-content: space-between; align-items: center; }
.split-img { width: 44.8rem; height: auto; border-radius: 1.2rem; border: 1px solid var(--surface); }
.split-text h2 { margin-bottom: 8rem; }
.items { display: flex; flex-direction: column; gap: 1.6rem; }
.item { display: flex; flex-direction: column; gap: 0.4rem; }
.item-title { margin: 0; font-weight: 600; font-size: 2rem; line-height: 1.5; color: var(--primary); }
.item-text { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }

#how-it-works { padding: 4.55rem 16rem; }

@media (max-width: 1024px) {
  #how-it-works { padding: 4.55rem 6rem; }
  .split { grid-template-columns: 1fr 36rem; gap: 4rem; }
  .split-img { width: 36rem; }
}
@media (max-width: 640px) {
  #how-it-works { padding: 6.4rem 1.6rem; }
  .split { display: flex; flex-direction: column; align-items: stretch; gap: 3.2rem; }
  .split-text h2 { margin-bottom: 6.4rem; }
  .split-img { width: 100%; }
  .item-title { font-weight: 400; font-size: clamp(14px, 1.6rem, 1.6rem); }
  .item-text { font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:how-it-works */
/* stp:features */
#features { padding: 4rem 16rem; }
.split-rev { grid-template-columns: 44.8rem 54.4rem; grid-template-areas: "img text"; }
.split-rev .split-text { grid-area: text; }
.split-rev .split-img { grid-area: img; }

@media (max-width: 1024px) {
  #features { padding: 4rem 6rem; }
  .split-rev { grid-template-columns: 36rem 1fr; }
}
@media (max-width: 640px) {
  #features { padding: 6.4rem 1.6rem; }
  .split-rev { display: flex; flex-direction: column; }
  #features .item-title { font-weight: 600; font-size: clamp(14px, 1.8rem, 1.8rem); }
}
/* /stp:features */
/* stp:reviews */
.wrap { width: 100%; max-width: 144rem; margin: 0 auto; padding: 0 16rem; }
#reviews { padding: 8rem 0; }
.reviews-row { display: flex; align-items: flex-start; gap: 3.2rem; width: 100%; max-width: 144rem; margin: 8rem auto 0; padding: 0 16rem; }
.review { flex: 0 0 35.2rem; display: flex; flex-direction: column; gap: 1.6rem; padding: 2.4rem; background: var(--surface); border-radius: 1.2rem; box-shadow: var(--shadow); }
.review-head { display: flex; flex-direction: column; gap: 0.4rem; padding-bottom: 1.6rem; border-bottom: 1px solid rgba(254, 253, 253, 0.12); }
.review-top { display: flex; align-items: center; justify-content: space-between; }
.review-name { font-weight: 600; font-size: 2rem; line-height: 1.5; color: var(--primary); }
.review-quote { width: 4.8rem; height: 3.8rem; flex: 0 0 auto; }
.review-stars { display: flex; gap: 0.4rem; }
.review-stars img { width: 1.4rem; height: 1.4rem; }
.review-text { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); opacity: 0.9; }

@media (max-width: 1024px) {
  .wrap { padding: 0 6rem; }
  .reviews-row { padding: 0 6rem; gap: 2rem; }
  .review { flex: 1 1 0; min-width: 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 1.6rem; }
  #reviews { padding: 6.4rem 0; }
  .reviews-row { margin-top: 6.4rem; padding: 0 1.6rem; gap: 1.6rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .reviews-row::-webkit-scrollbar { display: none; }
  .review { flex: 0 0 30rem; }
  .review-name { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .review-text { font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:reviews */
/* stp:faq */
#faq { padding: 8rem 0; }
.faq-list { display: flex; flex-direction: column; gap: 1.6rem; margin-top: 8rem; }
.faq-item { display: flex; flex-direction: column; gap: 1.2rem; padding: 2.4rem; background: var(--surface); border-radius: 1.2rem; box-shadow: var(--shadow); }
.faq-head { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.faq-q { flex: 1 1 0; min-width: 0; font-weight: 600; font-size: 2rem; line-height: 1.5; color: var(--primary); }
.faq-head img { flex: 0 0 auto; width: 2.8rem; height: 2.8rem; }
.faq-a { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }
.faq-item:not(.is-open) .faq-a { display: none; }
.faq-head { cursor: pointer; }
.faq-q { transition: color 0.3s; }
.faq-head:hover .faq-q { color: var(--accent, var(--primary)); }

@media (max-width: 640px) {
  #faq { padding: 6.4rem 0; }
  .faq-list { margin-top: 6.4rem; }
  .faq-q { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .faq-a { font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:faq */
/* stp:footer */
.footer { display: flex; flex-direction: column; align-items: center; gap: 4rem; padding: 4rem 16rem 1.6rem; background: var(--surface); color: var(--primary); text-align: center; }
.footer-links { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; }
.footer a:hover { color: var(--accent); }
.footer-copy { font-size: clamp(12px, 1.2rem, 1.2rem); line-height: 1.5; }

@media (max-width: 1024px) { .footer { padding: 4rem 6rem 1.6rem; } }
@media (max-width: 640px) {
  .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); }
}
/* /stp:footer */
/* stp:legal */
.legal-body { min-height: 100vh; display: flex; flex-direction: column; }
.legal-main { flex: 1 0 auto; padding-top: 6rem; }
.legal-page { width: 100%; max-width: 144rem; margin: 0 auto; padding: 8rem 16rem; }
.legal-content { max-width: 112rem; color: var(--text); font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; }
.legal-content h1 { margin-bottom: 2.4rem; font-weight: 900; font-size: 4.8rem; line-height: 1.2; color: var(--accent); }
.legal-content h2, .legal-content h3, .legal-content h4 { margin: 3.2rem 0 1.2rem; font-weight: 600; font-size: 2rem; line-height: 1.5; color: var(--primary); }
.legal-content p { margin-bottom: 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(--primary); text-decoration: underline; }
.legal-content a:hover { color: var(--accent); }
.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-page { padding: 8rem 6rem; } }
@media (max-width: 640px) {
  .legal-main { padding-top: 8rem; }
  .legal-page { padding: 4rem 1.6rem; }
  .legal-content { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .legal-content h1 { font-size: 3.6rem; }
  .legal-content h2, .legal-content h3, .legal-content h4 { font-size: clamp(14px, 1.8rem, 1.8rem); }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .ta-hero .ta-w, .anim-on .ta-sec .ta-w { display: inline-block; white-space: nowrap; }
.anim-on .ta-hero .ta-c { display: inline-block; clip-path: inset(-2rem -1rem -2rem -1rem); animation: ta-curtain 1s cubic-bezier(0.7, 0, 0.2, 1) calc(0.8s + var(--i) * 0.07s) both, ta-footlight 0.8s ease-out calc(2.1s + var(--k) * 0.035s); }
.anim-on .ta-hero .ta-c.ta-luck { animation: ta-curtain 1s cubic-bezier(0.7, 0, 0.2, 1) calc(0.8s + var(--i) * 0.07s) both, ta-footlight 0.8s ease-out calc(2.1s + var(--k) * 0.035s), ta-encore 7s ease-in-out calc(4s + var(--i) * 0.08s) infinite; }
.anim-on .ta-sec .ta-w { clip-path: inset(-1.5rem -0.6rem -1.5rem -0.6rem); opacity: 0; }
.anim-on .ta-sec.is-in .ta-w { animation: ta-drape 0.9s cubic-bezier(0.7, 0, 0.2, 1) calc(var(--i) * 0.14s) both; }
@keyframes ta-curtain {
  0% { opacity: 0; clip-path: inset(-2rem 50% -2rem 50%); transform: scaleX(1.35) translateY(0.6rem); filter: blur(0.4rem); color: var(--primary); }
  55% { opacity: 1; color: #fff; filter: blur(0); }
  100% { opacity: 1; clip-path: inset(-2rem -1rem -2rem -1rem); transform: none; filter: none; color: var(--accent); }
}
@keyframes ta-footlight {
  0%, 100% { filter: none; }
  40% { filter: brightness(1.25) drop-shadow(0 0 0.8rem rgba(253, 233, 135, 0.75)); }
}
@keyframes ta-encore {
  0%, 86%, 100% { transform: none; filter: none; color: var(--accent); }
  90% { transform: translateY(-0.5rem); filter: drop-shadow(0 0 0.9rem rgba(253, 233, 135, 0.7)); color: #fff; }
  95% { transform: translateY(0.1rem); }
}
@keyframes ta-drape {
  0% { opacity: 0; clip-path: inset(-1.5rem 50% -1.5rem 50%); transform: translateY(1rem) scaleX(1.15); color: var(--primary); }
  60% { opacity: 1; }
  100% { opacity: 1; clip-path: inset(-1.5rem -0.6rem -1.5rem -0.6rem); transform: none; color: var(--accent); }
}
@media (max-width: 640px) {
  .anim-on .ta-hero .ta-c { animation-duration: 0.8s, 0.6s; }
  .anim-on .ta-hero .ta-c.ta-luck { animation-duration: 0.8s, 0.6s, 7s; }
  .anim-on .ta-sec.is-in .ta-w { animation-duration: 0.7s; }
  @keyframes ta-drape {
    0% { opacity: 0; clip-path: inset(-1.5rem 50% -1.5rem 50%); transform: translateY(0.6rem) scaleX(1.1); color: var(--primary); }
    60% { opacity: 1; }
    100% { opacity: 1; clip-path: inset(-1.5rem -0.6rem -1.5rem -0.6rem); transform: none; color: var(--accent); }
  }
}
/* /stp:title-anim */
