/* ============================================
   GAIN RATE GROUP - SaaS Page Stylesheet
   ============================================ */

/* --- SaaS Hero Section --- */
.saas-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  overflow: hidden;
  padding-top: 100px;
}

.saas-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 70% 50%, rgba(232, 160, 32, 0.08) 0%, transparent 60%);
  z-index: 1;
}

.saas-hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 60px 0;
}

.saas-hero-content h1 {
  font-size: 3.2rem;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.15;
}

.saas-hero-content h1 span {
  color: var(--gold);
}

.saas-hero-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  line-height: 1.8;
  max-width: 680px;
}

.saas-hero-shapes {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: var(--gold);
}

.shape-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -100px;
}

.shape-2 {
  width: 300px;
  height: 300px;
  bottom: 50px;
  right: 200px;
  opacity: 0.04;
}

.shape-3 {
  width: 150px;
  height: 150px;
  top: 200px;
  right: 400px;
  opacity: 0.08;
}

/* --- SaaS Stats Bar --- */
.saas-stats-bar {
  background: var(--navy);
  padding: 40px 0;
}

.saas-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.saas-stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(232, 160, 32, 0.15);
  transition: var(--transition);
}

.saas-stat-item:hover {
  background: rgba(232, 160, 32, 0.08);
  border-color: rgba(232, 160, 32, 0.3);
}

.saas-stat-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(232, 160, 32, 0.2), rgba(232, 160, 32, 0.1));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.saas-stat-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold);
}

.saas-stat-item h3 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.saas-stat-item p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

/* --- SaaS Section Common Styles --- */
.saas-section {
  background: var(--white);
}

.saas-section-alt {
  background: var(--off-white);
}

.saas-section-header {
  margin-bottom: 60px;
}

.saas-section-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(232, 160, 32, 0.12), rgba(232, 160, 32, 0.06));
  border: 1px solid rgba(232, 160, 32, 0.25);
  color: var(--gold-dark);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 20px;
}

/* --- Software Development Section --- */
.software-dev-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  margin-bottom: 60px;
}

.software-dev-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.software-dev-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.software-dev-image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
}

.software-dev-image-badge svg {
  width: 18px;
  height: 18px;
  stroke: var(--white);
}

.software-dev-content h3 {
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.3;
}

.software-dev-content p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.software-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.software-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.software-feature-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, rgba(232, 160, 32, 0.12), rgba(232, 160, 32, 0.06));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(232, 160, 32, 0.2);
}

.software-feature-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold-dark);
}

.software-feature h4 {
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.software-feature p {
  font-size: 0.82rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

/* --- Tech Stack --- */
.tech-stack {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 32px 40px;
  border: 1px solid var(--light-gray);
  text-align: center;
}

.tech-stack-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 20px;
}

.tech-stack-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.tech-item {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 50px;
  padding: 8px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.tech-item:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: translateY(-2px);
}

/* --- White Label Banner --- */
.white-label-banner {
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--radius);
  padding: 28px 36px;
  margin-bottom: 60px;
  border-left: 4px solid var(--gold);
}

.white-label-icon {
  width: 56px;
  height: 56px;
  background: rgba(232, 160, 32, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.white-label-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--gold);
}

.white-label-banner h3 {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
}

.white-label-banner p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

/* --- Mobile App Section --- */
.mobile-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  margin-bottom: 60px;
}

.mobile-phones-gallery {
  position: relative;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-mockup {
  position: absolute;
}

.phone-frame {
  background: var(--navy-dark);
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.phone-frame img {
  border-radius: 28px;
  display: block;
}

.phone-main {
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
}

.phone-main .phone-frame img {
  width: 200px;
  height: auto;
}

.phone-secondary .phone-frame img {
  width: 150px;
  height: auto;
}

.phone-left {
  z-index: 2;
  left: 10px;
  top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  opacity: 0.85;
}

.phone-right {
  z-index: 2;
  right: 10px;
  top: 50%;
  transform: translateY(-50%) rotate(8deg);
  opacity: 0.85;
}

.mobile-content h3 {
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.3;
}

.mobile-content p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.mobile-features-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
}

.mobile-feature-check {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.mobile-feature-check svg {
  width: 12px;
  height: 12px;
  stroke: var(--white);
}

.mobile-cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-dark);
  border: 2px solid var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

/* --- Mobile Screens Row --- */
.mobile-screens-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.mobile-screen-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--light-gray);
  transition: var(--transition);
}

.mobile-screen-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.mobile-screen-card img {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  object-fit: cover;
}

.mobile-screen-card p {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

/* --- Benefits Portal Section --- */
.benefits-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  margin-bottom: 60px;
}

.benefits-content h3 {
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.3;
}

.benefits-content p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.benefits-modules {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.benefits-module {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border: 1px solid var(--light-gray);
  transition: var(--transition);
}

.benefits-module:hover {
  transform: translateX(6px);
  border-color: rgba(232, 160, 32, 0.3);
}

.benefits-module-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefits-module-icon svg {
  width: 20px;
  height: 20px;
}

.benefits-module-icon.finances {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.15), rgba(46, 204, 113, 0.08));
}
.benefits-module-icon.finances svg { stroke: #27ae60; }

.benefits-module-icon.wellness {
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.12), rgba(231, 76, 60, 0.06));
}
.benefits-module-icon.wellness svg { stroke: #e74c3c; }

.benefits-module-icon.work {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.15), rgba(52, 152, 219, 0.08));
}
.benefits-module-icon.work svg { stroke: #2980b9; }

.benefits-module-icon.savings {
  background: linear-gradient(135deg, rgba(232, 160, 32, 0.15), rgba(232, 160, 32, 0.08));
}
.benefits-module-icon.savings svg { stroke: var(--gold-dark); }

.benefits-module h4 {
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.benefits-module p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

.benefits-portal-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.portal-main-screen {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--light-gray);
}

.portal-main-screen img {
  width: 100%;
  display: block;
}

/* --- Portal Screens Row --- */
.portal-screens-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.portal-screen-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--light-gray);
  transition: var(--transition);
}

.portal-screen-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.portal-screen-card img {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  object-fit: cover;
}

.portal-screen-card p {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

/* --- CTA Section --- */
.saas-cta {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
}

.saas-cta::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 160, 32, 0.08) 0%, transparent 70%);
}

.saas-cta-content h2 {
  font-size: 2.4rem;
  color: var(--white);
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.saas-cta-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.saas-cta .btn-secondary {
  border-color: rgba(255, 255, 255, 0.4);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .saas-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .software-dev-showcase,
  .mobile-showcase,
  .benefits-showcase {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .software-dev-image img {
    height: 360px;
  }

  .mobile-phones-gallery {
    height: 400px;
  }

  .phone-main .phone-frame img {
    width: 160px;
  }

  .phone-secondary .phone-frame img {
    width: 120px;
  }

  .portal-screens-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .saas-hero-content h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .saas-hero-content h1 {
    font-size: 2rem;
  }

  .saas-stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .software-features-grid {
    grid-template-columns: 1fr;
  }

  .mobile-screens-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .portal-screens-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .white-label-banner {
    flex-direction: column;
    text-align: center;
  }

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

  .mobile-phones-gallery {
    height: 320px;
  }

  .phone-main .phone-frame img {
    width: 130px;
  }

  .phone-secondary .phone-frame img {
    width: 100px;
  }

  .tech-stack {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .mobile-screens-row,
  .portal-screens-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .mobile-cta-buttons {
    flex-direction: column;
  }

  .saas-hero-content h1 {
    font-size: 1.7rem;
  }
}
