/* =================================
   home.css  (HOME PAGE ONLY)
   ================================= */

/* ---------- Tablet & below (≤ 991px) ---------- */
@media screen and (max-width: 991px) {
  /* ==============================
     HERO
     ============================== */
  .hero-ribbon-section {
    min-height: 100vh;
    height: auto;
    padding: 6rem 1.5rem 3.5rem;
    margin-bottom: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
  }

  .hero-content {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
  }

  .hero-content .large-heading {
    max-width: 32rem;
  }

  .hero-sec-button {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero-sec-button a {
    display: inline-flex;
    align-items: center;
  }

  /* ==============================
     EX SECTION (section-21)
     ============================== */
  .section-21 {
    height: auto !important;
    padding: 3rem 1.75rem 3.5rem;
    box-sizing: border-box;
  }

  .section-21 .pic1 {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-auto-rows: auto;
    align-items: center;
    column-gap: 2rem;
    row-gap: 2rem;
    height: auto;
    max-width: 1100px;
    margin: 0 auto;
  }

  .section-21 .div-block-15 {
    width: 100%;
    max-width: 460px;
    min-width: 0;
    aspect-ratio: 4 / 3;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0 auto;
  }

  .section-21 .decentralized-transpar-header {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 0 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
  }

  .section-21 .decentralized-transparen {
    font-size: 2rem;
    line-height: 1.25;
    letter-spacing: 0.01em;
  }

  .section-21 .text-block-35 {
    font-size: 1rem;
    line-height: 1.55;
    max-width: 36rem;
  }

  /* ==============================
     Built for Speed cards
     ============================== */
  .about-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-row-gap: 1.5rem;
    column-gap: 1.5rem;
  }

  .about-features-card {
    width: 100%;
  }

  /* ==============================
     EDIX APPROACH (timeline/cards)
     ============================== */
  .section-5.black {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .edix-approach-para {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
  }

  .section-5.black .container-8.small.flex {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    bottom: 0;
  }

  /* vertical line & numbers column */
  .section-5.black .timeline-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
  }

  .section-5.black .grey-line {
    height: 100%;
  }

  /* cards – pushed right so line & numbers sit outside */
  .section-5.black .process-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 56px;
    box-sizing: border-box;
  }

  /* move number circles onto the vertical line (tablet) */
  .section-5.black .step {
    margin-left: -56px;
    position: relative;
    z-index: 2;
  }

  .step-wrapper {
    gap: 1.5rem;
  }

  .step-info {
    margin-left: 16px;
  }

  /* ==============================
     ENTERPRISE-GRADE PERFORMANCE
     + METRICS (section-14)
     ============================== */
  .section-14 {
    height: auto !important;
    padding-top: 3rem;
    padding-bottom: 5rem;
  }

  .section-14 .home-features-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    justify-items: stretch;
    grid-column-gap: 2rem;
    grid-row-gap: 2rem;
  }

  .section-14 .image-9 {
    width: 100%;
    max-width: 480px;
    justify-self: center;
  }

  .section-14 .header {
    width: 100%;
    max-width: 520px;
  }

  .section-14 .heading-6 {
    font-size: 2rem;
    line-height: 1.25;
  }

  .section-14 .max-width-48ch {
    max-width: 36rem;
  }

  .section-14 .text-size-regular {
    font-size: 1rem;
    line-height: 1.55;
  }

  .section-14 .home-metrics {
    margin-top: 2rem;
  }

  .section-14 .home-metrics__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .section-14 .home-metrics__card {
    height: 100%;
  }

  /* ==============================
     (legacy) Bottom KPI cards
     ============================== */
  .div-block-42 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ---------- Mobile (≤ 767px) ---------- */
