/* ═══════════════════════════════════════════════════════════════════
   MIVY — Site promotionnel
   Design system issu de l'app React Native
   ═══════════════════════════════════════════════════════════════════ */

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

:root {
  /* Backgrounds */
  --bg:            #080C24;
  --bg-secondary:  #0D1235;
  --bg-card:       #111840;
  --bg-card-light: #161E50;

  /* Brand */
  --gold:       #F59E0B;
  --gold-light: #FCD34D;
  --gold-dark:  #D97706;
  --gold-glow:  #FBBF24;
  --emerald:    #10B981;
  --purple:     #7C3AED;
  --purple-lt:  #A78BFA;

  /* Text */
  --text:       #FFFFFF;
  --text-sec:   #CBD5E1;
  --text-muted: #64748B;
  --text-gold:  #FCD34D;

  /* Borders */
  --border-card:   rgba(245,158,11,0.25);
  --border-active: rgba(245,158,11,0.7);

  /* Misc */
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gold { color: var(--text-gold); }

/* ── Navigation ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8,12,36,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  justify-content: space-between;
}
.nav-logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-gold);
  letter-spacing: 2px;
  position: relative;
}
.nav-star {
  font-size: 16px;
  position: absolute;
  top: -4px;
  right: -18px;
  animation: spin 4s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.nav-links {
  display: -webkit-flex;
  display: flex;
  gap: 24px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sec);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-gold); }

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--bg);
  background: var(--gold);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(245,158,11,0.4);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.nav-mobile a {
  font-size: 16px;
  color: var(--text-sec);
  font-weight: 500;
}
.nav-cta-mobile {
  display: inline-block;
  text-align: center;
  background: var(--gold);
  color: var(--bg) !important;
  font-weight: 700 !important;
  padding: 12px 24px;
  border-radius: var(--radius-full);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile.open { display: flex; }
  #langSwitcher a {
    width: 28px !important;
    height: 28px !important;
    font-size: 10px !important;
  }
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 700;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg);
  box-shadow: 0 4px 20px rgba(245,158,11,0.35);
}
.btn-gold:hover { box-shadow: 0 8px 30px rgba(245,158,11,0.5); }

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; padding: 14px 24px; font-size: 15px; }

/* ── Hero section ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,58,237,0.15), transparent),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(245,158,11,0.1), transparent),
    var(--bg);
  overflow: hidden;
}
.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
  position: absolute;
  font-size: 20px;
  opacity: 0.4;
  animation: float 6s ease-in-out infinite;
}
.p1 { top: 15%; left: 10%; animation-delay: 0s; }
.p2 { top: 25%; right: 12%; animation-delay: 1s; }
.p3 { bottom: 30%; left: 8%; animation-delay: 2s; }
.p4 { top: 40%; right: 20%; animation-delay: 0.5s; font-size: 16px; }
.p5 { bottom: 20%; right: 10%; animation-delay: 3s; }
.p6 { top: 60%; left: 18%; animation-delay: 1.5s; font-size: 14px; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

.hero-content { max-width: 720px; position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  background: rgba(245,158,11,0.15);
  color: var(--text-gold);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(245,158,11,0.3);
  margin-bottom: 32px;
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-sec);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-number {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--text-gold);
}
.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.hero-stat-sep {
  width: 1px;
  background: rgba(255,255,255,0.1);
  align-self: stretch;
}

/* ── Sections ───────────────────────────────────────────────────── */
.section {
  padding: 100px 0;
}
.section-dark {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-badge {
  display: inline-block;
  background: rgba(245,158,11,0.12);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-sec);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Features grid ──────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-card);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.6;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}
.feature-icon-gold    { background: rgba(245,158,11,0.15); }
.feature-icon-emerald { background: rgba(16,185,129,0.15); }
.feature-icon-purple  { background: rgba(124,58,237,0.15); }

/* ── Steps ──────────────────────────────────────────────────────── */
.steps {
  max-width: 640px;
  margin: 0 auto;
}
.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.step-number {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg);
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-content p {
  font-size: 15px;
  color: var(--text-sec);
  line-height: 1.6;
  margin-bottom: 12px;
}
.step-emojis {
  font-size: 24px;
  display: flex;
  gap: 8px;
}
.step-connector {
  width: 2px;
  height: 40px;
  background: rgba(245,158,11,0.25);
  margin: 8px 0 8px 25px;
  border-radius: 2px;
}

/* ── Heroes grid ────────────────────────────────────────────────── */
.heroes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .heroes-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  padding: 28px 16px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: default;
}
.hero-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.hero-card-emoji {
  font-size: 44px;
  display: block;
  margin-bottom: 12px;
}
.hero-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sec);
}

/* ── Pricing ────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 720px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card-premium {
  border-color: var(--gold);
  box-shadow: 0 0 40px rgba(245,158,11,0.12);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pricing-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.pricing-price {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-gold);
  line-height: 1;
}
.pricing-unit {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-sec);
}
.pricing-period {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

.pricing-features {
  list-style: none;
  flex: 1;
  margin-bottom: 28px;
}
.pricing-features li {
  font-size: 14px;
  color: var(--text-sec);
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 700;
}

/* ── Safety ─────────────────────────────────────────────────────── */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .safety-grid { grid-template-columns: 1fr; }
}

.safety-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  padding: 24px;
}
.safety-icon { font-size: 32px; min-width: 40px; }
.safety-item h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.safety-item p {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.5;
}

/* ── CTA section ────────────────────────────────────────────────── */
.section-cta {
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(245,158,11,0.12), transparent),
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(124,58,237,0.1), transparent),
    var(--bg);
  text-align: center;
  padding: 120px 0;
}
.cta-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
}
.cta-subtitle {
  font-size: 18px;
  color: var(--text-sec);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.cta-buttons { margin-bottom: 20px; }
.store-badge { display: inline-block; transition: transform 0.2s, opacity 0.2s; }
.store-badge:hover { transform: scale(1.05); opacity: 0.9; }
.cta-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Footer ─────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-gold);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-sec);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  text-align: center;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Legal page styles (shared with privacy.html / terms.html) ── */
.legal-page { padding-top: 120px; padding-bottom: 80px; }
.legal-page h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--text-gold);
  margin-bottom: 8px;
}
.legal-page .legal-date {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 48px;
}
.legal-page h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
}
.legal-page p,
.legal-page ul {
  font-size: 15px;
  color: var(--text-sec);
  line-height: 1.7;
  margin-bottom: 16px;
}
.legal-page ul { padding-left: 20px; }
.legal-page li { margin-bottom: 6px; }
.legal-page a {
  color: var(--text-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Scroll animations ──────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
