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

:root {
  --bg: #0B1F38;
  --text: #DFF9FF;
  --accent: #FFEC82;
  --primary: #5DB5FF;
  --surface: #0E3352;
  --surface-2: #0C1520;
  --font-head: 'Cormorant Garamond', serif;
  --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); } }

*, *::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-body);
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 1.5;
}
h1, h2, h3, 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, text-decoration-color 0.3s; }
button { font-family: inherit; cursor: pointer; }
section { position: relative; }

.container { width: 100%; max-width: 144rem; margin: 0 auto; padding: 0 16rem; }
@media (max-width: 1024px) { .container { padding: 0 4rem; } }
@media (max-width: 640px) { .container { padding: 0 1.6rem; } }

.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 6.4rem;
  line-height: 1.2;
  text-align: center;
  color: var(--text);
}
@media (max-width: 1024px) { .section-title { font-size: 5.2rem; } }
@media (max-width: 640px) { .section-title { font-size: 4.8rem; } }

#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;
  background: var(--surface-2);
  transition: box-shadow 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.header.scrolled { box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.35); border-bottom-color: var(--surface); }

#mobile-menu {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 90;
  background: var(--surface-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
#mobile-menu.opened { opacity: 1; pointer-events: auto; }

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

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

@media (max-width: 640px) {
  .burger-btn { display: flex; }
}
/* /stp:base */
/* stp:header */
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 6rem; }
.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); }
@media (max-width: 1024px) {
  .nav { width: 50rem; }
}
@media (max-width: 640px) {
  .header-inner { height: 8rem; padding-right: 0.7rem; }
  .nav { display: none; }
}
/* /stp:header */
/* stp:menu */
#mobile-menu { gap: 3.2rem; padding-top: 8rem; }
#mobile-menu .nav-link { font-size: 2.4rem; font-weight: 600; line-height: 1.3; color: var(--text); }
#mobile-menu .nav-link:hover { color: var(--accent); }
/* /stp:menu */
/* stp:hero */
.hero { min-height: 75.9rem; overflow: hidden; margin-top: 0; }
.hero-bg { position: absolute; left: 0; top: 0; width: 100%; height: 80.4rem; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-inner { position: relative; padding-top: 15rem; }
.hero-title { font-family: var(--font-head); font-weight: 700; font-size: 8.8rem; line-height: 1.2; color: var(--text); }
.hero-subtitle { margin-top: 6.4rem; font-weight: 600; font-size: 2.8rem; line-height: 1.3; color: var(--text); }
.hero-text { margin-top: 1.6rem; width: 44.8rem; 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: 7rem; }
}
@media (max-width: 640px) {
  .hero { min-height: 81.2rem; }
  .hero-bg { left: auto; top: auto; right: 0; bottom: 0; width: 52.4rem; height: 93.9rem; }
  .hero-bg img { object-fit: fill; }
  .hero-inner { padding-top: 11.6rem; }
  .hero-title { font-size: 6rem; }
  .hero-subtitle { margin-top: 3.6rem; font-size: 2.4rem; }
  .hero-text { margin-top: 0.8rem; width: 100%; font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:hero */
/* stp:how-it-works */
.how { padding: 8rem 0; }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.2rem; margin-top: 6.4rem; }
.how-card { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; text-align: center; }
.how-card-title { font-weight: 600; font-size: 2.8rem; line-height: 1.3; color: var(--accent); }
.how-img { position: relative; width: 100%; aspect-ratio: 1; border-radius: 1.6rem; overflow: hidden; background: #2d2727; }
.how-img img { position: absolute; max-width: none; height: auto; }
.how-img-1 img { width: 262.2%; left: -1.7%; top: -29.3%; }
.how-img-2 img { width: 278.4%; left: -100%; top: -38.4%; }
.how-img-3 img { width: 275%; left: -175%; top: -19.3%; }
.how-card-text { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }
@media (max-width: 1024px) {
  .how-steps { gap: 2rem; }
  .how-card-title { font-size: 2.4rem; }
}
@media (max-width: 640px) {
  .how { padding: 6rem 0; }
  .how-steps { grid-template-columns: 1fr; gap: 3.2rem; margin-top: 4.8rem; }
  .how-card-title { font-size: 2.4rem; }
  .how-card-text { font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:how-it-works */
/* stp:features */
.features { padding: 8rem 0; }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 3.2rem; row-gap: 2.4rem; margin-top: 6.4rem; }
.feature-card { display: flex; flex-direction: column; gap: 0.8rem; }
.feature-title { font-weight: 600; font-size: 2rem; line-height: 1.5; color: var(--accent); }
.feature-text { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }
.features-img { width: 100%; aspect-ratio: 1120 / 625; object-fit: cover; border-radius: 1.6rem; margin-top: 3.2rem; }
@media (max-width: 640px) {
  .features { padding: 6rem 0; }
  .features-grid { grid-template-columns: 1fr; row-gap: 2.4rem; margin-top: 4.8rem; }
  .feature-card { text-align: center; }
  .feature-title { font-size: 1.8rem; line-height: 1.5; }
  .feature-text { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .features-img { aspect-ratio: 343 / 191; }
}
/* /stp:features */
/* stp:reviews */
.reviews { padding: 8rem 0; background: var(--surface-2); overflow: hidden; }
.reviews-bg { position: absolute; left: 50%; top: -37.4rem; width: 206.9rem; height: 133.6rem; max-width: none; margin-left: -103.4rem; object-fit: cover; }
.reviews-inner { position: relative; }
.reviews-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.2rem; align-items: start; margin-top: 6.4rem; }
.review-card { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.6rem; border-radius: 1.6rem; background: var(--surface); }
.review-stars { font-weight: 600; font-size: 2rem; line-height: 1.5; color: var(--accent); }
.review-text { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }
.review-author { font-weight: 600; font-size: 2rem; line-height: 1.5; text-align: right; color: var(--primary); }
@media (max-width: 1024px) {
  .reviews-list { gap: 2rem; }
}
@media (max-width: 640px) {
  .reviews { padding: 6rem 0; }
  .reviews-bg { left: -61rem; margin-left: 0; }
  .reviews-inner { padding-right: 0; }
  .reviews .section-title { text-align: left; padding-left: 3rem; }
  .reviews-list { display: flex; align-items: stretch; gap: 1.6rem; overflow-x: auto; margin: 4.8rem -1.6rem 0; padding: 0 1.6rem; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding: 0 1.6rem; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .reviews-list::-webkit-scrollbar { display: none; }
  .reviews-list::after { content: ""; flex: 0 0 0.1rem; }
  .review-card { flex: 0 0 30rem; scroll-snap-align: start; }
  .review-text { flex: 1; }
  .review-stars, .review-author { font-size: 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: 0.8rem; margin-top: 6.4rem; }
.faq-item { padding: 1.6rem; border-radius: 1.6rem; background: var(--surface-2); }
.faq-q { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; list-style: none; cursor: pointer; font-weight: 600; font-size: 2rem; line-height: 1.5; color: var(--primary); transition: color 0.3s; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--accent); }
.faq-icon { position: relative; flex: 0 0 2.8rem; width: 2.8rem; height: 2.8rem; margin-top: 0.1rem; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 1.4rem; height: 0.2rem; margin: -0.1rem 0 0 -0.7rem; border-radius: 0.2rem; background: currentColor; transition: transform 0.4s ease; }
.faq-icon::after { transform: rotate(90deg); }
.faq-item.is-open .faq-icon::after { transform: rotate(0); }
.faq-a { margin-top: 0.8rem; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }
@media (max-width: 640px) {
  .faq { padding: 6rem 0; }
  .faq-list { margin-top: 4.8rem; }
  .faq-q { font-size: 1.8rem; }
  .faq-a { font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:faq */
/* stp:footer */
.footer { background: var(--surface-2); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 4rem; padding-top: 4rem; padding-bottom: 1.6rem; 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); text-decoration: underline; }
.footer-copy { font-size: clamp(12px, 1.2rem, 1.2rem); line-height: 1.5; }
@media (max-width: 640px) {
  .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 { padding: 8rem 0; }
.legal-content { width: 100%; max-width: 144rem; margin: 0 auto; padding: 0 16rem; color: var(--text); font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; }
.legal-content h1 { font-family: var(--font-head); font-weight: 700; font-size: 6.4rem; line-height: 1.2; margin-bottom: 2.4rem; }
.legal-content h2, .legal-content h3, .legal-content h4 { font-weight: 600; font-size: 2.8rem; line-height: 1.3; margin: 3.2rem 0 1.2rem; }
.legal-content h4 { font-size: 2rem; }
.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 { font-weight: 600; }
.legal-content em { font-style: italic; }
.legal-content u { text-decoration: underline; }
@media (max-width: 1024px) { .legal-content { padding: 0 4rem; } .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: 4.8rem; }
  .legal-content h2, .legal-content h3, .legal-content h4 { font-size: 2.4rem; }
  .legal-content h4 { font-size: 1.8rem; }
}
/* /stp:legal */
/* stp:title-anim */
.ta-word { display: inline-block; white-space: nowrap; }
.ta-ch { display: inline-block; }
.anim-on .hero-title .ta-ch { opacity: 0; transform: translateY(0.35em) scale(0.96); filter: blur(0.6rem); color: var(--primary); }
.anim-on .hero-title.is-in .ta-ch {
  animation: ta-beacon-rise 1.4s cubic-bezier(0.22, 0.8, 0.3, 1) calc(var(--i) * 0.07s) both,
             ta-beacon-sweep 6s ease-in-out calc(3.2s + var(--i) * 0.06s) infinite;
}
@keyframes ta-beacon-rise {
  0% { opacity: 0; transform: translateY(0.35em) scale(0.96); filter: blur(0.6rem); color: var(--primary); }
  45% { opacity: 1; transform: translateY(-0.04em) scale(1.02); filter: blur(0) drop-shadow(0 0 1.6rem var(--accent)); color: var(--accent); }
  100% { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 0 0 transparent); color: var(--text); }
}
@keyframes ta-beacon-sweep {
  0%, 10%, 100% { color: var(--text); filter: drop-shadow(0 0 0 transparent); }
  4% { color: var(--accent); filter: drop-shadow(0 0 1.2rem var(--accent)); }
}
.anim-on .section-title .ta-word { opacity: 0; transform: translateY(-0.6em) rotate(-7deg); transform-origin: 50% 0; filter: blur(0.4rem); }
.anim-on .section-title.is-in .ta-word { animation: ta-anchor-drop 1.1s cubic-bezier(0.3, 0.7, 0.4, 1) calc(var(--i) * 0.14s) both; }
@keyframes ta-anchor-drop {
  0% { opacity: 0; transform: translateY(-0.6em) rotate(-7deg); filter: blur(0.4rem); color: var(--primary); }
  40% { opacity: 1; transform: translateY(0.06em) rotate(4deg); filter: blur(0); }
  65% { transform: translateY(-0.02em) rotate(-2deg); }
  85% { transform: translateY(0) rotate(0.8deg); }
  100% { opacity: 1; transform: none; filter: none; color: var(--text); }
}
@media (max-width: 640px) {
  .anim-on .hero-title.is-in .ta-ch { animation-duration: 1.1s, 6s; }
  .anim-on .section-title .ta-word { transform: translateY(-0.35em) rotate(-4deg); }
  .anim-on .section-title.is-in .ta-word { animation-name: ta-anchor-drop-m; animation-duration: 0.9s; }
  @keyframes ta-anchor-drop-m {
    0% { opacity: 0; transform: translateY(-0.35em) rotate(-4deg); filter: blur(0.4rem); color: var(--primary); }
    45% { opacity: 1; transform: translateY(0.04em) rotate(2deg); filter: blur(0); }
    75% { transform: translateY(0) rotate(-0.8deg); }
    100% { opacity: 1; transform: none; filter: none; color: var(--text); }
  }
}
/* /stp:title-anim */
