/**
 * ════════════════════════════════════════════════════════════════════
 * SKILLFORGE LANDING PAGE — Professional MNC Design
 * ════════════════════════════════════════════════════════════════════
 */

:root {
  --primary: #00B37E;
  --primary-dark: #008F63;
  --primary-light: #1BC47D;
  --secondary: #1F2937;
  --accent: #6366F1;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --neutral-50: #F9FAFB;
  --neutral-100: #F3F4F6;
  --neutral-200: #E5E7EB;
  --neutral-300: #D1D5DB;
  --neutral-400: #9CA3AF;
  --neutral-700: #374151;
  --neutral-900: #111827;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ═══ BASE STYLES ═══ */
body.sf-landing {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #ffffff;
  color: var(--neutral-900);
  margin: 0;
  padding: 0;
}

body.sf-landing .sf-navbar {
  background: white;
  border-bottom: 1px solid var(--neutral-200);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

body.sf-landing .sf-navbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.sf-landing .sf-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--neutral-900);
}

body.sf-landing .sf-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.125rem;
}

/* ═══ HERO LANDING ═══ */
.sf-hero-landing {
  background: linear-gradient(135deg, #0d1117 0%, #1F2937 100%);
  padding: 5rem 2rem 7rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sf-hero-content h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: #ffffff;
}

.sf-hero-content > p:first-of-type {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 2rem;
  font-weight: 500;
}

/* ═══ PRIMARY CTA BUTTON ═══ */
.sf-cta-primary {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
}

.sf-btn-assessment {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg), 0 20px 25px -5px rgba(0, 179, 126, 0.2);
}

.sf-btn-assessment:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 25px 35px -8px rgba(0, 179, 126, 0.3);
}

.sf-btn-assessment:active {
  transform: translateY(-2px);
}

.sf-btn-assessment svg {
  width: 32px;
  height: 32px;
}

.sf-btn-assessment .sf-subtext {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.95;
}

.sf-trust-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1.5rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ═══ HERO VISUAL (STATS) ═══ */
.sf-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sf-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 500px;
}

.sf-stat {
  background: var(--neutral-50);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--neutral-200);
  transition: all 0.3s ease;
}

.sf-stat:hover {
  background: var(--neutral-100);
  border-color: var(--primary);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--neutral-600);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ═══ FEATURES LANDING ═══ */
.sf-features-landing {
  background: #0d1117;
  padding: 5rem 2rem;
}

.sf-features-container {
  max-width: 1400px;
  margin: 0 auto;
}

.sf-features-landing h2 {
  font-size: 2.5rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 3rem;
  color: #ffffff;
}

.sf-feature-grid-landing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.sf-feature-item {
  background: #1F2937;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #374151;
  transition: all 0.3s ease;
}

.sf-feature-item:hover {
  border-color: var(--primary);
  background: #263445;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 10px 20px -5px rgba(0, 179, 126, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.sf-feature-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: #ffffff;
}

.sf-feature-item p {
  font-size: 0.95rem;
  color: #9CA3AF;
  margin: 0;
  line-height: 1.6;
}

/* ═══ HOW IT WORKS ═══ */
.sf-how-it-works {
  background: #111827;
  padding: 5rem 2rem;
}

.sf-how-container {
  max-width: 1200px;
  margin: 0 auto;
}

.sf-how-it-works h2 {
  font-size: 2.5rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 3rem;
  color: #ffffff;
}

.sf-steps-landing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}

.step-item {
  text-align: center;
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
}

.step-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: #ffffff;
}

.step-item p {
  font-size: 0.95rem;
  color: #9CA3AF;
  margin: 0;
  line-height: 1.6;
}

