/* ============================================================
   MFGNode Homepage Styles
   Modern, minimalist design with focus on RFQ conversion
   ============================================================ */

/* ============================================================
   HERO SECTION - Modern Redesign
   ============================================================ */
.hero-modern {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(135deg, #37517e 0%, #2d4366 50%, #243751 100%);
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  padding-top: 70px; /* Account for fixed header */
  padding-bottom: 40px; /* Ensure content has breathing room */
  box-sizing: border-box;
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(71, 178, 228, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(71, 178, 228, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
  pointer-events: none;
}

.hero-modern .container {
  padding-top: 20px;
  padding-bottom: 20px;
  position: relative;
  z-index: 1;
}

/* Hero Content */
.hero-content {
  padding-right: 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(71, 178, 228, 0.15);
  border: 1px solid rgba(71, 178, 228, 0.3);
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-badge i {
  color: #47b2e4;
  font-size: 1rem;
}

.hero-badge span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-modern h1 {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
  font-family: "Jost", sans-serif;
}

.hero-description {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 540px;
}

/* Hero CTA Group */
.hero-cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #47b2e4 0%, #3d9fd1 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(71, 178, 228, 0.35);
}

.btn-hero-primary:hover {
  background: linear-gradient(135deg, #3d9fd1 0%, #3591c0 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(71, 178, 228, 0.45);
  color: #fff;
}

.btn-hero-primary i {
  font-size: 1.1rem;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
  border-color: #47b2e4;
  color: #47b2e4;
  background: rgba(71, 178, 228, 0.1);
}

.btn-hero-secondary i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.btn-hero-secondary:hover i {
  transform: translateY(3px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #47b2e4;
  font-family: "Jost", sans-serif;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
}

/* Hero Visual - 5 Stage Cards */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-container {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 400px;
}

/* 5-Stage Layout */
.hero-5-stages {
  max-width: 420px;
  height: 480px;
}

.visual-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  min-width: 200px;
}

.visual-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.visual-card .card-step-num {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #47b2e4 0%, #3d9fd1 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(71, 178, 228, 0.4);
}

.visual-card .card-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}

.visual-card .card-icon i {
  font-size: 1.3rem;
}

.visual-card .card-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.visual-card .card-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #37517e;
}

.visual-card .card-subtitle {
  font-size: 0.75rem;
  color: #64748b;
}

/* 5 Stage Card Positions - Staggered cascade */
.card-stage-1 {
  top: 0;
  left: 0;
  animation: floatCard 6s ease-in-out infinite;
}

.card-stage-2 {
  top: 90px;
  right: 0;
  animation: floatCard 6s ease-in-out infinite 1s;
}

.card-stage-3 {
  top: 180px;
  left: 20px;
  animation: floatCard 6s ease-in-out infinite 2s;
}

.card-stage-4 {
  top: 270px;
  right: 10px;
  animation: floatCard 6s ease-in-out infinite 3s;
}

.card-stage-5 {
  top: 360px;
  left: 40px;
  animation: floatCard 6s ease-in-out infinite 4s;
}

/* Stage-specific colors */
.card-stage-1 .card-icon {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}
.card-stage-1 .card-icon i {
  color: #0284c7;
}

.card-stage-2 .card-icon {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}
.card-stage-2 .card-icon i {
  color: #059669;
}

.card-stage-3 .card-icon {
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
}
.card-stage-3 .card-icon i {
  color: #db2777;
}

.card-stage-4 .card-icon {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}
.card-stage-4 .card-icon i {
  color: #d97706;
}

.card-stage-5 .card-icon {
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
}
.card-stage-5 .card-icon i {
  color: #7c3aed;
}

@keyframes floatCard {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* SVG Flow line connecting cards */
.visual-flow-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Animated flowing dashes */
.flow-animated {
  animation: flowDash 1.5s linear infinite;
}

@keyframes flowDash {
  0% {
    stroke-dashoffset: 28; /* 8 + 6 + 8 + 6 = 28 (two dash+gap cycles) */
  }
  100% {
    stroke-dashoffset: 0;
  }
}

/* ============================================================
   HOW IT WORKS SECTION
   ============================================================ */
.how-it-works {
  padding: 80px 0;
  background: #fff;
}

.steps-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.step-card {
  flex: 1;
  max-width: 320px;
  min-width: 280px;
  padding: 40px 30px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(55, 81, 126, 0.12);
  border-color: #47b2e4;
}

.step-number {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #47b2e4 0%, #3d9fd1 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(71, 178, 228, 0.4);
}

.step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon i {
  font-size: 2.2rem;
  color: #47b2e4;
}

.step-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #37517e;
  margin-bottom: 14px;
  font-family: "Jost", sans-serif;
}

.step-card p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}

/* Step Connector */
.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
}

.step-connector i {
  font-size: 1.5rem;
  color: #47b2e4;
  opacity: 0.5;
}

/* How It Works CTA */
.how-it-works-cta {
  text-align: center;
  margin-top: 50px;
}