@media screen and (max-width: 767px) {
  /* ==============================
     HERO (mobile)
     ============================== */
  .hero-ribbon-section {
    min-height: 100vh;
    height: auto;
    padding: 5.5rem 1.25rem 3.5rem;
    margin-bottom: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
  }

  .hero-content {
    width: 100%;
    margin: 0;
  }

  .hero-content .large-heading {
    font-size: 2rem;
    line-height: 1.2;
    max-width: 100%;
  }

  .hero-sec-button {
    flex-direction: column;
    align-items: stretch;
    margin-top: 1.5rem;
  }

  .hero-sec-button a {
    justify-content: center;
    width: 100%;
  }

  /* ==============================
     EX SECTION (mobile)
     ============================== */
  .section-21 {
    height: auto !important;
    padding: 2.5rem 1.25rem 3rem;
    box-sizing: border-box;
  }

  .section-21 .pic1 {
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
    row-gap: 1.75rem;
    height: auto;
    padding: 0;
  }

  .section-21 .div-block-15 {
    width: 100%;
    max-width: 320px;
    min-width: 0;
    aspect-ratio: 4 / 3;
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
    margin: 0 auto;
  }

  .section-21 .decentralized-transpar-header {
    width: 100%;
    max-width: 22rem;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .section-21 .decentralized-transparen {
    font-size: 1.6rem;
    line-height: 1.25;
  }

  .section-21 .text-block-35 {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* ==============================
     Built for Speed (mobile)
     ============================== */
  .build-for-speed {
    width: 100%;
  }

  .about-features-grid {
    grid-template-columns: 1fr;
  }

  .about-features-card {
    width: 100%;
  }

  /* ==============================
     EDIX APPROACH (mobile)
     ============================== */
  .section-5.black {
    padding-top: 3rem;
    padding-bottom: 3.5rem;
  }

  .edix-approach-para {
    width: 100%;
    max-width: 22rem;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .section-5.black .container-8.small.flex {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
  }

  .section-5.black .timeline-wrapper {
    left: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
  }

  .section-5.black .grey-line {
    height: 100%;
  }

  .section-5.black .process-wrapper {
    width: 100%;
    max-width: 24rem;
    margin: 0 auto;
    padding-left: 44px;
    box-sizing: border-box;
    position: relative;
  }

  /* Number circles pinned exactly to the vertical line (mobile) */
  .section-5.black .step {
    margin-left: -156px;
    position: absolute;
    left: 0;
    transform: translateX(10px);
    z-index: 3;
  }

  .step-wrapper {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .process-image {
    margin-bottom: 0.5rem;
  }

  .step-info {
    margin-left: 0;
  }

  .step-heading.margin-xs {
    font-size: 1.05rem;
  }

  .text-light-grey {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  /* ==============================
     ENTERPRISE-GRADE PERFORMANCE
     + METRICS (section-14 mobile)
     ============================== */
  .section-14 {
    height: auto !important;
    padding-top: 3rem !important;
    padding-bottom: 6rem !important;
  }

  .section-14 .home-features-wrapper {
    width: 100%;
    max-width: 22rem;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    grid-row-gap: 1.75rem;
    grid-column-gap: 0;
  }

  .section-14 .image-9 {
    width: 100%;
    max-width: 100%;
  }

  .section-14 .header {
    width: 100%;
    max-width: 22rem;
    text-align: center;
  }

  .section-14 .heading-6 {
    font-size: 1.6rem;
    line-height: 1.25;
  }

  .section-14 .text-size-regular {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .section-14 .home-metrics {
    margin-top: 1.5rem;
  }

  .section-14 .home-metrics__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .section-14 .home-metrics__card {
    width: 100%;
  }

  /* ==============================
     (legacy) Bottom KPI cards (mobile)
     ============================== */
  .div-block-42 {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 2rem auto 3rem !important;
  }

  .cost-reduction,
  .compliance-speed,
  .network-availability,
  .sustainable-growth {
    width: 100% !important;
    height: auto !important;
  }

  .div-block-43,
  .div-block-45,
  .div-block-46,
  .div-block-47 {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
  }
}
