/* =============================================
   VARIABLES
   ============================================= */

:root {
  --bg: #FBF5F3;
  --purple: #8255C9;
  --purple-mid: #9F7CD5;
  --purple-light: #BBA2E1;
  --purple-pale: #E5DFF3;
  --orange: #F6B78A;
  --green: #7CDF7E;
  --blue: #93CFE9;
  --text: #1B1B1D;
  --text-secondary: #64656D;
  --border: #E5DFF3;
  --white: #FFFFFF;

  --radius-sm: 0.625rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;

  --shadow-card: 0 2px 20px rgba(130, 85, 201, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 12px 40px rgba(130, 85, 201, 0.13), 0 2px 8px rgba(0, 0, 0, 0.05);

  --container: 1140px;
  --font: 'Plus Jakarta Sans', sans-serif;
}


/* =============================================
   RESET & BASE
   ============================================= */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}


/* =============================================
   LAYOUT
   ============================================= */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.75rem;
}


/* =============================================
   ANIMATIONS
   ============================================= */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* Hero entrance — CSS only, no JS needed */
.hero-content > .badge       { animation: fadeUp 0.5s ease-out both; }
.hero-headline                { animation: fadeUp 0.5s ease-out 0.1s both; }
.hero-subline                 { animation: fadeUp 0.5s ease-out 0.2s both; }
.hero-content .store-badges { animation: fadeUp 0.5s ease-out 0.3s both; }
.hero-image                   { animation: fadeIn 0.7s ease-out 0.15s both; }

/* Scroll reveal — JS adds .animate then .is-visible */
.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* =============================================
   NAV
   ============================================= */

