/* =============================================
   ASYDIM — styles.css v3
   Verde · Branco · Humano · Gradientes Ricos
   ============================================= */

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

:root {
  --g1: #1a4731;
  --g2: #2d6a4f;
  --g3: #40916c;
  --g4: #74c69d;
  --g5: #b7e4c7;
  --g6: #d8f3dc;
  --g7: #f0faf3;

  --amber:  #f4a261;
  --amber2: #e76f51;
  --blue:   #457b9d;
  --teal:   #52b788;
  --rose:   #e07a7a;

  --white:  #ffffff;
  --offwh:  #f7faf8;
  --dark:   #132b1e;
  --body:   #3a5544;
  --muted:  #6b8f76;
  --border: #c8e6d0;
  --blight: #e8f5ec;

  --serif: 'Lora', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  --r:  12px;
  --rl: 20px;
  --sh: 0 4px 24px rgba(45,106,79,.10);
  --shl: 0 12px 48px rgba(45,106,79,.18);
  --tr: .28s ease;
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--white); color: var(--body); line-height: 1.7; overflow-x: hidden; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
.text-green       { color: var(--g3); }
.text-green-light { color: var(--g4); }
.text-center      { text-align: center; }

/* ---- REUSABLES ---- */
.eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--g3); margin-bottom: 10px;
  position: relative;
  padding-bottom: 10px;
}
.eyebrow::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 32px; height: 1px; background: #cba365;
  border-radius: 1px;
}
.text-center.eyebrow::after,
.text-center .eyebrow::after {
  left: 50%; transform: translateX(-50%);
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700; color: var(--dark); line-height: 1.2; margin-bottom: 16px;
}
.section-title em { font-style: italic; color: var(--g3); }
.section-sub { font-size: 1.05rem; color: var(--muted); max-width: 580px; margin-bottom: 52px; line-height: 1.6; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }
.body-text { font-size: 1rem; color: var(--body); margin-bottom: 16px; }
.body-text strong { color: var(--dark); }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block; padding: 13px 30px;
  background: linear-gradient(135deg, var(--g2), var(--g3));
  color: var(--white); border-radius: 50px; font-weight: 600;
  font-size: .93rem; border: none;
  box-shadow: 0 4px 18px rgba(45,106,79,.30);
  transition: transform var(--tr), box-shadow var(--tr);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(45,106,79,.40); }
.btn-full { width: 100%; text-align: center; cursor: pointer; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 14px 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--blight);
  transition: box-shadow var(--tr), padding var(--tr);
}
.navbar.scrolled { padding: 10px 0; box-shadow: 0 2px 20px rgba(45,106,79,.10); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.logo-wrap { display: flex; align-items: center; gap: 10px; }
.logo-img   { height: 38px; width: auto; object-fit: contain; }
.logo-text  { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--g1); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link  { font-size: .88rem; font-weight: 500; color: var(--body); position: relative; transition: color var(--tr); }
.nav-link::after {
  content:''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 2px; background: var(--g3);
  border-radius: 2px; transition: width var(--tr);
}
.nav-link:hover { color: var(--g1); }
.nav-link:hover::after { width: 100%; }

.btn-nav {
  padding: 9px 22px;
  background: linear-gradient(135deg, var(--g2), var(--g3));
  color: var(--white); border-radius: 50px;
  font-size: .85rem; font-weight: 600;
  box-shadow: 0 3px 12px rgba(45,106,79,.25);
  transition: transform var(--tr), box-shadow var(--tr);
}
.btn-nav:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(45,106,79,.35); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--tr); transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  position: relative; overflow: hidden;
  display: flex; align-items: center;
}

/* Gradient transition to blend smoothly into the white background of the next section */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, 
    rgba(255,255,255,0) 0%, 
    rgba(255,255,255,0.15) 15%, 
    rgba(255,255,255,0.30) 30%, 
    rgba(255,255,255,0.45) 45%, 
    rgba(255,255,255,0.60) 60%, 
    rgba(255,255,255,0.75) 75%, 
    rgba(255,255,255,0.90) 90%, 
    rgba(255,255,255,1) 100%);
  z-index: 2; /* Sits above the Vanta NET but below the text */
  pointer-events: none;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }

/* gradient overlay: soft vignette to let the bio-digital ecosystem shine */
.hero-overlay {
  position: absolute; inset: 0;
  background: 
    radial-gradient(circle at 50% 50%, rgba(10,35,20,0.15) 0%, rgba(5,20,10,0.65) 100%),
    linear-gradient(to bottom, rgba(5,20,10,.05) 0%, rgba(5,20,10,.75) 100%);
}

/* 3D Floating Orbs */
.floating-orbs-container {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
}
.parallax-wrap {
  position: absolute; z-index: 1; pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.orb-1 { top: 18%; left: 12%; width: 260px; }
.orb-2 { bottom: 15%; right: 18%; width: 240px; }
.orb-3 { top: 16%; right: 10%; width: 220px; }
.orb-4 { bottom: 18%; left: 16%; width: 230px; }

.floating-orb {
  width: 100%; height: auto;
  mix-blend-mode: screen;
  opacity: 0.95;
  filter: contrast(1.1);
  -webkit-mask-image: radial-gradient(circle at center, black 60%, transparent 71%);
  mask-image: radial-gradient(circle at center, black 60%, transparent 71%);
  animation: floatOrb 8s ease-in-out infinite alternate;
}
.orb-1 .floating-orb { animation-delay: 0s; }
.orb-2 .floating-orb { animation-delay: -2s; }
.orb-3 .floating-orb { animation-delay: -4s; }
.orb-4 .floating-orb { animation-delay: -6s; }

@keyframes floatOrb {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-25px) rotate(4deg); }
}

@media (max-width: 1024px) {
  .orb-1 { top: 10%; left: 2%; width: 180px; }
  .orb-2 { bottom: 10%; right: 5%; width: 160px; }
  .orb-3 { top: 12%; right: 2%; width: 150px; }
  .orb-4 { bottom: 12%; left: 5%; width: 170px; }
}

@media (max-width: 768px) {
  /* On mobile, we beautifully frame the content with all 4 orbs */
  .orb-1 { top: 12%; left: -5%; width: 140px; opacity: 0.85; }
  .orb-3 { top: 18%; right: -5%; width: 110px; opacity: 0.75; display: block; }
  .orb-4 { bottom: 35%; left: 0%; width: 120px; opacity: 0.75; display: block; }
  .orb-2 { bottom: 28%; right: -2%; width: 150px; opacity: 0.85; display: block; }
}
.hero-content {
  position: relative; z-index: 1;
  width: 100%;
  padding: 130px 24px 90px;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  text-align: center;
}

/* logo no hero — branco, tamanho generoso, SEM overflow:hidden no pai */
.hero-logo-box { margin-bottom: 4px; }
.hero-logo-img {
  height: 72px; width: auto; max-width: 280px;
  filter: brightness(0) invert(1);
  opacity: .95;
  display: block;
}
.hero-logo-text-only {
  font-family: var(--serif); font-size: 2.8rem; font-weight: 700;
  color: var(--white); letter-spacing: 4px;
}

/* hero tag pill */
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px;
  font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.90);
  backdrop-filter: blur(8px);
}
.hero-tag-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px rgba(69,123,157,.6);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.4} }

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 700; line-height: 1.15; color: var(--white);
}
.hero-title em { font-style: italic; color: var(--g5); }

.hero-sub {
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  color: rgba(255,255,255,.80); max-width: 580px;
}

/* hero buttons */
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn-hero-primary {
  display: inline-block; padding: 13px 28px;
  background: linear-gradient(135deg, var(--g3), var(--g4));
  color: var(--white); border-radius: 50px; font-weight: 700;
  font-size: .93rem; box-shadow: 0 6px 24px rgba(64,145,108,.35);
  transition: transform var(--tr), box-shadow var(--tr);
}
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(64,145,108,.45); }
.btn-hero-ghost {
  display: inline-block; padding: 13px 28px;
  border: 2px solid rgba(255,255,255,.55);
  color: var(--white); border-radius: 50px; font-weight: 600;
  font-size: .93rem;
  transition: background var(--tr), transform var(--tr);
}
.btn-hero-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }

/* hero trust bar */
.hero-trust {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  padding: 16px 28px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r); backdrop-filter: blur(10px);
  margin-top: 6px;
  box-shadow: 0 8px 32px rgba(10,31,22,.04);
}
.trust-item { text-align: center; }
.trust-item strong { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--white); }
.trust-item span   { font-size: .73rem; color: rgba(255,255,255,.65); }
.trust-sep { width: 1px; height: 36px; background: rgba(255,255,255,.2); }

/* scroll indicator */
.hero-scroll-btn { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 1; }
.scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,.45);
  border-radius: 12px; display: flex; justify-content: center; padding-top: 6px;
}
.scroll-wheel {
  width: 4px; height: 8px;
  background: rgba(255,255,255,.7); border-radius: 2px;
  animation: sw 2s ease-in-out infinite;
}
@keyframes sw { 0%{transform:translateY(0);opacity:1} 100%{transform:translateY(10px);opacity:0} }

/* =============================================
   SOBRE
   ============================================= */
.sobre { padding: 100px 0; background: var(--white); }
.sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }

.sobre-img-wrap { position: relative; }
.sobre-img-mask {
  border-radius: var(--rl);
  overflow: hidden;
  box-shadow: var(--shl);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.sobre-img {
  width: 100%; height: 440px; object-fit: cover; display: block;
  transition: transform .8s cubic-bezier(.16,1,.3,1);
}
.sobre-img-wrap:hover .sobre-img {
  transform: scale(1.06);
}
.sobre-badge {
  position: absolute; bottom: -24px; right: -24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 1);
  color: var(--dark);
  border-radius: 50%;
  width: 140px; height: 140px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  box-shadow: 0 16px 40px rgba(45,106,79,.12);
  transition: all .5s cubic-bezier(.34,1.56,.64,1);
  z-index: 2;
  cursor: default;
}
.sobre-badge:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 24px 48px rgba(45,106,79,.20);
  background: var(--white);
  border-color: var(--g5);
}
.sobre-badge-num { 
  display: block; 
  font-family: var(--serif); 
  font-size: 2rem; 
  font-weight: 800; 
  color: var(--g2); 
  line-height: 1.1; 
}
.sobre-badge-label { 
  font-size: .68rem; 
  font-weight: 700; 
  color: var(--body); 
  text-transform: uppercase; 
  letter-spacing: 0.5px; 
  margin-top: 4px; 
}

.sobre-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: var(--g7); border: 1px solid var(--border);
  border-radius: 50px; font-size: .8rem; font-weight: 500; color: var(--g1);
}
.pill svg { flex-shrink: 0; stroke: var(--g3); }

/* =============================================
   SERVIÇOS — CARDS
   ============================================= */
.servicos { padding: 100px 0; background: var(--offwh); border-top: 1px solid var(--blight); }

/* subtitle styled as elegant italic quote with decorative lines */
.servicos .section-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--g2);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  text-align: center;
  position: relative;
  padding: 0 32px;
}
.servicos .section-sub::before,
.servicos .section-sub::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 22px;
  height: 1px;
  background: var(--g4);
}
.servicos .section-sub::before { left: 0; }
.servicos .section-sub::after  { right: 0; }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
/* 4-card 2×2 layout variant */
.cards-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 28px; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--rl); padding: 0;
  overflow: hidden;
  transition: transform var(--tr), box-shadow var(--tr);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shl); }

/* coloured top bar */
.card-top { height: 5px; }
.card-top--cyan  { background: linear-gradient(90deg, #0ea5e9, #38bdf8); }
.card-top--amber { background: linear-gradient(90deg, var(--amber2), var(--amber)); }
.card-top--blue  { background: linear-gradient(90deg, #1d4ed8, var(--blue)); }
.card-top--teal  { background: linear-gradient(90deg, var(--g2), var(--teal)); }
.card-top--rose  { background: linear-gradient(90deg, #be123c, var(--rose)); }
.card-top--green { background: linear-gradient(90deg, var(--g1), var(--g3)); }

.card-body { padding: 24px 24px 20px; flex: 1; display: flex; flex-direction: column; }

/* — place icon-wrap, num, title etc. inside card-body in the HTML —
   (we style them here as if they're direct children of card for simplicity) */
.card-icon-wrap {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.card-icon-wrap svg { flex-shrink: 0; }
.card-iw--cyan  { background: #e0f2fe; }
.card-iw--amber { background: #fff7ed; }
.card-iw--blue  { background: #dbeafe; }
.card-iw--teal  { background: var(--g6); }
.card-iw--rose  { background: #fce7e7; }
.card-iw--green { background: var(--g7); }

.card-num  { font-size: .65rem; font-weight: 700; letter-spacing: 2px; color: var(--muted); margin-bottom: 8px; display: block; }
.card-title{ font-family: var(--serif); font-size: 1.12rem; font-weight: 700; color: var(--dark); margin-bottom: 3px; }
.card-sub  { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--g3); margin-bottom: 12px; }
.card-desc { font-size: .87rem; color: var(--body); line-height: 1.65; margin-bottom: 14px; }

.card-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.card-list li { font-size: .81rem; color: var(--muted); padding-left: 16px; position: relative; }
.card-list li::before { content:'✓'; position: absolute; left: 0; color: var(--g3); font-weight: 700; font-size: .78rem; }

.card-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .74rem; font-weight: 600;
  padding: 5px 12px; border-radius: 50px; margin-top: auto;
}
.card-badge--cyan  { background: #e0f2fe; color: #0369a1; }
.card-badge--amber { background: #fff7ed; color: #c2410c; }
.card-badge--blue  { background: #dbeafe; color: #1e40af; }
.card-badge--teal  { background: var(--g6); color: var(--g1); }
.card-badge--rose  { background: #fce7e7; color: #9f1239; }
.card-badge--green { background: var(--g7); color: var(--g1); }

/* Card inner spacing — all children except the top accent bar */
.card > *:not(.card-top) { margin-left: 24px; margin-right: 24px; }
.card > .card-icon-wrap  { margin-top: 22px; }
.card > .card-badge      { margin-bottom: 22px; }
.card > .card-list,
.card > .card-desc       { margin-right: 24px; }

/* "Saber Mais" CTA link inside cards and legacy items */
.card-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 700; color: var(--g3);
  margin-bottom: 22px; margin-top: 4px;
  border-bottom: 1.5px solid transparent;
  transition: color var(--tr), border-color var(--tr), gap var(--tr);
  text-decoration: none;
}
/* Always pin "Saber Mais" to the bottom of the card, regardless of list length */
.card > .card-cta { margin-top: auto; }
.card-cta:hover { color: var(--g2); border-color: var(--g4); gap: 10px; }
.card-cta svg { transition: transform var(--tr); }
.card-cta:hover svg { transform: translateX(3px); }

/* =============================================
   PROJETOS — CARROSSEL PREMIUM
   ============================================= */
.projetos { padding: 100px 0; background: var(--white); border-top: 1px solid var(--blight); }

.projetos .section-sub {
  font-family: var(--serif); font-style: italic;
  font-size: 1.1rem; color: var(--g2);
  max-width: 500px; margin: 0 auto;
  text-align: center; position: relative; padding: 0 32px;
}
.projetos .section-sub::before,
.projetos .section-sub::after {
  content: ''; position: absolute; top: 50%;
  width: 22px; height: 1px; background: var(--g4);
}
.projetos .section-sub::before { left: 0; }
.projetos .section-sub::after  { right: 0; }

/* CAROUSEL WRAPPER */
.carousel {
  position: relative;
  margin-top: 52px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* CAROUSEL UNIFIED CARD */
.car-content {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(45,106,79,.10);
  border: 1px solid var(--blight);
}

/* TRACK */
.carousel-track-wrap {
  position: relative;
  background: var(--g6);
  aspect-ratio: 2.2 / 1;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform .5s ease-in-out;
  touch-action: pan-y;
}
.carousel-slide {
  min-width: 100%; height: 100%;
  flex-shrink: 0;
}
.carousel-slide img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* ARROWS (OUTSIDE MINIMAL) */
.car-arrow {
  position: absolute; top: calc(50% - 40px); /* slightly above center to match image */
  transform: translateY(-50%);
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--dark);
  transition: transform var(--tr), color var(--tr);
  z-index: 10;
}
.car-arrow:hover {
  color: var(--g2);
  transform: translateY(-50%) scale(1.15);
}
.car-arrow--prev { left: -50px; }
.car-arrow--next { right: -50px; }

/* CAPTION (CENTERED) */
.car-caption {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 24px;
  background: var(--white);
  text-align: center;
}
.car-cap-tag {
  font-size: .7rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--g2);
}
.car-cap-title {
  font-family: var(--sans); font-weight: 500;
  font-size: 1rem; color: var(--dark);
}

/* DOTS */
.car-dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 24px;
}
.car-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); border: none; cursor: pointer; padding: 0;
  transition: background var(--tr), transform var(--tr), width var(--tr);
}
.car-dot.active {
  background: var(--g3);
  width: 24px; border-radius: 4px;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .carousel { max-width: 90%; }
  .car-arrow--prev { left: -30px; }
  .car-arrow--next { right: -30px; }
}
@media (max-width: 768px) {
  .car-arrow { display: none; } /* Hide outer arrows on very small screens, use swipe or dots */
  .carousel-track-wrap { aspect-ratio: 16/9; }
  .car-caption { padding: 18px; }
}

/* GRID: 1 grande esquerda + coluna 3 pequenos direita */
.proj-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  margin-top: 52px;
  align-items: stretch;
}

/* coluna dos 3 pequenos */
.proj-col {
  display: flex; flex-direction: column; gap: 18px;
}

/* CARD BASE */
.proj-card {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(45,106,79,.08);
  border: 1px solid var(--blight);
  display: flex; flex-direction: column;
  transition: transform var(--tr), box-shadow var(--tr);
  cursor: pointer;
}
.proj-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(45,106,79,.18);
}

/* imagem com overlay */
.proj-img-wrap {
  position: relative;
  overflow: hidden;
  flex: 1;
}
.proj-card--main .proj-img-wrap { height: 520px; }
.proj-col .proj-card .proj-img-wrap { height: 152px; }

.proj-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .5s ease, filter .4s ease;
}
.proj-card:hover .proj-img-wrap img {
  transform: scale(1.06);
  filter: brightness(1.08) saturate(1.15);
}

/* overlay verde com ícone ↗ */
.proj-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(26,71,49,.55) 0%,
    rgba(26,71,49,.05) 50%,
    transparent 100%
  );
  display: flex; align-items: flex-start; justify-content: flex-end;
  padding: 14px;
  opacity: 0;
  transition: opacity .35s ease;
}
.proj-card:hover .proj-overlay { opacity: 1; }

.proj-icon {
  width: 36px; height: 36px;
  background: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--g2);
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  transition: transform .3s ease;
}
.proj-card:hover .proj-icon { transform: scale(1.1); }

/* caption rodapé */
.proj-caption {
  padding: 14px 18px;
  background: var(--white);
  border-top: 1px solid var(--blight);
  flex-shrink: 0;
}
.proj-cap-inner { display: flex; flex-direction: column; gap: 4px; }
.proj-tag {
  font-size: .68rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--g3);
}
.proj-caption strong {
  font-family: var(--sans); font-weight: 600;
  font-size: .88rem; color: #2c3e2d; line-height: 1.4;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .proj-grid { grid-template-columns: 1fr; }
  .proj-card--main .proj-img-wrap { height: 280px; }
  .proj-col .proj-card .proj-img-wrap { height: 180px; }
}

/* =============================================
   LEGACY (Serviços)
   ============================================= */
.legacy {
  padding: 100px 0;
  background: var(--offwh); /* Matches 'O Que Fazemos' section */
  border-top: 1px solid var(--blight);
}

.legacy-header { margin-bottom: 60px; }
.legacy .section-title { 
  font-weight: 800; /* Bolder as requested */
  font-size: 2.6rem; 
  color: var(--dark); 
  margin-top: 12px;
}

.legacy-grid { 
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; 
}

.legacy-item {
  position: relative;
  display: flex; flex-direction: column;
  padding: 48px 32px 40px; /* Mais padding (respira melhor) */
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.04); /* Borda muito subtil */
  border-radius: var(--rl); text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03); /* Sombra elegante por defeito */
  transition: all .4s cubic-bezier(.16,1,.3,1);
  overflow: hidden;
  cursor: pointer;
}
/* Frosted glass overlay effect on hover */
.legacy-item::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(145deg, rgba(255,255,255,0.4) 0%, rgba(216,243,220,0.2) 100%);
  opacity: 0; transition: opacity .4s ease;
  pointer-events: none;
}
.legacy-item:hover {
  border-color: rgba(45,106,79,0.15); /* Brilho suave da borda principal */
  box-shadow: 0 20px 40px rgba(26,71,49,0.08), 0 0 0 1px var(--g4); /* Sombra mais difusa e profunda ao levantar */
  transform: translateY(-4px);
}
.legacy-item:hover::before { opacity: 1; }

