/* =========================================
   ECOSYSTEM PAGE ONLY  (ecosystem.css)
   Desktop: keep Webflow defaults
   We only adjust <= 991px (tablet) & <= 767px (mobile)
   ========================================= */

/* -----------------------------------------
   1) TABLET & BELOW  (≤ 991px)
   ----------------------------------------- */
@media screen and (max-width: 991px) {

  /* never lock heights on this page */
  .body-5,
  .body-5 .page-wrap,
  .body-5 .section_header,
  .body-5 .section-products,
  .body-5 .section-19 {
    height: auto !important;
    min-height: auto !important;
  }

  /* ---------- HERO (title + wheel video) ---------- */

  /* stack hero into 1 column: text on top, wheel below */
  .body-5 .section_header .header_component {
    display: grid;
    grid-template-columns: 1fr !important;
    row-gap: 2.5rem;
    align-items: center;
  }

  .body-5 .section_header {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .body-5 .header_content {
    max-width: 48rem;
  }

  .body-5 .growing-global {
    font-size: 2.5rem;
    line-height: 1.15;
  }

  .body-5 .growing-para {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* only control wrapper width – keep Webflow video sizing */
  .body-5 .header1_image-wrapper {
    justify-self: center;
    width: 100%;
    max-width: 460px;
    position: static !important;
  }

  .body-5 .double-button-component.margin-top-button-hero {
    margin-top: 2.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
  }

  /* ---------- "WHO POWERS THE ECOSYSTEM" ---------- */

  .body-5 .section-products {
    padding-top: 0rem;
    padding-bottom: 0rem;
  }

  .body-5 .who-powers {
    font-size: 2.3rem;
    line-height: 1.2;
  }

  .body-5 .who-powrs-para {
    font-size: 1rem;
    max-width: 40rem;
  }

  /* 2-column grid on tablets */
  .body-5 .products_grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-column-gap: 1.5rem;
    grid-row-gap: 1.5rem;
    width: 100%;
  }

  .body-5 .products_item {
    width: 100%;
    box-sizing: border-box;
    padding: 1.6rem 1.25rem;
    border-radius: 18px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    min-height: 180px;      /* same height for all cards */
  }

  .body-5 .icon-wrapper-2 {
    flex-shrink: 0;
  }

  .body-5 .image-21,
  .body-5 .image-22 {
    width: 56px;
    height: 56px;
    object-fit: contain;
  }

  /* Ensure titles + text are not absolutely positioned on small screens */
  .body-5 .section-products .products_content {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    flex: 1;
  }

  .body-5 .section-products .products_content h3,
  .body-5 .section-products .products_content .text-block-24,
  .body-5 .section-products .products_content .text-block-25,
  .body-5 .section-products .products_content .text-block-26,
  .body-5 .section-products .products_content .text-block-27,
  .body-5 .section-products .products_content .text-block-28 {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0;
    color: #182031;
  }

  .body-5 .section-products .products_content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.35rem;
  }

  .body-5 .section-products .products_content .text-block-24,
  .body-5 .section-products .products_content .text-block-25,
  .body-5 .section-products .products_content .text-block-26,
  .body-5 .section-products .products_content .text-block-27,
  .body-5 .section-products .products_content .text-block-28 {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* ---------- ECOSYSTEM STRUCTURE GRID ---------- */

  .body-5 .section-19 {
    padding-top: 0rem;
    padding-bottom: 0rem;
  }

  /* equal left/right gap for the whole block */
  .body-5 .section-19 .container-16 {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
  }

  .body-5 .home-features-wrapper-2 {
    gap: 2rem;
    width: 100%;
  }

  .body-5 .text-block-29 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .body-5 .eco-para {
    font-size: 1rem;
    line-height: 1.6;
  }

    /* 2-column layout for the 4 cards, centered */
  .body-5 .features-grid-3 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-column-gap: 1.5rem;
    grid-row-gap: 1.5rem;

    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
  }

  /* base card container – SAME size for all (and kill 3D flip) */
  .body-5 .edix-token-card1,
  .body-5 .gov-token-card1,
  .body-5 .liquidity-pools-card,
  .body-5 .ai-smart-card {
    position: relative;
    width: 100% !important;
    min-height: 230px;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: center;

    /* turn OFF Webflow 3D flip on tablet/mobile */
    transform: none !important;
    transform-style: flat !important;
    perspective: none !important;
  }

  /* RESET WEBFLOW FLIP STYLES INSIDE CARDS
     + simple front/back toggle
  -------------------------------------------- */
  .body-5 .edix-token-card1 .features,
  .body-5 .gov-token-card1 .features,
  .body-5 .liquidity-pools-card .features,
  .body-5 .ai-smart-card .features {
    position: static !important;
    transform: none !important;              /* <– cancels rotateY(180deg) */
    backface-visibility: visible !important;
    opacity: 1 !important;

    width: 100%;
    height: auto;
    padding: 1.5rem 1.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  /* BACK face (description) hidden by default */
  .body-5 .edix-token-card1 .features._1,
  .body-5 .gov-token-card1 .features._1,
  .body-5 .liquidity-pools-card .features._1,
  .body-5 .ai-smart-card .features._1 {
    display: none !important;
  }

  /* HOVER / TAP: hide FRONT, show BACK */
  .body-5 .edix-token-card1:hover .features.first,
  .body-5 .gov-token-card1:hover .features.second,
  .body-5 .liquidity-pools-card:hover .features.third,
  .body-5 .ai-smart-card:hover .features.fourth {
    display: none !important;
  }

  .body-5 .edix-token-card1:hover .features._1,
  .body-5 .gov-token-card1:hover .features._1,
  .body-5 .liquidity-pools-card:hover .features._1,
  .body-5 .ai-smart-card:hover .features._1 {
    display: flex !important;
  }

  /* (optional) also flip when focused – helps on mobile */
  .body-5 .edix-token-card1:focus-within .features.first,
  .body-5 .gov-token-card1:focus-within .features.second,
  .body-5 .liquidity-pools-card:focus-within .features.third,
  .body-5 .ai-smart-card:focus-within .features.fourth {
    display: none !important;
  }

  .body-5 .edix-token-card1:focus-within .features._1,
  .body-5 .gov-token-card1:focus-within .features._1,
  .body-5 .liquidity-pools-card:focus-within .features._1,
  .body-5 .ai-smart-card:focus-within .features._1 {
    display: flex !important;
  }

  /* icon + text styles */
  .body-5 .image-23 {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 0.85rem;
  }

  .body-5 .text-weight-medium-2 {
    font-size: 1.05rem;
    line-height: 1.4;
  }

  .body-5 .text-block-30,
  .body-5 .text-block-31,
  .body-5 .text-block-32,
  .body-5 .text-block-33 {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
  }
}

/* -----------------------------------------
   2) MOBILE  (≤ 767px)
   ----------------------------------------- */
@media screen and (max-width: 767px) {

  /* hero: center everything */
  .body-5 .section_header {
    padding-top: 2.25rem;
    padding-bottom: 2.5rem;
    text-align: center;
  }

  .body-5 .header_content {
    margin: 0 auto;
    padding: 0 1rem;
  }

  .body-5 .growing-global {
    font-size: 2rem;
  }

  .body-5 .growing-para {
    font-size: 0.95rem;
  }

  .body-5 .header1_image-wrapper {
    max-width: 360px;
  }

  .body-5 .double-button-component.margin-top-button-hero {
    justify-content: center;
  }

  /* ---------- WHO POWERS ECOSYSTEM (MOBILE) ---------- */

  .body-5 .section-products {
    padding-top: 0rem;
    padding-bottom: 0rem;
  }

  .body-5 .who-powers {
    font-size: 2rem;
    text-align: center;
  }

  .body-5 .who-powrs-para {
    text-align: center;
    margin: 0 auto;
    padding: 0 1rem;
  }

  /* stack cards as a vertical list */
  .body-5 .products_grid {
    display: flex !important;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
  }

  .body-5 .products_item {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: 2.4rem 1.3rem;
    border-radius: 18px;
    min-height: 190px;       /* taller cards on mobile */
  }

  .body-5 .icon-wrapper-2 {
    margin-right: 0.9rem;
  }

  .body-5 .image-21,
  .body-5 .image-22 {
    width: 70px;
    height: 70px;
  }

  .body-5 .section-products .products_content h3 {
    font-size: 1.3rem;
  }

  .body-5 .section-products .products_content .text-block-24,
  .body-5 .section-products .products_content .text-block-25,
  .body-5 .section-products .products_content .text-block-26,
  .body-5 .section-products .products_content .text-block-27,
  .body-5 .section-products .products_content .text-block-28 {
    font-size: 1rem;
  }

  /* ---------- ECOSYSTEM STRUCTURE (MOBILE) ---------- */

  .body-5 .section-19 {
    padding-top: 0rem;
    padding-bottom: 0rem;
  }

  .body-5 .header-4 {
    text-align: center;
  }

  .body-5 .text-block-29 {
    font-size: 1.9rem;
  }

  .body-5 .eco-para {
    font-size: 0.95rem;
    padding: 0 1rem;
  }

  .body-5 .features-grid-3 {
    display: grid !important;
    grid-template-columns: 1fr;   /* 1 card per row on mobile */
    grid-column-gap: 1.5rem;
    grid-row-gap: 1.5rem;

    max-width: 480px;
    margin: 0 auto;
    padding: 0 1rem 2.5rem;
    box-sizing: border-box;
  }

  .body-5 .edix-token-card1,
  .body-5 .gov-token-card1,
  .body-5 .liquidity-pools-card,
  .body-5 .ai-smart-card {
    min-height: 220px;       /* all 4 same height on mobile */
  }

  .body-5 .image-23 {
    width: 60px;
    height: 60px;
  }
}

/* -----------------------------------------
   3) VERY SMALL PHONES  (≤ 479px)
   ----------------------------------------- */
@media screen and (max-width: 479px) {

  .body-5 .section_header,
  .body-5 .section-products,
  .body-5 .section-19 {
    height: auto !important;
    min-height: auto !important;
  }

  .body-5 .products_item,
  .body-5 .edix-token-card1,
  .body-5 .gov-token-card1,
  .body-5 .liquidity-pools-card,
  .body-5 .ai-smart-card {
    border-radius: 16px;
  }
}

/* =======================================================
   EXTRA HERO TWEAKS – ECOSYSTEM
   Better layout for tablet (768–991) and mobile (≤767)
   ======================================================= */

/* ---------- TABLET ONLY (768px–991px) ---------- */
@media screen and (min-width: 768px) and (max-width: 991px) {

  /* keep 2 columns like desktop, but tighter */
  .body-5 .section_header {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .body-5 .section_header .header_component {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); /* text | wheel */
    column-gap: 2.5rem;
    align-items: center;
  }

  .body-5 .header_content {
    max-width: 32rem;
  }

  .body-5 .growing-global {
    font-size: 2.2rem;
    line-height: 1.25;
  }

  .body-5 .growing-para {
    font-size: 1rem;
    line-height: 1.7;
  }

  .body-5 .header1_image-wrapper {
    justify-self: center;
    max-width: 360px;          /* wheel a bit smaller */
  }

  .body-5 .double-button-component.margin-top-button-hero {
    margin-top: 2.2rem;
    justify-content: flex-start;
    gap: 0.9rem;
  }
}

/* ---------- MOBILE (≤ 767px) ---------- */
@media screen and (max-width: 767px) {

  /* hero overall */
  .body-5 .section_header {
    padding-top: 3.25rem;
    padding-bottom: 3rem;
    text-align: center;
  }

  /* stack elements cleanly */
  .body-5 .header_component {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
  }

  /* wheel first, then text */
  .body-5 .header1_image-wrapper {
    order: 2;
    max-width: 240px;
    margin: 0 auto;
  }

  .body-5 .header_content {
    order: 1;
    max-width: 22rem;
    margin: 0 auto;
    padding: 0 1.25rem;
  }

  .body-5 .growing-global {
    font-size: 1.8rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
  }

  .body-5 .growing-para {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* buttons centered, tighter spacing */
  .body-5 .double-button-component.margin-top-button-hero {
    margin-top: 1.75rem;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
  }
}

/* =========================================================
   HERO FIX – KEEP DESKTOP/TABLET 2-COL, STACK ONLY ON MOBILE
   ========================================================= */

/* ---------- TABLET ONLY (768–991px) ---------- */
@media screen and (min-width: 768px) and (max-width: 991px) {

  /* keep 2 columns like desktop */
  .body-5 .section_header .header_component {
    display: grid !important;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    column-gap: 2.5rem;
    align-items: center;
  }

  .body-5 .section_header {
    padding-top: 4rem;
    padding-bottom: 4rem;
    text-align: left;
  }

  .body-5 .header_content {
    max-width: 36rem;
    width: 100%;
    padding: 0 2rem;
  }

  .body-5 .growing-global {
    font-size: 2.4rem;
    line-height: 1.25;
  }

  .body-5 .growing-para {
    font-size: 1.05rem;
    line-height: 1.7;
  }

  /* bigger wheel on tablet */
  .body-5 .header1_image-wrapper {
    justify-self: center;
    width: 100%;
    max-width: 480px;  /* <-- increase/decrease if you want */
    margin: 0 auto;
    position: static !important;
  }

  .body-5 .double-button-component.margin-top-button-hero {
    margin-top: 14rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
    padding: 0 2rem;
  }
}

/* ---------- MOBILE (≤ 767px) ---------- */
@media screen and (max-width: 767px) {

  .body-5 .section_header {
    padding-top: 3.25rem;
    padding-bottom: 3rem;
    text-align: center;
  }

  /* stack: text → buttons → video */
  .body-5 .section_header .header_component {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
  }

  .body-5 .header_content {
    order: 1;
    max-width: 22rem;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.25rem;
  }

  .body-5 .growing-global {
    font-size: 1.9rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
  }

  .body-5 .growing-para {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .body-5 .double-button-component.margin-top-button-hero {
    order: 2;
    margin-top: 1.6rem;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  
}



/* =========================================================
   HERO – TABLET & MOBILE FIX
   Keep 2-column on tablet, stack nicely on mobile
   ========================================================= */

/* ---------- TABLET (768–991px) ---------- */
/* Put back a 2-column grid similar to desktop so our old
   "1 column" rule no longer affects tablets. */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .body-5 .section_header .header_component {
    display: grid !important;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); /* 2 cols */
    column-gap: 2.5rem;
    align-items: center;
  }

  .body-5 .section_header {
    padding-top: 4rem;
    padding-bottom: 4rem;
    text-align: left;
  }

  .body-5 .header_content {
    max-width: 36rem;
    width: 100%;
    padding: 0 2rem;
  }

  .body-5 .growing-global {
    font-size: 2.4rem;
    line-height: 1.25;
  }

  .body-5 .growing-para {
    font-size: 1.05rem;
    line-height: 1.7;
  }

  /* make the wheel a bit bigger on tablet */
  .body-5 .header1_image-wrapper {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    position: static !important;
  }
}

/* ---------- MOBILE (≤ 767px) ---------- */
/* Stack: Title + text -> buttons -> big video */
@media screen and (max-width: 767px) {

  .body-5 .section_header {
    padding-top: 3rem;
    padding-bottom: 3rem;
    text-align: center;
  }

  /* Kill Webflow grid on mobile so DOM order is used */
  .body-5 .section_header .header_component {
    display: block !important;
  }

  /* Text block */
  .body-5 .header_content {
    max-width: 22rem;
    width: 100%;
    margin: 0 auto 1.5rem;
    padding: 0 1.25rem;
  }

  .body-5 .growing-global {
    font-size: 1.9rem;
    line-height: 1.25;
    margin-bottom: 0.6rem;
  }

  .body-5 .growing-para {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  /* Buttons under the text */
  .body-5 .double-button-component.margin-top-button-hero {
    margin-top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }

  /* Video comes AFTER title + desc + buttons, bigger */
  .body-5 .header1_image-wrapper {
    width: 100%;
    max-width: 360px;          /* increase if you want even bigger */
    margin: 1.5rem auto 0;
    position: static ;
  }

  /* Let Webflow keep the height; just control width */
.body-5 .header1_image-wrapper .background-video-14 {
  width: 100%;
  max-width: 100%;
}

/* Make the <video> fill whatever height Webflow gives */
.body-5 .header1_image-wrapper .background-video-14 video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

}

/* ---------- MOBILE HERO (≤ 767px) ---------- */
@media screen and (max-width: 767px) {

  .body-5 .section_header {
    padding-top: 3rem;
    padding-bottom: 3rem;
    text-align: center;
  }

  /* break Webflow grid so elements follow DOM order */
  .body-5 .section_header .header_component {
    display: block !important;
  }

  .body-5 .header_content {
    max-width: 22rem;
    width: 100%;
    margin: 0 auto 1.5rem;
    padding: 0 1.25rem;
  }

  .body-5 .growing-global {
    font-size: 1.9rem;
    line-height: 1.25;
    margin-bottom: 0.6rem;
  }

  .body-5 .growing-para {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .body-5 .double-button-component.margin-top-button-hero {
    margin-top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }

  /* VIDEO: under text + buttons, BIGGER, centered */
  .body-5 .header1_image-wrapper {
    width: 100%;
    max-width: 540px;           /* ⬅️ increased from 360px */
    margin: 1.5rem auto 0;
    position: static !important;
  }

}

@media screen and (max-width: 479px) {
    .home-features-wrapper-2 {
        margin-top: 5rem;
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  .text-size-small.text-weight-bold {
    text-shadow: 0 1px 1px #000000b5;
    font-family: Poppins, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 2.5;
    position: relative;
  }
}

@media screen and (max-width: 479px) {
  .text-size-small.text-weight-bold {
    text-shadow: 0 1px 1px #000000b5;
    font-family: Poppins, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 2.5;
    position: relative;
  }
}


/* =========================================
   EXTRA: tighten gap between cards
   and "Ecosystem Structure" on tablet/mobile
   ========================================= */

/* Tablet & below (≤ 991px) */
@media screen and (max-width: 991px) {
  /* reduce bottom padding under the “Who powers ecosystem” cards */
  .body-5 .section-products {
    padding-bottom: 1.8rem;
  }

  /* inner Webflow wrapper (was padding-huge) – shrink on small screens */
  .body-5 .section-products .padding-vertical.padding-huge {
    padding-bottom: 1.8rem;
  }

  /* bring Ecosystem Structure section closer */
  .body-5 .section-19 {
    padding-top: 1.6rem;
  }

  /* and reduce the top margin on the Get Started / About Us buttons
     in this section only */
  .body-5 .section-19 .double-button-component.margin-top-button-hero {
    margin-top: 0.75rem;
  }
  .padding-global-11 {
    margin-bottom: auto;
    padding-top: 0rem;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}
}

/* Mobile (≤ 767px) – a little tighter still */
@media screen and (max-width: 767px) {
  .body-5 .section-products {
    padding-bottom: 1.6rem;
  }

  .body-5 .section-products .padding-vertical.padding-huge {
    padding-top: 1.5rem;
    padding-bottom: 1.6rem;
  }

  .body-5 .section-19 {
    padding-top: 1.4rem;
  }

  .body-5 .section-19 .double-button-component.margin-top-button-hero {
    margin-top: 0.5rem;
  }
  .padding-global-11 {
    margin-bottom: auto;
    padding-top: 0rem;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}
}