.step-arrow {
  display: none;
  font-size: 1.5rem;
  color: var(--neutral-400);
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .sf-steps-landing {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .sf-hero-landing {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem 4rem;
  }
  
  .sf-hero-content h1 {
    font-size: 2rem;
  }
  
  .sf-stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .sf-feature-grid-landing {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .sf-feature-grid-landing {
    grid-template-columns: 1fr;
  }
  .sf-hero-content h1 {
    font-size: 2.25rem;
  }
  .sf-hero-landing {
    padding: 3rem 1.5rem 5rem;
  }
}

/* ═══ SECONDARY CTA ═══ */
.sf-cta-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, #111827 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.sf-cta-secondary h2 {
  font-size: 2rem;
  font-weight: 900;
  margin: 0 0 2rem;
  color: #ffffff !important;
}

.sf-btn-secondary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.sf-btn-secondary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ═══ FOOTER ═══ */
/* T12: Footer text white */
.sf-footer-landing {
  background: var(--secondary);
  border-top: none;
  padding: 2rem;
  text-align: center;
  color: #ffffff;
}

.sf-footer-content p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  color: #ffffff;
}

/* T14: Alignment and spacing enhancements */
.sf-hero-content { max-width: 700px; width: 100%; }
.sf-features-container { max-width: 1200px; margin: 0 auto; }
.sf-how-container { max-width: 1200px; margin: 0 auto; }

/* ═══ MODALS ═══ */
.sf-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.sf-modal.hidden {
  display: none !important;
}

.sf-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.sf-modal-content {
  position: relative;
  z-index: 1001;
  background: white;
  border-radius: 16px;
  width: 95%;
  height: 95%;
  max-width: 950px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.2);
}

.sf-modal-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1002;
  transition: opacity 0.2s ease;
}

.sf-modal-close:hover {
  opacity: 0.8;
}

.sf-modal-frame {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 16px;
}

/* ═══ RESULTS MODAL ═══ */
.sf-results-modal-content {
  position: relative;
  z-index: 1001;
  background: white;
  border-radius: 16px;
  width: 95%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.2);
  padding: 2rem;
}

.sf-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--neutral-100);
  border: none;
  color: var(--neutral-900);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.sf-modal-close:hover {
  background: var(--neutral-200);
}

.sf-results-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--neutral-200);
}

.sf-results-header h2 {
  font-size: 2rem;
  font-weight: 900;
  margin: 0 0 0.5rem;
  color: var(--neutral-900);
}

.sf-results-header p {
  font-size: 1rem;
  color: var(--neutral-600);
  margin: 0;
}

.sf-results-content {
  margin-bottom: 2rem;
}

.sf-result-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--neutral-50);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}

.sf-result-section h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--neutral-900);
}

.sf-result-section p {
  font-size: 0.95rem;
  color: var(--neutral-700);
  margin: 0;
  line-height: 1.6;
}

.sf-result-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sf-result-list li {
  padding: 0.5rem 0;
  color: var(--neutral-700);
  font-size: 0.95rem;
}

.sf-result-list li:before {
  content: "✓ ";
  color: var(--primary);
  font-weight: 700;
  margin-right: 0.5rem;
}

.sf-results-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  border-top: 2px solid var(--neutral-200);
  padding-top: 1.5rem;
}

.sf-btn-download,
.sf-btn-share {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.sf-btn-download {
  background: var(--primary);
  color: white;
}

.sf-btn-download:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.sf-btn-share {
  background: var(--neutral-200);
  color: var(--neutral-900);
}

.sf-btn-share:hover {
  background: var(--neutral-300);
}

@media (max-width: 640px) {
  .sf-results-actions {
    flex-direction: column;
  }
  
  .sf-btn-download,
  .sf-btn-share {
    width: 100%;
    justify-content: center;
  }
  
  .sf-results-modal-content {
    padding: 1.5rem;
  }
}

/* ═══ PRINT STYLES ═══ */
@media print {
  body, html {
    background: white;
  }
  
  .sf-modal-close,
  .sf-results-actions,
  .sf-modal-backdrop {
    display: none !important;
  }
  
  .sf-results-modal-content {
    box-shadow: none;
    max-height: 100%;
    overflow: visible;
  }
}