.legacy-icon  {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  margin: 0 auto 24px;
  transition: all .5s cubic-bezier(.34,1.56,.64,1);
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.4);
}
.legacy-icon svg { 
  transition: transform .5s cubic-bezier(.34,1.56,.64,1);
  stroke-width: 2.2; /* Cor mais forte para melhor contraste */
}

/* Icon Animations on Hover */
.legacy-item:hover .legacy-icon,
.legacy-item.active .legacy-icon {
  transform: translateY(-4px) scale(1.05);
}
.legacy-item:hover .legacy-icon svg,
.legacy-item.active .legacy-icon svg {
  transform: scale(1.1) rotate(6deg);
}

.legacy-item h4 { 
  font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 12px; 
  position: relative; z-index: 2;
}
.legacy-item p { 
  font-size: .86rem; color: var(--body); line-height: 1.6; 
  position: relative; z-index: 2; transition: color .4s ease;
}
.legacy-item:hover p {
  color: var(--g1); /* Subtle darkening/richer contrast on hover */
}

/* Vetores Inside Legacy Item */
.legacy-vetores {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 24px; text-align: left;
}
.vetor {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px; 
  background: #f8fafc; /* Subtil off-white para destacar do fundo pai */
  border: 1px solid rgba(0,0,0,0.03);
  border-radius: var(--r);
  transition: all .3s ease;
  position: relative; z-index: 2;
}
.vetor:hover { 
  border-color: rgba(45,106,79,0.2); 
  background: var(--white); 
  box-shadow: 0 6px 16px rgba(0,0,0,.04); 
  transform: translateY(-2px);
}
.vetor-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,.04);
  transition: transform .3s ease;
}
.vetor:hover .vetor-icon { transform: scale(1.08) rotate(5deg); }
.vetor-icon svg { stroke: var(--g2); stroke-width: 2.2; width: 16px; height: 16px; }
.vetor-content h5 { font-family: var(--sans); font-size: .85rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.vetor-content p { font-size: .8rem !important; line-height: 1.5; color: var(--muted); margin: 0; }


/* Card-specific Colors for a vibrant look */
#leg-esg-mob {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
  text-align: left;
  gap: 0; padding: 0;
}
#leg-esg-mob .leg-esg-content { 
  flex: 1.1; padding: 48px 48px 40px; 
  display: flex; flex-direction: column; justify-content: center;
}
#leg-esg-mob .legacy-icon { margin: 0 0 24px 0; }
#leg-esg-mob .legacy-item p { text-align: left; }
#leg-esg-mob .legacy-arrow { margin-top: 32px; padding-top: 0; }

.leg-media {
  position: relative;
  overflow: hidden;
  flex: 0.9;
}
.leg-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.16,1,.3,1);
}
.leg-media-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--white) 0%, transparent 15%);
  pointer-events: none;
}
.legacy-item:hover .leg-media img { transform: scale(1.05); }

/* Small cards with top image */
.leg-small { padding: 0; flex-direction: column; }
.leg-small .leg-media--small { height: 220px; width: 100%; flex: none; border-bottom: 1px solid rgba(0,0,0,0.03); }
.leg-small .leg-media--small .leg-media-overlay {
  background: linear-gradient(to top, var(--white) 0%, transparent 20%);
}
.leg-small-content {
  padding: 32px 32px 40px;
  display: flex; flex-direction: column; flex: 1; align-items: center; text-align: center;
}

#leg-esg-mob:hover { border-color: rgba(45,106,79,0.25); box-shadow: 0 20px 40px rgba(45,106,79,.08); transform: translateY(-4px); }
#leg-esg-mob .legacy-icon { background: linear-gradient(135deg, rgba(45,106,79,0.1) 0%, rgba(45,106,79,0.02) 100%); box-shadow: inset 0 2px 4px rgba(255,255,255,0.8), 0 4px 12px rgba(45,106,79,0.1); }
#leg-esg-mob .legacy-icon svg { stroke: #21543b; }

#leg-procurement.active,
#leg-procurement:hover { border-color: rgba(14,165,233,0.3); box-shadow: 0 20px 40px rgba(14,165,233,.12); transform: translateY(-4px); }
#leg-procurement .legacy-icon { background: linear-gradient(135deg, rgba(14,165,233,0.1) 0%, rgba(14,165,233,0.02) 100%); box-shadow: inset 0 2px 4px rgba(255,255,255,0.8), 0 4px 12px rgba(14,165,233,0.1); }
#leg-procurement .legacy-icon svg { stroke: #0284c7; }

#leg-decisao:hover { border-color: rgba(79,70,229,0.3); box-shadow: 0 20px 40px rgba(79,70,229,.12); transform: translateY(-4px); }
#leg-decisao .legacy-icon { background: linear-gradient(135deg, rgba(79,70,229,0.1) 0%, rgba(79,70,229,0.02) 100%); box-shadow: inset 0 2px 4px rgba(255,255,255,0.8), 0 4px 12px rgba(79,70,229,0.1); }
#leg-decisao .legacy-icon svg { stroke: #4338ca; }

/* Ver mais arrow */
.legacy-arrow {
  margin-top: auto;
  padding-top: 20px;
  color: #cba365; /* Pale gold */
  opacity: 0;
  transform: translateY(12px);
  transition: all .4s cubic-bezier(.16,1,.3,1);
  position: relative; z-index: 2;
}
.legacy-item:hover .legacy-arrow,
.legacy-item.active .legacy-arrow {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   CONTACTO
   ============================================= */
.contacto { padding: 100px 0; background: var(--white); }
.contacto-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: start; }

.info-list { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.info-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r);
  transition: border-color var(--tr), box-shadow var(--tr);
}
.info-item:hover { border-color: var(--g4); box-shadow: var(--sh); }
.info-icon { font-size: 1.3rem; flex-shrink: 0; }
.info-item strong { display: block; font-size: .76rem; font-weight: 700; color: var(--dark); }
.info-item span   { font-size: .88rem; color: var(--body); }

.contacto-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .8rem; font-weight: 600; color: var(--dark); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 14px;
  color: var(--dark); font-family: var(--sans); font-size: .9rem; outline: none;
  transition: border-color var(--tr), box-shadow var(--tr);
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--g3); box-shadow: 0 0 0 3px rgba(64,145,108,.12); }
.form-group textarea { resize: vertical; min-height: 110px; }
::placeholder { color: var(--muted); opacity: .6; }
.form-success { font-size: .88rem; color: var(--g2); text-align: center; margin-top: 4px; font-weight: 600; }

/* =============================================
   SECTION BACKGROUND ALTERNATION
   Hero(img) → Sobre(white) → Serviços(white) → Parceiros(white)
   → Projetos(green) → Legacy(white) → Contacto(green) → Footer(white)
   ============================================= */
.projetos  { background: var(--g7); }
.legacy    { background: var(--white); }
.contacto  { background: var(--g7); }
.footer    { background: var(--white) !important; border-top: 1px solid var(--blight); }
.footer-bottom { background: var(--white) !important; border-top: 1px solid var(--blight); }

/* ensure cards on green sections keep white background */
.projetos .carousel,
.contacto .form-wrap { background: transparent; }

/* =============================================
   FOOTER
   ============================================= */
.footer { 
  background: var(--white); 
  padding: 60px 0 0; 
  border-top: 1px solid var(--border); 
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 48px;
}
.footer-logo { height: 40px; width: auto; margin-bottom: 12px; }
.footer-brand p    { font-size: .82rem; color: var(--body); margin-top: 4px; }
.footer-brand .footer-sub { color: var(--muted); font-size: .76rem; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h5 {
  font-size: .7rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--g3); margin-bottom: 8px;
}
.footer-col a { font-size: .84rem; color: var(--body); transition: color var(--tr); }
.footer-col a:hover { color: var(--g2); }
.footer-bottom { border-top: 1px solid var(--blight); padding: 18px 0; background: var(--offwh); }
.footer-bottom p { font-size: .77rem; color: var(--muted); text-align: center; }

/* =============================================
   PARCEIROS TICKER
   ============================================= */
.parceiros {
  background: var(--white);
  border-top: 1px solid var(--blight);
  border-bottom: 1px solid var(--blight);
  overflow: hidden;
}
.parceiros-inner {
  display: flex;
  align-items: center;
  min-height: 96px;
}
.parceiros-label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 0 32px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--g2);
  white-space: nowrap;
  border-right: 1px solid var(--border);
}
.parceiros-label-dot {
  width: 7px; height: 7px;
  background: var(--g3);
  border-radius: 50%;
  animation: parceiro-pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes parceiro-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.4); }
}
.parceiros-track-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.parceiros-fade {
  position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.parceiros-fade--left  { left:  0; background: linear-gradient(to right, var(--white), transparent); }
.parceiros-fade--right { right: 0; background: linear-gradient(to left,  var(--white), transparent); }
.parceiros-track {
  display: flex;
  align-items: center;
  animation: parceiro-scroll 30s linear infinite;
  width: max-content;
  will-change: transform;
}
.parceiros-track-wrap:hover .parceiros-track { animation-play-state: paused; }
@keyframes parceiro-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.parceiro-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 40px;
  border-right: 1px solid var(--border);
  cursor: default;
  transition: opacity .2s;
}
.parceiro-item:hover { opacity: .65; }
.parceiro-logo-wrap {
  width: auto;
  min-width: 44px;
  max-width: 120px;
  height: 48px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  overflow: visible;
}
.parceiro-logo-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity .2s;
}

/* filter utilities for white logos on light bg */
img.filter-invert { filter: invert(1); }
img.filter-invert-hue { filter: invert(1) hue-rotate(180deg); }
.parceiro-logo-fallback {
  display: none;
  width: 100%; height: 100%;
  align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700;
  color: var(--g2);
}
.parceiro-name {
  font-size: .92rem;
  font-weight: 600;
  color: var(--body);
  white-space: nowrap;
  letter-spacing: .2px;
}
@media (max-width: 768px) {
  .parceiros-inner {
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    padding: 16px 0;
    gap: 12px;
  }
  .parceiros-label {
    padding: 0 20px;
    font-size: .62rem;
    gap: 8px;
    border-right: none;
    align-self: flex-start;
  }
  .parceiros-track-wrap { width: 100%; }
  .parceiros-fade { width: 32px; }
  .parceiro-item { padding: 0 20px; gap: 10px; }
  .parceiro-logo-wrap { max-width: 80px; height: 36px; }
  .parceiro-name { font-size: .8rem; }
}

/* =============================================
   REVEAL — directional scroll animations (all devices)
   ============================================= */
.reveal {
  opacity: 0;
  transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
}
.reveal--up    { transform: translateY(36px); }
.reveal--left  { transform: translateX(-40px); }
.reveal--right { transform: translateX(40px); }
.reveal.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* touch bounce feedback */
.card.touch-active {
  transform: scale(0.97) translateY(2px);
  box-shadow: 0 2px 12px rgba(45,106,79,.12);
  transition: transform .12s ease, box-shadow .12s ease;
}
.legacy-item.touch-active {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 14px 36px rgba(26,71,49,.14);
  transition: transform .15s ease, box-shadow .15s ease;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .cards-grid   { grid-template-columns: repeat(2,1fr); }
  .cards-grid--4 { grid-template-columns: repeat(2,1fr); }
  .legacy-grid  { grid-template-columns: repeat(2,1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
/* =============================================
   MOBILE DRAWER (separate element)
   ============================================= */
.nav-drawer-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 998;
  background: rgba(10, 28, 18, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.nav-drawer-backdrop.open { display: block; }

.mobile-drawer {
  display: none; /* hidden on desktop */
}

@media (max-width: 768px) {
  /* Restore plain nav on mobile — hidden, hamburger shows */
  .nav-links {
    display: none;
  }
  .hamburger { display: flex; }

  /* MOBILE DRAWER */
  .mobile-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(300px, 85vw);
    z-index: 999;
    background: linear-gradient(160deg, #fff 0%, #f0faf3 100%);
    border-left: 1px solid rgba(200, 230, 208, 0.7);
    box-shadow: -8px 0 48px rgba(26, 71, 49, 0.20);
    transform: translateX(105%);
    transition: transform .38s cubic-bezier(.32, 0, .15, 1);
    will-change: transform;
  }
  .mobile-drawer.open {
    transform: translateX(0);
  }

  /* header */
  .mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--blight);
    flex-shrink: 0;
  }
  .mobile-drawer-brand {
    display: flex; align-items: center; gap: 10px;
  }
  .mobile-drawer-logo { height: 30px; width: auto; }
  .mobile-drawer-logo-text {
    font-family: var(--serif); font-size: 1.1rem;
    font-weight: 700; color: var(--g1);
  }
  .mobile-drawer-close {
    width: 36px; height: 36px;
    background: var(--g7);
    border: 1px solid var(--blight);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--dark);
    transition: background .2s, transform .3s;
  }
  .mobile-drawer-close:active { background: var(--g6); transform: rotate(90deg); }

  /* body */
  .mobile-drawer-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 14px 12px;
    gap: 4px;
    overflow-y: auto;
  }
  .mobile-drawer-label {
    font-size: .62rem; font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--muted); padding: 8px 8px 10px;
  }
  .mobile-drawer-link {
    display: flex; align-items: center; gap: 14px;
    padding: 13px 12px;
    border-radius: 12px;
    font-size: 1rem; font-weight: 600; color: var(--dark);
    text-decoration: none;
    transition: background .2s, transform .2s;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-drawer-link:active {
    background: var(--g7);
    transform: translateX(4px);
  }
  .mobile-drawer-icon {
    width: 38px; height: 38px; flex-shrink: 0;
    background: var(--g6);
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    color: var(--g2);
  }
  .mobile-drawer-icon svg { stroke: var(--g2); }

  /* footer */
  .mobile-drawer-footer {
    padding: 14px 20px 28px;
    border-top: 1px solid var(--blight);
    flex-shrink: 0;
  }

  /* layout adjustments */
  .hero-trust {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px 10px;
    width: 100%; padding: 24px 16px; justify-items: center;
  }
  .hero-trust .trust-sep { display: none; }
  .hero-trust .trust-item:last-child { grid-column: 1 / -1; }

  .sobre-grid, .contacto-grid { grid-template-columns: 1fr; gap: 48px; }
  .sobre-img-col { order: -1; }
  .sobre-badge { bottom: -14px; right: 14px; }
  .cards-grid, .cards-grid--4 { grid-template-columns: 1fr; }
  .legacy-grid { grid-template-columns: 1fr; }
  
  #leg-esg-mob {
    flex-direction: column-reverse; /* Put image on top on mobile */
    align-items: stretch;
    gap: 0;
  }
  #leg-esg-mob .leg-media { height: 260px; flex: none; }
  #leg-esg-mob .leg-media-overlay { background: linear-gradient(to top, var(--white) 0%, transparent 20%); }
  #leg-esg-mob .leg-esg-content { padding: 32px 24px 40px; }
  #leg-esg-mob .legacy-icon { margin: 0 auto 24px; }
  #leg-esg-mob .legacy-arrow { margin-top: 24px; }
  
  .gallery { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; padding-bottom: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-content { padding-top: 110px; }
  .trust-sep { display: none; }
  .hero-trust { gap: 18px; }
}

