/* Page offset so fixed header doesn’t overlap */
.eco-hero, .eco-stats, .eco-services, .eco-process, .eco-usecases, .eco-contact {
  scroll-margin-top: 90px;
}

/* ===== HERO ===== */
.eco-hero {
  min-height: 88vh;
  display: grid;
  place-items: center;
  padding: 140px 24px 80px; /* top padding for fixed header */
  background: radial-gradient(1200px 600px at 15% 20%, rgba(0,230,230,0.18), transparent 60%),
              radial-gradient(900px 500px at 85% 30%, rgba(0,230,230,0.12), transparent 60%),
              linear-gradient(180deg, #0f0f0f 0%, #141414 100%);
}
.eco-hero__inner {
  width: min(1200px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.eco-hero__title {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: 0.2px;
}
.eco-hero__subtitle {
  margin-top: 14px;
  font-size: clamp(16px, 2vw, 18px);
  color: rgba(255,255,255,0.8);
}
.eco-hero__badges { margin: 20px 0 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  font-size: 13px; letter-spacing: 0.4px; padding: 8px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
}
.eco-cta { display: inline-block; padding: 12px 18px; border-radius: 10px; font-weight: 700; text-decoration: none; background: #00e6e6; color: #0f0f0f; }
.eco-cta:hover { background: #ffffff; }

.eco-hero__visual { position: relative; min-height: 340px; }
.eco-orb {
  position: absolute; inset: 0; margin: auto; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(0,230,230,0.45), rgba(0,230,230,0.12) 60%, transparent 70%);
  filter: blur(12px); opacity: 0.9; animation: float 8s ease-in-out infinite;
}
@keyframes float { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-10px);} }

.eco-card {
  position: absolute; right: 6%; top: 12%; width: 260px; padding: 16px; border-radius: 14px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35); backdrop-filter: blur(10px);
}
.eco-card--alt { right: auto; left: 4%; bottom: 4%; top: auto; }
.eco-card h3 { font-size: 18px; margin-bottom: 6px; }
.eco-card p { font-size: 14px; color: rgba(255,255,255,0.8); }

/* ===== STATS ===== */
.eco-stats { padding: 32px 24px; background: #0a0a0a; border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); }
.eco-stats__grid { width: min(1100px, 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 16px; text-align: center; }
.stat h4 { font-size: 28px; letter-spacing: 0.6px; }
.stat p { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 4px; }

/* ===== SERVICES ===== */
.eco-services {
    padding: 80px 24px;
    background: #0f0f0f;
  }
  
  .section-head {
    width: min(920px, 100%);
    margin: 0 auto 28px;
    text-align: center;
  }
  .section-head h2 {
    font-size: clamp(26px, 4vw, 36px);
    margin-bottom: 10px;
  }
  .section-lead { color: rgba(255,255,255,0.8); }
  
  /* Center the last row by NOT letting columns stretch to 1fr.
     We give each track a fixed max width and then center the grid. */
  .card-grid,
  .card-grid--fit {
    width: min(1200px, 100%);
    margin: 30px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 320px)); /* <- fixed max width */
    gap: 20px;
    justify-content: center; /* <- centers incomplete rows */
  }
  
  .card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 22px;
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
    height: 100%;
  }
  .card:hover {
    transform: translateY(-4px);
    background: rgba(0,230,230,0.14);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  }
  .card h3 { font-size: 18px; margin-bottom: 6px; }
  .card p  { color: rgba(255,255,255,0.78); font-size: 14px; line-height: 1.5; }
  
  /* Trust bar (stays centered and wraps nicely) */
  .trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 18px auto 6px;
    padding: 0;
    list-style: none;
  }
  .trust-bar li {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    white-space: nowrap;
  }
  
  /* Responsive tweaks */
  @media (max-width: 900px) {
    .card-grid,
    .card-grid--fit {
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      /* At tablet sizes we let them stretch to fill, still centered */
    }
  }
  @media (max-width: 768px) {
    .trust-bar { justify-content: flex-start; }
    .section-head { text-align: left; }
  }
  

