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

:root {
  --bg: #000d1f;
  --surface: #15182c;
  --primary: #fafdfd;
  --text: #b6d5e9;
  --accent: #f4bb43;
  --card-border: rgba(182, 213, 233, 0.2);
  --card-shadow: 0 0.8rem 1.2rem rgba(0, 242, 254, 0.08);
  --font: 'Inter', 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); } }

*, *::before, *::after { box-sizing: border-box; }
html.menu-lock, html.menu-lock body { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, figure { 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, background-color 0.3s, border-color 0.3s, box-shadow 0.3s; }
button { font: inherit; color: inherit; cursor: pointer; }

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

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

main { padding-top: 0; }

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  height: 6rem;
  background: var(--surface);
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.45); }
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: block; width: 4.4rem; height: 4.4rem; border-radius: 1rem; overflow: hidden; }
.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); }
.nav-link:hover { color: var(--accent); }

.burger-btn {
  display: none;
  position: relative;
  width: 6.4rem;
  height: 6.4rem;
  padding: 0;
  background: transparent;
  border: 0;
  z-index: 120;
  transition: opacity 0.3s;
}
.burger-btn:hover { opacity: 0.7; }
.burger-btn span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.4rem;
  height: 2px;
  margin-left: -1.2rem;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.burger-btn span:nth-child(1) { transform: translateY(-0.8rem); }
.burger-btn span:nth-child(2) { transform: translateY(0); }
.burger-btn span:nth-child(3) { transform: translateY(0.8rem); }
.burger-btn.act span:nth-child(1) { transform: translateY(0) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(0) rotate(-45deg); }

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

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 0.9rem 1.1rem;
  background: #000;
  border: 1px solid #a6a6a6;
  border-radius: 0.6rem;
  overflow: hidden;
}
.store-btn:hover { border-color: var(--primary); box-shadow: 0 0 1.6rem rgba(244, 187, 67, 0.45); }
.store-btn__icon { width: 3.1rem; height: 3.5rem; flex: 0 0 auto; }
.store-btn__label { width: 11.3rem; height: 3.7rem; flex: 0 0 auto; }

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

.section-title {
  font-size: 4.8rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--primary);
}

@media (max-width: 1024px) {
  .container { padding: 0 4rem; }
}