@media (max-width: 480px) {
  .legacy-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2.5rem; }
  .hero-content p { font-size: 1rem; }
  .hero-scroll-btn { display: none; }
  .sobre-grid { grid-template-columns: 1fr; gap: 40px; }
  .sobre-img { height: 300px; }
  .sobre-badge { right: 12px; bottom: -20px; width: 120px; height: 120px; }
  .sobre-badge-num { font-size: 1.6rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
}

/* =============================================
   MOBILE SCROLL ANIMATIONS
   — reveal works on all devices via IntersectionObserver
   — extra: card tap pulse on touch
   ============================================= */
@media (hover: none) {
  /* On touch devices, show a subtle press effect instead of hover */
  .card:active {
    transform: scale(0.98);
    box-shadow: 0 2px 12px rgba(45,106,79,.15);
    transition: transform .12s ease, box-shadow .12s ease;
  }
  .legacy-item:active {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(26,71,49,.12);
  }
  .btn-primary:active,
  .btn-hero-primary:active {
    transform: scale(0.97);
    transition: transform .1s ease;
  }
}

/* =============================================
   SUBPAGES — Premium UI/UX v2
   ============================================= */

/* ---- ANIMATED DOT-GRID HERO BACKGROUND ---- */
@keyframes dotGridMove {
  0%   { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}
@keyframes heroShimmer {
  0%, 100% { opacity: .6; }
  50%       { opacity: 1; }
}
@keyframes floatUI {
  0%   { transform: translateY(0px) rotate(-1deg); }
  100% { transform: translateY(-18px) rotate(1deg); }
}
@keyframes pulseRing {
  0%   { transform: scale(1);   opacity: .7; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes stepLineGrow {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes timelineIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- SUBPAGE HERO ---- */
.sp-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 100px;
  background: #050f1a;
}
/* Animated dot-grid */
.sp-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(69,123,157,.35) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: dotGridMove 8s linear infinite;
  pointer-events: none;
}
/* Fade to white at bottom */
.sp-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 100px;
  background: linear-gradient(to bottom, transparent, var(--white));
  pointer-events: none; z-index: 2;
}
.sp-hero-radial {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(69,123,157,.18) 0%, transparent 65%),
              radial-gradient(ellipse at 80% 20%, rgba(64,145,108,.12) 0%, transparent 55%);
  pointer-events: none;
}

/* Asymmetric two-column layout */
.sp-hero-inner {
  position: relative; z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.sp-hero-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.55);
  text-decoration: none; margin-bottom: 24px;
  transition: color var(--tr);
}
.sp-hero-back:hover { color: rgba(255,255,255,.9); }
.sp-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 50px;
  background: rgba(69,123,157,.15); border: 1px solid rgba(69,123,157,.35);
  font-size: .73rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: #7eb8d4;
  margin-bottom: 20px;
}
.sp-hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #7eb8d4;
  animation: blink 2s ease-in-out infinite;
}
.sp-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700; color: var(--white);
  line-height: 1.15; margin-bottom: 20px;
}
.sp-hero h1 em { font-style: italic; color: var(--g5); }
.sp-hero-desc {
  font-size: 1.05rem; color: rgba(255,255,255,.72);
  max-width: 500px; line-height: 1.78; margin-bottom: 32px;
}
.sp-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Tech-badge tags row */
.sp-hero-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.tech-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 4px;
  background: rgba(10,20,15,.6); border: 1px solid rgba(64,145,108,.4);
  font-size: .7rem; font-weight: 700; letter-spacing: 1px;
  color: #4de090; font-family: var(--sans);
  backdrop-filter: blur(4px);
}
.tech-tag--blue  { color: #60b4e0; border-color: rgba(69,123,157,.5); }
.tech-tag--amber { color: #f4c36a; border-color: rgba(244,162,97,.4); }
.tech-tag--violet{ color: #b09eff; border-color: rgba(139,92,246,.4); }

/* Floating UI widget (right side of hero) */
.sp-hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.sp-hero-dashboard {
  position: relative;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  padding: 28px;
  backdrop-filter: blur(12px);
  animation: floatUI 6s ease-in-out infinite alternate;
  width: 100%;
  max-width: 400px;
}
.sp-dash-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sp-dash-dot { width: 10px; height: 10px; border-radius: 50%; }
.sp-dash-dot:nth-child(1) { background: #ff5f57; }
.sp-dash-dot:nth-child(2) { background: #febc2e; }
.sp-dash-dot:nth-child(3) { background: #28c840; }
.sp-dash-title {
  margin-left: 6px; font-size: .72rem; font-weight: 600;
  color: rgba(255,255,255,.45); letter-spacing: 1px;
}
.sp-dash-metric {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06);
}
.sp-dash-metric:last-child { border-bottom: none; padding-bottom: 0; }
.sp-dash-label { font-size: .8rem; color: rgba(255,255,255,.5); }
.sp-dash-value {
  font-family: var(--serif); font-size: 1.1rem;
  font-weight: 700; color: var(--white);
}
.sp-dash-value span { font-size: .72rem; color: #4de090; margin-left: 4px; }
.sp-dash-bar-wrap {
  margin-top: 18px; display: flex; flex-direction: column; gap: 10px;
}
.sp-dash-bar-row { display: flex; flex-direction: column; gap: 5px; }
.sp-dash-bar-label {
  font-size: .68rem; color: rgba(255,255,255,.45);
  display: flex; justify-content: space-between;
}
.sp-dash-bar {
  height: 5px; border-radius: 3px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.sp-dash-bar-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--g3), var(--g4));
}
/* Glow orb behind dashboard */
.sp-dash-glow {
  position: absolute;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(69,123,157,.2) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none; z-index: -1;
  animation: heroShimmer 4s ease-in-out infinite;
}

/* Stat strip */
.sp-hero-stats {
  display: flex; gap: 32px; margin-top: 36px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sp-stat strong {
  display: block; font-family: var(--serif); font-size: 1.9rem;
  font-weight: 700; color: var(--white); line-height: 1;
}
.sp-stat span { font-size: .74rem; color: rgba(255,255,255,.5); margin-top: 4px; display: block; }

/* ---- SECTION WRAPPERS ---- */
.sp-section        { padding: 100px 0; }
.sp-section--alt   { background: var(--offwh); border-top: 1px solid var(--blight); border-bottom: 1px solid var(--blight); }
.sp-section--dark  { background: #050f1a; }
.sp-section-head   { margin-bottom: 60px; }
.sp-section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700; color: var(--dark); margin-top: 10px; line-height: 1.2;
}
.sp-section-head h2 span { color: var(--g3); }
.sp-section-head p  { font-size: 1rem; color: var(--body); max-width: 580px; margin-top: 14px; line-height: 1.78; }

/* ---- BENTO GRID ---- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: auto;
  gap: 20px;
}
.bento-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  position: relative; overflow: hidden;
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s cubic-bezier(.16,1,.3,1);
  cursor: default;
}
.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 52px rgba(45,106,79,.14);
}
/* column spans */
.bento-card--full   { grid-column: span 6; }
.bento-card--wide   { grid-column: span 4; }
.bento-card--medium { grid-column: span 3; }
.bento-card--narrow { grid-column: span 2; }
/* Accent top bar */
.bento-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--g3), var(--g4));
  border-radius: 20px 20px 0 0;
}
.bento-card--blue::before   { background: linear-gradient(90deg, #1d4ed8, #457b9d); }
.bento-card--amber::before  { background: linear-gradient(90deg, var(--amber2), var(--amber)); }
.bento-card--violet::before { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.bento-card--teal::before   { background: linear-gradient(90deg, var(--g1), var(--teal)); }

/* Glass overlay on hover */
.bento-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,.3) 0%, transparent 100%);
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
  border-radius: 20px;
}
.bento-card:hover::after { opacity: 1; }

.bento-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.bento-icon--green  { background: var(--g7); }
.bento-icon--blue   { background: #dbeafe; }
.bento-icon--amber  { background: #fff7ed; }
.bento-icon--violet { background: #ede9fe; }
.bento-icon svg { stroke-width: 2; }
.bento-icon--green  svg { stroke: var(--g2); }
.bento-icon--blue   svg { stroke: #1d4ed8; }
.bento-icon--amber  svg { stroke: #c2410c; }
.bento-icon--violet svg { stroke: #7c3aed; }

/* Tech badge inside bento */
.bento-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 4px; margin-bottom: 12px;
  background: rgba(10,20,15,.07); border: 1px solid rgba(64,145,108,.3);
  font-size: .66rem; font-weight: 700; letter-spacing: 1px;
  color: var(--g2); text-transform: uppercase;
}
.bento-badge--blue   { background: rgba(29,78,216,.07); border-color: rgba(29,78,216,.25); color: #1d4ed8; }
.bento-badge--amber  { background: rgba(194,65,12,.06);  border-color: rgba(194,65,12,.25);  color: #c2410c; }
.bento-badge--violet { background: rgba(124,58,237,.07); border-color: rgba(124,58,237,.25); color: #7c3aed; }

.bento-card h3 {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 700;
  color: var(--dark); margin-bottom: 10px;
}
.bento-card p  { font-size: .88rem; color: var(--body); line-height: 1.72; }
.bento-card ul { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.bento-card ul li {
  font-size: .83rem; color: var(--muted);
  padding-left: 16px; position: relative;
}
.bento-card ul li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--g3); font-weight: 700;
}
/* Large stat inside a bento card */
.bento-stat-num {
  font-family: var(--serif); font-size: 3rem; font-weight: 800;
  color: var(--dark); line-height: 1; margin: 12px 0 4px;
}
.bento-stat-label { font-size: .8rem; color: var(--muted); }

/* Glassmorphism highlight box inside bento */
.bento-glass {
  margin-top: 20px; padding: 16px 18px;
  background: rgba(64,145,108,.08);
  border: 1px solid rgba(64,145,108,.2);
  border-radius: 12px;
  backdrop-filter: blur(4px);
}
.bento-glass p {
  font-size: .8rem !important; color: var(--g1) !important; line-height: 1.6;
}

/* ---- HORIZONTAL TIMELINE ---- */
.sp-timeline { position: relative; padding: 10px 0 0; }
/* Horizontal connector line */
.sp-timeline-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.sp-timeline-track::before {
  content: '';
  position: absolute;
  top: 28px; left: calc(12.5%);
  width: calc(75%);
  height: 2px;
  background: var(--blight);
  z-index: 0;
}
.sp-timeline-step {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 16px;
  cursor: default;
  z-index: 1;
}
.sp-timeline-step:hover .sp-step-num { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(64,145,108,.2); }
.sp-timeline-step:hover .sp-step-connector { background: linear-gradient(90deg, var(--g3), var(--g4)); }

/* Circle number */
.sp-step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--g2), var(--g3));
  color: var(--white); font-family: var(--serif);
  font-size: 1.3rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
  box-shadow: 0 4px 16px rgba(64,145,108,.3);
}
/* Pulse ring on step number */
.sp-step-num::after {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(64,145,108,.3);
  opacity: 0;
  transition: opacity .3s ease;
}
.sp-timeline-step:hover .sp-step-num::after { opacity: 1; }

.sp-step-body {
  margin-top: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 22px 20px;
  text-align: center;
  transition: box-shadow .3s ease, border-color .3s ease;
  width: 100%;
  flex: 1;
}
.sp-timeline-step:hover .sp-step-body {
  border-color: var(--g4);
  box-shadow: var(--shl);
}
.sp-step-body h3 {
  font-family: var(--serif); font-size: 1rem; font-weight: 700;
  color: var(--dark); margin-bottom: 8px;
}
.sp-step-body p { font-size: .83rem; color: var(--body); line-height: 1.65; }

/* ---- PREMIUM CTA BANNER ---- */
.sp-cta-wrap { padding: 100px 0; position: relative; overflow: hidden; }
.sp-cta-mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 0% 50%,   rgba(64,145,108,.35) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 20%,  rgba(69,123,157,.3)  0%, transparent 50%),
    radial-gradient(ellipse at 60% 100%,  rgba(244,162,97,.2)  0%, transparent 50%),
    linear-gradient(135deg, #030d07 0%, #081525 50%, #030d07 100%);
  pointer-events: none;
}
.sp-cta-mesh::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
/* Geometric SVG accents */
.sp-cta-geo {
  position: absolute; opacity: .12; pointer-events: none;
}
.sp-cta-geo--tl { top: -60px; left: -60px; width: 300px; height: 300px;
  border: 2px solid var(--g4); border-radius: 50%; }
.sp-cta-geo--br { bottom: -80px; right: -80px; width: 360px; height: 360px;
  border: 2px solid #457b9d; border-radius: 50%; }
.sp-cta-geo--tr { top: 20px; right: 100px; width: 80px; height: 80px;
  border: 1.5px solid var(--g4); transform: rotate(45deg); }

.sp-cta-inner {
  position: relative; z-index: 2;
  text-align: center; padding: 72px 48px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 28px;
  backdrop-filter: blur(8px);
}
.sp-cta-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--g5); margin-bottom: 18px;
}
.sp-cta-inner h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; color: var(--white);
  line-height: 1.2; margin-bottom: 16px;
}
.sp-cta-inner h2 em { font-style: italic; color: var(--g5); }
.sp-cta-inner p {
  font-size: 1.05rem; color: rgba(255,255,255,.7);
  max-width: 520px; margin: 0 auto 36px; line-height: 1.75;
}
.sp-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Glassmorphism inline highlight box */
.glass-box {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 20px 24px;
  backdrop-filter: blur(8px);
  margin-top: 16px;
}
.glass-box p { font-size: .85rem !important; color: rgba(255,255,255,.65) !important; line-height: 1.65; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .bento-card--wide   { grid-column: span 6; }
  .bento-card--medium { grid-column: span 3; }
  .bento-card--narrow { grid-column: span 3; }
}
@media (max-width: 768px) {
  .sp-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .sp-hero-visual { display: none; }
  .sp-hero { padding: 120px 0 80px; }
  .sp-hero-stats { gap: 20px; flex-wrap: wrap; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card--full, .bento-card--wide, .bento-card--medium, .bento-card--narrow { grid-column: span 1; }
  .sp-timeline-track { grid-template-columns: 1fr; gap: 20px; }
  .sp-timeline-track::before { display: none; }
  .sp-cta-inner { padding: 48px 24px; }
  .sp-cta-geo { display: none; }
}

/* =============================================
   ENGENHARIA — Hero Blueprint + Z-Pattern
   ============================================= */

/* ---- BLUEPRINT HERO ---- */
@keyframes blueprintPan {
  0%   { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}
@keyframes engGlow {
  0%, 100% { opacity: .5; transform: translate(-50%,-50%) scale(1); }
  50%       { opacity: .8; transform: translate(-50%,-50%) scale(1.15); }
}

.eng-hero {
  position: relative; overflow: hidden;
  padding: 150px 0 110px;
  background: #060b14;
  min-height: 820px;
  display: flex; align-items: center;
}
/* Blueprint crosshatch grid */
.eng-hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(69,123,157,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69,123,157,.12) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: blueprintPan 12s linear infinite;
}
/* Secondary fine grid overlay */
.eng-hero-grid::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(69,123,157,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69,123,157,.05) 1px, transparent 1px);
  background-size: 15px 15px;
}
/* Fade to white at bottom */
.eng-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(to bottom, transparent, var(--white));
  pointer-events: none; z-index: 2;
}
.eng-hero-radial {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 25% 60%, rgba(69,123,157,.2) 0%, transparent 60%),
    radial-gradient(ellipse at 75% 20%, rgba(64,145,108,.14) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(244,162,97,.08) 0%, transparent 40%);
}

/* Two-column asymmetric */
.eng-hero-inner {
  position: relative; z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.eng-hero-text { /* inherits sp-hero-text styles via reused classes */ }
.eng-hero-h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700; color: var(--white);
  line-height: 1.15; margin-bottom: 20px;
}
.eng-hero-h1 em { font-style: italic; color: #7eb8d4; }
/* Blueprint card widget */
.eng-hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.eng-hero-glow {
  position: absolute;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(69,123,157,.18) 0%, transparent 70%);
  top: 50%; left: 50%;
  animation: engGlow 5s ease-in-out infinite;
  pointer-events: none; z-index: -1;
}
.eng-blueprint-card {
  width: 100%; max-width: 420px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(69,123,157,.3);
  border-radius: 22px; padding: 26px;
  backdrop-filter: blur(14px);
  animation: floatUI 7s ease-in-out infinite alternate;
}

