*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark-blue: #1E2D50;
  --cta-green: #DAFE08;
  --teal: #00B99B;
  --black: #222222;
  --white: #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  background: var(--white);
  color: var(--dark-blue);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* ── CONTAINER ── */
.container-80 {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── BUTTONS ── */
.btn-bg-green {
  background: #DAFE08;
  border-radius: 40px;
  color: #1e2d50;
  text-align: center;
  border: none;
  display: block;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s;
}
.btn-bg-green:hover {
  transform: translateY(-2px);
}
.btn-bg-green.sm {
  font-size: 14px;
  padding: 10px 24px;
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.navbar.scrolled {
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.navbar-inner {
  display: flex;
  align-items: center;
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 0;
  gap: 32px;
  transition: padding 0.3s ease;
}

.navbar.scrolled .navbar-inner { padding: 12px 0; }

/* Logo */
.navbar-logo { display: flex; align-items: center; }
.navbar-logo img { height: 28px; display: block; }

#logo-black { display: none; }
.navbar.scrolled #logo-white { display: none; }
.navbar.scrolled #logo-black { display: block; }

/* Nav links */
.navbar-collapse {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.mobile-logo { display: none; }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-link svg { flex-shrink: 0; }

.navbar.scrolled .nav-link { color: var(--dark-blue); }
.navbar.scrolled .nav-link:hover { background: rgba(30,45,80,0.06); }

/* Hamburger */
.btn-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.btn-hamburger .icon-menu {
  width: 28px;
  height: 28px;
  /* menu.svg has black fill — invert to white on transparent nav */
  filter: invert(1);
  transition: filter 0.3s ease;
}
.navbar.scrolled .btn-hamburger .icon-menu { filter: invert(0); }

/* ── HOME BANNER ── */
.home-banner {
  position: relative;
  height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

.home-banner .container-80 {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 60px;
}

.banner-content {
  max-width: 860px;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: #ffffff;
  border-radius: 50%;
  animation: blink 2s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; } 50% { opacity: 0.4; }
}

/* Title */
.hero-title {
  font-size: clamp(28px, 3.8vw, 52px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}
.line-green { color: var(--cta-green); }

/* Description */
.hero-desc {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 640px;
}

/* CTAs */
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.22s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--cta-green); color: var(--black); }
.btn-primary:hover { background: #c9ef00; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover { border-color: #0A9CD6; color: var(--white); }

/* Wave at bottom */
.bannerend {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  line-height: 0;
}
.bannerend img {
  width: 100%;
  display: block;
}

/* Scroll down button */
.btn-down {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  cursor: pointer;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── PILARES ── */
#pilares-overview {
  background: var(--dark-blue);
}

.pilares-inner {
  width: 100%;
  background: var(--dark-blue);
  border-radius: 0;
  padding: 60px 10%;
}

.pilares-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cta-green);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.65;
}

.pilares-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pilar-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 32px 28px;
  transition: border-color 0.2s, background 0.2s;
}

.pilar-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--cta-green);
}

.pilar-icon-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(218,254,8,0.12);
  border: 1px dashed rgba(218,254,8,0.4);
  margin-bottom: 24px;
}

.pilar-num {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cta-green);
  margin-bottom: 8px;
}

.pilar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--cta-green);
  margin-bottom: 12px;
}

.pilar-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .pilares-inner { width: 90%; padding: 40px 24px; }
  .pilares-cards { grid-template-columns: 1fr; }
}

/* ── CLIENTS STRIP ── */
.clients-strip {
  display: flex;
  align-items: center;
  background: #ffffff;
  padding: 32px 40px;
  gap: 24px;
  overflow: hidden;
}

.clients-label {
  flex-shrink: 0;
  width: 160px;
  font-size: 13px;
  font-weight: 500;
  color: #1e2d50;
  line-height: 1.5;
}

.clients-arrow {
  flex-shrink: 0;
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s;
  user-select: none;
}
.clients-arrow:hover { color: #1e2d50; }

.clients-track-wrapper {
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.clients-track-wrapper::-webkit-scrollbar { display: none; }

.clients-track {
  display: flex;
  align-items: center;
  gap: 56px;
  transition: transform 0.4s ease;
  will-change: transform;
}

.clients-track img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.65;
  flex-shrink: 0;
  transition: opacity 0.2s, filter 0.2s;
}
.clients-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .container-80 { width: 90%; }

  /* Hide desktop nav, show hamburger */
  .navbar-collapse {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #ffffff;
    padding: 80px 32px 40px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    transform: translateY(-110%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    z-index: 190;
  }
  .navbar-collapse.open { transform: translateY(0); }

  .mobile-logo {
    display: block;
    height: 24px;
    position: absolute;
    top: 20px;
    left: 32px;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
  }

  .nav-link {
    color: var(--dark-blue);
    font-size: 16px;
    padding: 12px 8px;
    width: 100%;
    border-bottom: 1px solid rgba(30,45,80,0.08);
    border-radius: 0;
  }
  .nav-link:hover { background: rgba(30,45,80,0.04); }

  .btn-hamburger { display: flex; }

  /* Banner */
  .home-banner { height: calc(100vh - 160px); }

  .home-banner .container-80 {
    padding-top: 100px;
    padding-bottom: 220px;
  }

  .banner-content h1 { font-size: clamp(32px, 8vw, 48px); }
  .banner-content p { font-size: 16px; }

  .btn-down { bottom: 100px; }
}

@media (max-width: 480px) {
  .banner-content h1 { font-size: clamp(28px, 9vw, 40px); }
  .btn-bg-green { width: 100%; justify-content: center; }
}