.nav {
  padding: 1.375rem 0;
  position: relative;
  z-index: 10;
  background: transparent;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-icon {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.nav-logo-text {
  height: 1.375rem;
  width: auto;
  margin-top: 0.25rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.07);
  border-radius: 99px;
  padding: 0.2rem;
  gap: 0.1rem;
}

.lang-link {
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.lang-link:hover {
  color: var(--text);
}

.lang-link.lang-active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.btn-appstore-badge {
  display: inline-block;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-appstore-badge:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.appstore-badge {
  display: block;
  height: 3.25rem;
  width: auto;
}

.appstore-badge-nav {
  height: 2.5rem;
}

.store-badges {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
}

.btn-playstore-badge {
  position: relative;
  display: inline-block;
  cursor: not-allowed;
}

.btn-playstore-badge img {
  opacity: 0.45;
}

.coming-soon-chip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  background: var(--purple);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}



/* =============================================
   BADGE
   ============================================= */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
}

.badge::before {
  content: '';
  display: block;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.badge:not(.badge-subtle) {
  background: var(--purple-pale);
  color: var(--purple);
}

.badge:not(.badge-subtle)::before {
  background: var(--purple);
}

.badge-emoji::before {
  display: none;
}

.badge-subtle {
  background: rgba(27, 27, 29, 0.07);
  color: var(--text-secondary);
}

.badge-subtle::before {
  background: var(--orange);
}


/* =============================================
   HERO
   ============================================= */

.hero {
  padding: 2.5rem 0 4.5rem;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-headline {
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero-subline {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.72;
  margin-bottom: 2.25rem;
  max-width: 460px;
}


.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 580px;
  margin: 0 auto;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}

.hero-blob-1 {
  width: 520px;
  height: 520px;
  background: rgba(130, 85, 201, 0.08);
  top: -120px;
  right: -100px;
}

.hero-blob-2 {
  width: 360px;
  height: 360px;
  background: rgba(246, 183, 138, 0.13);
  bottom: -40px;
  left: -80px;
}


/* =============================================
   FEATURES
   ============================================= */

.features {
  padding: 4rem 0 4.5rem;
}

.features-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3.5rem;
}

.features-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.625rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 0.875rem;
}

.features-subline {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 440px;
  line-height: 1.68;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(229, 223, 243, 0.6);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.feature-img-wrap {
  width: 100%;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  aspect-ratio: 1 / 1;
}

.feature-img-purple { background: var(--purple-pale); }
.feature-img-orange { background: #FDF0E6; }
.feature-img-blue   { background: #E5F3FB; }
.feature-img-green  { background: #E5F8E5; }

.feature-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.67;
}


/* =============================================
   FAQ
   ============================================= */

.faq {
  padding: 4rem 0 4.5rem;
}

.faq-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3.5rem;
}

.faq-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.625rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(229, 223, 243, 0.6);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq-item[open] {
  box-shadow: var(--shadow-card-hover);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.18s;
  -webkit-tap-highlight-color: transparent;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '';
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  background-color: var(--purple);
  border-radius: 50%;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  mask-size: cover;
  -webkit-mask-size: cover;
  transition: transform 0.25s ease-out;
}

.faq-item[open] .faq-question::after {
  transform: rotate(180deg);
}

.faq-item[open] .faq-question {
  color: var(--purple);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.68;
  overflow: hidden;
  transition: height 0.25s;
}


/* =============================================
   CTA
   ============================================= */

.cta {
  padding: 0 0 4.5rem;
}

.cta-card {
  background: linear-gradient(148deg, var(--purple) 0%, #6B3DB8 45%, var(--purple-mid) 100%);
  border-radius: var(--radius-xl);
  padding: 5rem 3rem;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(130, 85, 201, 0.22);
}

.cta-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.cta-blob-1 {
  width: 360px;
  height: 360px;
  background: rgba(255, 255, 255, 0.06);
  top: -100px;
  left: -80px;
}

.cta-blob-2 {
  width: 280px;
  height: 280px;
  background: rgba(255, 255, 255, 0.05);
  bottom: -80px;
  right: -60px;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  max-width: 55%;
}

.cta-image {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 90%;
  width: auto;
  object-fit: contain;
  object-position: bottom right;
  pointer-events: none;
}

.cta-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: white;
}

.cta-subline {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

.cta-action {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cta-hint {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}



/* =============================================
   FOOTER
   ============================================= */

.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.125rem;
  text-align: center;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.18s;
}

.footer-links a:hover {
  color: var(--purple);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(27, 27, 29, 0.06);
  transition: background 0.18s, transform 0.15s;
}

.footer-social-link:hover {
  background: var(--purple-pale);
  transform: translateY(-2px);
}

.footer-social-link img {
  width: 1rem;
  height: 1rem;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  opacity: 0.65;
}


/* =============================================
   INNER PAGES
   ============================================= */

.page-header {
  padding: 3rem 0 2.5rem;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-top: 1rem;
}

.page-header p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  line-height: 1.65;
}

.page-content {
  padding: 0 0 5rem;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.72;
  margin-bottom: 1rem;
}

.prose a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  opacity: 0.8;
}

.prose ul {
  margin: 0 0 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.prose ul li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.contact-card {
  background: var(--white);
  border: 1px solid rgba(229, 223, 243, 0.6);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.contact-card strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.contact-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.contact-card a {
  color: var(--purple);
  font-weight: 600;
}


/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 840px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    align-items: start;
  }

  .hero-blob-1 {
    width: 280px;
    height: 280px;
    top: -60px;
    right: -60px;
  }

  .hero-blob-2 {
    width: 200px;
    height: 200px;
    bottom: 0;
    left: -40px;
  }

  .hero-content {
    align-items: center;
    order: 1;
  }

  .hero-visual {
    order: 2;
  }

  .hero-subline {
    max-width: 480px;
  }

  .mascot-placeholder {
    max-width: 300px;
    aspect-ratio: 1 / 1;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .cta-card {
    padding: 2.5rem 2rem;
  }

  .cta-inner {
    max-width: 70%;
  }

  .cta-headline {
    width: calc(100% / 0.7);
    max-width: 100vw;
  }

  .cta-action {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .cta-hint {
    margin-left: 0.5rem;
  }

  .cta-image {
    height: 70%;
  }
}

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

  .hero {
    padding: 1.75rem 0 2.5rem;
  }

  .features {
    padding: 4.5rem 0 5rem;
  }

  .feature-card {
    padding: 1.625rem;
  }

  .cta-card {
    padding: 3.5rem 1.75rem;
  }

  .store-badges {
    gap: 0.5rem;
    justify-content: center;
  }

  .appstore-badge {
    height: 2.75rem;
  }

}