/* Blueprint SVG area */
.eng-blueprint-svg-wrap {
  margin: 16px 0;
  background: rgba(69,123,157,.06);
  border: 1px solid rgba(69,123,157,.15);
  border-radius: 12px;
  padding: 12px;
  overflow: hidden;
}
.eng-svg { width: 100%; height: auto; }

/* Metrics row */
.eng-blueprint-metrics {
  display: flex; gap: 0; margin-top: 16px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px; overflow: hidden;
}
.eng-bp-metric {
  flex: 1; padding: 12px 10px; text-align: center;
  border-right: 1px solid rgba(255,255,255,.07);
  transition: background .25s ease;
}
.eng-bp-metric:last-child { border-right: none; }
.eng-bp-metric:hover { background: rgba(255,255,255,.04); }
.eng-bp-label { display: block; font-size: .65rem; color: rgba(255,255,255,.4); margin-bottom: 4px; }
.eng-bp-value {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--white);
}
.eng-bp-value span { font-size: .8rem; color: #4de090; }

/* Progress bar */
.eng-bp-progress-wrap { margin-top: 16px; }
.eng-bp-progress-bar {
  height: 5px; background: rgba(255,255,255,.08);
  border-radius: 3px; overflow: hidden;
}
.eng-bp-progress-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #457b9d, #4de090);
  position: relative;
}
.eng-bp-progress-fill::after {
  content: ''; position: absolute; right: 0; top: 50%;
  width: 8px; height: 8px; border-radius: 50%;
  background: #4de090; transform: translateY(-50%);
  box-shadow: 0 0 8px #4de090;
}
.eng-bp-progress-label {
  display: block; font-size: .65rem; color: rgba(255,255,255,.4);
  margin-top: 7px;
}

/* ---- Z-PATTERN BLOCKS ---- */
.zp-block {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--blight);
}
.zp-block:first-of-type { padding-top: 20px; }
.zp-block:last-child { border-bottom: none; }
.zp-block--reverse { grid-template-columns: 1.5fr 1fr; }
.zp-block--reverse .zp-content { order: 1; }
.zp-block--reverse .zp-visual  { order: 2; }

/* Visual panel */
.zp-visual {
  border-radius: 24px;
  padding: 24px;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  position: relative; overflow: hidden;
  min-height: 300px;
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease;
}
.zp-visual:hover { transform: translateY(-5px); box-shadow: 0 24px 64px rgba(45,106,79,.18); }

.zp-visual--green  { background: linear-gradient(145deg, var(--g7), #e8f5ec); border: 1px solid var(--border); }
.zp-visual--blue   { background: linear-gradient(145deg, #dbeafe, #eff6ff); border: 1px solid #bfdbfe; }
.zp-visual--amber  { background: linear-gradient(145deg, #fff7ed, #fef3c7); border: 1px solid #fed7aa; }
.zp-visual--teal   { background: linear-gradient(145deg, #f0fdf4, #dcfce7); border: 1px solid #bbf7d0; }

/* Decorative grid in visual panel */
.zp-visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0,0,0,.05) 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: 24px;
  pointer-events: none;
}

/* Icon circle */
.zp-icon-wrap {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(45,106,79,.12);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.zp-visual:hover .zp-icon-wrap { transform: scale(1.1) rotate(6deg); }
.zp-visual--green  .zp-icon-wrap svg { stroke: var(--g2); }
.zp-visual--blue   .zp-icon-wrap svg { stroke: #1d4ed8; }
.zp-visual--amber  .zp-icon-wrap svg { stroke: #c2410c; }
.zp-visual--teal   .zp-icon-wrap svg { stroke: var(--g1); }

/* Stat inside visual */
.zp-visual-stat strong {
  display: block; font-family: var(--serif); font-size: 2.4rem;
  font-weight: 800; color: var(--dark); line-height: 1;
}
.zp-visual-stat span {
  font-size: .78rem; color: var(--muted); margin-top: 4px; display: block;
}

/* Badge tag in visual panel */
.zp-visual-badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 4px; margin-top: 16px;
  background: rgba(26,71,49,.08); border: 1px solid rgba(26,71,49,.18);
  font-size: .68rem; font-weight: 700; letter-spacing: 1px;
  color: var(--g1); text-transform: uppercase;
}
.zp-visual-badge--blue   { background: rgba(29,78,216,.08);  border-color: rgba(29,78,216,.2);  color: #1d4ed8; }
.zp-visual-badge--amber  { background: rgba(194,65,12,.08);  border-color: rgba(194,65,12,.2);  color: #c2410c; }
.zp-visual-badge--teal   { background: rgba(64,145,108,.08); border-color: rgba(64,145,108,.2); color: var(--g2); }

/* Content side */
.zp-content {}
.zp-content h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700; color: var(--dark);
  line-height: 1.2; margin: 10px 0 16px;
}
.zp-content h3 span { color: var(--g3); }
.zp-content > p { font-size: .97rem; color: var(--body); line-height: 1.78; margin-bottom: 20px; }

/* Checklist */
.zp-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 24px; }
.zp-list li {
  font-size: .88rem; color: var(--muted);
  padding-left: 20px; position: relative; line-height: 1.55;
}
.zp-list li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--g3); font-weight: 700;
}

/* Glass highlight inside zp */
.zp-glass {
  background: rgba(64,145,108,.06) !important;
  border-color: rgba(64,145,108,.18) !important;
}
.zp-glass, .zp-glass p, .zp-glass span { color: var(--body) !important; }
.zp-glass p strong, .zp-glass span strong { color: var(--dark) !important; }

/* Background images for Z-Pattern visuals */
.zp-bg-img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  transition: transform .8s cubic-bezier(0.16,1,0.3,1);
}
.zp-visual:hover .zp-bg-img { transform: scale(1.05); }

.zp-glass-badge {
  position: relative; z-index: 2;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.9);
  padding: 32px 24px;
  border-radius: 20px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

/* CTA mesh variant for engineering (warmer amber accent) */
.sp-cta-mesh--eng {
  background:
    radial-gradient(ellipse at 0% 50%,   rgba(64,145,108,.3) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 20%,  rgba(244,162,97,.25) 0%, transparent 50%),
    radial-gradient(ellipse at 55% 100%,  rgba(69,123,157,.2)  0%, transparent 50%),
    linear-gradient(135deg, #030d07 0%, #0d1a08 50%, #040d16 100%) !important;
}

/* ---- RESPONSIVE — ENGENHARIA ---- */
@media (max-width: 1024px) {
  .eng-hero-inner { gap: 40px; }
  .zp-block { gap: 36px; }
}
@media (max-width: 768px) {
  .eng-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .eng-hero-visual { display: none; }
  .eng-hero { padding: 120px 0 80px; }
  .zp-block,
  .zp-block--reverse { grid-template-columns: 1fr; gap: 28px; }
  .zp-block--reverse .zp-content { order: 2; }
  .zp-block--reverse .zp-visual  { order: 1; }
  .zp-visual { min-height: 200px; padding: 36px 24px; }
}
@media (max-width: 480px) {
  .zp-visual-stat strong { font-size: 1.8rem; }
}

/* =============================================
   ENERGIA — Solar Hero + Energy Bento Grid
   ============================================= */

/* ---- KEYFRAMES ---- */
@keyframes solarRay {
  0%   { opacity: 0; transform: rotate(var(--r)) scaleY(0); }
  30%  { opacity: .15; }
  100% { opacity: 0; transform: rotate(var(--r)) scaleY(1.4); }
}
@keyframes barRise {
  from { height: 0 !important; }
  to   { height: var(--h); }
}
@keyframes roiSlide {
  from { width: 0; }
  to   { width: 68%; }
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .35; }
}
@keyframes solarGlow {
  0%, 100% { opacity: .4; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: .7; transform: translate(-50%, -50%) scale(1.2); }
}

/* ---- HERO ---- */
.en-hero {
  position: relative; overflow: hidden;
  padding: 150px 0 110px;
  background: #070c03;
  min-height: 820px;
  display: flex; align-items: center;
}
/* Sunburst ray lines */
.en-hero-rays {
  position: absolute; inset: 0; pointer-events: none;
}
.en-hero-rays::before,
.en-hero-rays::after {
  content: '';
  position: absolute;
  bottom: -20%; right: -10%;
  width: 2px; height: 160%;
  background: linear-gradient(to top, transparent, rgba(244,162,97,.18), transparent);
  transform-origin: bottom center;
}
.en-hero-rays::before { --r: -35deg; transform: rotate(-35deg); animation: solarRay 4s ease-in-out 0s infinite alternate; }
.en-hero-rays::after  { --r: -55deg; transform: rotate(-55deg); animation: solarRay 4s ease-in-out .8s infinite alternate; }

/* Fade to white bottom */
.en-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(to bottom, transparent, var(--white));
  pointer-events: none; z-index: 2;
}
.en-hero-radial {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(244,162,97,.22) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 70%, rgba(64,145,108,.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(231,111,81,.07)  0%, transparent 40%);
}

/* Asymmetric grid */
.en-hero-inner {
  position: relative; z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Badge — amber accent */
.en-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 50px;
  background: rgba(244,162,97,.15); border: 1px solid rgba(244,162,97,.35);
  font-size: .73rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--amber);
  margin-bottom: 20px;
}
.en-hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--amber);
  animation: blink 2s ease-in-out infinite;
}

/* h1 amber italic */
.en-hero-h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700; color: var(--white);
  line-height: 1.15; margin-bottom: 20px;
}
.en-hero-h1 em { font-style: italic; color: var(--amber); }

/* Visual / Dashboard card */
.en-hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.en-hero-glow {
  position: absolute;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,162,97,.2) 0%, transparent 70%);
  top: 50%; left: 50%;
  animation: solarGlow 5s ease-in-out infinite;
  pointer-events: none; z-index: -1;
}
.en-dash-card {
  width: 100%; max-width: 420px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(244,162,97,.25);
  border-radius: 22px; padding: 24px;
  backdrop-filter: blur(14px);
  animation: floatUI 7s ease-in-out infinite alternate;
}

/* Main metric block */
.en-dash-metrics { margin: 16px 0 14px; }
.en-dash-metric-main {
  padding: 14px 0 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 12px;
}
.en-dash-metric-label { font-size: .72rem; color: rgba(255,255,255,.45); display: block; margin-bottom: 6px; }
.en-dash-metric-value { display: flex; align-items: baseline; gap: 6px; }
.en-dash-big { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--white); line-height: 1; }
.en-dash-unit { font-size: 1rem; color: rgba(255,255,255,.55); }
.en-dash-live { font-size: .62rem; font-weight: 700; color: #4de090; margin-left: 8px; letter-spacing: 1px; animation: livePulse 1.5s ease-in-out infinite; }

/* KPI row */
.en-dash-metric-row { display: flex; gap: 0; }
.en-dash-kpi { flex: 1; padding: 10px 12px; background: rgba(255,255,255,.03); border-radius: 10px; }
.en-dash-kpi:first-child { margin-right: 8px; }
.en-dash-kpi-label { font-size: .66rem; color: rgba(255,255,255,.4); display: block; margin-bottom: 3px; }
.en-dash-kpi-val { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; }
.en-kpi-green { color: #4de090; }

/* Bar chart */
.en-dash-chart-wrap { margin: 16px 0; }
.en-dash-chart-label { font-size: .62rem; color: rgba(255,255,255,.35); margin-bottom: 8px; }
.en-dash-bars {
  display: flex; align-items: flex-end; gap: 5px;
  height: 60px;
}
.en-bar-group {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 4px;
}
.en-bar {
  width: 100%; border-radius: 3px 3px 0 0;
  background: rgba(244,162,97,.35);
  transition: height .4s ease;
  min-height: 4px;
}
.en-bar--active { background: linear-gradient(to top, var(--amber2), var(--amber)); box-shadow: 0 0 8px rgba(244,162,97,.5); }
.en-bar--dim    { background: rgba(244,162,97,.18); }
.en-bar-group span { font-size: .52rem; color: rgba(255,255,255,.3); }

/* ROI strip */
.en-dash-footer-strip {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.en-dash-roi {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.en-dash-roi span { font-size: .68rem; color: rgba(255,255,255,.4); }
.en-dash-roi strong { font-family: var(--serif); font-size: .95rem; color: var(--amber); }
.en-dash-roi-bar {
  height: 4px; background: rgba(255,255,255,.08);
  border-radius: 2px; overflow: hidden;
}
.en-dash-roi-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--amber2), var(--amber));
  width: 68%;
  animation: roiSlide 1.5s ease-out forwards;
}

/* ---- ENERGIA BENTO GRID ---- */
/* 3-column layout distinct from especialidade's 6-col */
.en-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
  margin-top: 0;
}

/* Base bento card */
.en-bento-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 28px;
  position: relative; overflow: hidden;
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease;
  cursor: default;
}
.en-bento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 52px rgba(45,106,79,.13);
}
/* Amber top accent bar by default */
.en-bento-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--amber2), var(--amber));
  border-radius: 20px 20px 0 0;
}

