/* stp:base */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #0F2C1F;
  --surface: #06140E;
  --text: #F0F9F0;
  --accent: #F8E7B2;
  --primary: #4ADE80;
  --font-serif: 'DM Serif Display', serif;
  --font-sans: 'Inter', 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); } }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol {
  margin: 0;
  padding: 0;
}
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

html.hide #preloader { display: none; }

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.header.scrolled {
  box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.25);
}
.header-inner {
  max-width: 144rem;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16rem;
}
.logo { display: block; border-radius: 1rem; overflow: hidden; width: 4.4rem; height: 4.4rem; flex-shrink: 0; transition: opacity 0.3s ease, transform 0.3s ease; }
.logo:hover { opacity: 0.85; transform: scale(1.04); }
.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);
  color: var(--text);
  transition: color 0.3s ease;
}
.nav-link:hover { color: var(--primary); }

.burger-btn {
  display: none;
  position: relative;
  width: 4.4rem;
  height: 4.4rem;
  background: transparent;
  border: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  z-index: 110;
}
.burger-btn span {
  display: block;
  width: 2.4rem;
  height: 0.2rem;
  background: var(--text);
  border-radius: 0.2rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.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 */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.2rem;
}
#mobile-menu.opened {
  opacity: 1;
  pointer-events: auto;
}
#mobile-menu .nav-link {
  font-size: clamp(14px, 2.2rem, 2.2rem);
  color: var(--text);
}
#mobile-menu .nav-link:hover { color: var(--primary); }

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

main { padding-top: var(--header-h); }

/* Store button float */
@keyframes store-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1rem); }
}
.store-btn {
  animation: store-float 3s ease-in-out infinite;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.store-btn:hover {
  animation-play-state: paused;
  opacity: 0.85;
}

/* Footer */
.footer {
  background: var(--surface);
  color: var(--primary);
  text-align: center;
}
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer a {
  transition: color 0.3s ease;
}
.footer a:hover {
  color: var(--accent);
}
/* /stp:base */
/* stp:header */
@media (max-width: 1024px) {
  .header-inner { padding: 0 4rem; }
  .nav { width: auto; gap: 2.4rem; }
}

@media (max-width: 640px) {
  :root { --header-h: 8rem; }
  .header-inner { padding: 0 1.6rem; }
  .nav { display: none; }
  .burger-btn { display: flex; }
}
/* /stp:header */
/* stp:hero */
#hero {
  position: relative;
  min-height: 69.6rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 144rem;
  width: 100%;
  margin: 0 auto;
  padding: 15rem 16rem 15rem;
}
#hero h1 {
  font-family: var(--font-serif);
  font-size: 9.6rem;
  line-height: 1.2;
  color: var(--bg);
  margin-bottom: 1.95rem;
}
.hero-subtitle {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(14px, 2.8rem, 2.8rem);
  line-height: 1.3;
  color: var(--bg);
  margin-bottom: 2.9rem;
  max-width: 54.4rem;
}
.hero-body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 1.5;
  color: var(--bg);
  max-width: 54.4rem;
}

@media (max-width: 1024px) {
  .hero-content { padding: 10rem 4rem; }
  #hero h1 { font-size: 7rem; }
  .hero-subtitle { font-size: clamp(14px, 2.2rem, 2.2rem); }
}

