@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body, #root { min-height: 100%; }
body { font-family: 'Inter', sans-serif; }

.mf-input {
  width: 100%;
  background: #fff;
  border: 1.5px solid #C7D2FE;
  border-radius: 10px;
  padding: 10px 13px;
  color: #0f172a;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.mf-input:focus {
  border-color: #4361EE;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}
.mf-input::placeholder { color: #9CA3AF; }

.btn-primary {
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, #4B6AE8, #6B8BF5);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(75, 106, 232, 0.35);
  transition: all 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(75, 106, 232, 0.45);
}
.btn-primary:disabled {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

@keyframes floatMF {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes pulseMF {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@keyframes shimmerMF {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes popIn {
  0% { opacity: 0; transform: scale(0.75); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes confettiBurst {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-60px) scale(0.5); }
}
@keyframes scanDown {
  0% { top: 0; }
  100% { top: 100%; }
}
@keyframes fadeSlideIn {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes sparkleOrbit1 {
  0% { transform: rotate(0deg) translateX(52px) rotate(0deg) scale(0.8); }
  50% { transform: rotate(180deg) translateX(52px) rotate(-180deg) scale(1.2); }
  100% { transform: rotate(360deg) translateX(52px) rotate(-360deg) scale(0.8); }
}
@keyframes sparkleOrbit2 {
  0% { transform: rotate(120deg) translateX(60px) rotate(-120deg) scale(1); }
  50% { transform: rotate(300deg) translateX(60px) rotate(-300deg) scale(0.7); }
  100% { transform: rotate(480deg) translateX(60px) rotate(-480deg) scale(1); }
}
@keyframes sparkleOrbit3 {
  0% { transform: rotate(240deg) translateX(48px) rotate(-240deg) scale(0.9); }
  50% { transform: rotate(420deg) translateX(48px) rotate(-420deg) scale(1.3); }
  100% { transform: rotate(600deg) translateX(48px) rotate(-600deg) scale(0.9); }
}

.mf-factor-pill:hover {
  border-color: #4361EE !important;
  background: #EEF2FF !important;
}
.mf-hide-mobile { display: block; }

/* Tablet */
@media (max-width: 768px) {
  .mf-main-card { padding: 28px 24px !important; }
  .mf-headline { font-size: 28px !important; }
  .mf-headline-f { font-size: 20px !important; }
  .mf-input-row { flex-direction: column !important; }
  .mf-input-row .btn-primary { width: 100% !important; }
  .mf-summary-inner { flex-direction: column !important; gap: 16px !important; }
  .mf-summary-divider { width: 100% !important; height: 1px !important; }
  .mf-summary-left { padding-right: 0 !important; }
  .mf-summary-right { padding-left: 0 !important; }
  .mf-score-big { font-size: 40px !important; }

  /* Result page (/final) */
  .mf-fix-layout { flex-direction: column !important; min-height: auto !important; }
  .mf-fix-divider { width: 100% !important; height: 1px !important; }
  .mf-fix-score { width: 100% !important; padding: 16px 20px !important; flex-direction: row !important; justify-content: center !important; align-items: center !important; gap: 8px !important; }
  .mf-cascade { padding: 20px 12px !important; }
  .mf-cascade-number { font-size: 26px !important; }
  .mf-features-row { flex-direction: column !important; gap: 12px !important; }
  .mf-features-row > div { min-width: 0 !important; }
  .mf-intro-subtitle { font-size: 18px !important; }
  .mf-features-label { font-size: 14px !important; }
}

/* Mobile */
@media (max-width: 480px) {
  .mf-hide-mobile { display: none !important; }
  .mf-main-card { padding: 20px 16px !important; border-radius: 20px !important; }
  .mf-outer-card { border-radius: 20px !important; }
  .mf-headline { font-size: 22px !important; letter-spacing: -0.8px !important; }
  .mf-subhead { font-size: 13px !important; }
  .mf-subhead br { display: none; }
  .mf-product-cards {
    gap: 8px !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px !important;
  }
  .mf-product-cards > div { min-width: 140px !important; flex: 0 0 140px !important; }
  .mf-audit-card { padding: 12px !important; }
  .mf-score-big { font-size: 36px !important; }
  .mf-score-label { font-size: 10px !important; }
  .mf-factor-pill { padding: 5px 12px !important; font-size: 12px !important; }
  .mf-section-title { font-size: 17px !important; }
  .mf-bottom-cta h3 { font-size: 18px !important; }
  .mf-global-score-card {
    flex-direction: column !important;
    text-align: center !important;
    gap: 10px !important;
    padding: 16px !important;
  }
  .mf-global-score-card > div:last-child { text-align: center !important; }

  /* Result page (/final) — mobile */
  .mf-headline-f { font-size: 17px !important; line-height: 1.35 !important; }
  .mf-transition-f { font-size: 13px !important; line-height: 1.5 !important; }
  .mf-fix-issues { padding: 12px 10px !important; }
  .mf-fix-issues > div { font-size: 11px !important; }
  .mf-fix-score { padding: 12px !important; flex-direction: column !important; gap: 4px !important; }
  .mf-fix-score span:first-child { font-size: 36px !important; }
  .mf-cascade { padding: 16px 8px !important; }
  .mf-cascade-number { font-size: 20px !important; }
  .mf-cascade-step-label { font-size: 12px !important; }
  .mf-cascade-step-sub { font-size: 10px !important; }
  .mf-product-card-f { height: 220px !important; }
  .mf-product-img-f { height: 75px !important; }
  .mf-impact-title { font-size: 16px !important; }
  .mf-intro-subtitle { font-size: 16px !important; }
  .mf-features-label { font-size: 13px !important; }
  .mf-feature-title { font-size: 13px !important; }
  .btn-primary-final { padding: 12px 28px !important; font-size: 14px !important; }
}
