/* stp:base */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Lora:wght@400&display=swap');

:root {
  --bg: #0d1b2a;
  --surface: #0a1623;
  --accent: #f4a832;
  --text: #4ec9b8;
  --primary: #c1c953;
  --font-head: 'Cinzel Decorative', serif;
  --font-body: 'Lora', 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); } }

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  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;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.3s, opacity 0.3s; }
ul { list-style: none; }
h1, h2, h3 { font-weight: 400; }
main { display: block; }
section { position: relative; }

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

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

#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.6rem 4rem;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
#mobile-menu .nav-link {
  display: block;
  padding: 1.2rem 0;
  font-size: 2.4rem;
  line-height: 1.3;
  text-align: center;
  color: var(--text);
}
#mobile-menu .nav-link:hover { color: var(--accent); }

.burger-btn {
  display: none;
  position: relative;
  z-index: 101;
  width: 6.4rem;
  height: 6.4rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.burger-btn span {
  display: block;
  width: 2.4rem;
  height: 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(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); }

.section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: max-content;
  min-width: 28rem;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 4.8rem;
  line-height: 1.2;
  text-align: center;
  color: var(--accent);
}
.section-title::after {
  content: '';
  width: 28rem;
  height: 0.6rem;
  background:
    radial-gradient(circle, var(--accent) 0 0.3rem, transparent 0.32rem) center / 0.6rem 0.6rem no-repeat,
    linear-gradient(to right, transparent, var(--accent) 25%, var(--accent) 75%, transparent) center / 100% 0.1rem no-repeat;
}

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

@media (max-width: 640px) {
  .section-title { font-size: 3.6rem; }
}
/* /stp:base */
/* stp:header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg);
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.4); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 144rem;
  height: 6rem;
  margin: 0 auto;
  padding: 0 16rem;
}
.header-logo { display: block; width: 4.4rem; height: 4.4rem; border-radius: 1rem; overflow: hidden; }
.header-logo:hover { opacity: 0.8; }
.header-logo img { width: 100%; height: 100%; object-fit: cover; }
.header-nav { display: flex; align-items: center; justify-content: space-between; width: 44.8rem; }
.header-nav .nav-link { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }
.header-nav .nav-link:hover { color: var(--accent); }

@media (max-width: 1024px) {
  .header-inner { padding: 0 6rem; }
  .header-nav { width: 46rem; }
}

@media (max-width: 640px) {
  .header-inner { align-items: flex-start; height: 8rem; padding: 0 1.6rem; }
  .header-logo { margin-top: 2rem; }
  .header-nav { display: none; }
  .burger-btn { display: flex; margin-top: 1.6rem; }
}
/* /stp:header */
/* stp:hero */
.hero { overflow: hidden; min-height: 68.7rem; background: var(--bg); }
.hero-bg { position: absolute; top: 0; left: -1.7rem; width: 145.7rem; height: 71.6rem; }
.hero-bg img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero-inner { position: relative; z-index: 1; max-width: 144rem; margin: 0 auto; padding: 15rem 16rem 0; }
.hero-title { font-family: var(--font-head); font-weight: 400; font-size: 7.2rem; line-height: 1.2; color: var(--accent); white-space: nowrap; }
.hero-sub { margin-top: 9.56rem; font-size: 2.8rem; line-height: 1.3; color: var(--text); }
.hero-text { width: 54.4rem; margin-top: 1.56rem; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }

@media (max-width: 1024px) {
  .hero-bg { left: 0; width: 100%; }
  .hero-bg img { object-position: 75% center; }
  .hero-inner { padding: 15rem 6rem 0; }
  .hero-text { width: 46rem; }
}