/* Hero card — spans all 3 cols, top row */
.en-bento-card--hero {
  grid-column: 1 / 3;
  grid-row: 1;
  background: linear-gradient(135deg, #fef9f0, #fff7ed);
  border-color: #fed7aa;
  padding: 36px;
}
.en-bento-card--hero::before { background: linear-gradient(90deg, var(--amber2), var(--amber), #fbbf24); }

/* Stat card (tall) — right column top */
.en-bento-card--stat {
  grid-column: 3;
  grid-row: 1;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  background: linear-gradient(145deg, #fff7ed, #fef3c7);
  border-color: #fed7aa;
  min-height: 260px;
}
.en-bento-card--stat-green {
  grid-column: 1;
  grid-row: 2;
  background: linear-gradient(145deg, var(--g7), #f0fdf4);
  border-color: var(--border);
}
.en-bento-card--stat-green::before { background: linear-gradient(90deg, var(--g2), var(--teal)); }

/* Medium cards — row 2 */
.en-bento-card--medium {
  grid-column: span 1;
  grid-row: 2;
}
.en-bento-card--medium::before { background: linear-gradient(90deg, var(--amber2), var(--amber)); }
.en-bento-card--medium:nth-of-type(4)::before { background: linear-gradient(90deg, var(--g2), var(--teal)); }

/* Wide bottom card — spans all columns, row 3 */
.en-bento-card--wide-bottom {
  grid-column: 1 / 4;
  grid-row: 3;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-color: #bfdbfe;
}
.eaas-card-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.eaas-card-content h3 { color: var(--dark); font-size: 2rem; margin-bottom: 12px; }
.eaas-card-content p { color: var(--body); font-size: 1.05rem; line-height: 1.7; margin-bottom: 24px; }
.eaas-card-content ul { display: flex; flex-direction: column; gap: 12px; margin-top: 0; }
.eaas-card-content ul li { color: var(--muted); font-size: 1rem; border: none !important; padding-left: 24px; position: relative; }
.eaas-card-content ul li::before { content: '✓'; position: absolute; color: var(--g3) !important; font-size: 1.1rem; left: 0; top: -1px; }
.eaas-badge { background: rgba(29,78,216,.1); border: 1px solid rgba(29,78,216,.2); color: #1d4ed8; display: inline-block; padding: 4px 14px; border-radius: 4px; font-size: .68rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; }
.dm-feature-visual {
  position: relative;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}
.dm-fv-bg-img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  transition: transform .8s cubic-bezier(0.16, 1, 0.3, 1);
}
.dm-feature:hover .dm-fv-bg-img { transform: scale(1.05); }
.dm-feature:hover .dm-fv-bg-img { transform: scale(1.05); }
.dm-fv-glass-badge {
  position: absolute; top: 50%; left: 50%; z-index: 2;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.8);
  padding: 16px 24px;
  border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: transform .4s ease, box-shadow .4s ease;
}
.dm-feature:hover .dm-fv-glass-badge {
  transform: translate(-50%, calc(-50% - 4px));
  box-shadow: 0 14px 28px rgba(0,0,0,0.15);
}
.dm-fv-icon { margin-bottom: 0 !important; }
.dm-fv-badge { margin-bottom: 0 !important; }
.eaas-card-visual {
  position: relative; height: 100%; min-height: 280px;
  border-radius: 16px; display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}
.eaas-card-visual img.eaas-bg-img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  transition: transform .8s cubic-bezier(0.16, 1, 0.3, 1);
}
.en-bento-card--wide-bottom:hover .eaas-card-visual img.eaas-bg-img {
  transform: scale(1.05);
}
.eaas-glass-badge {
  position: relative; z-index: 2;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.95);
  padding: 24px 32px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 16px 32px rgba(0,0,0,0.1);
  transform: translateY(0);
  transition: transform .4s ease, box-shadow .4s ease;
}
.en-bento-card--wide-bottom:hover .eaas-glass-badge {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.eaas-glass-badge span.zero { display: block; font-family: var(--serif); font-size: 3rem; font-weight: 700; color: var(--dark); line-height: 1; margin-bottom: 4px; }
.eaas-glass-badge span.text { font-size: .8rem; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; }
@media (max-width: 768px) {
  .eaas-card-grid { grid-template-columns: 1fr; gap: 32px; }
  .eaas-card-visual { min-height: 200px; }
}
.en-bento-card--wide-bottom::before { background: linear-gradient(90deg, #1d4ed8, #457b9d); }

/* Fix grid-row for CER (col 3, row 2) */
.en-bento-card--medium:last-of-type { grid-column: 3; grid-row: 2; }

/* Stat numbers */
.en-stat-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: #fff7ed; display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.en-stat-icon svg { stroke: var(--amber2); }
.en-stat-icon--green { background: var(--g7); }
.en-stat-icon--green svg { stroke: var(--g2); }

.en-stat-num {
  font-family: var(--serif); font-size: 3rem; font-weight: 800;
  color: var(--amber2); line-height: 1; margin-bottom: 6px;
}
.en-stat-num span { font-size: 1.6rem; }
.en-stat-num--green { color: var(--g2); }
.en-stat-label { font-size: .8rem; color: var(--muted); line-height: 1.5; max-width: 160px; }

/* Bento icon — energy variants */
.en-bento-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.en-icon--amber  { background: #fff7ed; }
.en-icon--amber svg  { stroke: var(--amber2); stroke-width: 2; }
.en-icon--green  { background: var(--g7); }
.en-icon--green svg  { stroke: var(--g2); stroke-width: 2; }
.en-icon--blue   { background: #dbeafe; }
.en-icon--blue svg   { stroke: #1d4ed8; stroke-width: 2; }

/* Shared text styles inside en-bento */
.en-bento-card h3 {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 700;
  color: var(--dark); margin-bottom: 10px;
}
.en-bento-card p  { font-size: .88rem; color: var(--body); line-height: 1.72; }
.en-bento-card ul { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.en-bento-card ul li {
  font-size: .83rem; color: var(--muted);
  padding-left: 16px; position: relative;
}
.en-bento-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--g3); font-weight: 700; }

/* Glass overlay hover */
.en-bento-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,.25) 0%, transparent 100%);
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
  border-radius: 20px;
}
.en-bento-card:hover::after { opacity: 1; }

/* Timeline steps — amber for energia */
.en-step-num {
  background: linear-gradient(135deg, var(--amber2), var(--amber)) !important;
  box-shadow: 0 4px 16px rgba(244,162,97,.35) !important;
}
.en-timeline .sp-timeline-step:hover .sp-step-num { box-shadow: 0 0 0 6px rgba(244,162,97,.2) !important; }
.en-timeline .sp-timeline-step:hover .sp-step-body { border-color: var(--amber); }

/* CTA mesh — solar amber/warm green tones */
.sp-cta-mesh--energy {
  background:
    radial-gradient(ellipse at 10% 50%,  rgba(244,162,97,.35) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 20%,  rgba(231,111,81,.25) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%,  rgba(64,145,108,.2)  0%, transparent 50%),
    linear-gradient(135deg, #0c0800 0%, #0a1405 50%, #0c0800 100%) !important;
}

/* Decorative solar rays in CTA */
.en-cta-ray {
  position: absolute; pointer-events: none;
  width: 2px; height: 50%;
  background: linear-gradient(to bottom, rgba(244,162,97,.15), transparent);
  transform-origin: top center;
  opacity: .6;
}
.en-cta-ray--1 { top: 0; right: 20%; transform: rotate(20deg); }
.en-cta-ray--2 { top: 0; right: 30%; transform: rotate(-15deg); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .en-hero-inner { gap: 40px; }
  .en-bento-grid { grid-template-columns: 1fr 1fr; }
  .en-bento-card--hero        { grid-column: 1 / 3; grid-row: 1; }
  .en-bento-card--stat        { grid-column: 1; grid-row: 2; }
  .en-bento-card--medium      { grid-column: 2; grid-row: 2; }
  .en-bento-card--stat-green  { grid-column: 1; grid-row: 3; }
  .en-bento-card--medium:last-of-type { grid-column: 2; grid-row: 3; }
  .en-bento-card--wide-bottom { grid-column: 1 / 3; grid-row: 4; }
}
@media (max-width: 768px) {
  .en-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .en-hero-visual { display: none; }
  .en-hero { padding: 120px 0 80px; }
  .en-bento-grid { grid-template-columns: 1fr; }
  .en-bento-card--hero,
  .en-bento-card--stat,
  .en-bento-card--stat-green,
  .en-bento-card--medium,
  .en-bento-card--wide-bottom {
    grid-column: 1 !important; grid-row: auto !important;
  }
  .en-bento-card--stat { min-height: 180px; }
}

/* =============================================
   DOMÓTICA — Smart Home Hero + Feature Blocks
   ============================================= */

/* ---- KEYFRAMES ---- */
@keyframes circuitPulse {
  0%, 100% { opacity: .06; }
  50%       { opacity: .13; }
}
@keyframes dmGlow {
  0%, 100% { opacity: .35; transform: translate(-50%,-50%) scale(1); }
  50%       { opacity: .6;  transform: translate(-50%,-50%) scale(1.18); }
}
@keyframes statusBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}
@keyframes nodeRing {
  0%   { transform: scale(1);   opacity: .5; }
  100% { transform: scale(2.5); opacity: 0;  }
}

/* ---- HERO ---- */
.dm-hero {
  position: relative; overflow: hidden;
  padding: 150px 0 110px;
  background: #040f0f;
  min-height: 820px;
  display: flex; align-items: center;
}
/* Circuit board pattern */
.dm-hero-circuit {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(82,183,136,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82,183,136,.08) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: circuitPulse 6s ease-in-out infinite;
}
.dm-hero-circuit::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(82,183,136,.15) 1.5px, transparent 1.5px);
  background-size: 48px 48px;
  background-position: 24px 24px;
}
.dm-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(to bottom, transparent, var(--white));
  pointer-events: none; z-index: 2;
}
.dm-hero-radial {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 65% 40%, rgba(82,183,136,.18) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 70%, rgba(69,123,157,.12) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 80%, rgba(139,92,246,.06) 0%, transparent 40%);
}

.dm-hero-inner {
  position: relative; z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Badge — teal */
.dm-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 50px;
  background: rgba(82,183,136,.15); border: 1px solid rgba(82,183,136,.35);
  font-size: .73rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 20px;
}
.dm-hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
  animation: blink 2s ease-in-out infinite;
}

.dm-hero-h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700; color: var(--white);
  line-height: 1.15; margin-bottom: 20px;
}
.dm-hero-h1 em { font-style: italic; color: var(--teal); }

/* App widget */
.dm-hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.dm-hero-glow {
  position: absolute;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(82,183,136,.18) 0%, transparent 70%);
  top: 50%; left: 50%;
  animation: dmGlow 5s ease-in-out infinite;
  pointer-events: none; z-index: -1;
}
.dm-app-card {
  width: 100%; max-width: 420px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(82,183,136,.25);
  border-radius: 22px; padding: 24px;
  backdrop-filter: blur(14px);
  animation: floatUI 8s ease-in-out infinite alternate;
}

/* Room tabs */
.dm-room-tabs {
  display: flex; gap: 6px; margin: 16px 0 14px;
  overflow-x: auto; padding-bottom: 2px;
}
.dm-room-tab {
  padding: 5px 14px; border-radius: 50px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.45); font-size: .72rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: all .2s ease;
}
.dm-room-tab--active {
  background: rgba(82,183,136,.2);
  border-color: rgba(82,183,136,.4);
  color: var(--teal);
}

/* Control tiles */
.dm-tiles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 14px;
}
.dm-tile {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px; padding: 14px 12px;
  display: flex; flex-direction: column; gap: 4px;
  position: relative;
  transition: border-color .25s ease, background .25s ease;
}
.dm-tile--on {
  background: rgba(82,183,136,.07);
  border-color: rgba(82,183,136,.22);
}
.dm-tile-icon { color: rgba(255,255,255,.45); }
.dm-tile--on .dm-tile-icon { color: var(--teal); }
.dm-tile-label { font-size: .62rem; color: rgba(255,255,255,.4); }
.dm-tile-val   { font-family: var(--serif); font-size: 1rem; font-weight: 700; color: var(--white); }
.dm-tile-toggle {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 16px; border-radius: 8px;
  background: rgba(255,255,255,.12);
}
.dm-tile-toggle::after {
  content: '';
  position: absolute; top: 2px; left: 2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,.4);
  transition: transform .2s ease;
}
.dm-toggle--on { background: rgba(82,183,136,.4); }
.dm-toggle--on::after { transform: translateX(12px); background: var(--teal); }

/* Scene strip */
.dm-scenes {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.dm-scene-label { font-size: .6rem; color: rgba(255,255,255,.35); white-space: nowrap; }
.dm-scene {
  padding: 4px 12px; border-radius: 50px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.5); font-size: .68rem; cursor: pointer;
}
.dm-scene--active {
  background: rgba(82,183,136,.18);
  border-color: rgba(82,183,136,.35);
  color: var(--teal);
}

/* Status bar */
.dm-status-bar {
  display: flex; align-items: center; gap: 8px;
  padding-top: 12px; border-top: 1px solid rgba(255,255,255,.06);
  font-size: .62rem; color: rgba(255,255,255,.35);
}
.dm-status-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
  flex-shrink: 0; animation: statusBlink 2s ease-in-out infinite;
}

/* ---- ALTERNATING FEATURE BLOCKS ---- */
.dm-features { display: flex; flex-direction: column; gap: 0; }

.dm-feature {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  align-items: center;
  padding: 72px 0;
  border-bottom: 1px solid var(--blight);
}
.dm-feature:last-child { border-bottom: none; }
.dm-feature--reverse { grid-template-columns: 1fr 380px; }
.dm-feature--reverse .dm-feature-content { order: 1; }
.dm-feature--reverse .dm-feature-visual   { order: 2; }

/* Visual square panel */
.dm-feature-visual {
  border-radius: 28px;
  min-height: 320px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.dm-feature-visual:hover { transform: translateY(-6px) scale(1.01); }

.dm-fv--teal   { background: linear-gradient(145deg, #f0fdf9, #ccfbef); border: 1px solid #99f6e4; }
.dm-fv--violet { background: linear-gradient(145deg, #f5f3ff, #ede9fe); border: 1px solid #ddd6fe; }
.dm-fv--blue   { background: linear-gradient(145deg, #eff6ff, #dbeafe); border: 1px solid #bfdbfe; }
.dm-fv--green  { background: linear-gradient(145deg, var(--g7), #f0fdf4); border: 1px solid var(--border); }

/* Dot grid decoration inside visual */
.dm-feature-visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0,0,0,.06) 1px, transparent 1px);
  background-size: 18px 18px;
  border-radius: 28px; pointer-events: none;
}

/* Big icon */
.dm-fv-icon {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 32px rgba(0,0,0,.1);
  margin-bottom: 20px;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.dm-feature-visual:hover .dm-fv-icon { transform: scale(1.1) rotate(8deg); }
.dm-fv--teal   .dm-fv-icon svg { stroke: var(--teal); }
.dm-fv--violet .dm-fv-icon svg { stroke: #7c3aed; }
.dm-fv--blue   .dm-fv-icon svg { stroke: #1d4ed8; }
.dm-fv--green  .dm-fv-icon svg { stroke: var(--g2); }

/* Badge inside visual */
.dm-fv-badge {
  display: inline-flex; justify-content: center; text-align: center;
  padding: 4px 14px; border-radius: 4px;
  background: rgba(82,183,136,.1); border: 1px solid rgba(82,183,136,.25);
  font-size: .68rem; font-weight: 700; letter-spacing: 1px;
  color: #0d9488; text-transform: uppercase;
}
.dm-fv-badge--violet { background: rgba(124,58,237,.08); border-color: rgba(124,58,237,.2); color: #7c3aed; }
.dm-fv-badge--blue   { background: rgba(29,78,216,.08);  border-color: rgba(29,78,216,.2);  color: #1d4ed8; }

/* Glow inside visual */
.dm-fv-glow {
  position: absolute;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(82,183,136,.12) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}
.dm-fv--violet .dm-fv-glow { background: radial-gradient(circle, rgba(124,58,237,.1) 0%, transparent 70%); }
.dm-fv--blue   .dm-fv-glow { background: radial-gradient(circle, rgba(29,78,216,.1)  0%, transparent 70%); }

/* Content side */
.dm-feature-content {}
.dm-feature-content h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700; color: var(--dark);
  line-height: 1.2; margin: 10px 0 16px;
}
.dm-feature-content h3 span { color: var(--teal); }
.dm-feature-content > p {
  font-size: .97rem; color: var(--body); line-height: 1.78; margin-bottom: 20px;
}
.dm-feature-glass {
  background: rgba(82,183,136,.06);
  border: 1px solid rgba(82,183,136,.18);
  border-radius: 12px; padding: 16px 18px;
  margin-top: 20px;
  backdrop-filter: blur(4px);
}
.dm-feature-glass p { font-size: .82rem !important; color: #0d5748 !important; line-height: 1.6; }
.dm-feature-glass p strong { color: #0a4038; }

/* Timeline steps — teal */
.dm-step-num {
  background: linear-gradient(135deg, #0d9488, var(--teal)) !important;
  box-shadow: 0 4px 16px rgba(82,183,136,.35) !important;
}
.dm-timeline .sp-timeline-step:hover .sp-step-num { box-shadow: 0 0 0 6px rgba(82,183,136,.2) !important; }
.dm-timeline .sp-timeline-step:hover .sp-step-body { border-color: var(--teal); }

/* CTA mesh — teal/violet tech */
.sp-cta-mesh--domotica {
  background:
    radial-gradient(ellipse at 5% 50%,   rgba(82,183,136,.3)  0%, transparent 50%),
    radial-gradient(ellipse at 95% 20%,  rgba(69,123,157,.25) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 95%,  rgba(139,92,246,.15) 0%, transparent 45%),
    linear-gradient(135deg, #020c0c 0%, #050f1a 50%, #020c0c 100%) !important;
}

/* Circuit node accents in CTA */
.dm-cta-node {
  position: absolute; pointer-events: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(82,183,136,.5);
}
.dm-cta-node::after {
  content: '';
  position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid rgba(82,183,136,.3);
  animation: nodeRing 3s ease-out infinite;
}
.dm-cta-node--1 { top: 15%; left: 8%; animation-delay: 0s; }
.dm-cta-node--2 { bottom: 20%; right: 12%; animation-delay: 1.5s; }
.dm-cta-node--2::after { animation-delay: 1.5s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .dm-hero-inner { gap: 40px; }
  .dm-feature { grid-template-columns: 300px 1fr; gap: 40px; }
  .dm-feature--reverse { grid-template-columns: 1fr 300px; }
}
@media (max-width: 768px) {
  .dm-hero-inner { grid-template-columns: 1fr; }
  .dm-hero-visual { display: none; }
  .dm-hero { padding: 120px 0 80px; }
  .dm-feature,
  .dm-feature--reverse { grid-template-columns: 1fr; gap: 28px; }
  .dm-feature--reverse .dm-feature-content { order: 2; }
  .dm-feature--reverse .dm-feature-visual   { order: 1; }
  .dm-feature-visual { min-height: 200px; }
}

/* =============================================
   PÁGINAS "RAÍZES" — Editorial & Legacy Layout
   ============================================= */

/* Base overrides for Editorial pages */
.editorial-page {
  background: var(--offwh);
}

/* ---- KEYFRAMES ---- */
@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

/* ---- EDITORIAL HERO (SPLIT-SCREEN) ---- */
.ed-hero {
  display: flex;
  min-height: 100vh;
  background: var(--white);
}
.ed-hero-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 8%;
  position: relative;
  z-index: 2;
}
.ed-hero-content {
  max-width: 580px;
}
.ed-hero-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 600; color: var(--muted);
  text-decoration: none; margin-bottom: 32px;
  transition: color var(--tr);
}
.ed-hero-back:hover { color: var(--g1); }

.ed-hero-eyebrow {
  display: inline-block;
  font-size: .75rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--g3);
  margin-bottom: 24px;
}
.ed-hero-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 700; color: var(--dark);
  line-height: 1.1; margin-bottom: 24px;
}
.ed-hero-title em {
  font-style: italic; color: var(--g2);
  font-weight: 400;
}
.ed-hero-desc {
  font-size: 1.1rem; color: var(--body);
  line-height: 1.8; margin-bottom: 40px;
}

.ed-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-ed-primary {
  display: inline-block;
  padding: 16px 36px;
  background: var(--dark); color: var(--white);
  border-radius: 4px;
  font-weight: 600; font-size: .95rem; letter-spacing: .5px;
  transition: background var(--tr), transform var(--tr), box-shadow var(--tr);
}
.btn-ed-primary:hover {
  background: var(--g1); transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.15);
}

.ed-hero-right {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.ed-hero-image-wrap {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.ed-hero-image {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: kenBurns 30s ease-out forwards;
}

/* ---- STICKY MAGAZINE LAYOUT ---- */
.ed-section {
  padding: 120px 0;
}
.ed-section--light {
  background: var(--white);
  border-top: 1px solid var(--blight);
}
.ed-sticky-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.ed-sticky-sidebar {
  position: sticky;
  top: 140px;
}
.ed-eyebrow {
  display: block; font-size: .75rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--g3);
  margin-bottom: 16px;
}
.ed-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700; color: var(--dark);
  line-height: 1.15; margin-bottom: 20px;
}
.ed-heading em { font-style: italic; font-weight: 400; color: var(--g2); }
.ed-sub {
  font-size: 1.1rem; color: var(--body); line-height: 1.7;
}

.ed-flowing-content {
  display: flex; flex-direction: column; gap: 100px;
  padding-top: 20px;
}
.ed-article {
  position: relative;
}
.ed-article-title {
  font-family: var(--serif); font-size: 1.8rem;
  font-weight: 700; color: var(--dark); margin-bottom: 16px;
}
.ed-article-text {
  font-size: 1.05rem; color: var(--body); line-height: 1.8;
  margin-bottom: 32px;
}
.ed-quote {
  font-family: var(--serif); font-size: 1.4rem; font-style: italic;
  color: var(--g1); line-height: 1.5;
  border-left: 3px solid var(--g3);
  padding-left: 32px; margin: 40px 0;
}
.ed-list {
  display: flex; flex-direction: column; gap: 12px;
  list-style: none; padding: 0;
}
.ed-list li {
  font-size: .95rem; color: var(--dark);
  padding-left: 24px; position: relative; font-weight: 500;
}
.ed-list li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 10px; height: 2px; background: var(--g3);
}

/* Offset Image */
.ed-article-offset-image {
  margin-bottom: 40px;
  margin-left: -80px; 
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
}
.ed-article-offset-image img {
  width: 100%; height: auto; display: block;
  transform: scale(1.05); transition: transform .8s cubic-bezier(0.16, 1, 0.3, 1);
}
.ed-article:hover .ed-article-offset-image img { transform: scale(1); }

/* ---- NUMBER WATERMARK LIST ---- */
.ed-center-header {
  text-align: center; max-width: 600px; margin: 0 auto 80px;
}
.ed-number-list {
  display: flex; flex-direction: column; gap: 40px;
  max-width: 800px; margin: 0 auto;
}
.ed-number-item {
  position: relative;
  padding: 40px 60px;
  background: var(--offwh);
  border: 1px solid var(--blight);
  border-radius: 4px;
  overflow: hidden;
  transition: transform var(--tr), border-color var(--tr), box-shadow var(--tr);
}
.ed-number-item:hover {
  transform: translateX(10px);
  border-color: var(--g4);
  box-shadow: 0 12px 32px rgba(45,106,79,.08);
}
.ed-number-watermark {
  position: absolute;
  top: -20px; left: -10px;
  font-family: var(--serif); font-size: 12rem; font-weight: 800;
  color: var(--dark); opacity: 0.03;
  line-height: 1; user-select: none; pointer-events: none;
  transition: opacity var(--tr), color var(--tr);
}
.ed-number-item:hover .ed-number-watermark { opacity: 0.06; color: var(--g1); }

.ed-number-content { position: relative; z-index: 2; }
.ed-number-content h4 {
  font-size: 1.25rem; font-weight: 700; color: var(--dark); margin-bottom: 12px;
}
.ed-number-content p {
  font-size: 1rem; color: var(--body); line-height: 1.7; margin: 0;
}

/* ---- FULL-BLEED CTA ---- */
.ed-cta-full {
  background: var(--g1); 
  padding: 120px 0;
  text-align: center;
  color: var(--white);
}
.ed-cta-container {
  max-width: 700px; margin: 0 auto;
}
.ed-cta-heading {
  font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700; margin-bottom: 24px; line-height: 1.15;
}
.ed-cta-heading em { font-style: italic; font-weight: 400; color: var(--g5); }
.ed-cta-text {
  font-size: 1.1rem; color: rgba(255,255,255,.8);
  line-height: 1.8; margin-bottom: 40px;
}
.btn-ed-solid {
  display: inline-block; padding: 18px 48px;
  background: var(--white); color: var(--g1);
  font-weight: 700; font-size: 1rem; letter-spacing: .5px;
  border-radius: 4px;
  transition: transform var(--tr), box-shadow var(--tr);
}
.btn-ed-solid:hover {
  transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0,0,0,.3);
}

/* ---- RESPONSIVE EDITORIAL ---- */
@media (max-width: 1024px) {
  .ed-hero { min-height: 80vh; }
  .ed-hero-left { padding: 100px 5%; }
  .ed-sticky-container { gap: 40px; }
  .ed-article-offset-image { margin-left: 0; }
  .ed-number-item { padding: 30px 40px; }
}

@media (max-width: 768px) {
  .ed-hero { flex-direction: column; min-height: auto; }
  .ed-hero-left { padding: 140px 24px 80px; }
  .ed-hero-right { height: 400px; }
  
  .ed-sticky-container { grid-template-columns: 1fr; gap: 40px; }
  .ed-sticky-sidebar { position: relative; top: 0; }
  .ed-flowing-content { gap: 80px; padding-top: 0; }
  
  .ed-number-item { padding: 24px 20px; }
  .ed-number-watermark { font-size: 8rem; top: -10px; }
  .ed-number-item:hover { transform: translateY(-5px); }
  
  .ed-section, .ed-cta-full { padding: 80px 0; }
}

/* =============================================
   RAIZ DECISÃO — Command Center Tech
   ============================================= */

/* ---- KEYFRAMES ---- */
@keyframes rtGridScroll {
  from { background-position: 0 0; }
  to   { background-position: 60px 60px; }
}
@keyframes rtScanline {
  0%   { top: -10%; }
  100% { top: 110%; }
}
@keyframes rtNodePulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%       { transform: scale(1.4); opacity: 0; }
}
@keyframes rtBarFill {
  from { width: 0; }
  to   { width: var(--w); }
}
@keyframes rtBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
@keyframes rtOrb {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50%       { transform: translate(-50%, -50%) scale(1.3); opacity: 0.8; }
}
@keyframes rtRunning {
  0%   { opacity: 1; }
  50%  { opacity: 0.4; }
  100% { opacity: 1; }
}

/* ---- HERO ---- */
.rt-hero {
  position: relative;
  overflow: hidden;
  min-height: 820px;
  display: flex;
  align-items: center;
  background: #03080c;
  padding: 150px 0 100px;
}

.rt-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(64,145,108,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64,145,108,.1) 1px, transparent 1px),
    linear-gradient(rgba(69,123,157,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69,123,157,.06) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px, 15px 15px, 15px 15px;
  animation: rtGridScroll 14s linear infinite;
  pointer-events: none;
}

.rt-hero-radial {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 70% 45%, rgba(64,145,108,.15) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 70%, rgba(69,123,157,.1)  0%, transparent 50%),
    radial-gradient(ellipse at 85% 85%, rgba(139,92,246,.06) 0%, transparent 40%);
}

.rt-hero-scanline {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(64,145,108,.35), transparent);
  animation: rtScanline 6s linear infinite;
  pointer-events: none; z-index: 1;
}

/* Fade to white at bottom */
.rt-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none; z-index: 2;
}

.rt-hero-inner {
  position: relative; z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Badge */
.rt-eyebrow-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 50px;
  background: rgba(64,145,108,.12); border: 1px solid rgba(64,145,108,.3);
  font-size: .72rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--g4);
}
.rt-badge-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--g4);
  animation: rtBlink 2s ease-in-out infinite;
}

