/*
 * IMAGE SAFE AREA GUIDELINES
 * ===========================
 * All landing page images use object-fit: cover with center positioning.
 * Images will be cropped on smaller screens. Follow these rules:
 *
 * Hero Background (1920x1080 recommended):
 *   - Keep main subject in center 60% of frame
 *   - Leave 20% margin on each side for mobile cropping
 *   - Avoid text or faces near edges
 *   - Safe area: center 1152x648 pixels of a 1920x1080 image
 *
 * Section Images (1200x600 recommended):
 *   - Keep subject centered horizontally
 *   - Top/bottom 15% may be cropped on mobile
 *   - Safe area: center 840x420 of a 1200x600 image
 *
 * Partner Logos (400x200 max, object-fit: contain):
 *   - These are NOT cropped, they scale to fit
 *   - Use transparent PNG or SVG when possible
 *
 * Future: Set hero.backgroundImageMobile in config to provide
 * an alternate image for screens <= 768px wide.
 */

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

:root {
  --primary: #6C63FF;
  --secondary: #9B5EFF;
  --bg-dark: #0A0A12;
  --bg-section: #0F0F1A;
  --bg-card: #161625;
  --text-primary: #FFFFFF;
  --text-secondary: #B0B0C0;
  --text-muted: #6B6B80;
  --gradient-start: #1a0a3e;
  --gradient-end: #0a0a12;
  --accent-glow: rgba(108, 99, 255, 0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}
.landing-nav.scrolled {
  background: rgba(10, 10, 18, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--primary); }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.nav-lang-toggle {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}
.nav-lang-toggle:hover { background: rgba(255,255,255,0.15); color: #fff; }
.nav-cta-btn {
  background: var(--primary);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s;
}
.nav-cta-btn:hover { background: var(--secondary); transform: translateY(-1px); }

.hero-section {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  border: none;
}
@media (min-aspect-ratio: 16/9) {
  .hero-bg-video {
    width: 100%;
    height: auto;
    min-height: 100%;
  }
}
@media (max-aspect-ratio: 16/9) {
  .hero-bg-video {
    width: auto;
    min-width: 100%;
    height: 100%;
  }
}
.hero-bg-fallback {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.section-image {
  width: 100%;
  object-fit: contain;
  object-position: center top;
  border-radius: 16px;
  margin-top: 20px;
}

.landing-img {
  object-fit: cover;
  object-position: center center;
}

.landing-img--top { object-position: center top; }
.landing-img--bottom { object-position: center bottom; }
.hero-bg-gradient {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gradient-start) 0%, #0d0520 30%, #0a0a12 70%, #050510 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--hero-overlay-opacity, 0.5));
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 120px 32px 80px;
  text-align: left;
}
.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  white-space: pre-line;
}
.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.6);
}
.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
  transition: all 0.3s;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}
.hero-trust {
  font-size: 14px;
  color: var(--text-muted);
}

.section {
  padding: 100px 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-full {
  padding: 100px 32px;
  width: 100%;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1px;
  line-height: 1.15;
}
.section-text {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.7;
  margin-bottom: 40px;
  white-space: pre-line;
}

.problem-section {
  background: var(--bg-section);
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.problem-section .section { max-width: 900px; }
.problem-list {
  list-style: none;
  padding: 0;
  margin-bottom: 32px;
}
.problem-list li {
  font-size: 18px;
  color: var(--text-secondary);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  gap: 12px;
}
.problem-list li::before {
  content: '✕';
  color: #FF4D6A;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.problem-closing {
  font-size: 20px;
  font-weight: 700;
  color: #FF4D6A;
  margin-top: 16px;
}

.solution-section .section { max-width: 900px; }
.solution-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.solution-list li {
  font-size: 16px;
  color: var(--text-secondary);
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}
.solution-list li::before {
  content: '✓';
  color: #4ADE80;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.features-section {
  background: var(--bg-section);
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  padding: 32px 28px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow: 0 12px 40px rgba(108, 99, 255, 0.1);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}
.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.how-it-works-section .section { text-align: center; }
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 60px;
}
.step {
  text-align: center;
  position: relative;
}
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  margin: 0 auto 20px;
}
.step h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.steps-closing {
  text-align: center;
  margin-top: 48px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.target-users-section {
  background: var(--bg-section);
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.target-users-section .section { text-align: center; }
.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.user-card {
  background: var(--bg-card);
  padding: 28px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  transition: all 0.3s;
}
.user-card:hover { transform: translateY(-4px); border-color: rgba(108,99,255,0.3); }
.user-card-icon { font-size: 36px; margin-bottom: 12px; }
.user-card-label { font-size: 15px; font-weight: 600; }

.testimonials-section .section { text-align: center; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.testimonial-card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
  text-align: left;
}
.testimonial-quote {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-quote::before { content: '"'; color: var(--primary); font-size: 28px; font-weight: 700; margin-right: 4px; }
.testimonial-author {
  font-size: 15px;
  font-weight: 700;
}
.testimonial-role {
  font-size: 13px;
  color: var(--text-muted);
}

.values-section {
  background: var(--bg-section);
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.values-section .section { text-align: center; }
.values-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}
.value-badge {
  background: var(--accent-glow);
  color: var(--primary);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid rgba(108, 99, 255, 0.2);
}

.video-section .section { text-align: center; }
.video-embed {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 40px auto 0;
  padding-bottom: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.cta-section {
  background: linear-gradient(135deg, var(--gradient-start) 0%, #0d0520 100%);
  text-align: center;
  padding: 120px 32px;
}
.cta-section .section-title { margin-bottom: 16px; }
.cta-section .section-text { margin: 0 auto 48px; text-align: center; }
.cta-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #000;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,255,255,0.15); }
.store-btn svg { width: 24px; height: 24px; }

.landing-footer {
  background: #050510;
  padding: 60px 32px 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.footer-tagline {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}
.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s;
}
.footer-social a svg {
  width: 20px;
  height: 20px;
}
.footer-social a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-copyright {
  font-size: 13px;
  color: var(--text-muted);
}

.about-section .section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 900px;
}

.partners-section .section { text-align: center; }
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  align-items: center;
  margin-top: 40px;
}
.partners-grid a {
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 110px;
  padding: 8px;
  box-sizing: border-box;
}
.partner-logo {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 1;
  filter: none;
  transition: transform 0.3s;
  object-position: center center;
  background: transparent;
}
.partner-logo:hover { transform: scale(1.08); }
@media (max-width: 768px) {
  .partners-grid a { width: 160px; height: 80px; padding: 6px; }
  .partners-grid { gap: 20px; }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .section-image { object-fit: contain; object-position: center top; }
}

@media (max-width: 768px) {
  .landing-nav { padding: 12px 20px; }
  .nav-cta-btn { display: none; }
  .hero-content { padding: 100px 24px 60px; }
  .section, .section-full { padding: 60px 20px; }
  .hero-buttons { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; width: 100%; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-container { grid-template-columns: 1fr; gap: 32px; }
  .users-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-section { padding: 80px 24px; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .store-btn { width: 100%; max-width: 300px; justify-content: center; }
  .section-image { object-fit: contain; object-position: center top; }
}
