/* Molwee — Landing Page & Legal Pages */
/* Dark theme: #0A0A0F bg, #6C5CE7 accent, #E8E8ED text */

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #040A14, #0A1828, #161025, #30102C, #3A1832);
  background-attachment: fixed;
  color: #E8E8ED;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: #6C5CE7; text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }
img { max-width: 100%; height: auto; display: block; }

/* ========== Layout ========== */
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

/* ========== Fade-in ========== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ========== Nav ========== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid rgba(108, 92, 231, 0.08);
}

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

.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 5vw; width: auto; max-height: 40px; min-height: 28px; }

.nav-lang {
  font-size: 0.8125rem;
  color: #8E8E93;
  cursor: pointer;
  padding: 6px 14px;
  border: 1px solid rgba(142, 142, 147, 0.25);
  border-radius: 6px;
  background: transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav-lang:hover { border-color: #6C5CE7; color: #E8E8ED; }

/* ========== Hero ========== */
.hero {
  padding: 140px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.25rem;
  color: #8E8E93;
  max-width: 460px;
  margin: 0 auto 8px;
  line-height: 1.5;
}

.hero-sub2 {
  font-size: 1.25rem;
  color: #6C5CE7;
  font-weight: 600;
  margin: 0 auto 40px;
}

/* ========== Store Badges ========== */
.store-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.store-badges a {
  display: block;
  transition: transform 0.2s, opacity 0.2s;
}
.store-badges a:hover { transform: translateY(-2px); opacity: 0.9; }
.store-badges img { height: 48px; width: auto; }

/* ========== Steps ========== */
.steps { padding: 40px 0 80px; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #6C5CE7;
  color: #6C5CE7;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.step h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.step p {
  font-size: 0.9375rem;
  color: #8E8E93;
  line-height: 1.5;
}

/* ========== Section ========== */
.section { padding: 80px 0; }

.section-sub {
  font-size: 1.0625rem;
  color: #8E8E93;
  margin-bottom: 48px;
}

/* ========== Split Layout ========== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.split-text h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.split-text p {
  font-size: 1.0625rem;
  color: #8E8E93;
  line-height: 1.7;
}

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

/* ========== Phone Screenshot ========== */
.phone-frame {
  width: 260px;
  border: 3px solid #2A2A35;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
}

.phone-screenshot {
  width: 100%;
  height: auto;
  display: block;
}

/* ========== Platforms ========== */
.platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
  max-width: 400px;
  margin: 0 auto;
}

.plat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.plat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #16161F;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.plat-icon:hover { transform: translateY(-2px); }

.plat-icon svg { width: 24px; height: 24px; }

.plat span {
  font-size: 0.8125rem;
  color: #8E8E93;
}

/* ========== Widget Mockup ========== */
.widget-mock {
  width: 280px;
  background: rgba(18, 18, 26, 0.6);
  border-radius: 20px;
  padding: 16px 20px;
  position: relative;
}

.widget-header {
  margin-bottom: 14px;
}

.widget-logo {
  height: 20px;
  width: auto;
}

.widget-title {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 12px;
  color: #E8E8ED;
}

.widget-meta {
  font-size: 0.6875rem;
  font-weight: 500;
  color: #6C5CE7;
  letter-spacing: 0.02em;
}

/* ========== CTA ========== */
.cta {
  padding: 80px 0;
  border-top: 1px solid rgba(108, 92, 231, 0.08);
}

.cta h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.cta .section-sub { margin-bottom: 32px; }

/* ========== Footer ========== */
.footer {
  padding: 40px 0;
  border-top: 1px solid rgba(142, 142, 147, 0.1);
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.footer-links a { font-size: 0.875rem; color: #8E8E93; }
.footer-links a:hover { color: #6C5CE7; }

.footer-contact { font-size: 0.8125rem; color: #8E8E93; margin-bottom: 8px; }
.footer-contact a { color: #8E8E93; }
.footer-copy { font-size: 0.75rem; color: rgba(142, 142, 147, 0.6); }

/* ========== Legal Pages ========== */
.legal-page { padding: 120px 0 60px; }
.legal-page .container { max-width: 720px; }

.legal-header { text-align: center; margin-bottom: 48px; }
.legal-header h1 { font-size: 2.25rem; font-weight: 700; margin-bottom: 8px; }
.legal-header .last-updated { font-size: 0.875rem; color: #8E8E93; }

.legal-divider {
  border: none;
  height: 1px;
  background: rgba(108, 92, 231, 0.15);
  margin: 48px 0;
}

.legal-lang-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6C5CE7;
  background: rgba(108, 92, 231, 0.1);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 32px;
}

.legal-section { margin-bottom: 32px; }
.legal-section h2 { font-size: 1.375rem; font-weight: 600; margin-bottom: 12px; }
.legal-section h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 8px; color: #E8E8ED; }
.legal-section p { font-size: 0.9375rem; color: #8E8E93; line-height: 1.7; margin-bottom: 12px; }

.legal-section ul { list-style: none; padding: 0; margin-bottom: 12px; }
.legal-section ul li {
  font-size: 0.9375rem;
  color: #8E8E93;
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
}
.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #6C5CE7;
}
.legal-section a { color: #6C5CE7; }

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: #8E8E93;
  margin-bottom: 32px;
}
.legal-back:hover { color: #6C5CE7; }

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .hero { padding: 110px 0 60px; }
  .hero h1 { font-size: 2.5rem; }

  .steps-grid { grid-template-columns: 1fr; gap: 24px; max-width: 320px; }
  .steps { padding: 20px 0 60px; }

  .section { padding: 60px 0; }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .split.reverse { direction: ltr; }
  .split-visual { order: -1; }
  .split-text h2 { font-size: 1.625rem; }

  .platforms { gap: 20px 16px; }
  .plat-icon { width: 48px; height: 48px; }
  .plat-icon svg { width: 20px; height: 20px; }

  .cta { padding: 60px 0; }
  .cta h2 { font-size: 1.625rem; }

  .store-badges img { height: 42px; }

  .legal-header h1 { font-size: 1.75rem; }
  .legal-page { padding: 100px 0 40px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }

  .store-badges { flex-direction: column; align-items: center; }

  .split-text h2 { font-size: 1.5rem; }

  .phone-frame { width: 220px; }

  .widget-mock { width: 240px; }
}