.rt-hero-h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700; color: var(--white);
  line-height: 1.1; margin-bottom: 24px;
}
.rt-hero-h1 em { font-style: italic; color: var(--g4); }

.rt-hero-desc {
  font-size: 1.05rem; color: rgba(255,255,255,.7);
  line-height: 1.8; margin-bottom: 32px; max-width: 520px;
}
.rt-hero-desc strong { color: var(--g4); font-weight: 600; }

.rt-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }

/* KPI strip */
.rt-kpi-strip {
  display: flex; align-items: center; gap: 0;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08);
}
.rt-kpi { flex: 1; }
.rt-kpi-value {
  display: block;
  font-family: var(--serif); font-size: 2rem; font-weight: 700;
  color: var(--white); line-height: 1;
}
.rt-kpi-value span { font-size: 1.2rem; color: var(--g4); }
.rt-kpi-label { display: block; font-size: .72rem; color: rgba(255,255,255,.4); margin-top: 4px; }
.rt-kpi-divider { width: 1px; height: 40px; background: rgba(255,255,255,.1); margin: 0 20px; }

/* ---- DATA TERMINAL ---- */
.rt-hero-terminal-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.rt-terminal {
  width: 100%; max-width: 440px;
  background: rgba(3,12,16,.8);
  border: 1px solid rgba(64,145,108,.25);
  border-radius: 18px;
  backdrop-filter: blur(20px);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(64,145,108,.08), 0 24px 64px rgba(0,0,0,.6);
}

.rt-terminal-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(64,145,108,.12);
}
.rt-terminal-dots { display: flex; gap: 6px; }
.rt-terminal-dots span {
  width: 10px; height: 10px; border-radius: 50%;
}
.rt-terminal-dots span:nth-child(1) { background: #ff5f57; }
.rt-terminal-dots span:nth-child(2) { background: #febc2e; }
.rt-terminal-dots span:nth-child(3) { background: #28c840; }
.rt-terminal-title {
  font-size: .65rem; font-weight: 700; letter-spacing: 1.5px;
  color: rgba(255,255,255,.35); text-transform: uppercase; font-family: var(--mono, monospace);
  flex: 1; text-align: center;
}
.rt-terminal-live {
  display: flex; align-items: center; gap: 5px;
  font-size: .6rem; font-weight: 700; letter-spacing: 1px;
  color: var(--g4); text-transform: uppercase;
}
.rt-terminal-live-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--g4);
  animation: rtBlink 1.5s ease-in-out infinite;
}

.rt-terminal-section { padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.05); }
.rt-terminal-section:last-child { border-bottom: none; }
.rt-terminal-label {
  font-size: .6rem; font-weight: 700; letter-spacing: 1.5px;
  color: rgba(255,255,255,.25); text-transform: uppercase; margin-bottom: 10px;
}

/* Risk meter */
.rt-risk-meter { display: flex; align-items: center; gap: 10px; }
.rt-risk-bar {
  flex: 1; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,.07);
}
.rt-risk-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--g4), #4de090);
  box-shadow: 0 0 8px rgba(77,224,144,.4);
}
.rt-risk-score { font-size: .72rem; font-weight: 700; white-space: nowrap; }
.rt-risk-low { color: var(--g4); }

/* Data rows */
.rt-data-rows { display: flex; flex-direction: column; gap: 8px; }
.rt-data-row { display: flex; align-items: center; gap: 8px; }
.rt-data-key { font-size: .65rem; color: rgba(255,255,255,.4); width: 56px; flex-shrink: 0; }
.rt-data-bar-wrap { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.06); overflow: hidden; }
.rt-data-bar {
  height: 100%; border-radius: 2px;
  background: var(--c);
  width: var(--w);
  animation: rtBarFill .8s ease-out forwards;
}
.rt-data-val { font-size: .65rem; font-weight: 700; width: 44px; text-align: right; flex-shrink: 0; }
.rt-val-green  { color: var(--g4); }
.rt-val-blue   { color: #60b4e0; }
.rt-val-violet { color: #a78bfa; }

/* Terminal output */
.rt-terminal-output { background: rgba(64,145,108,.04); }
.rt-output-line {
  display: flex; align-items: center; gap: 8px;
  font-size: .68rem; color: rgba(255,255,255,.55);
  font-family: var(--mono, monospace); padding: 3px 0;
}
.rt-output-line svg { stroke: var(--g4); flex-shrink: 0; }
.rt-output-running { color: rgba(255,255,255,.35); animation: rtRunning 1.8s ease-in-out infinite; }
.rt-output-running svg { stroke: rgba(255,255,255,.3); }

/* ---- SECTIONS ---- */
.rt-section { padding: 100px 0; position: relative; }
.rt-section-head { margin-bottom: 60px; text-align: center; }
.rt-section-head--dark { text-align: center; }
.rt-section-eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--g4); margin-bottom: 10px; display: block;
}
.rt-section-h2 {
  font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700; color: var(--dark); line-height: 1.2; margin-bottom: 16px;
}
.rt-section-h2 em { font-style: italic; color: var(--g4); }
.rt-h2-white { color: var(--white); }
.rt-h2-white em { color: var(--g4); }
.rt-section-sub { font-size: 1rem; color: var(--body); max-width: 560px; line-height: 1.8; margin: 0 auto; }
.rt-sub-dim { color: rgba(255,255,255,.5); margin: 0 auto; }

/* ---- HOLOGRAPHIC CARDS ---- */
.rt-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rt-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
  transition: transform .35s cubic-bezier(.16,1,.3,1), border-color .3s ease, box-shadow .3s ease;
  cursor: default;
}
.rt-card:hover {
  transform: translateY(-6px);
  border-color: rgba(64,145,108,.3);
  box-shadow: 0 20px 48px rgba(0,0,0,.12);
}

/* Glow on hover removed for light theme */

/* Card content */
.rt-card-icon {
  position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(64,145,108,.12); border: 1px solid rgba(64,145,108,.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: background .3s ease, border-color .3s ease;
}
.rt-card:hover .rt-card-icon { background: rgba(64,145,108,.2); border-color: rgba(64,145,108,.4); }
.rt-card-icon svg { stroke: var(--g4); }
.rt-card-icon--blue   { background: rgba(69,123,157,.12); border-color: rgba(69,123,157,.2); }
.rt-card-icon--blue svg { stroke: #60b4e0; }
.rt-card-icon--violet { background: rgba(139,92,246,.12); border-color: rgba(139,92,246,.2); }
.rt-card-icon--violet svg { stroke: #a78bfa; }

.rt-card-tag {
  position: relative; z-index: 1;
  display: inline-block; margin-bottom: 14px;
  font-size: .62rem; font-weight: 700; letter-spacing: 1px;
  color: var(--g4); font-family: monospace;
}
.rt-card-tag--blue   { color: #60b4e0; }
.rt-card-tag--violet { color: #a78bfa; }

.rt-card h3 {
  position: relative; z-index: 1;
  font-family: var(--serif); font-size: 1.15rem; font-weight: 700;
  color: var(--dark); margin-bottom: 12px; line-height: 1.3;
}
.rt-card p {
  position: relative; z-index: 1;
  font-size: .87rem; color: var(--body); line-height: 1.75;
  margin-bottom: 18px;
}
.rt-card-list {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 7px;
  list-style: none; padding: 0; margin-bottom: 20px;
}
.rt-card-list li {
  font-size: .82rem; color: var(--muted);
  padding-left: 18px; position: relative;
}
.rt-card-list li::before {
  content: '›'; position: absolute; left: 0;
  color: var(--g4); font-weight: 700;
}

.rt-card-insight {
  position: relative; z-index: 1;
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(0,0,0,.03); border: 1px solid rgba(0,0,0,.05);
  border-radius: 10px; padding: 12px 14px;
  font-size: .8rem; color: var(--body); font-style: italic;
}
.rt-card-insight svg { stroke: var(--g4); flex-shrink: 0; margin-top: 1px; }
.rt-card-insight--violet {
  background: rgba(139,92,246,.07); border-color: rgba(139,92,246,.18);
}
.rt-card-insight--violet svg { stroke: #a78bfa; }

.rt-card-photo-wrap {
  position: relative; z-index: 1;
  border-radius: 12px; overflow: hidden; margin-top: 20px;
}
.rt-card-photo { width: 100%; height: 160px; object-fit: cover; display: block; border-radius: 12px; }
.rt-card-photo-badge {
  position: absolute; bottom: 10px; left: 10px;
  background: rgba(0,0,0,.65); backdrop-filter: blur(8px);
  border: 1px solid rgba(64,145,108,.3); border-radius: 6px;
  padding: 4px 10px; font-size: .62rem; font-weight: 700;
  color: var(--g4); letter-spacing: .5px;
}

/* ---- DATA PIPELINE SECTION ---- */
.rt-pipeline-section {
  background: var(--offwh);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.rt-pipeline-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.rt-pipeline { position: relative; margin-top: 60px; }

/* Glowing horizontal connector line */
.rt-pipeline-line {
  position: absolute;
  top: 28px; left: 12.5%; right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(64,145,108,.3) 20%,
    var(--g4) 50%,
    rgba(64,145,108,.3) 80%,
    transparent
  );
  box-shadow: 0 0 12px rgba(64,145,108,.4);
  z-index: 0;
}

.rt-pipeline-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative; z-index: 1;
}

.rt-pipe-step {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 20px;
}

/* Node circle */
.rt-pipe-node {
  position: relative;
  width: 56px; height: 56px; border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--g4);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.1rem; font-weight: 700;
  color: var(--g2);
  box-shadow: 0 0 20px rgba(0,0,0,.05);
  margin-bottom: 24px;
  transition: box-shadow .3s ease, transform .3s ease;
  cursor: default;
}
.rt-pipe-step:hover .rt-pipe-node {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(64,145,108,.15);
}

/* Pulsing ring animation */
.rt-pipe-node-ring {
  position: absolute; inset: -8px; border-radius: 50%;
  border: 1px solid rgba(64,145,108,.2);
  animation: rtNodePulse 2.5s ease-out infinite;
}
.rt-pipe-step:nth-child(2) .rt-pipe-node-ring { animation-delay: .6s; }
.rt-pipe-step:nth-child(3) .rt-pipe-node-ring { animation-delay: 1.2s; }
.rt-pipe-step:nth-child(4) .rt-pipe-node-ring { animation-delay: 1.8s; }

.rt-pipe-body {
  text-align: center; display: flex; flex-direction: column;
  flex: 1; align-items: center;
}
.rt-pipe-body h4 {
  font-family: var(--serif); font-size: 1rem; font-weight: 700;
  color: var(--dark); margin-bottom: 10px;
}
.rt-pipe-body p {
  font-size: .82rem; color: var(--body); line-height: 1.7; margin-bottom: 14px;
}
.rt-pipe-tag {
  display: inline-block; margin-top: auto;
  font-size: .6rem; font-weight: 700; letter-spacing: 1px;
  color: var(--g4); font-family: monospace;
  background: rgba(64,145,108,.08); border: 1px solid rgba(64,145,108,.2);
  border-radius: 4px; padding: 3px 8px;
}

/* ---- CYBER-GLOW CTA ---- */
.rt-cta-wrap {
  position: relative; overflow: hidden;
  padding: 120px 0;
}
.rt-cta-mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 10% 50%, rgba(64,145,108,.3)  0%, transparent 50%),
    radial-gradient(ellipse at 90% 20%, rgba(69,123,157,.25) 0%, transparent 50%),
    radial-gradient(ellipse at 55% 95%, rgba(139,92,246,.12) 0%, transparent 50%),
    linear-gradient(135deg, #020d06 0%, #030d16 50%, #020d06 100%);
  z-index: 0;
}
.rt-cta-orb {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 1;
  animation: rtOrb 7s ease-in-out infinite;
}
.rt-cta-orb--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(64,145,108,.12) 0%, transparent 70%);
  top: 50%; left: 20%;
  animation-duration: 9s;
}
.rt-cta-orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(69,123,157,.1) 0%, transparent 70%);
  top: 30%; right: 15%;
  animation-duration: 6s; animation-delay: -3s;
}