@media (max-width: 640px) {
  #hero { min-height: 81.2rem; align-items: flex-start; }
  .hero-content { padding: 8rem 1.6rem 0; max-width: 100%; }
  #hero h1 { font-size: 5.6rem; margin-bottom: 3.2rem; text-align: center; width: 100%; }
  .hero-subtitle { font-size: clamp(14px, 2.4rem, 2.4rem); margin-bottom: 1.3rem; max-width: 100%; text-align: center; }
  .hero-body { font-size: clamp(14px, 1.6rem, 1.6rem); max-width: 100%; text-align: center; }
}
/* /stp:hero */
/* stp:features */
#features {
  background: var(--bg);
  padding-top: 8rem;
  padding-bottom: 8rem;
}
.features-inner {
  max-width: 144rem;
  margin: 0 auto;
  padding: 0 16rem;
}
#features h2 {
  font-family: var(--font-serif);
  font-size: 5.6rem;
  line-height: 1.2;
  color: var(--accent);
  margin-bottom: 8rem;
}
.features-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3.2rem;
}
.features-list {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  max-width: 54.4rem;
  width: 100%;
}
.feature-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.feature-item h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(14px, 2rem, 2rem);
  line-height: 1.5;
  color: var(--primary);
}
.feature-item p {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 1.5;
  color: var(--text);
}
.features-image {
  width: 54.4rem;
  max-width: 100%;
  flex-shrink: 0;
  border-radius: 1.2rem;
  overflow: hidden;
}
.features-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .features-inner { padding: 0 4rem; }
  .features-row { flex-direction: column; }
  .features-list, .features-image { max-width: 100%; width: 100%; }
}

@media (max-width: 640px) {
  #features { padding-top: 6rem; padding-bottom: 6rem; }
  .features-inner { padding: 0 1.6rem; }
  #features h2 { font-size: 3.6rem; margin-bottom: 6.4rem; }
  .features-row { flex-direction: column; gap: 6.4rem; }
  .features-list { gap: 2.4rem; }
}
/* /stp:features */
/* stp:how-it-works */
#how-it-works {
  background: #06140E;
  padding-top: 8rem;
  padding-bottom: 8rem;
}
.hiw-inner {
  max-width: 144rem;
  margin: 0 auto;
  padding: 0 16rem;
}
#how-it-works h2 {
  font-family: var(--font-serif);
  font-size: 5.6rem;
  line-height: 1.2;
  color: var(--accent);
  text-align: center;
  margin-bottom: 8rem;
}
.hiw-row {
  display: flex;
  gap: 3.2rem;
  justify-content: space-between;
}
.hiw-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  width: 35.2rem;
}
.hiw-card h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(14px, 2rem, 2rem);
  line-height: 1.5;
  color: var(--primary);
  text-align: center;
}
.hiw-card img {
  width: 100%;
  height: 19.6rem;
  object-fit: cover;
  border-radius: 1.2rem;
}
.hiw-card p {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 1.5;
  color: var(--text);
  text-align: center;
}

@media (max-width: 1024px) {
  .hiw-inner { padding: 0 4rem; }
  .hiw-row { flex-direction: column; align-items: center; gap: 4rem; }
  .hiw-card { width: 100%; max-width: 50rem; }
}