/* ===== PROCESS ===== */
.eco-process {
    padding: 80px 24px;
    background: linear-gradient(180deg, #0f0f0f 0%, #101516 100%);
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  
  .eco-process .section-head {
    text-align: center;
    width: min(920px, 100%);
    margin: 0 auto 28px;
  }
  
  .steps {
    width: min(1100px, 100%);
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
  
    /* remove browser list numbers & default padding */
    list-style: none;
    padding-left: 0;
  }
  
  .step {
    position: relative;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 24px 22px 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 160px;
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
  }
  .step:hover {
    transform: translateY(-3px);
    background: rgba(0,230,230,0.10);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  }
  
  .step h4 { margin-bottom: 8px; }
  .step p  { color: rgba(255,255,255,0.78); font-size: 14px; line-height: 1.55; }
  
  /* Nice little number badge inside each card */
  .step__num {
    position: absolute;
    top: -12px;
    right: 16px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
  }
  
  /* Responsive */
  @media (max-width: 680px) {
    .step { min-height: 0; }
  }
  

/* ===== GO-TO-MARKET & LOGISTICS ===== */
.eco-gtm {
    padding: 80px 24px;
    background: #0a0a0a;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .eco-gtm .section-head {
    text-align: center;
    width: min(920px, 100%);
    margin: 0 auto 32px;
  }
  
  /* Channels */
  .channel-grid {
    width: min(1100px, 100%);
    margin: 0 auto 26px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
    gap: 18px;
    justify-content: center; /* centers any incomplete row */
  }
  .channel {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 20px;
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
  }
  .channel:hover {
    transform: translateY(-3px);
    background: rgba(0,230,230,0.10);
    box-shadow: 0 10px 28px rgba(0,0,0,0.25);
  }
  .channel h3 { font-size: 18px; margin-bottom: 8px; }
  .kpis { margin: 0 0 8px 0; padding-left: 18px; }
  .kpis li { margin: 6px 0; color: rgba(255,255,255,0.84); font-size: 14px; }
  .mini-note { font-size: 12px; color: rgba(255,255,255,0.6); }
  
  /* Logistics */
  .logi-wrap { width: min(1100px, 100%); margin: 24px auto 0; }
  .subhead { font-size: 16px; opacity: .9; margin: 14px 0; }
  .logi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
  }
  .logi-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 16px;
  }
  .logi-card p { color: rgba(255,255,255,0.78); font-size: 14px; margin-top: 6px; }
  
  /* CTA row */
  .cta-row {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
    margin: 28px auto 0; width: min(900px, 100%);
  }
  
  /* Responsive niceties */
  @media (max-width: 768px) {
    .eco-gtm .section-head { text-align: left; }
  }
  