.rt-cta-inner {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 700px; margin: 0 auto;
}

.rt-cta-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .7rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--g4); margin-bottom: 24px;
}
.rt-cta-eyebrow svg { stroke: var(--g4); }

.rt-cta-inner h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700; color: var(--white); line-height: 1.15; margin-bottom: 20px;
}
.rt-cta-inner h2 em { font-style: italic; color: var(--g4); }

.rt-cta-inner p {
  font-size: 1rem; color: rgba(255,255,255,.6);
  line-height: 1.8; margin-bottom: 36px;
}

.rt-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }

/* Trust row */
.rt-cta-trust {
  display: flex; align-items: center; justify-content: center; gap: 0;
}
.rt-trust-item {
  display: flex; align-items: center; gap: 7px;
  font-size: .78rem; color: rgba(255,255,255,.4);
  padding: 0 20px;
}
.rt-trust-item svg { stroke: var(--g4); flex-shrink: 0; }
.rt-trust-divider { width: 1px; height: 20px; background: rgba(255,255,255,.1); }

/* ---- RESPONSIVE — RAIZ DECISAO ---- */
@media (max-width: 1024px) {
  .rt-cards-grid { grid-template-columns: 1fr 1fr; }
  .rt-hero-inner { gap: 40px; }
}

@media (max-width: 768px) {
  .rt-hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .rt-hero { padding: 120px 0 80px; min-height: auto; }
  .rt-hero-terminal-wrap { width: 100%; }
  .rt-terminal { max-width: 100%; }
  .rt-cards-grid { grid-template-columns: 1fr; }
  .rt-pipeline-steps { grid-template-columns: 1fr; gap: 32px; }
  .rt-pipeline-line { display: none; }
  .rt-kpi-strip { gap: 0; }
  .rt-kpi { text-align: center; }
  .rt-cta-trust { flex-direction: column; gap: 12px; }
  .rt-trust-divider { display: none; }
}

/* =============================================
   RAIZ PROCUREMENT — Energy Market Terminal
   ============================================= */

:root {
  --amber2: #f4a261;
  --amber3: #e76f51;
}

/* ---- KEYFRAMES ---- */
@keyframes epTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes epLiveBlink { 0%,100% { opacity:1; } 50% { opacity:.2; } }
@keyframes epNodePulse { 0%,100% { transform:scale(1); opacity:.5; } 50% { transform:scale(1.4); opacity:0; } }
@keyframes epGridScroll { from { background-position: 0 0; } to { background-position: 60px 60px; } }
@keyframes epOrb { 0%,100% { transform:translate(-50%,-50%) scale(1); opacity:.5; } 50% { transform:translate(-50%,-50%) scale(1.3); opacity:.8; } }

/* ---- HERO ---- */
.ep-hero {
  position: relative; overflow: hidden;
  min-height: 820px; display: flex; align-items: center;
  background: #080500;
  padding: 120px 0 100px;
}
.ep-hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(244,162,97,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,162,97,.08) 1px, transparent 1px),
    linear-gradient(rgba(244,162,97,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,162,97,.04) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px, 15px 15px, 15px 15px;
  animation: epGridScroll 16s linear infinite;
}
.ep-hero-radial {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 65% 40%, rgba(244,162,97,.12) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 70%, rgba(231,111,81,.08) 0%, transparent 50%);
}
.ep-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none; z-index: 2;
}

/* Ticker tape */
.ep-hero-ticker {
  position: absolute; top: 80px; left: 0; right: 0;
  overflow: hidden; height: 32px; z-index: 3;
  border-bottom: 1px solid rgba(244,162,97,.1);
  background: rgba(0,0,0,.3); backdrop-filter: blur(4px);
}
.ep-ticker-track {
  display: flex; gap: 32px; align-items: center;
  white-space: nowrap; height: 100%;
  animation: epTicker 20s linear infinite;
}
.ep-tick {
  font-size: .65rem; font-weight: 700; letter-spacing: .5px;
  font-family: monospace;
}
.ep-tick--up    { color: #4de090; }
.ep-tick--down  { color: #f87171; }
.ep-tick--neutral { color: rgba(255,255,255,.4); }
.ep-tick-sep    { color: rgba(255,255,255,.15); }

.ep-hero-inner {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}

/* Badge */
.ep-eyebrow-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 50px;
  background: rgba(244,162,97,.12); border: 1px solid rgba(244,162,97,.3);
  font-size: .72rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--amber2);
}
.ep-badge-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber2);
  animation: epLiveBlink 2s ease-in-out infinite;
}
.ep-hero-h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700; color: var(--white); line-height: 1.1; margin-bottom: 24px;
}
.ep-hero-h1 em { font-style: italic; color: var(--amber2); }
.ep-hero-desc {
  font-size: 1.05rem; color: rgba(255,255,255,.68);
  line-height: 1.8; margin-bottom: 32px; max-width: 500px;
}
.ep-hero-desc strong { color: var(--amber2); font-weight: 600; }
.ep-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }

/* KPI strip */
.ep-kpi-strip {
  display: flex; align-items: center;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08);
}
.ep-kpi { flex: 1; }
.ep-kpi-value {
  display: block; font-family: var(--serif); font-size: 2rem;
  font-weight: 700; color: var(--amber2); line-height: 1;
}
.ep-kpi-value span { font-size: 1.2rem; }
.ep-kpi-label { display: block; font-size: .72rem; color: rgba(255,255,255,.4); margin-top: 4px; }
.ep-kpi-divider { width: 1px; height: 40px; background: rgba(255,255,255,.1); margin: 0 20px; }

/* ---- MARKET CARD ---- */
.ep-hero-chart-wrap {
  display: flex; align-items: center; justify-content: center;
}
.ep-market-card {
  width: 100%; max-width: 440px;
  background: rgba(8,5,0,.85);
  border: 1px solid rgba(244,162,97,.2);
  border-radius: 18px; overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 60px rgba(244,162,97,.06), 0 24px 64px rgba(0,0,0,.6);
  position: relative;
  transition: transform 0.2s ease-out, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}
.ep-market-card:hover {
  box-shadow: 0 0 80px rgba(244,162,97,.15), 0 30px 70px rgba(0,0,0,.7);
  border-color: rgba(244,162,97,.4);
}
.ep-market-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(244,162,97,.1);
}
.ep-market-title {
  flex: 1; text-align: center;
  font-size: .65rem; font-weight: 700; letter-spacing: 1.5px;
  color: rgba(255,255,255,.35); text-transform: uppercase; font-family: monospace;
}
.ep-market-live {
  display: flex; align-items: center; gap: 5px;
  font-size: .6rem; font-weight: 700; color: var(--amber2);
  text-transform: uppercase; letter-spacing: 1px;
}
.ep-live-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--amber2);
  animation: epLiveBlink 1.5s ease-in-out infinite;
}
.ep-chart-area { padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.05); }
.ep-chart-label { font-size: .6rem; color: rgba(255,255,255,.25); letter-spacing: 1px; margin-bottom: 10px; text-transform: uppercase; }
.ep-sparkline { width: 100%; height: auto; display: block; }
.ep-chart-price {
  display: flex; align-items: baseline; gap: 8px; margin-top: 10px;
}
.ep-price-val { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; color: var(--amber2); }
.ep-price-unit { font-size: .75rem; color: rgba(255,255,255,.4); }
.ep-price-change { font-size: .75rem; font-weight: 700; }
.ep-up { color: #4de090; }

.ep-market-compare { padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.05); display: flex; flex-direction: column; gap: 10px; }
.ep-compare-row { display: flex; align-items: center; gap: 8px; }
.ep-compare-label { font-size: .62rem; color: rgba(255,255,255,.35); width: 110px; flex-shrink: 0; }
.ep-compare-bar-wrap { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.06); overflow: hidden; }
.ep-compare-bar { height: 100%; border-radius: 2px; }
.ep-compare-val { font-size: .68rem; font-weight: 700; width: 48px; text-align: right; flex-shrink: 0; }
.ep-val-red   { color: #f87171; }
.ep-val-amber { color: var(--amber2); }
.ep-val-green { color: #4de090; }

.ep-market-alert {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  font-size: .68rem; color: var(--amber2);
  background: rgba(244,162,97,.05);
  font-family: monospace;
}
.ep-market-alert svg { stroke: var(--amber2); flex-shrink: 0; }

/* ---- CARDS SECTION ---- */
.ep-section { padding: 100px 0; background: var(--white); }
.ep-section-head { margin-bottom: 60px; text-align: center; }
.ep-section-head--dark { text-align: center; }
.ep-section-eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--amber2); margin-bottom: 10px; display: block;
}
.ep-section-h2 {
  font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700; color: var(--dark); line-height: 1.2; margin-bottom: 16px;
}
.ep-section-h2 em { font-style: italic; color: var(--amber2); }
.ep-h2-white { color: var(--white); }
.ep-h2-white em { color: var(--amber2); }
.ep-section-sub { font-size: 1rem; color: var(--body); max-width: 560px; line-height: 1.8; margin: 0 auto; }
.ep-sub-dim { color: rgba(255,255,255,.45); margin: 0 auto; }

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

.ep-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px; padding: 32px 28px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(244,162,97,.05);
  transition: transform .35s cubic-bezier(.16,1,.3,1), border-color .3s ease, box-shadow .3s ease;
}
.ep-card:hover {
  transform: translateY(-6px);
  border-color: rgba(244,162,97,.25);
  box-shadow: 0 20px 48px rgba(244,162,97,.15);
}
.ep-card-accent {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--amber2), var(--amber3));
}
.ep-card-accent--blue  { background: linear-gradient(90deg, #457b9d, #60b4e0); }
.ep-card-accent--green { background: linear-gradient(90deg, var(--g2), var(--g4)); }

.ep-card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(244,162,97,.1); border: 1px solid rgba(244,162,97,.2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.ep-card-icon svg { stroke: var(--amber2); }
.ep-card-icon--blue  { background: rgba(69,123,157,.1); border-color: rgba(69,123,157,.2); }
.ep-card-icon--blue svg { stroke: #60b4e0; }
.ep-card-icon--green { background: rgba(64,145,108,.1); border-color: rgba(64,145,108,.2); }
.ep-card-icon--green svg { stroke: var(--g4); }

.ep-card-tag { font-size: .62rem; font-weight: 700; letter-spacing: 1px; color: var(--amber2); font-family: monospace; margin-bottom: 14px; display: block; }
.ep-card-tag--blue  { color: #60b4e0; }
.ep-card-tag--green { color: var(--g4); }
.ep-card h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--dark); margin-bottom: 12px; line-height: 1.3; }
.ep-card p  { font-size: .87rem; color: var(--body); line-height: 1.75; margin-bottom: 18px; }
.ep-card-list { display: flex; flex-direction: column; gap: 7px; list-style: none; padding: 0; margin-bottom: 20px; }
.ep-card-list li { font-size: .82rem; color: var(--muted); padding-left: 18px; position: relative; }
.ep-card-list li::before { content: '›'; position: absolute; left: 0; color: var(--amber2); font-weight: 700; }
.ep-card-quote {
  background: rgba(244,162,97,.08); border: 1px solid rgba(244,162,97,.3);
  border-radius: 10px; padding: 12px 14px;
  font-size: .8rem; color: var(--body); font-style: italic;
}
.ep-card-photo-wrap { position: relative; border-radius: 12px; overflow: hidden; margin-top: 20px; }
.ep-card-photo { width: 100%; height: 160px; object-fit: cover; display: block; }
.ep-card-photo-badge {
  position: absolute; bottom: 10px; left: 10px;
  background: rgba(0,0,0,.65); backdrop-filter: blur(8px);
  border: 1px solid rgba(244,162,97,.3); border-radius: 6px;
  padding: 4px 10px; font-size: .62rem; font-weight: 700;
  color: var(--amber2); letter-spacing: .5px;
}

/* ---- PIPELINE SECTION ---- */
.ep-pipeline-section { background: var(--offwh); padding: 100px 0; position: relative; overflow: hidden; }
.ep-pipeline-section::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.03) 1px, transparent 1px);
  background-size: 40px 40px; pointer-events: none;
}
.ep-pipeline { position: relative; margin-top: 60px; }
.ep-pipeline-line {
  position: absolute; top: 28px; left: 12.5%; right: 12.5%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(244,162,97,.3) 20%, var(--amber2) 50%, rgba(244,162,97,.3) 80%, transparent);
  box-shadow: 0 0 12px rgba(244,162,97,.35); z-index: 0;
}
.ep-pipeline-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; position: relative; z-index: 1; }
.ep-pipe-step { display: flex; flex-direction: column; align-items: center; padding: 0 20px; }
.ep-pipe-node {
  position: relative; width: 56px; height: 56px; border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--amber2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: var(--amber2);
  box-shadow: 0 0 20px rgba(0,0,0,.05); margin-bottom: 24px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.ep-pipe-step:hover .ep-pipe-node {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(244,162,97,.2);
}
.ep-pipe-node-ring {
  position: absolute; inset: -8px; border-radius: 50%;
  border: 1px solid rgba(244,162,97,.3);
  animation: epNodePulse 2.5s ease-out infinite;
}
.ep-pipe-step:nth-child(2) .ep-pipe-node-ring { animation-delay: .6s; }
.ep-pipe-step:nth-child(3) .ep-pipe-node-ring { animation-delay: 1.2s; }
.ep-pipe-step:nth-child(4) .ep-pipe-node-ring { animation-delay: 1.8s; }
.ep-pipe-body { text-align: center; }
.ep-pipe-body h4 { font-family: var(--serif); font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.ep-pipe-body p  { font-size: .82rem; color: var(--body); line-height: 1.7; margin-bottom: 14px; }
.ep-pipe-tag {
  display: inline-block; font-size: .6rem; font-weight: 700; letter-spacing: 1px;
  color: var(--amber2); font-family: monospace;
  background: rgba(244,162,97,.08); border: 1px solid rgba(244,162,97,.2);
  border-radius: 4px; padding: 3px 8px;
}

/* ---- CTA ---- */
.ep-cta-wrap { position: relative; overflow: hidden; padding: 120px 0; }
.ep-cta-mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 10% 50%, rgba(244,162,97,.25) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 20%, rgba(231,111,81,.18) 0%, transparent 50%),
    radial-gradient(ellipse at 55% 95%, rgba(64,145,108,.08) 0%, transparent 50%),
    linear-gradient(135deg, #090500 0%, #120800 50%, #090500 100%);
  z-index: 0;
}
.ep-cta-orb { position: absolute; border-radius: 50%; pointer-events: none; z-index: 1; animation: epOrb 7s ease-in-out infinite; }
.ep-cta-orb--1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(244,162,97,.1) 0%, transparent 70%); top: 50%; left: 20%; animation-duration: 9s; }
.ep-cta-orb--2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(231,111,81,.08) 0%, transparent 70%); top: 30%; right: 15%; animation-duration: 6s; animation-delay: -3s; }
.ep-cta-inner { position: relative; z-index: 2; text-align: center; max-width: 700px; margin: 0 auto; }
.ep-cta-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .7rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--amber2); margin-bottom: 24px;
}
.ep-cta-eyebrow svg { stroke: var(--amber2); }
.ep-cta-inner h2 { font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; color: var(--white); line-height: 1.15; margin-bottom: 20px; }
.ep-cta-inner h2 em { font-style: italic; color: var(--amber2); }
.ep-cta-inner p { font-size: 1rem; color: rgba(255,255,255,.58); line-height: 1.8; margin-bottom: 36px; }
.ep-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.ep-cta-trust { display: flex; align-items: center; justify-content: center; }
.ep-trust-item { display: flex; align-items: center; gap: 7px; font-size: .78rem; color: rgba(255,255,255,.38); padding: 0 20px; }
.ep-trust-item svg { stroke: var(--amber2); flex-shrink: 0; }
.ep-trust-divider { width: 1px; height: 20px; background: rgba(255,255,255,.1); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .ep-cards-grid { grid-template-columns: 1fr 1fr; }
  .ep-hero-inner { gap: 40px; }
}
@media (max-width: 768px) {
  .ep-hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .ep-hero { padding: 120px 0 80px; min-height: auto; }
  .ep-cards-grid { grid-template-columns: 1fr; }
  .ep-pipeline-steps { grid-template-columns: 1fr; gap: 32px; }
  .ep-pipeline-line { display: none; }
  .ep-cta-trust { flex-direction: column; gap: 12px; }
  .ep-trust-divider { display: none; }
}

/* =============================================
   RAIZ SUSTENTABILIDADE — ESG Ecosystem
   ============================================= */