.how-it-works-cta .btn-get-started {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: linear-gradient(135deg, #37517e 0%, #2d4366 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(55, 81, 126, 0.25);
}

.how-it-works-cta .btn-get-started:hover {
  background: linear-gradient(135deg, #2d4366 0%, #243751 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(55, 81, 126, 0.35);
  color: #fff;
}

.how-it-works-cta .btn-get-started i {
  transition: transform 0.3s ease;
}

.how-it-works-cta .btn-get-started:hover i {
  transform: translateX(4px);
}

/* ============================================================
   ABOUT SECTION ENHANCEMENTS
   ============================================================ */
.about .btn-learn-more-outline {
  background: transparent;
  color: #47b2e4;
  border: 2px solid #47b2e4;
}

.about .btn-learn-more-outline:hover {
  background: #47b2e4;
  color: #fff;
}

/* ============================================================
   FINAL CTA SECTION
   ============================================================ */
.cta-final {
  padding: 100px 0;
  background: linear-gradient(135deg, #37517e 0%, #2d4366 100%);
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 10% 90%, rgba(71, 178, 228, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(71, 178, 228, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.cta-final-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-final h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  font-family: "Jost", sans-serif;
}

.cta-final p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-final-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(135deg, #47b2e4 0%, #3d9fd1 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(71, 178, 228, 0.4);
}

.btn-cta-primary:hover {
  background: linear-gradient(135deg, #3d9fd1 0%, #3591c0 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(71, 178, 228, 0.5);
  color: #fff;
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ============================================================
   RESPONSIVE STYLES
   ============================================================ */

/* Small laptops (12-14 inch screens, ~1280-1440px) */
@media (max-width: 1366px) {
  .hero-modern {
    padding-top: 70px;
    min-height: auto;
    height: auto;
  }

  .hero-modern h1 {
    font-size: 2.8rem;
  }

  .hero-visual-container {
    max-width: 340px;
    height: 360px;
  }

  .hero-5-stages {
    max-width: 360px;
    height: 440px;
  }

  .visual-card {
    padding: 12px 14px;
    min-width: 180px;
  }

  .visual-card .card-icon {
    width: 36px;
    height: 36px;
  }

  .visual-card .card-icon i {
    font-size: 1.1rem;
  }

  .visual-card .card-title {
    font-size: 0.85rem;
  }

  .visual-card .card-subtitle {
    font-size: 0.7rem;
  }

  .card-stage-1 { top: 0; left: 0; }
  .card-stage-2 { top: 80px; right: 0; }
  .card-stage-3 { top: 160px; left: 10px; }
  .card-stage-4 { top: 240px; right: 0; }
  .card-stage-5 { top: 320px; left: 20px; }

  .visual-flow-svg {
    opacity: 0.7;
  }
}

@media (max-width: 991px) {
  .hero-modern {
    min-height: auto;
    height: auto;
    padding-top: 90px;
    padding-bottom: 60px;
  }

  .hero-modern .container {
    padding-top: 20px;
  }

  .visual-flow-svg {
    display: none;
  }

  .hero-content {
    padding-right: 0;
    padding-left: 0;
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-badge {
    align-self: center;
  }

  .hero-modern h1 {
    font-size: 2.5rem;
    text-align: center;
    width: 100%;
  }

  .hero-description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual-container {
    height: 350px;
    max-width: 340px;
    margin: 0 auto;
  }

  .hero-5-stages {
    height: 420px;
    max-width: 320px;
    margin-bottom: 20px;
  }

  .visual-card {
    padding: 10px 12px;
    min-width: 160px;
  }

  .visual-card .card-step-num {
    width: 20px;
    height: 20px;
    font-size: 0.65rem;
    top: -8px;
    left: -8px;
  }

  .visual-card .card-icon {
    width: 32px;
    height: 32px;
  }

  .visual-card .card-icon i {
    font-size: 1rem;
  }

  .visual-card .card-title {
    font-size: 0.8rem;
  }

  .visual-card .card-subtitle {
    font-size: 0.65rem;
  }

  .card-stage-1 { top: 0; left: 10px; }
  .card-stage-2 { top: 85px; right: 10px; }
  .card-stage-3 { top: 170px; left: 0; }
  .card-stage-4 { top: 255px; right: 0; }
  .card-stage-5 { top: 340px; left: 10px; }

  .visual-flow-line {
    height: 320px;
    left: 70px;
    top: 25px;
  }

  .step-connector {
    display: none;
  }

  .steps-container {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .step-card {
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .hero-modern h1 {
    font-size: 2rem;
    line-height: 1.2;
    text-align: center;
  }

  .hero-description {
    font-size: 1rem;
    text-align: center;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    align-items: center;
  }

  .hero-visual-container {
    height: 320px;
  }

  .visual-card {
    padding: 14px 18px;
  }

  .card-upload {
    left: 0;
    top: 10px;
  }

  .card-quotes {
    right: 0;
    top: 110px;
  }

  .card-track {
    left: 20px;
    bottom: 20px;
  }

  .cta-final h2 {
    font-size: 1.8rem;
  }

  .cta-final p {
    font-size: 1rem;
  }

  .cta-final-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

@media (max-width: 575px) {
  .hero-badge {
    padding: 6px 12px;
    align-self: center;
  }

  .hero-badge span {
    font-size: 0.8rem;
  }

  .hero-modern h1 {
    font-size: 1.75rem;
    text-align: center;
  }

  .hero-description {
    text-align: center;
  }

  .visual-card .card-title {
    font-size: 0.9rem;
  }

  .visual-card .card-subtitle {
    font-size: 0.75rem;
  }

  .visual-card .card-icon {
    width: 40px;
    height: 40px;
  }

  .visual-card .card-icon i {
    font-size: 1.2rem;
  }

  .hero-5-stages {
    height: 440px;
    max-width: 280px;
    margin-bottom: 20px;
  }

  .visual-card {
    min-width: 140px;
    gap: 8px;
  }

  .card-stage-1 { top: 0; left: 0; }
  .card-stage-2 { top: 80px; right: 0; }
  .card-stage-3 { top: 160px; left: 0; }
  .card-stage-4 { top: 240px; right: 0; }
  .card-stage-5 { top: 320px; left: 0; }

  .visual-flow-svg {
    display: none;
  }

  .step-card {
    padding: 30px 20px;
    min-width: auto;
  }

  .step-icon {
    width: 60px;
    height: 60px;
  }

  .step-icon i {
    font-size: 1.8rem;
  }
}

