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

:root {
  --bg: #0c1121;
  --surface: #080c16;
  --text: #e0f2fe;
  --primary: #52c5ff;
  --accent: #ffee6e;
  --font-head: 'Playfair Display SC', serif;
  --font-body: 'Onest', sans-serif;
  --header-h: 6rem;
}

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, li { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.3s, opacity 0.3s; }
button { font: inherit; cursor: pointer; }
main { display: block; }
section { position: relative; }

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

h2 { font-family: var(--font-head); font-weight: 400; font-size: 5.6rem; line-height: 1.2; color: var(--accent); }

#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: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3.2rem; background: var(--surface); 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; line-height: 1.5; color: var(--text); }
#mobile-menu .nav-link:hover { color: var(--primary); }

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

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

@media (max-width: 1024px) {
  .container { padding: 0 4rem; }
}
@media (max-width: 640px) {
  :root { --header-h: 8rem; }
  .container { padding: 0 1.6rem; }
  h2 { font-size: 3.6rem; }
  body { font-size: clamp(14px, 1.6rem, 1.6rem); }
  #mobile-menu .nav-link { font-size: 2.4rem; }
}
/* /stp:base */
/* stp:header */
.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.35); }
.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; position: relative; }
.logo:hover { opacity: 0.8; }
.logo img { position: absolute; left: 50%; top: 50%; width: 122.7%; max-width: none; height: 122.7%; transform: translate(-50%, -50%); }
.nav { display: flex; align-items: center; justify-content: space-between; width: 48rem; }
.nav-link { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }
.nav-link:hover { color: var(--primary); }
main { padding-top: 0; }

@media (max-width: 1024px) {
  .nav { width: 52rem; }
}
@media (max-width: 640px) {
  .header { height: 8rem; }
  .header-inner { align-items: flex-start; }
  .logo { margin-top: 2rem; }
  .burger-btn { display: block; margin: 1.6rem -2rem 0 0; }
  .nav { display: none; }
}
/* /stp:header */
/* stp:hero */
#hero { overflow: hidden; min-height: 75.9rem; padding: 15rem 0 12.6rem; }
.hero-bg { position: absolute; left: 0; top: -0.1rem; width: 100%; height: 80.4rem; max-width: none; object-fit: cover; }
.hero-content { position: relative; z-index: 1; }
#hero h1 { font-family: var(--font-head); font-weight: 400; font-size: 9.6rem; line-height: 1.2; color: var(--accent); }
.hero-sub { margin-top: 24.3rem; font-weight: 600; font-size: 2.8rem; line-height: 1.3; color: var(--text); }
.hero-text { width: 44.8rem; max-width: 100%; margin-top: 0.8rem; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }

@media (max-width: 1024px) {
  #hero h1 { font-size: 8rem; }
}
@media (max-width: 640px) {
  #hero { min-height: 81.2rem; padding: 14rem 0 35rem; }
  .hero-bg { left: -20rem; top: -21.9rem; width: 57.5rem; height: 103.1rem; }
  #hero h1 { font-size: 5.6rem; }
  .hero-sub { margin-top: 12rem; font-size: 2.4rem; }
  .hero-text { width: 100%; font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:hero */
/* stp:features */
#features { padding: 8rem 0; }
.features-inner { display: flex; align-items: flex-start; justify-content: space-between; }
.features-text { width: 64rem; }
.features-list { margin-top: 8rem; display: flex; flex-direction: column; gap: 2.4rem; }
.features-list li { display: flex; flex-direction: column; gap: 0.8rem; }
.features-list h3 { font-weight: 600; 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 { width: 32.8rem; height: 58.7rem; flex: none; border-radius: 2rem; object-fit: cover; }

@media (max-width: 1024px) {
  .features-text { width: auto; flex: 1; margin-right: 4rem; }
  .features-img { width: 28rem; height: 50.2rem; }
}
@media (max-width: 640px) {
  #features { padding: 6rem 0; }
  .features-inner { flex-direction: column; }
  .features-text { width: 100%; margin-right: 0; }
  .features-list { margin-top: 6rem; }
  .features-list h3 { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .features-list p { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .features-img { width: 100%; height: 61.5rem; margin-top: 3.2rem; }
}
/* /stp:features */
/* stp:how-it-works */
#how-it-works { padding: 8rem 0; }
.how-steps { margin-top: 8rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.2rem; align-items: start; }
.how-step { display: flex; flex-direction: column; gap: 0.8rem; }
.how-step h3 { font-weight: 600; font-size: 2rem; line-height: 1.5; color: var(--primary); }
.how-step img { width: 100%; aspect-ratio: 352 / 196; border-radius: 1.6rem; object-fit: cover; }
.how-step p { font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }

@media (max-width: 640px) {
  #how-it-works { padding: 6rem 0; }
  .how-steps { margin-top: 6rem; grid-template-columns: 1fr; gap: 3.2rem; }
  .how-step h3 { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .how-step p { font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:how-it-works */
/* stp:faq */
#faq { padding: 8rem 0; }
.faq-list { margin-top: 8rem; display: flex; flex-direction: column; gap: 1.6rem; }
.faq-item { padding: 1.6rem; border-radius: 1.2rem; background: var(--surface); }
.faq-q { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; font-weight: 600; font-size: 2rem; line-height: 1.5; color: var(--primary); list-style: none; }
summary.faq-q { cursor: pointer; transition: color 0.3s; }
summary.faq-q:hover { color: var(--text); }
summary.faq-q::-webkit-details-marker { display: none; }
.faq-icon { flex: none; display: flex; align-items: center; justify-content: center; width: 2.8rem; height: 3rem; }
.faq-icon img { width: 2rem; height: 1rem; transition: transform 0.4s ease; }
details.is-open .faq-icon img { transform: rotate(180deg); }
.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: 6rem; }
  .faq-q { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .faq-icon { height: 2.8rem; }
  .faq-a { font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:faq */
/* stp:about */
#about { overflow: hidden; padding: 8rem 0; }
.about-bg { position: absolute; left: -1.2rem; top: -1.1rem; width: 145.2rem; height: 53.9rem; max-width: none; object-fit: cover; }
.about-content { position: relative; z-index: 1; }
.about-content h2 { width: 54.4rem; max-width: 100%; }
.about-content p { width: 54.4rem; max-width: 100%; margin-top: 8rem; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); }

@media (max-width: 1024px) {
  .about-bg { left: 0; top: 0; width: 100%; height: 100%; }
}
@media (max-width: 640px) {
  #about { padding: 6rem 0 28.7rem; }
  .about-bg { left: -12.5rem; top: -1rem; width: 50rem; height: 67.6rem; }
  .about-content h2, .about-content p { width: 100%; }
  .about-content p { margin-top: 6rem; font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:about */
/* stp:footer */
.footer { display: flex; flex-direction: column; align-items: center; gap: 4rem; padding: 4rem 1.6rem 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-links a:hover { color: var(--text); 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 { max-width: 112rem; font-size: clamp(14px, 1.8rem, 1.8rem); line-height: 1.5; color: var(--text); overflow-wrap: break-word; }
.legal-content h1 { margin-bottom: 2.7rem; font-family: var(--font-head); font-weight: 400; font-size: 5.6rem; line-height: 1.2; color: var(--text); }
.legal-content h2 { margin: 2.7rem 0; font-weight: 600; font-size: 2.8rem; line-height: 1.3; }
.legal-content h3, .legal-content h4 { margin: 2.7rem 0; font-weight: 600; font-size: 2rem; line-height: 1.3; }
.legal-content p { margin-bottom: 2.7rem; }
.legal-content ul, .legal-content ol { margin: 0 0 2.7rem; padding-left: 2.8rem; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: 0.4rem; }
.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: 640px) {
  .legal-main { padding-top: 8rem; }
  .legal-page { padding: 4rem 0; }
  .legal-content { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .legal-content h1 { margin-bottom: 2.4rem; font-size: 3.6rem; }
  .legal-content h2 { margin: 2.4rem 0; font-size: 2.4rem; }
  .legal-content h3, .legal-content h4 { margin: 2.4rem 0; font-size: 1.8rem; }
  .legal-content p { margin-bottom: 2.4rem; }
  .legal-content ul, .legal-content ol { margin-bottom: 2.4rem; padding-left: 2.4rem; }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .ta-hero { --sp: 1.4rem; }
.anim-on .ta-hero .ta-word { display: inline-block; white-space: nowrap; }
.anim-on .ta-hero .ta-letter { display: inline-block; opacity: 0; will-change: transform, filter; animation: ta-prism-focus 1.3s cubic-bezier(0.16, 1, 0.3, 1) calc(0.9s + var(--i) * 0.055s) both, ta-prism-pulse 7s ease-in-out calc(4.2s + var(--i) * 0.06s) infinite; }
@keyframes ta-prism-focus {
  0% { opacity: 0; color: var(--text); transform: translateX(calc(var(--d) * var(--sp))) scale(1.25); filter: drop-shadow(-1.2rem 0 0 var(--primary)) drop-shadow(1.2rem 0 0 var(--text)) blur(0.6rem) brightness(1.8); }
  55% { opacity: 1; color: var(--text); transform: translateX(0) scale(1.04); filter: drop-shadow(-0.2rem 0 0 var(--primary)) drop-shadow(0.2rem 0 0 var(--text)) blur(0) brightness(1.5); }
  100% { opacity: 1; color: var(--accent); transform: translateX(0) scale(1); filter: drop-shadow(0 0 0 transparent) drop-shadow(0 0 0 transparent) blur(0) brightness(1); }
}
@keyframes ta-prism-pulse {
  0%, 14%, 100% { filter: drop-shadow(0 0 0 transparent) drop-shadow(0 0 0 transparent) blur(0) brightness(1); }
  6% { filter: drop-shadow(-0.4rem 0 0 var(--primary)) drop-shadow(0.4rem 0 0 var(--text)) blur(0) brightness(1.3); }
}
.anim-on .ta-sec .ta-line { display: inline-block; position: relative; clip-path: inset(-50% 110% -60% -10%); filter: blur(0.3rem); }
.anim-on .ta-sec .ta-line::after { content: ''; position: absolute; left: 0; right: 0; bottom: -0.2rem; height: 0.3rem; border-radius: 0.3rem; background: linear-gradient(90deg, transparent, var(--primary) 70%, var(--text)); filter: drop-shadow(0 0 0.6rem var(--primary)); transform: scaleX(0); transform-origin: left center; opacity: 0; pointer-events: none; }
.anim-on .ta-sec.is-in .ta-line { animation: ta-trace-reveal 1.1s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
.anim-on .ta-sec.is-in .ta-line::after { animation: ta-trace-glow 1.7s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
@keyframes ta-trace-reveal {
  0% { clip-path: inset(-50% 110% -60% -10%); filter: blur(0.3rem); color: var(--primary); }
  70% { color: var(--text); }
  100% { clip-path: inset(-50% -10% -60% -10%); filter: blur(0); color: var(--accent); }
}
@keyframes ta-trace-glow {
  0% { opacity: 1; transform: scaleX(0); }
  62% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1); }
}
@media (max-width: 640px) {
  .anim-on .ta-hero { --sp: 0.7rem; }
  .anim-on .ta-hero .ta-letter { animation-duration: 1.1s, 7s; }
  .anim-on .ta-sec.is-in .ta-line { animation-duration: 0.9s; }
  .anim-on .ta-sec.is-in .ta-line::after { animation-duration: 1.4s; }
}
/* /stp:title-anim */