@media (max-width: 640px) {
  .container { padding: 0 1.6rem; }
  .header { height: 8rem; }
  .header-inner { align-items: flex-start; }
  .logo { margin-top: 2rem; }
  .nav { display: none; }
  .burger-btn { display: block; margin-top: 1.6rem; }
  .section-title { font-size: 3.6rem; }
}
/* /stp:base */
/* stp:hero */
.hero { position: relative; min-height: 75.9rem; padding-top: 15rem; overflow: hidden; }
.hero-bg { position: absolute; left: -14.4rem; top: 0; width: 159.5rem; height: 102.3rem; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.hero-inner { position: relative; z-index: 1; }
.hero-title { font-size: 7.2rem; line-height: 1.2; font-weight: 600; color: var(--accent); white-space: nowrap; }
.hero-subtitle { margin-top: 13.56rem; font-size: 2.8rem; line-height: 1.3; font-weight: 500; color: var(--primary); }
.hero-text { width: 54.4rem; margin-top: 1.56rem; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }
.store-btn.hero-store { margin-top: 6.4rem; animation: store-float 3s ease-in-out infinite; }
.store-btn.hero-store:hover { animation-play-state: paused; }

@media (max-width: 1024px) {
  .hero-bg { left: 0; width: 100%; height: 100%; }
  .hero-bg img { object-position: right center; }
}

@media (max-width: 640px) {
  .hero { min-height: 81.2rem; padding-top: 10rem; padding-bottom: 6.4rem; }
  .hero-bg { left: 0; width: 100%; height: 100%; }
  .hero-bg img { object-position: center; }
  .hero-title { width: 19.8rem; font-size: 5.6rem; text-align: center; white-space: normal; }
  .hero-subtitle { width: 18.9rem; margin-top: 3.16rem; font-size: 2.4rem; }
  .hero-text { width: 22rem; margin-top: 1.56rem; font-size: clamp(14px, 1.6rem, 1.6rem); }
  .store-btn.hero-store { margin: 17.9rem auto 0; display: flex; width: fit-content; }
}
/* /stp:hero */
/* stp:about */
.about { padding-top: 8rem; padding-bottom: 8rem; }
.about-inner { display: flex; align-items: flex-start; gap: 12.8rem; }
.about-text { flex: 0 0 44.8rem; width: 44.8rem; }
.about-desc { margin-top: 4.8rem; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }
.about-img { flex: 0 0 auto; width: 54.4rem; aspect-ratio: 544 / 436; object-fit: cover; border-radius: 1.2rem; }

@media (max-width: 1024px) {
  .about-inner { gap: 6rem; }
  .about-text { flex: 1 1 0; width: auto; min-width: 0; }
  .about-img { width: 44rem; }
}

@media (max-width: 640px) {
  .about { padding-top: 6.4rem; padding-bottom: 6.4rem; }
  .about-inner { flex-direction: column; align-items: stretch; gap: 3.2rem; }
  .about-text { flex: none; width: 100%; }
  .about-desc { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .about-img { width: 100%; aspect-ratio: 343 / 275; }
}
/* /stp:about */
/* stp:features */
.features { padding-top: 8rem; padding-bottom: 8rem; }
.features-inner { display: flex; flex-direction: row-reverse; align-items: flex-start; justify-content: flex-end; gap: 12.8rem; }
.features-text { flex: 0 0 44.8rem; width: 44.8rem; }
.features-list { display: flex; flex-direction: column; gap: 1.6rem; margin-top: 4.8rem; }
.feature-item { display: flex; flex-direction: column; gap: 0.4rem; }
.feature-title { font-size: clamp(14px, 2rem, 2rem); line-height: 1.5; font-weight: 500; color: var(--accent); }
.feature-desc { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }
.features-img { flex: 0 0 auto; width: 54.4rem; aspect-ratio: 544 / 614; object-fit: cover; border-radius: 1.2rem; }

@media (max-width: 1024px) {
  .features-inner { gap: 6rem; }
  .features-text { flex: 1 1 0; width: auto; min-width: 0; }
  .features-img { width: 44rem; }
}

@media (max-width: 640px) {
  .features { padding-top: 6.4rem; padding-bottom: 6.4rem; }
  .features-inner { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 3.2rem; }
  .features-text { flex: none; width: 100%; }
  .feature-title { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .feature-desc { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .features-img { width: 100%; aspect-ratio: 343 / 387; }
}
/* /stp:features */
/* stp:how-it-works */
.how { padding-top: 8rem; padding-bottom: 8rem; }
.how-title { text-align: center; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.2rem; margin-top: 4.8rem; }
.step-card {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  padding: 2.3rem;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 1.2rem;
  box-shadow: var(--card-shadow);
}
.step-head { display: flex; align-items: center; justify-content: space-between; }
.step-badge {
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--text);
  border-radius: 0.6rem;
  font-size: clamp(12px, 1.2rem, 1.2rem);
  line-height: 1.5;
  color: var(--text);
}
.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: rgba(250, 253, 253, 0.04);
  border: 1px solid rgba(250, 253, 253, 0.08);
  border-radius: 2rem;
}
.step-icon img { width: 2rem; height: 2rem; }
.step-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 14rem;
  background: rgba(0, 13, 31, 0.4);
  border: 1px solid rgba(250, 253, 253, 0.02);
  border-radius: 0.8rem;
  overflow: hidden;
  flex: 0 0 auto;
}
.graphic-anchor { width: 8.57rem; height: 8rem; }
.graphic-gravity { width: 10.27rem; height: 7.03rem; }
.graphic-portal { position: relative; width: 8.37rem; height: 6rem; }
.portal-outer { position: absolute; left: 0; top: 0; width: 6rem; height: 6rem; }
.portal-inner { position: absolute; left: 1rem; top: 1rem; width: 4rem; height: 4rem; }
.portal-star { position: absolute; left: 6.77rem; top: 2.4rem; width: 1.6rem; height: 1.6rem; }
.step-body { display: flex; flex-direction: column; gap: 1.2rem; }
.step-title { font-size: 2.8rem; line-height: 1.3; font-weight: 500; color: var(--accent); }
.step-desc { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }

@media (max-width: 1024px) {
  .steps { grid-template-columns: 1fr; max-width: 48rem; margin-left: auto; margin-right: auto; gap: 3.2rem; }
}

@media (max-width: 640px) {
  .how { padding-top: 6.4rem; padding-bottom: 6.4rem; }
  .steps { max-width: none; }
  .step-title { font-size: 2.4rem; }
  .step-desc { font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:how-it-works */
/* stp:reviews */
.reviews { padding-top: 8rem; padding-bottom: 8rem; background: var(--surface); }
.reviews-wrap { margin-top: 4.8rem; }
.reviews-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.2rem; align-items: start; }
.review-card {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  padding: 2.3rem;
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 1.2rem;
  box-shadow: var(--card-shadow);
}
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.review-name { font-size: clamp(14px, 2rem, 2rem); line-height: 1.5; font-weight: 500; color: var(--primary); white-space: nowrap; }
.review-stars { font-size: 2.8rem; line-height: 1.3; font-weight: 500; color: var(--accent); white-space: nowrap; }
.review-text { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }

@media (max-width: 1024px) {
  .reviews-wrap { padding-right: 0; }
  .reviews-list {
    display: flex;
    gap: 2rem;
    align-items: stretch;
    overflow-x: auto;
    padding: 0 4rem 2.4rem 0;
    margin-bottom: -2.4rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .reviews-list::-webkit-scrollbar { display: none; }
  .review-card { flex: 0 0 34rem; scroll-snap-align: start; }
}

@media (max-width: 640px) {
  .reviews { padding-top: 6.4rem; padding-bottom: 6.4rem; }
  .reviews-wrap { margin-top: 4.8rem; }
  .reviews-list { gap: 1.6rem; padding: 0 1.6rem 2.4rem 0; }
  .review-card { flex: 0 0 30rem; }
  .review-name { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .review-stars { font-size: 2.4rem; }
  .review-text { font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:reviews */
/* stp:footer */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  padding: 4rem 16rem 1.6rem;
  background: var(--bg);
  color: var(--text);
  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-links a:hover { color: var(--accent); }
.footer-copy { font-size: clamp(11px, 1.2rem, 1.2rem); line-height: 1.5; }

@media (max-width: 1024px) {
  .footer { padding-left: 4rem; padding-right: 4rem; }
}

@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 { color: var(--text); font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; }
.legal-content > * + * { margin-top: 2.7rem; }
.legal-content h1 { font-size: 4.8rem; line-height: 1.2; font-weight: 600; color: var(--text); }
.legal-content h2 { font-size: 2.8rem; line-height: 1.3; font-weight: 500; }
.legal-content h3, .legal-content h4 { font-size: 2rem; line-height: 1.5; font-weight: 500; }
.legal-content p, .legal-content li { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; }
.legal-content ul { list-style: disc; padding-left: 2.8rem; }
.legal-content ol { list-style: decimal; padding-left: 2.8rem; }
.legal-content li + li { margin-top: 0.8rem; }
.legal-content a { color: var(--accent); 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-page { padding-left: 4rem; padding-right: 4rem; }
}

@media (max-width: 640px) {
  .legal-main { padding-top: 8rem; }
  .legal-page { padding: 4rem 1.6rem; }
  .legal-content > * + * { margin-top: 2.4rem; }
  .legal-content h1 { font-size: 3.6rem; }
  .legal-content h2 { font-size: 2.4rem; }
  .legal-content h3, .legal-content h4 { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .legal-content p, .legal-content li { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .legal-content ul, .legal-content ol { padding-left: 2.4rem; }
}
/* /stp:legal */
/* stp:title-anim */
.ta-word { display: inline-block; white-space: nowrap; }
.ta-char { display: inline-block; }
.anim-on .hero-title { --ta-fall: 9rem; --ta-tilt: 18deg; }
.anim-on .hero-title .ta-char { opacity: 0; }
.anim-on .hero-title.is-in .ta-char { animation: ta-gravity-flip 1s cubic-bezier(0.3, 1.45, 0.5, 1) calc(var(--i) * 0.06s) both; }
.anim-on .hero-title.is-in { animation: ta-anchor-lock 1.4s ease-out 0.95s both; }
.anim-on .hero-title.is-in .ta-word:last-child { animation: ta-anchor-pulse 5s ease-in-out 3.4s infinite; }
.anim-on .section-title .ta-word { opacity: 0; transform-origin: 50% 420%; }
.anim-on .section-title.is-in .ta-word { animation: ta-orbit-in 1s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i) * 0.14s) both; }

@keyframes ta-gravity-flip {
  0% { opacity: 0; transform: translateY(calc(var(--d) * var(--ta-fall) * -1)) rotate(calc(var(--d) * var(--ta-tilt))); filter: blur(0.4rem); color: var(--text); }
  45% { opacity: 1; filter: blur(0); color: var(--text); }
  62% { transform: translateY(calc(var(--d) * 0.6rem)) rotate(0deg); }
  80% { transform: translateY(calc(var(--d) * -0.2rem)); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes ta-anchor-lock {
  0% { filter: drop-shadow(0 0 0 rgba(0, 242, 254, 0)); }
  35% { filter: drop-shadow(0 0 1.8rem rgba(0, 242, 254, 0.55)); }
  100% { filter: drop-shadow(0 0 0 rgba(244, 187, 67, 0)); }
}
@keyframes ta-anchor-pulse {
  0%, 78%, 100% { filter: drop-shadow(0 0 0 rgba(244, 187, 67, 0)); }
  89% { filter: drop-shadow(0 0 1.4rem rgba(244, 187, 67, 0.6)); }
}
@keyframes ta-orbit-in {
  0% { opacity: 0; transform: rotate(-12deg) translateY(1.6rem); filter: blur(0.3rem); color: var(--accent); }
  55% { opacity: 1; filter: blur(0); color: var(--accent); }
  100% { opacity: 1; transform: none; filter: none; }
}

@media (max-width: 640px) {
  .anim-on .hero-title { --ta-fall: 6rem; --ta-tilt: 12deg; }
  .anim-on .hero-title.is-in .ta-char { animation-duration: 0.85s; }
  .anim-on .section-title .ta-word { transform-origin: 50% 300%; }
  .anim-on .section-title.is-in .ta-word { animation-name: ta-orbit-in-m; animation-duration: 0.8s; }
  @keyframes ta-orbit-in-m {
    0% { opacity: 0; transform: rotate(-7deg) translateY(1rem); filter: blur(0.2rem); color: var(--accent); }
    55% { opacity: 1; filter: blur(0); color: var(--accent); }
    100% { opacity: 1; transform: none; filter: none; }
  }
}
/* /stp:title-anim */

/* stp:hover */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .about-img, .features-img, .step-card, .review-card { transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease; }
  .about-img:hover, .features-img:hover { transform: translateY(-0.6rem); box-shadow: 0 1.2rem 3rem rgba(0, 242, 254, 0.18); }
  .step-card:hover { transform: translateY(-0.4rem); border-color: rgba(244, 187, 67, 0.5); box-shadow: 0 1rem 2.4rem rgba(244, 187, 67, 0.12); }
  .review-card:hover { border-color: rgba(244, 187, 67, 0.5); box-shadow: 0 1rem 2.4rem rgba(244, 187, 67, 0.12); }
  .graphic-anchor, .graphic-gravity, .portal-outer, .portal-star { transition: transform 0.6s cubic-bezier(0.3, 1.4, 0.5, 1); }
  .step-card:hover .graphic-anchor { transform: rotate(-8deg); }
  .step-card:hover .graphic-gravity { transform: translateY(-0.4rem); }
  .step-card:hover .portal-outer { transform: rotate(90deg); }
  .step-card:hover .portal-star { transform: scale(1.3) rotate(20deg); }
}
/* /stp:hover */