@keyframes gsFloat1  { 0%,100% { transform:translate(0,0) scale(1);      opacity:.35; } 50% { transform:translate(20px,-30px) scale(1.1); opacity:.6; } }
@keyframes gsFloat2  { 0%,100% { transform:translate(0,0) scale(1);      opacity:.25; } 50% { transform:translate(-15px,25px) scale(1.15); opacity:.5; } }
@keyframes gsFloat3  { 0%,100% { transform:translate(0,0) scale(1);      opacity:.2;  } 50% { transform:translate(30px,10px) scale(1.08);  opacity:.4; } }
@keyframes gsBlink   { 0%,100% { opacity:1; } 50% { opacity:.2; } }
@keyframes gsNodePulse { 0%,100% { transform:scale(1); opacity:.5; } 50% { transform:scale(1.4); opacity:0; } }
@keyframes gsOrb     { 0%,100% { transform:translate(-50%,-50%) scale(1); opacity:.5; } 50% { transform:translate(-50%,-50%) scale(1.3); opacity:.8; } }
@keyframes gsParticle {
  0%   { background-position: 0 0; }
  100% { background-position: 80px 80px; }
}

/* ---- HERO ---- */
.gs-hero {
  position: relative; overflow: hidden;
  min-height: 820px; display: flex; align-items: center;
  background: #030a06;
  padding: 150px 0 100px;
}
.gs-hero-particles {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(rgba(64,145,108,.12) 1.5px, transparent 1.5px),
    radial-gradient(rgba(82,183,136,.06) 1px, transparent 1px);
  background-size: 40px 40px, 20px 20px;
  background-position: 0 0, 10px 10px;
  animation: gsParticle 20s linear infinite;
}
.gs-hero-radial {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 65% 40%, rgba(64,145,108,.18) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 60%, rgba(82,183,136,.1)  0%, transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(69,123,157,.07) 0%, transparent 40%);
}
.gs-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none; z-index: 2;
}
/* Floating glow orbs */
.gs-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.gs-orb--1 { width:300px; height:300px; top:10%; right:5%;  background:radial-gradient(circle,rgba(64,145,108,.12)0%,transparent70%); animation:gsFloat1 8s ease-in-out infinite; }
.gs-orb--2 { width:200px; height:200px; bottom:20%; left:8%; background:radial-gradient(circle,rgba(82,183,136,.1)0%,transparent70%);  animation:gsFloat2 10s ease-in-out infinite; }
.gs-orb--3 { width:150px; height:150px; top:40%; left:35%; background:radial-gradient(circle,rgba(69,123,157,.08)0%,transparent70%); animation:gsFloat3 7s ease-in-out infinite; }

.gs-hero-inner {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}

/* Badge */
.gs-eyebrow-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 50px;
  background: rgba(64,145,108,.12); border: 1px solid rgba(64,145,108,.3);
  font-size: .72rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--g4);
}
.gs-badge-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--g4); animation: gsBlink 2s ease-in-out infinite;
}
.gs-hero-h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 700; color: var(--white); line-height: 1.1; margin-bottom: 24px;
}
.gs-hero-h1 em { font-style: italic; color: var(--g4); }
.gs-hero-desc { font-size: 1.05rem; color: rgba(255,255,255,.68); line-height: 1.8; margin-bottom: 32px; max-width: 500px; }
.gs-hero-desc strong { color: var(--g4); font-weight: 600; }
.gs-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }

/* ESG Score strip */
.gs-score-strip { display: flex; align-items: center; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08); }
.gs-score-item { display: flex; flex-direction: column; align-items: center; flex: 1; }
.gs-score-ring { position: relative; width: 52px; height: 52px; margin-bottom: 6px; }
.gs-score-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gs-score-bg   { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 3; }
.gs-score-fill { fill: none; stroke: var(--g4); stroke-width: 3; stroke-linecap: round; stroke-dashoffset: 0; }
.gs-score-val  { position: absolute; inset:0; display:flex; align-items:center; justify-content:center; font-family:var(--serif); font-size:1rem; font-weight:700; color:var(--g4); }
.gs-score-label { font-size: .7rem; color: rgba(255,255,255,.4); }
.gs-kpi-divider { width: 1px; height: 40px; background: rgba(255,255,255,.1); margin: 0 20px; }
.gs-kpi { flex: 1; }
.gs-kpi-value { display: block; font-family: var(--serif); font-size: 1.8rem; font-weight: 700; color: var(--g4); line-height: 1; }
.gs-kpi-label { display: block; font-size: .7rem; color: rgba(255,255,255,.38); margin-top: 4px; }

/* ---- ESG DASHBOARD CARD ---- */
.gs-hero-dashboard-wrap { display: flex; align-items: center; justify-content: center; }
.gs-esg-card {
  width: 100%; max-width: 440px;
  background: rgba(3,10,6,.88);
  border: 1px solid rgba(64,145,108,.25);
  border-radius: 18px; overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 60px rgba(64,145,108,.08), 0 24px 64px rgba(0,0,0,.6);
  position: relative;
  transition: transform 0.2s ease-out, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}
.gs-esg-card:hover {
  box-shadow: 0 0 80px rgba(64,145,108,.15), 0 30px 70px rgba(0,0,0,.7);
  border-color: rgba(64,145,108,.4);
}
.gs-esg-card::before {
  content: ''; position: absolute; top: -100%; left: 0; right: 0; height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(64,145,108,0.05) 50%, rgba(64,145,108,0.25) 100%);
  border-bottom: 1px solid rgba(64,145,108,0.8);
  animation: gsScanline 4s linear infinite; pointer-events: none; z-index: 10;
}
@keyframes gsScanline {
  0% { top: -100%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.gs-esg-header {
  position: relative; z-index: 11;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(64,145,108,.12);
}
.gs-esg-title {
  flex: 1; text-align: center;
  font-size: .65rem; font-weight: 700; letter-spacing: 1.5px;
  color: rgba(255,255,255,.35); text-transform: uppercase; font-family: monospace;
}
.gs-esg-live { display: flex; align-items: center; gap: 5px; font-size: .6rem; font-weight: 700; color: var(--g4); text-transform: uppercase; letter-spacing: 1px; }
.gs-live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--g4); animation: gsBlink 1.5s ease-in-out infinite; }
.gs-esg-label { font-size: .6rem; font-weight: 700; letter-spacing: 1.5px; color: rgba(255,255,255,.25); text-transform: uppercase; margin-bottom: 12px; }

/* ESG Pillars */
.gs-pillars { padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.05); display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 11; }
.gs-pillar { display: flex; align-items: center; gap: 8px; }
.gs-pillar-label { font-size: .62rem; color: rgba(255,255,255,.4); width: 100px; flex-shrink: 0; }
.gs-pillar-bar-wrap { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.06); overflow: hidden; }
.gs-pillar-bar { height: 100%; border-radius: 3px; background: var(--c); animation: gsBarGrow 1.5s cubic-bezier(0.16,1,0.3,1) forwards; transform-origin: left; }
@keyframes gsBarGrow { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
.gs-pillar-score { font-size: .7rem; font-weight: 700; width: 24px; text-align: right; flex-shrink: 0; }

/* Carbon tracker */
.gs-carbon-section { padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.05); position: relative; z-index: 11; }
.gs-carbon-rows { display: flex; flex-direction: column; gap: 9px; }
.gs-carbon-row { display: flex; align-items: center; gap: 8px; }
.gs-carbon-label { font-size: .62rem; color: rgba(255,255,255,.35); width: 94px; flex-shrink: 0; }
.gs-carbon-bar-wrap { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.06); overflow: hidden; }
.gs-carbon-bar { height: 100%; border-radius: 2px; animation: gsBarGrow 1.5s cubic-bezier(0.16,1,0.3,1) forwards; transform-origin: left; }
.gs-carbon-val { font-size: .68rem; font-weight: 700; width: 36px; text-align: right; flex-shrink: 0; }
.gs-green  { color: #4de090; }
.gs-blue   { color: #60b4e0; }
.gs-violet { color: #a78bfa; }

/* Status badges */
.gs-status-row { padding: 12px 20px; display: flex; gap: 6px; flex-wrap: wrap; position: relative; z-index: 11; }
.gs-status-badge {
  font-size: .6rem; font-weight: 700; letter-spacing: .8px;
  padding: 3px 10px; border-radius: 4px; font-family: monospace;
}
.gs-status--green  { background: rgba(77,224,144,.1);  border: 1px solid rgba(77,224,144,.25);  color: #4de090; }
.gs-status--blue   { background: rgba(96,180,224,.1);  border: 1px solid rgba(96,180,224,.25);  color: #60b4e0; }
.gs-status--violet { background: rgba(167,139,250,.1); border: 1px solid rgba(167,139,250,.25); color: #a78bfa; }
.gs-status--teal   { background: rgba(64,145,108,.1);  border: 1px solid rgba(64,145,108,.25);  color: var(--g4); }

/* ---- SECTION ---- */
.gs-section { padding: 100px 0; background: var(--white); }
.gs-section-head { margin-bottom: 60px; text-align: center; }
.gs-section-head--dark { text-align: center; }
.gs-section-eyebrow { font-size:.72rem; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--g3); margin-bottom:10px; display:block; }
.gs-section-h2 { font-family:var(--serif); font-size:clamp(1.8rem,3.5vw,2.8rem); font-weight:700; color:var(--dark); line-height:1.2; margin-bottom:16px; }
.gs-section-h2 em { font-style:italic; color:var(--g3); }
.gs-h2-white { color:var(--white); }
.gs-h2-white em { color:var(--g4); }
.gs-section-sub { font-size:1rem; color:var(--body); max-width:560px; line-height:1.8; margin: 0 auto; }
.gs-sub-dim { color:rgba(255,255,255,.45); margin:0 auto; }

/* ---- CARDS ---- */
.gs-cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.gs-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px; padding: 32px 28px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(45,106,79,.05);
  transition: transform .35s cubic-bezier(.16,1,.3,1), border-color .3s ease, box-shadow .3s ease;
}
.gs-card:hover { transform:translateY(-6px); border-color:rgba(64,145,108,.25); box-shadow: 0 20px 48px rgba(45,106,79,.12); }
.gs-card-top-bar           { position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(90deg,var(--g2),var(--g4)); }
.gs-card-top-bar--blue     { background:linear-gradient(90deg,#457b9d,#60b4e0); }
.gs-card-top-bar--teal     { background:linear-gradient(90deg,var(--g4),#52b788); }
.gs-card-icon              { width:56px; height:56px; border-radius:14px; background:rgba(64,145,108,.1); border:1px solid rgba(64,145,108,.2); display:flex; align-items:center; justify-content:center; margin-bottom:18px; }
.gs-card-icon svg          { stroke:var(--g4); }
.gs-card-icon--blue        { background:rgba(69,123,157,.1);  border-color:rgba(69,123,157,.2); }
.gs-card-icon--blue svg    { stroke:#60b4e0; }
.gs-card-icon--teal        { background:rgba(82,183,136,.1);  border-color:rgba(82,183,136,.2); }
.gs-card-icon--teal svg    { stroke:#52b788; }
.gs-card-tag               { font-size:.62rem; font-weight:700; letter-spacing:1px; color:var(--g4); font-family:monospace; margin-bottom:14px; display:block; }
.gs-card-tag--blue         { color:#60b4e0; }
.gs-card-tag--teal         { color:#52b788; }
.gs-card h3                { font-family:var(--serif); font-size:1.15rem; font-weight:700; color:var(--dark); margin-bottom:12px; line-height:1.3; }
.gs-card p                 { font-size:.87rem; color:var(--body); line-height:1.75; margin-bottom:18px; }
.gs-card-list              { display:flex; flex-direction:column; gap:7px; list-style:none; padding:0; margin-bottom:20px; }
.gs-card-list li           { font-size:.82rem; color:var(--muted); padding-left:18px; position:relative; }
.gs-card-list li::before   { content:'›'; position:absolute; left:0; color:var(--g4); font-weight:700; }
.gs-card-quote             { background:rgba(64,145,108,.06); border:1px solid var(--border); border-radius:10px; padding:12px 14px; font-size:.8rem; color:var(--body); font-style:italic; }
.gs-card-photo-wrap        { position:relative; border-radius:12px; overflow:hidden; margin-top:20px; }
.gs-card-photo             { width:100%; height:160px; object-fit:cover; display:block; }
.gs-card-photo-badge       { position:absolute; bottom:10px; left:10px; background:rgba(0,0,0,.65); backdrop-filter:blur(8px); border:1px solid rgba(64,145,108,.3); border-radius:6px; padding:4px 10px; font-size:.62rem; font-weight:700; color:var(--g4); letter-spacing:.5px; }

/* ---- PIPELINE ---- */
.gs-pipeline-section { background:var(--offwh); padding:100px 0; position:relative; overflow:hidden; border-top: none; }
.gs-pipeline-section::before { content:''; position:absolute; inset:0; background-image:linear-gradient(rgba(0,0,0,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(0,0,0,.04) 1px,transparent 1px); background-size:40px 40px; pointer-events:none; }
.gs-pipeline { position:relative; margin-top:60px; }
.gs-pipeline-line { position:absolute; top:28px; left:12.5%; right:12.5%; height:2px; background:linear-gradient(90deg,transparent,rgba(64,145,108,.3) 20%,var(--g4) 50%,rgba(64,145,108,.3) 80%,transparent); box-shadow:0 0 12px rgba(64,145,108,.4); z-index:0; }
.gs-pipeline-steps { display:grid; grid-template-columns:repeat(4,1fr); gap:0; position:relative; z-index:1; }
.gs-pipe-step { display:flex; flex-direction:column; align-items:center; padding:0 20px; }
.gs-pipe-node { position:relative; width:56px; height:56px; border-radius:50%; background:#ffffff; border:2px solid var(--g3); display:flex; align-items:center; justify-content:center; font-family:var(--serif); font-size:1.1rem; font-weight:700; color:var(--g2); box-shadow:0 0 20px rgba(0,0,0,.05); margin-bottom:24px; transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.gs-pipe-step:hover .gs-pipe-node { transform:scale(1.1); border-color:var(--g4); box-shadow:0 0 20px rgba(64,145,108,.15); }
.gs-pipe-node-ring { position:absolute; inset:-8px; border-radius:50%; border:1px solid rgba(64,145,108,.3); animation:gsNodePulse 2.5s ease-out infinite; }
.gs-pipe-step:nth-child(2) .gs-pipe-node-ring { animation-delay:.6s; }
.gs-pipe-step:nth-child(3) .gs-pipe-node-ring { animation-delay:1.2s; }
.gs-pipe-step:nth-child(4) .gs-pipe-node-ring { animation-delay:1.8s; }
.gs-pipe-body { text-align:center; }
.gs-pipe-body h4 { font-family:var(--serif); font-size:1rem; font-weight:700; color:var(--dark); margin-bottom:10px; }
.gs-pipe-body p  { font-size:.82rem; color:var(--body); line-height:1.7; margin-bottom:14px; }
.gs-pipe-tag { display:inline-block; font-size:.6rem; font-weight:700; letter-spacing:1px; color:var(--g4); font-family:monospace; background:rgba(64,145,108,.08); border:1px solid rgba(64,145,108,.2); border-radius:4px; padding:3px 8px; }

/* ---- CTA ---- */
.gs-cta-wrap { position:relative; overflow:hidden; padding:120px 0; }
.gs-cta-mesh { position:absolute; inset:0; background:radial-gradient(ellipse at 10% 50%,rgba(64,145,108,.28)0%,transparent 50%),radial-gradient(ellipse at 90% 20%,rgba(82,183,136,.18)0%,transparent 50%),radial-gradient(ellipse at 55% 95%,rgba(69,123,157,.1)0%,transparent 50%),linear-gradient(135deg,#030d06 0%,#041408 50%,#020a05 100%); z-index:0; }
.gs-cta-orb { position:absolute; border-radius:50%; pointer-events:none; z-index:1; animation:gsOrb 7s ease-in-out infinite; }
.gs-cta-orb--1 { width:500px; height:500px; background:radial-gradient(circle,rgba(64,145,108,.12)0%,transparent 70%); top:50%; left:20%; animation-duration:9s; }
.gs-cta-orb--2 { width:400px; height:400px; background:radial-gradient(circle,rgba(82,183,136,.09)0%,transparent 70%); top:30%; right:15%; animation-duration:6s; animation-delay:-3s; }
.gs-cta-inner { position:relative; z-index:2; text-align:center; max-width:700px; margin:0 auto; }
.gs-cta-eyebrow { display:inline-flex; align-items:center; gap:8px; font-size:.7rem; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--g4); margin-bottom:24px; }
.gs-cta-eyebrow svg { stroke:var(--g4); }
.gs-cta-inner h2 { font-family:var(--serif); font-size:clamp(2rem,4.5vw,3.4rem); font-weight:700; color:var(--white); line-height:1.15; margin-bottom:20px; }
.gs-cta-inner h2 em { font-style:italic; color:var(--g4); }
.gs-cta-inner p { font-size:1rem; color:rgba(255,255,255,.58); line-height:1.8; margin-bottom:36px; }
.gs-cta-btns { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-bottom:32px; }
.gs-cta-trust { display:flex; align-items:center; justify-content:center; }
.gs-trust-item { display:flex; align-items:center; gap:7px; font-size:.78rem; color:rgba(255,255,255,.38); padding:0 20px; }
.gs-trust-item svg { stroke:var(--g4); flex-shrink:0; }
.gs-trust-divider { width:1px; height:20px; background:rgba(255,255,255,.1); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .gs-cards-grid { grid-template-columns: 1fr 1fr; }
  .gs-hero-inner { gap: 40px; }
}
@media (max-width: 768px) {
  .gs-hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .gs-hero { padding: 120px 0 80px; min-height: auto; }
  .gs-cards-grid { grid-template-columns: 1fr; }
  .gs-pipeline-steps { grid-template-columns: 1fr; gap: 32px; }
  .gs-pipeline-line { display: none; }
  .gs-cta-trust { flex-direction: column; gap: 12px; }
  .gs-trust-divider { display: none; }
}