/* ===== CONTACT ===== */
.eco-contact { padding: 90px 24px 120px; background: radial-gradient(1000px 500px at 15% 20%, rgba(0,230,230,0.16), transparent 60%), #0f0f0f; }
.eco-contact__wrap { width: min(1100px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; }
.eco-contact__copy h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 10px; }
.eco-contact__copy p { color: rgba(255,255,255,0.8); margin-bottom: 18px; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.eco-cta--ghost { background: transparent; color: #00e6e6; border: 1px solid rgba(255,255,255,0.18); }
.eco-cta--ghost:hover { background: rgba(255,255,255,0.06); color: #fff; }
.qr-frame { width: 260px; height: 260px; border-radius: 16px; border: 1px dashed rgba(255,255,255,0.2); display: grid; place-items: center; background: rgba(255,255,255,0.04); margin-left: auto; }
.qr-hint { color: rgba(255,255,255,0.6); font-size: 14px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .eco-hero__inner { grid-template-columns: 1fr; }
  .eco-hero__visual { min-height: 280px; }
  .eco-card { right: 4%; top: 8%; }
  .eco-card--alt { left: 4%; bottom: 6%; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .use-grid { grid-template-columns: repeat(2, 1fr); }
  .eco-contact__wrap { grid-template-columns: 1fr; }
  .qr-frame { margin: 12px 0 0; }
}
@media (max-width: 560px) {
  .eco-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .use-grid { grid-template-columns: 1fr; }
}

/* 🔹 Initial hidden state for reveal animations */
.card,
.step,
.use,
.eco-hero__copy,
.eco-hero__badges .badge,
.eco-cta,
.eco-card,
.eco-contact__copy,
.qr-frame {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* 🔹 Visible state when scrolled into view */
.in,
.is-in {
  opacity: 1 !important;
  transform: none !important;
}

/* 🔹 Pop effect for non-numeric stats */
.eco-stats .stat h4.pop {
  transform: scale(1.06);
  transition: transform 0.25s ease;
}

/* =========================================
   MOBILE (≤768px): floating toggle, clean layout
   ========================================= */
@media (max-width: 768px) {
  /* prevent side-scroll */
  html, body { max-width: 100vw; overflow-x: hidden; overscroll-behavior-x: none; touch-action: manipulation; }

  /* Header is not fixed on mobile; logo scrolls */
  header { position: static; padding: 14px 16px; background: transparent; }

  /* Floating menu toggle that follows scroll */
  .nav-toggle{
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    right: calc(env(safe-area-inset-right, 0px) + 12px);
    display:inline-flex; align-items:center; justify-content:center;
    width:44px; height:44px; border-radius:12px;
    border:1px solid rgba(255,255,255,.18);
    background: rgba(20,20,20,.68); backdrop-filter: blur(10px);
    box-shadow:0 6px 20px rgba(0,0,0,.35);
    z-index:1100;
  }
  .nav-toggle span{ display:block; width:20px; height:2px; background:#fff; margin:3.8px 0; transition:transform .25s ease, opacity .25s ease; }
  .nav-toggle.is-open span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2){ opacity:0; }
  .nav-toggle.is-open span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

  /* Off-canvas dropdown panel */
  .nav-container{
    position: fixed; top:0; left:0; right:0;
    transform: translateY(-110%); transition: transform .28s ease;
    padding-top: calc(env(safe-area-inset-top, 0px) + 64px);
    padding-bottom:16px;
    background: rgba(12,12,12,.96);
    border-bottom:1px solid rgba(255,255,255,.08);
    box-shadow:0 10px 30px rgba(0,0,0,.45);
    z-index:1099;

    /* override desktop glass on mobile */
    border-radius:0; backdrop-filter:none; border:none; box-shadow:none;
  }
  .nav-container.is-open{ transform: translateY(0); }

  .nav-links{
    list-style:none; margin:0; padding:0 16px 8px;
    display:flex; flex-direction:column; gap:10px;
  }
  .nav-links a{
    display:block; padding:14px 16px; font-size:16px; line-height:1.2;
    background: rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.12);
    border-radius:12px;
  }
  .nav-links a::after{ display:none; }

  .language-switcher{ padding:6px 16px 14px; }
  #language-select{
    width:100%; padding:10px 12px; font-size:15px; color:#fff;
    background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); border-radius:10px;
  }

  /* lock page scroll when menu open */
  body.menu-open{ position: fixed; inset: 0; overflow: hidden; }

  /* HERO tidy */
  .eco-hero{ padding: 28px 18px 28px; min-height: auto; }
  .eco-hero__inner{ grid-template-columns: 1fr; gap: 18px; }
  .eco-hero__visual{ min-height: 240px; }
  .eco-orb{ width: 280px; height: 280px; }
  .eco-card{ width: 240px; right: 6%; top: 6%; }
  .eco-card--alt{ left: 6%; bottom: 6%; }

  /* Stats */
  .eco-stats{ padding: 22px 18px; }
  .eco-stats__grid{ grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat h4{ font-size: 24px; }

  /* Services & cards */
  .eco-services{ padding: 56px 18px; }
  .section-head{ text-align: left; }
  .card-grid, .card-grid--fit{ grid-template-columns: 1fr; gap: 14px; }

  /* Process */
  .eco-process{ padding: 56px 18px; }
  .steps{ grid-template-columns: 1fr; gap: 14px; }
  .step{ padding: 18px; }

  /* GTM */
  .eco-gtm{ padding: 56px 18px; }
  .channel-grid{ grid-template-columns: 1fr; gap: 14px; }
  .logi-grid{ grid-template-columns: 1fr; gap: 12px; }
  .cta-row{ width: 100%; }

  /* Contact */
  .eco-contact{ padding: 56px 18px 72px; }
  .eco-contact__wrap{ grid-template-columns: 1fr; gap: 16px; }
  .qr-frame{ width: 220px; height: 220px; margin: 8px 0 0; }

  /* Footer */
  .footer{ padding: 20px 18px; }
  .footer-links{ flex-direction: column; gap: 8px; }
}

/* =========================================
   TABLET (769px–1024px): tighter, 2-col where useful
   ========================================= */
@media (min-width: 769px) and (max-width: 1024px) {
  header{ padding: 16px 24px; }
  .logo{ font-size: 20px; }
  .nav-container{ padding: 10px 20px; }
  .nav-links{ gap: 18px; }
  .nav-links a{ font-size: 15px; padding: 8px 12px; }
  .language-switcher{ margin-left: 12px; }
  #language-select{ font-size: 13px; padding: 4px 8px; }
  .nav-toggle{ display:none; } /* keep inline nav on tablet */

  .eco-hero{ padding: 96px 24px 64px; }
  .eco-hero__inner{ grid-template-columns: 1fr 1fr; gap: 28px; }
  .eco-hero__visual{ min-height: 300px; }
  .eco-orb{ width: 320px; height: 320px; }
  .eco-card{ width: 250px; }
  .eco-card--alt{ bottom: 6%; }

  .eco-stats__grid{ grid-template-columns: repeat(4, 1fr); gap: 14px; }

  .eco-services{ padding: 72px 24px; }
  .card-grid, .card-grid--fit{ grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 18px; }

  .eco-process{ padding: 72px 24px; }
  .steps{ grid-template-columns: repeat(2, 1fr); gap: 18px; }

  .eco-gtm{ padding: 72px 24px; }
  .channel-grid{ grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 18px; }
  .logi-grid{ grid-template-columns: repeat(2, 1fr); }

  .eco-contact{ padding: 80px 24px 100px; }
  .eco-contact__wrap{ grid-template-columns: 1fr 1fr; }
  .qr-frame{ width: 240px; height: 240px; }
}

