:root {
    --font-primary: 'Poppins', sans-serif;
    --detail-color: #555;
    --menu-link-color: #0077b6;
    --theme-detail-primary: #3BBA9C;   /* Green */
    --theme-detail-secondary: #44AACC; /* Lighter teal/blue */
    --heading-color: #333;
    --dark-detail-color: #333033;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.15);
    --cta-color: #3BBA9C;  /* Buttons revert to green */
    --cta-hover-color: #349e85;
    --section-bg-color: #333;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  html, body {
    font-family: var(--font-primary);
    color: var(--detail-color);
    line-height: 1.6;
  }
  a {
    text-decoration: none;
    color: inherit;
  }

  /*******************************************
   * PAGE WRAPPER & CONTAINER
   *******************************************/
  .page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }

  /*******************************************
   * HEADER (More solid, darker)
   *******************************************/
  header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #2b2b2b;  /* More solid/darker */
    transition: transform 0.3s ease; /* For hide/show on scroll */
  }
  header.hide {
    transform: translateY(-100%);
  }
  .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
  }
  .logo img {
    max-height: 80px;
    width: auto;
    margin-bottom: -20px;
    margin-top: -20px;
  }
  nav ul {
    display: flex;
    list-style: none;
    align-items: center;
  }
  nav ul li {
    margin-left: 1rem; /* reduced from 1.5rem to keep all items on one line */
    position: relative;
  }
  nav ul li a {
    color: #fff;
    padding: 0.5rem 0.8rem;
    transition: background-color 0.2s ease;
    white-space: nowrap; /* ensures "How it works" stays on one line */
  }
  nav ul li a:hover {
    background-color: rgba(255,255,255,0.1); /* Subtle hover background */
    border-radius: 4px;
  }

  .share-button, .cta-button {
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
    text-decoration: none;
    white-space: nowrap; /* keep text in one line */
    transition: background-color 0.3s ease;
  }
  .share-button {
    background-color: var(--theme-detail-secondary);
  }
  .share-button:hover {
    filter: brightness(1.1);
  }
  .cta-button {
    background-color: var(--cta-color);
  }
  .cta-button:hover {
    background-color: var(--cta-hover-color);
  }

  /*******************************************
   * HERO SECTION
   *******************************************/
  .hero-section {
    position: relative;
    background: url('image2b.jpg') center center / cover no-repeat fixed;
    color: #fff;
    text-align: center;
    padding: 140px 0 100px 0;
    margin-top: 73px; /* space for fixed header */
    height: 100vh;
  }
  .hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
  }
  .hero-section .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-content {
    max-width: 1200px;
    margin-bottom: 1rem;
    
}
  .hero-content h1 {
    font-size: 2.2rem;
    text-align: left;
    margin-bottom: 1rem;
    line-height: 1.3
  }
  .hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.4;
    text-align: center;
  }
  .hero-sub-message p {
    position: relative;
    bottom: 0px;
    font-size: 1.3rem;
    margin-top: 4em;
    color: #d0d0d0;
  }

  /*******************************************
   * FEATURES SECTION
   *******************************************/
  .features-section {
    background: #fff;
    padding: 4rem 0;
  }
  .features-section h2 {
    font-size: 2.5rem;
    text-align: left;
    margin-bottom: 1.5rem;
    color: var(--heading-color);
  }
  .features-section p {
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.4;
  }

  /* EXACT diagram code from your original snippet */
  .page-wrapper {
    display: flex;
    align-items: flex-start; /* Change from center to flex-start */
    gap: 10px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0rem;
}

  .diagram-container {
    position: relative;
    width: 1000px;
    height: 800px;
    transform-style: preserve-3d;
  }
  .center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 70px;
    background: #333;
    border-radius: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--box-shadow);
    z-index: 5;
    transition: all 0.3s ease;
  }
  .center-logo:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: var(--box-shadow-hover);
  }
  .logo-img {
    width: 220px;
    height: auto;
  }
  .satellite {
    position: absolute;
    width: 180px;
    height: 180px;
    background: #f2f2f2;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px;
    box-shadow: var(--box-shadow);
    z-index: 4;
    transition: all 0.4s ease;
    cursor: pointer;
  }
  .satellite:hover {
    transform: scale(1.1) translateZ(20px);
    box-shadow: var(--box-shadow-hover);
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
  }
  .satellite-icon {
    font-size: 24px;
    color: var(--theme-detail-primary);
    margin-bottom: 12px;
    transition: transform 0.3s ease;
  }
  .satellite:hover .satellite-icon {
    transform: scale(1.2);
  }
  .satellite-text {
    font-size: 14px;
    color: var(--heading-color);
    transition: all 0.3s ease;
    padding: 0 10px;
  }
  .satellite:hover .satellite-text {
    color: var(--theme-detail-primary);
  }
  /* Positions for satellites */
  #satellite1 {
    top: 40px; left: 100px;
  }
  #satellite2 {
    top: 80px; left: 540px;
  }
  #satellite3 {
    top: 520px; left: 520px;
  }
  #satellite4 {
    top: 600px; left: 140px;
  }
  #satellite5 {
    top: 305px; left: 40px;
  }
  .connecting-line {
    stroke: var(--theme-detail-secondary);
    stroke-width: 2;
    stroke-dasharray: 10;
    animation: dashFlow 20s linear infinite;
    opacity: 0.5;
  }
  @keyframes dashFlow {
    to { stroke-dashoffset: -200; }
  }

  .info-panel {
    width: 400px;
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    border:2px solid var(--theme-detail-primary);
  }
  .info-content {
    opacity: 0;
    position: absolute;
    transition: opacity 0.3s ease;
  }
  .info-content.active {
    opacity: 1;
    position: relative;
  }
  .info-panel h2 {
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
  }
  .info-panel h3 {
    color: var(--theme-detail-primary);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
  }
  .info-panel p {
    color: var(--detail-color);
    line-height: 1.3;
    margin-bottom: 1.5rem;
  }

  @media (max-width: 1400px) {
    .diagram-container {
      transform: scale(0.8);
    }
    .info-panel {
      width: 100%;
      max-width: 600px;
    }
  }
  @media (max-width: 768px) {
    .page-wrapper {
      flex-direction: column;
      padding: 1rem;
    }
    .diagram-container {
      width: 100%;
      height: auto;
      transform: none;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
    .center-logo {
      position: relative;
      top: 0; left: 0;
      transform: none;
      margin: 0 auto;
      width: 180px; height: 180px;
    }
    .satellite {
      position: relative;
      top: 0; left: 0;
      transform: none;
      margin: 0 auto;
      width: 100%;
      height: auto;
      flex-direction: row;
      justify-content: flex-start;
      gap: 1rem;
      border-radius: 12px;
      padding: 1rem;
    }
    .satellite-icon {
      margin-bottom: 0;
    }
    .connecting-line {
      display: none;
    }
    #satellite1, #satellite2, #satellite3, #satellite4, #satellite5 {
      top: auto; left: auto;
    }
    .satellite:hover {
      transform: translateX(10px);
    }
  }

  /*******************************************
   * HOW IT WORKS SECTION
   *******************************************/
  .how-it-works-section {
    background-color: var(--section-bg-color);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
  }
  .how-it-works-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }
  .how-it-works-section p {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
    line-height: 1.5;
  }
  .steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  .step {
    background: #fff;
    color: var(--dark-detail-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: calc(33.333% - 20px);
    min-width: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
  }
  .step:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
  }
  .step .icon-container {
    font-size: 1.6rem; /* Reduced icon size from 2rem -> 1.6rem */
    color: #007bff;
    margin-bottom: 10px;
  }

  /* Subheading for "Beyond Onboarding" */
  .subheading {
    font-size: 1.6rem;
    color: #fff;
    margin-top: 3rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
  }

  /*******************************************
   * SAVINGS CALCULATOR
   *******************************************/
  .savings-calculator-section {
    background: #f7f7f7;
    padding: 4rem 0;
    text-align: center;
  }
  .savings-calculator-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
  }
  .savings-calculator-section h3 {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 2rem;
  }
  .content-wrapper {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .calculator-container {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    flex: 1 1 380px;
    max-width: 500px;
  }
  .form-group {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
  }
  .form-group label {
    flex: 1 1 180px;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #555;
  }
  input[type="range"] {
    flex: 2;
    -webkit-appearance: none;
    height: 15px;
    background: #ddd;
    outline: none;
    border-radius: 5px;
    margin-right: 1rem;
  }
  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 25px; height: 25px;
    background: #007bff; cursor: pointer; border-radius: 50%;
  }
  .styled-textbox {
    width: 70px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 0.5rem;
    margin-top: 0.5rem;
  }
  .result {
    margin-top: 2rem;
  }
  .result h3 {
    font-size: 1.4rem;
    color: #333;
  }
  .text-container {
    flex: 1 1 380px;
    max-width: 500px;
    background: #f1f1f1;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .text-container p {
    max-width: 400px;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
  }

  /*******************************************
   * PRICING SECTION
   *******************************************/
  .pricing-section {
    background: #fff;
    padding: 4rem 0;
    text-align: center;
  }
  .pricing-section h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--heading-color);
  }
  .pricing-plans {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
  }
  .pricing-plan {
    flex: 1 1 300px;
    max-width: 320px;
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    border: 2px solid var(--theme-detail-primary)
  }
  .pricing-plan:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
  }
  .pricing-plan h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
  }
  .pricing-plan p {
    margin-bottom: 1rem;
    line-height: 1.4;
  }

  /*******************************************
   * CONTACT SECTION
   *******************************************/
  .contact-section {
    background: #333;
    color: #fff;
    padding: 4rem 0;
    text-align: center;
  }
  .contact-section .container {
    max-width: 800px;
    margin: 0 auto;
  }
  .contact-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  /*******************************************
   * FOOTER
   *******************************************/
  footer {
    background-color: #333;
    color: #fff;
    padding: 2rem 0;
    margin-top: auto;
  }
  .footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
  }
  .footer-section {
    flex: 1 1 200px;
  }
  .footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
  }
  .footer-section ul {
    list-style: none;
  }
  .footer-section ul li {
    margin-bottom: 8px;
  }
  .footer-section a {
    color: #fff;
    transition: color 0.2s ease;
  }
  .footer-section a:hover {
    color: var(--theme-detail-primary);
  }
  .social-links a {
    font-size: 20px;
    margin-right: 10px;
  }
  .copyright {
    margin-top: 20px;
    text-align: center;
  }

  /*******************************************
   * MEDIA QUERIES
   *******************************************/
  @media (max-width: 768px) {
    .header-content {
      flex-direction: column;
      align-items: flex-start;
    }
    nav ul {
      flex-direction: column;
      margin-top: 1rem;
    }
    nav ul li {
      margin-left: 0;
    }
    .share-button, .cta-button {
      margin-top: 0.5rem;
    }

    /* Steps .step full width on mobile */
    .step {
      width: 100%!important;
    }
  }