@media (max-width: 640px) {
  .hero { min-height: 81.2rem; background: var(--surface); }
  .hero-bg { left: -3.4rem; width: 40.9rem; height: 81.2rem; }
  .hero-bg img { object-position: center; }
  .hero-inner { padding: 10rem 1.6rem 0; text-align: center; }
  .hero-title { font-size: 6.4rem; }
  .hero-title span { display: block; }
  .hero-sub { margin-top: 4.8rem; font-size: 2.4rem; }
  .hero-text { width: 100%; margin-top: 1.6rem; 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; max-width: 144rem; margin: 0 auto; padding: 0 16rem; }
.about-text { display: flex; flex: 0 0 44.8rem; flex-direction: column; align-items: flex-start; gap: 6.4rem; }
.about-text p { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }
.about-img { flex: 0 0 64rem; width: 64rem; height: 37.3rem; border: 1px solid rgba(78, 201, 184, 0.3); border-radius: 0.8rem; object-fit: cover; }

@media (max-width: 1024px) {
  .about-inner { padding: 0 6rem; }
  .about-text { flex: 1 1 0; min-width: 0; }
  .about-img { flex: 0 0 48rem; width: 48rem; height: auto; aspect-ratio: 640 / 373; }
}

@media (max-width: 640px) {
  .about { padding: 6.4rem 0; }
  .about-inner { flex-direction: column; align-items: stretch; gap: 3.2rem; padding: 0 1.6rem; }
  .about-text { flex: none; align-items: center; gap: 4.8rem; }
  .about-text p { align-self: stretch; font-size: clamp(14px, 1.6rem, 1.6rem); }
  .about-img { flex: none; width: 100%; height: 20rem; }
}
/* /stp:about */
/* stp:how-it-works */
.hiw { padding: 8rem 0; background: var(--surface); }
.hiw-inner { display: flex; flex-direction: column; align-items: center; gap: 6.4rem; max-width: 144rem; margin: 0 auto; padding: 0 16rem; }
.hiw-list { display: flex; justify-content: center; gap: 3.2rem; width: 100%; }
.hiw-card { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; width: 35.2rem; text-align: center; }
.hiw-card h3 { font-size: 2.8rem; line-height: 1.3; color: var(--primary); }
.hiw-card img { width: 100%; height: auto; aspect-ratio: 352 / 196; border: 1px solid rgba(78, 201, 184, 0.3); border-radius: 0.8rem; object-fit: cover; }
.hiw-card p { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }

@media (max-width: 1024px) {
  .hiw-inner { padding: 0 6rem; }
  .hiw-card { flex: 1 1 0; width: auto; min-width: 0; }
  .hiw-card h3 { font-size: 2.4rem; }
}

@media (max-width: 640px) {
  .hiw { padding: 6.4rem 0; }
  .hiw-inner { gap: 4.8rem; padding: 0 1.6rem; }
  .hiw-list { flex-direction: column; gap: 3.2rem; }
  .hiw-card { flex: none; width: 100%; }
  .hiw-card h3 { font-size: 2.4rem; }
  .hiw-card img { width: calc(100% + 0.9rem); max-width: none; }
  .hiw-card p { 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; max-width: 144rem; margin: 0 auto; padding: 0 16rem; }
.features-text { display: flex; flex: 0 0 44.8rem; flex-direction: column; align-items: flex-start; gap: 6.4rem; }
.features-list { display: flex; flex-direction: column; gap: 1.6rem; }
.features-list li { display: flex; flex-direction: column; gap: 0.4rem; }
.features-list h3 { font-size: 2rem; line-height: 1.5; color: var(--primary); }
.features-list p { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }
.features-img { flex: 0 0 64rem; width: 64rem; height: 58.6rem; border: 1px solid rgba(78, 201, 184, 0.3); border-radius: 0.8rem; object-fit: cover; }

@media (max-width: 1024px) {
  .features-inner { padding: 0 6rem; }
  .features-text { flex: 1 1 0; min-width: 0; }
  .features-img { flex: 0 0 48rem; width: 48rem; height: auto; aspect-ratio: 640 / 586; }
}

@media (max-width: 640px) {
  .features { padding: 6.4rem 0; }
  .features-inner { flex-direction: column; align-items: stretch; gap: 3.2rem; padding: 0 1.6rem; }
  .features-text { flex: none; align-items: center; gap: 4.8rem; }
  .features-list { align-self: stretch; }
  .features-list h3 { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .features-list p { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .features-img { flex: none; width: 100%; height: 31.4rem; }
}
/* /stp:features */
/* stp:faq */
.faq { padding: 8rem 0; }
.faq-inner { display: flex; flex-direction: column; align-items: center; gap: 6.4rem; max-width: 144rem; margin: 0 auto; padding: 0 16rem; }
.faq-list { display: flex; flex-direction: column; gap: 1.6rem; width: 100%; }
.faq-item { padding: 2.4rem; border-radius: 0.8rem; background: var(--surface); }
.faq-item summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.6rem; list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 { font-size: 2rem; line-height: 1.5; color: var(--primary); transition: color 0.3s; }
.faq-item summary:hover h3 { color: var(--accent); }
.faq-arrow { position: relative; flex: 0 0 3.2rem; width: 3.2rem; height: 3.2rem; border-radius: 0.8rem; background: var(--bg); transition: background 0.3s; }
.faq-arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.8rem;
  height: 0.8rem;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translate(-50%, -75%) rotate(45deg);
  transition: transform 0.3s;
}
.faq-item summary:hover .faq-arrow { background: var(--surface); }
.faq-item[open] .faq-arrow::before { transform: translate(-50%, -25%) rotate(-135deg); }
.faq-item p { margin-top: 1.6rem; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }

@media (max-width: 1024px) {
  .faq-inner { padding: 0 6rem; }
}

@media (max-width: 640px) {
  .faq { padding: 6.4rem 0; }
  .faq-inner { gap: 4.8rem; padding: 0 1.6rem; }
  .faq-item h3 { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .faq-item p { 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); text-align: center; color: var(--text); }
.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: 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 { padding: 6rem 0 8rem; }
.legal-content { max-width: 144rem; margin: 0 auto; padding: 0 16rem; color: var(--text); font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 1.5; }
.legal-content h1 { margin-bottom: 3.2rem; font-weight: 400; font-size: 4.8rem; line-height: 1.2; text-transform: uppercase; color: var(--text); }
.legal-content h2 { margin: 3.2rem 0 1.6rem; font-weight: 400; font-size: 2.4rem; line-height: 1.3; color: var(--text); }
.legal-content h3 { margin: 2.4rem 0 1.2rem; font-weight: 400; font-size: 2rem; line-height: 1.3; color: var(--text); }
.legal-content h4 { margin: 2rem 0 1rem; font-weight: 400; font-size: clamp(14px, 1.8rem, 1.8rem); color: var(--text); }
.legal-content p { margin-bottom: 1.6rem; }
.legal-content ul, .legal-content ol { margin: 0 0 1.6rem; padding-left: 2.4rem; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: 0.4rem; }
.legal-content a { text-decoration: underline; color: var(--text); }
.legal-content a:hover { color: var(--accent); }
.legal-content strong { font-weight: 700; }
.legal-content em { font-style: italic; }
.legal-content u { text-decoration: underline; }

@media (max-width: 1024px) {
  .legal-content { padding: 0 6rem; }
}

@media (max-width: 640px) {
  .legal-main { padding-top: 8rem; }
  .legal-page { padding: 3.2rem 0 6.4rem; }
  .legal-content { padding: 0 1.6rem; }
  .legal-content h1 { font-size: 3.6rem; }
  .legal-content h2 { font-size: 2rem; }
}
/* /stp:legal */
/* stp:title-anim */
.hero-title span.ta-w, .section-title span.ta-w { display: inline-block; white-space: nowrap; }
.hero-title span.ta-c { display: inline-block; }
.section-title .ta-line { display: block; }

.anim-on .hero-title { position: relative; }
.anim-on .hero-title::before {
  content: '';
  position: absolute;
  inset: -20% 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 236, 196, 0.08) 46%, rgba(255, 228, 170, 0.55) 50%, rgba(255, 236, 196, 0.08) 54%, transparent 58%) 130% 0 / 300% 100% no-repeat;
  mix-blend-mode: screen;
  opacity: 0;
}
.anim-on .hero-title .ta-c { opacity: 0; transform-origin: 50% 70%; }
.anim-on .hero-title.is-in::before { animation: ta-beam calc(0.07s * var(--n) + 0.9s) cubic-bezier(0.45, 0, 0.3, 1) 0.8s both; }
.anim-on .hero-title.is-in .ta-c { animation: ta-ignite 1.1s cubic-bezier(0.2, 0.8, 0.25, 1) calc(0.95s + 0.07s * var(--i)) both; }
.anim-on .hero-title.is-in > span:last-child { animation: ta-beacon 6s ease-in-out 3.6s infinite; }

@keyframes ta-beam {
  0% { opacity: 0; background-position: 130% 0; }
  15% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; background-position: -30% 0; }
}
@keyframes ta-ignite {
  0% { opacity: 0; color: #fff4d8; transform: translateX(-0.35em) scaleX(2.1) skewX(-24deg); filter: brightness(2) drop-shadow(0 0 1.4rem var(--accent)); }
  40% { opacity: 1; color: #fff4d8; transform: translateX(0.04em) scaleX(0.9) skewX(5deg); filter: brightness(1.6) drop-shadow(0 0 1rem var(--accent)); }
  70% { color: var(--accent); transform: scaleX(1.03) skewX(-1deg); filter: brightness(1.15) drop-shadow(0 0 0.5rem var(--accent)); }
  100% { opacity: 1; color: var(--accent); transform: none; filter: brightness(1) drop-shadow(0 0 0 transparent); }
}
@keyframes ta-beacon {
  0%, 78%, 100% { filter: brightness(1) drop-shadow(0 0 0 transparent); }
  82% { filter: brightness(1.3) drop-shadow(0 0 1.4rem var(--accent)); }
  86% { filter: brightness(1) drop-shadow(0 0 0.2rem var(--accent)); }
  90% { filter: brightness(1.3) drop-shadow(0 0 1.4rem var(--accent)); }
  95% { filter: brightness(1) drop-shadow(0 0 0 transparent); }
}

.anim-on .section-title .ta-w { opacity: 0; }
.anim-on .section-title::after { opacity: 0; transform: scaleX(0); }
.anim-on .section-title.is-in .ta-w { animation: ta-focus 1s cubic-bezier(0.22, 0.9, 0.3, 1) calc(0.14s * var(--i)) both; }
.anim-on .section-title.is-in::after { animation: ta-rule 0.9s cubic-bezier(0.65, 0, 0.35, 1) calc(0.14s * var(--n) + 0.35s) both; }

@keyframes ta-focus {
  0% { opacity: 0; letter-spacing: 0.45em; color: var(--text); transform: translateY(0.25em); }
  55% { opacity: 1; color: #ffe2a8; }
  100% { opacity: 1; letter-spacing: normal; color: var(--accent); transform: none; }
}
@keyframes ta-rule {
  0% { opacity: 0; transform: scaleX(0); }
  20% { opacity: 1; transform: scaleX(0.04); filter: brightness(1.8) drop-shadow(0 0 0.6rem var(--accent)); }
  100% { opacity: 1; transform: scaleX(1); filter: none; }
}

@media (max-width: 640px) {
  .anim-on .hero-title.is-in .ta-c { animation-duration: 0.9s; }
  @keyframes ta-ignite {
    0% { opacity: 0; color: #fff4d8; transform: translateX(-0.2em) scaleX(1.7) skewX(-18deg); filter: brightness(2) drop-shadow(0 0 1rem var(--accent)); }
    40% { opacity: 1; color: #fff4d8; transform: scaleX(0.94) skewX(4deg); filter: brightness(1.5) drop-shadow(0 0 0.8rem var(--accent)); }
    100% { opacity: 1; color: var(--accent); transform: none; filter: brightness(1) drop-shadow(0 0 0 transparent); }
  }
  @keyframes ta-focus {
    0% { opacity: 0; letter-spacing: 0.25em; color: var(--text); transform: translateY(0.15em); }
    100% { opacity: 1; letter-spacing: normal; color: var(--accent); transform: none; }
  }
}
/* /stp:title-anim */