@media (max-width: 640px) {
  #how-it-works { padding-top: 6rem; padding-bottom: 6rem; }
  .hiw-inner { padding: 0 1.6rem; }
  #how-it-works h2 { font-size: 3.6rem; margin-bottom: 6.4rem; }
  .hiw-row { gap: 3.2rem; }
  .hiw-card { max-width: 100%; }
  .hiw-card img { height: auto; aspect-ratio: 343 / 191; }
}
/* /stp:how-it-works */
/* stp:reviews */
#reviews {
  background: var(--bg);
  padding-top: 8rem;
  padding-bottom: 8rem;
}
.reviews-inner {
  max-width: 144rem;
  margin: 0 auto;
  padding: 0 16rem;
}
#reviews h2 {
  font-family: var(--font-serif);
  font-size: 5.6rem;
  line-height: 1.2;
  color: var(--accent);
  margin-bottom: 8rem;
}
.reviews-row {
  display: flex;
  gap: 3.2rem;
}
.review-card {
  width: 35.2rem;
  background: var(--surface);
  border-radius: 1.2rem;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.review-stars {
  font-size: clamp(14px, 2rem, 2rem);
  line-height: 1.5;
  color: var(--accent);
  font-weight: 600;
}
.review-text {
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 1.5;
  color: var(--text);
}
.review-author {
  font-size: clamp(14px, 2rem, 2rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary);
  text-align: right;
}

@media (max-width: 1024px) {
  .reviews-inner { padding: 0 4rem; }
  .reviews-row { flex-direction: column; align-items: center; }
  .review-card { width: 100%; max-width: 50rem; }
}

@media (max-width: 640px) {
  #reviews { padding-top: 6rem; padding-bottom: 6rem; }
  .reviews-inner { padding: 0 1.6rem; }
  #reviews h2 { font-size: 3.6rem; margin-bottom: 6.4rem; }
  .reviews-row { gap: 1.6rem; }
  .review-card { max-width: 100%; padding: 1.6rem; gap: 1.6rem; }
  .review-stars { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .review-text { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .review-author { font-size: clamp(14px, 1.8rem, 1.8rem); }
  .review-card--desktop-only { display: none; }
}
/* /stp:reviews */
/* stp:about */
#about {
  position: relative;
  min-height: 46.9rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.about-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.about-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-inner {
  position: relative;
  z-index: 1;
  max-width: 144rem;
  width: 100%;
  margin: 0 auto;
  padding: 8rem 16rem;
}
#about h2 {
  font-family: var(--font-serif);
  font-size: 5.6rem;
  line-height: 1.2;
  color: var(--accent);
  margin-bottom: 8rem;
  max-width: 54.4rem;
}
#about p {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 1.5;
  color: var(--text);
  max-width: 54.4rem;
}

@media (max-width: 1024px) {
  .about-inner { padding: 8rem 4rem; }
  #about h2, #about p { max-width: 62rem; }
}

@media (max-width: 640px) {
  #about { min-height: 76.9rem; align-items: flex-start; }
  .about-inner { padding: 6rem 1.6rem 38.6rem; }
  #about h2 { font-size: 3.6rem; margin-bottom: 6.4rem; }
  #about p { font-size: clamp(14px, 1.6rem, 1.6rem); }
  #about h2, #about p { max-width: 100%; }
}
/* /stp:about */
/* stp:footer */
.footer {
  padding: 4rem 16rem 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}
.footer-links a {
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 1.5;
  color: var(--primary);
}
.footer-copy {
  font-size: clamp(14px, 1.2rem, 1.2rem);
  line-height: 1.5;
  color: var(--primary);
}

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

@media (max-width: 640px) {
  .footer { padding: 4rem 1.6rem 1.6rem; gap: 4rem; }
  .footer-links { gap: 1.6rem; }
  .footer-links a { font-size: clamp(14px, 1.6rem, 1.6rem); }
  .footer-copy { font-size: clamp(14px, 1.1rem, 1.1rem); }
}
/* /stp:footer */
/* stp:legal */
.legal-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.legal-main {
  flex: 1 0 auto;
}
.legal-page {
  max-width: 144rem;
  margin: 0 auto;
  padding: 14rem 16rem 8rem;
}
.legal-content {
  max-width: 112rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.legal-content h1 {
  font-family: var(--font-serif);
  font-size: 5.6rem;
  line-height: 1.2;
  color: var(--accent);
  margin-bottom: 1.6rem;
}
.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  line-height: 1.2;
  color: var(--accent);
  margin-top: 2.4rem;
}
.legal-content h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(14px, 2.2rem, 2.2rem);
  color: var(--primary);
  margin-top: 1.6rem;
}
.legal-content h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(14px, 1.8rem, 1.8rem);
  color: var(--primary);
  margin-top: 1.2rem;
}
.legal-content p {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 1.5;
  color: var(--text);
}
.legal-content ul,
.legal-content ol {
  padding-left: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li {
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.8rem, 1.8rem);
  line-height: 1.5;
  color: var(--text);
}
.legal-content a {
  color: var(--primary);
  text-decoration: underline;
  transition: color 0.3s ease;
}
.legal-content a:hover { color: var(--accent); }
.legal-content strong, .legal-content b { font-weight: 700; }
.legal-content em, .legal-content i { font-style: italic; }

@media (max-width: 1024px) {
  .legal-page { padding: 14rem 4rem 6rem; }
}

@media (max-width: 640px) {
  .legal-page { padding: 6rem 1.6rem 4rem; }
  .legal-content h1 { font-size: 3.6rem; }
  .legal-content h2 { font-size: 2.6rem; }
  .legal-content h3 { font-size: clamp(14px, 1.9rem, 1.9rem); }
  .legal-content p, .legal-content li { font-size: clamp(14px, 1.6rem, 1.6rem); }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .ta-w { display: inline-block; white-space: nowrap; }
.anim-on .ta-ch { display: inline-block; }

.anim-on .ta-hero .ta-ch {
  animation: ta-unveil 0.95s cubic-bezier(0.22, 0.9, 0.24, 1) calc(0.9s + var(--i) * 0.075s) backwards;
}
.anim-on .ta-hero .ta-w--accent .ta-ch {
  animation:
    ta-unveil 0.95s cubic-bezier(0.22, 0.9, 0.24, 1) calc(0.9s + var(--i) * 0.075s) backwards,
    ta-firefly 7s ease-in-out calc(2.4s + var(--j) * 0.09s) infinite;
}
@keyframes ta-unveil {
  0% { opacity: 0; clip-path: inset(50% 50% 50% 50%); transform: scale(1.18); color: var(--primary); }
  45% { opacity: 1; color: var(--primary); }
  100% { opacity: 1; clip-path: inset(-0.3em -0.15em -0.3em -0.15em); transform: none; color: var(--bg); }
}
@keyframes ta-firefly {
  0%, 16%, 100% { color: var(--bg); filter: drop-shadow(0 0 0 transparent); }
  6% { color: color-mix(in srgb, var(--primary) 45%, var(--bg)); filter: drop-shadow(0 0 0.7rem var(--primary)); }
}

.anim-on .ta-sec .ta-w {
  opacity: 0;
  clip-path: inset(0 100% 100% 0);
}
.anim-on .ta-sec.is-in .ta-w {
  animation: ta-corner 0.85s cubic-bezier(0.3, 0.8, 0.25, 1) calc(var(--i) * 0.14s) both;
}
.anim-on .ta-sec.is-in {
  animation: ta-gild 1.4s ease-out 0.55s;
}
@keyframes ta-corner {
  0% { opacity: 0; clip-path: inset(0 100% 100% 0); transform: translate(-0.6rem, -0.4rem); }
  25% { opacity: 1; }
  100% { opacity: 1; clip-path: inset(-0.3em -0.15em -0.3em -0.15em); transform: none; }
}
@keyframes ta-gild {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  40% { filter: drop-shadow(0 0 1.2rem color-mix(in srgb, var(--accent) 65%, transparent)); }
}

@media (max-width: 640px) {
  .anim-on .ta-hero .ta-ch {
    animation-duration: 0.75s;
    animation-delay: calc(0.8s + var(--i) * 0.06s);
  }
  .anim-on .ta-hero .ta-w--accent .ta-ch {
    animation-duration: 0.75s, 7s;
    animation-delay: calc(0.8s + var(--i) * 0.06s), calc(2s + var(--j) * 0.08s);
  }
  .anim-on .ta-sec.is-in .ta-w {
    animation-duration: 0.65s;
    animation-delay: calc(var(--i) * 0.1s);
  }
  @keyframes ta-corner {
    0% { opacity: 0; clip-path: inset(0 100% 100% 0); transform: translate(-0.3rem, -0.2rem); }
    25% { opacity: 1; }
    100% { opacity: 1; clip-path: inset(-0.3em -0.15em -0.3em -0.15em); transform: none; }
  }
}
/* /stp:title-anim */
