/* ==========================================================================
   Home (nova versão) — efeitos e componentes exclusivos
   ========================================================================== */
.hn-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 1001; pointer-events: none;
  transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--verde-escuro), var(--verde-claro));
}

/* ---------- HERO ---------- */
.hn-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: 7rem 2rem 4.5rem;
  background: linear-gradient(110deg, #0b1f10 0%, #17361d 55%, #24492a 100%);
}
.hn-hero-bg {
  position: absolute; inset: -4%; z-index: -6;
  background-image: url('https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=1600&q=70'); background-size: cover; background-position: center 40%;
  filter: saturate(1.15) contrast(1.05) brightness(0.95);
  transform-origin: 60% 45%;
  animation: bc-hn-kb 24s ease-in-out -6s infinite alternate;
}

@keyframes bc-hn-kb {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.1) translate(-1.8%, -1.2%); }
  100% { transform: scale(1.18) translate(1.6%, -2.2%); }
}

/* "vídeo" da floresta: névoa, raios de luz e pólen */
.hn-fog {
  position: absolute; inset: -20% -50%; z-index: -5; pointer-events: none; opacity: 0.55;
  background:
    radial-gradient(ellipse 30% 18% at 20% 70%, rgba(220, 240, 225, 0.35), transparent 70%),
    radial-gradient(ellipse 25% 15% at 55% 80%, rgba(220, 240, 225, 0.28), transparent 70%),
    radial-gradient(ellipse 35% 20% at 85% 65%, rgba(220, 240, 225, 0.3), transparent 70%);
  filter: blur(18px);
  animation: bc-hn-fog 28s linear -9s infinite alternate;
}
.hn-fog-2 { opacity: 0.4; top: -10%; animation-duration: 40s; animation-delay: -16s; animation-direction: alternate-reverse; transform: scaleX(-1); }
@keyframes bc-hn-fog { from { translate: -12% 0; } to { translate: 12% -3%; } }
.hn-rays {
  position: absolute; inset: -30% -10% 0 20%; z-index: -4; pointer-events: none; mix-blend-mode: screen;
  background: repeating-linear-gradient(105deg,
    transparent 0 60px, rgba(255, 246, 200, 0.10) 60px 90px, transparent 90px 170px,
    rgba(255, 246, 200, 0.06) 170px 230px, transparent 230px 320px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.6) 45%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.6) 45%, transparent 85%);
  filter: blur(6px); transform-origin: 70% 0;
  animation: bc-hn-rays 7s ease-in-out -2s infinite alternate;
}
@keyframes bc-hn-rays {
  0% { transform: rotate(-2deg) translateX(0); opacity: 0.55; }
  50% { opacity: 0.95; }
  100% { transform: rotate(2.5deg) translateX(-40px); opacity: 0.6; }
}
.hn-motes { position: absolute; inset: 0; z-index: -3; pointer-events: none; overflow: hidden; }
.hn-mote {
  position: absolute; bottom: -10px; width: var(--s, 3px); height: var(--s, 3px); border-radius: 50%;
  background: rgba(255, 248, 210, 0.9); box-shadow: 0 0 8px 2px rgba(255, 240, 180, 0.55);
  opacity: 0; animation: bc-hn-mote var(--d, 16s) linear var(--dl, 0s) infinite;
}
@keyframes bc-hn-mote {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: var(--o, 0.8); }
  50% { transform: translate(var(--x, 30px), -45vh); }
  90% { opacity: var(--o, 0.8); }
  100% { transform: translate(calc(var(--x, 30px) * -0.6), -95vh); opacity: 0; }
}
.hn-shade {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(4, 16, 8, 0.9) 0%, rgba(4, 16, 8, 0.72) 38%, rgba(4, 16, 8, 0.28) 70%, rgba(4, 16, 8, 0.38) 100%),
    linear-gradient(180deg, rgba(4, 16, 8, 0.25) 0%, transparent 30%, transparent 70%, rgba(4, 16, 8, 0.6) 100%);
}
.hn-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.8; }
.hn-hero-grid {
  max-width: 1240px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center;
}
.hn-hero-grid > * { min-width: 0; }
.hn-kicker {
  display: inline-flex; align-items: center; gap: 0.55rem; margin-bottom: 1.5rem;
  font-size: 0.85rem; font-weight: 600; color: #d9f59a;
  padding: 0.5rem 1rem; border-radius: 50px;
  background: rgba(156, 191, 0, 0.1); border: 1px solid rgba(191, 232, 106, 0.3);
}
.hn-title { font-size: 3.6rem; font-weight: 800; line-height: 1.06; letter-spacing: -0.035em; color: #fff; margin-bottom: 1.4rem; text-wrap: initial; }
.hn-line { display: block; }
.hn-w { display: inline-block; opacity: 0; transform: translateY(0.45em); filter: blur(8px); }
.hn-title.hn-in .hn-w { animation: bc-hn-word 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes bc-hn-word { to { opacity: 1; transform: none; filter: blur(0); } }
.hn-rotator { display: block; height: 1.12em; overflow: hidden; position: relative; font-size: 0.92em; }
.hn-rot {
  display: inline-block; white-space: nowrap;
  background: linear-gradient(100deg, #9cbf00 10%, #eaffb0 40%, #4fd06f 60%, #9cbf00 90%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: bc-hn-shine 5s linear infinite;
  transition: transform 0.55s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.4s;
}
.hn-rot.hn-out { transform: translateY(-110%); opacity: 0; }
.hn-rot.hn-pre { transform: translateY(110%); opacity: 0; transition: none; }
@keyframes bc-hn-shine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.hn-lead { font-size: 1.12rem; color: rgba(255, 255, 255, 0.78); max-width: 560px; margin-bottom: 2rem; }
.hn-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hn-btn-ghost { background: rgba(255, 255, 255, 0.06); color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.35); }
.hn-btn-ghost:hover { border-color: #4fd06f; color: #4fd06f; }
.hn-magnet { transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s, box-shadow 0.3s, border-color 0.3s, color 0.3s; }
.hn-trust {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.8rem; padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.85rem; color: rgba(255, 255, 255, 0.65);
}
.hn-trust i { color: #4fd06f; }
.hn-trust strong { color: #fff; }
.hn-hero .scroll-cue { z-index: 2; }

/* cartões 3D do hero */
.hn-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; perspective: 1200px; }
.hn-card {
  position: relative; display: flex; flex-direction: column; gap: 0.5rem; min-height: 170px; padding: 1.4rem;
  border-radius: 22px; text-decoration: none; color: #fff; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform-style: preserve-3d; transition: transform 0.2s ease-out, border-color 0.3s, box-shadow 0.3s;
  opacity: 0; animation: bc-hn-card 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hn-c1 { animation-delay: 0.9s; } .hn-c2 { animation-delay: 1.05s; margin-top: 2.4rem; } .hn-c3 { animation-delay: 1.2s; } .hn-c4 { animation-delay: 1.35s; margin-top: 2.4rem; }
.hn-cards { align-items: start; }
@keyframes bc-hn-card { from { opacity: 0; translate: 0 40px; scale: 0.96; } to { opacity: 1; translate: 0 0; scale: 1; } }
.hn-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(191, 232, 106, 0.22), transparent 60%);
}
.hn-card:hover { border-color: rgba(191, 232, 106, 0.55); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(191, 232, 106, 0.2); }
.hn-card:hover::after { opacity: 1; }
.hn-card-ic {
  width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: auto; transform: translateZ(30px);
}
.hn-c1 .hn-card-ic { background: rgba(79, 208, 111, 0.18); color: #6ee08a; }
.hn-c2 .hn-card-ic { background: rgba(156, 191, 0, 0.2); color: #c7e85a; }
.hn-c3 .hn-card-ic { background: rgba(42, 127, 170, 0.25); color: #7cc4ea; }
.hn-c4 .hn-card-ic { background: rgba(184, 134, 11, 0.25); color: #f0c35a; }
.hn-card b { font-size: 1.05rem; font-weight: 800; line-height: 1.25; transform: translateZ(20px); margin-top: 1.2rem; }
.hn-card small { font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); transform: translateZ(14px); }

/* ---------- SELOS (duas faixas) ---------- */
.hn-seals { background: #fff; border-bottom: 1px solid var(--cinza); padding: 1.8rem 0 1.6rem; overflow: hidden; position: relative; }
.hn-seals::before, .hn-seals::after { content: ''; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 2; pointer-events: none; }
.hn-seals::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.hn-seals::after { right: 0; background: linear-gradient(270deg, #fff, transparent); }
.hn-row { overflow: hidden; padding: 0.35rem 0; }
.hn-track { display: flex; gap: 1rem; width: max-content; animation: bc-hn-mq 40s linear infinite; }
.hn-rev .hn-track { animation-direction: reverse; animation-duration: 46s; }
.hn-seals:hover .hn-track { animation-play-state: paused; }
@keyframes bc-hn-mq { to { transform: translateX(-50%); } }

/* ---------- QUATRO FRENTES (acordeão horizontal) ---------- */
.hn-acc { display: flex; gap: 1rem; height: 420px; }
.hn-panel {
  --acc: var(--verde-escuro); --acc2: #0a5a22;
  position: relative; flex: 1; min-width: 0; overflow: hidden; cursor: pointer; border-radius: 24px; color: #fff;
  background: linear-gradient(160deg, var(--acc), var(--acc2));
  transition: flex 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s;
  box-shadow: 0 12px 30px rgba(10, 26, 13, 0.15); outline: none;
}
.hn-p2 { --acc: #0f8f6a; --acc2: #0a5a45; }
.hn-p3 { --acc: #2a7faa; --acc2: #1a4d7a; }
.hn-p4 { --acc: #b8860b; --acc2: #7a5806; }
.hn-panel.hn-open { flex: 3.4; box-shadow: 0 30px 60px rgba(10, 26, 13, 0.25); }
.hn-panel:focus-visible { box-shadow: 0 0 0 4px rgba(18, 158, 56, 0.45); }
.hn-wm { position: absolute; right: -30px; bottom: -40px; font-size: 15rem; opacity: 0.09; transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); pointer-events: none; }
.hn-panel.hn-open .hn-wm { transform: rotate(-12deg) scale(1.1); }
.hn-panel-tab { position: absolute; left: 1.6rem; right: 1.6rem; top: 1.6rem; display: flex; flex-direction: column; gap: 0.8rem; }
.hn-pn { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; opacity: 0.7; }
.hn-panel-tab > i {
  width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.25);
}
.hn-panel-tab h3 { font-size: 1.02rem; font-weight: 800; line-height: 1.25; color: #fff; transition: font-size 0.5s; }
.hn-panel.hn-open .hn-panel-tab h3 { font-size: 1.7rem; letter-spacing: -0.02em; }
.hn-panel-body {
  position: absolute; left: 1.6rem; right: 1.6rem; bottom: 1.6rem; max-width: 560px;
  opacity: 0; transform: translateY(20px); transition: opacity 0.4s, transform 0.5s; pointer-events: none;
}
.hn-panel.hn-open .hn-panel-body { opacity: 1; transform: none; transition-delay: 0.25s; pointer-events: auto; }
.hn-panel-body p { color: rgba(255, 255, 255, 0.88); margin-bottom: 1rem; font-size: 1rem; }
.hn-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.2rem; }
.hn-chips span { font-size: 0.8rem; font-weight: 600; padding: 0.35rem 0.75rem; border-radius: 50px; background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.22); }
.hn-more { display: inline-flex; align-items: center; gap: 0.5rem; color: #fff; font-weight: 700; text-decoration: none; padding: 0.6rem 1.1rem; border-radius: 50px; background: rgba(0, 0, 0, 0.2); transition: var(--transition); }
.hn-more:hover { background: #fff; color: var(--preto); }
.hn-more i { transition: transform 0.3s; }
.hn-more:hover i { transform: translateX(4px); }

/* ---------- DIFERENCIAIS 3D ---------- */
.hn-tilt { transform-style: preserve-3d; transition: transform 0.2s ease-out, box-shadow 0.3s ease; will-change: transform; }
.hn-tilt .icon-tile, .hn-tilt h3 { transform: translateZ(28px); }
.hn-tilt::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(156, 191, 0, 0.2), transparent 60%);
}
.hn-tilt:hover::after { opacity: 1; }
.hn-tilt-group .value-card { position: relative; animation: bc-hn-float 7s ease-in-out infinite; }
.hn-tilt-group .value-card:nth-child(2) { animation-delay: -1.8s; }
.hn-tilt-group .value-card:nth-child(3) { animation-delay: -3.6s; }
.hn-tilt-group .value-card:nth-child(4) { animation-delay: -5.4s; }
@keyframes bc-hn-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }

/* ---------- DESTAQUE EUDR ---------- */
.hn-eudr { padding: 2rem 2rem 6rem; background: #fff; }
.hn-eudr-in {
  position: relative; overflow: hidden; isolation: isolate; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 2rem; align-items: center;
  padding: 3rem 3.2rem; border-radius: 30px; color: #fff;
  background: radial-gradient(ellipse at 85% 50%, rgba(156, 191, 0, 0.25), transparent 55%), linear-gradient(135deg, #06130a, #0d3a1a);
  box-shadow: 0 30px 70px rgba(10, 26, 13, 0.25);
}
.hn-eudr-in::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.35;
  background-image: linear-gradient(rgba(156, 220, 120, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(156, 220, 120, 0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 80% 50%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 80% 50%, #000, transparent 70%);
}
.hn-eudr-in > * { min-width: 0; }
.hn-badge { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #bfe86a; margin-bottom: 1rem; }
.hn-dot { width: 8px; height: 8px; border-radius: 50%; background: #4fd06f; display: inline-block; animation: bc-hn-pulse 1.8s infinite; }
@keyframes bc-hn-pulse { 0% { box-shadow: 0 0 0 0 rgba(79, 208, 111, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(79, 208, 111, 0); } 100% { box-shadow: 0 0 0 0 rgba(79, 208, 111, 0); } }
.hn-eudr h2 { font-size: 2rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; color: #fff; margin-bottom: 0.9rem; }
.hn-eudr .highlight { background: linear-gradient(135deg, #bfe86a, #4fd06f); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hn-eudr-text p { color: rgba(255, 255, 255, 0.75); margin-bottom: 1.6rem; max-width: 620px; }
.hn-eudr-count { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.hn-ring { position: relative; width: 190px; height: 190px; }
.hn-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.hn-ring circle { fill: none; stroke-width: 9; }
.hn-ring-t { stroke: rgba(255, 255, 255, 0.1); }
.hn-ring-v { stroke: #9cbf00; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 2s cubic-bezier(0.2, 0.8, 0.2, 1); filter: drop-shadow(0 0 8px rgba(156, 191, 0, 0.6)); }
.hn-ring-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hn-ring-num b { font-size: 3.4rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.hn-ring-num small { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.hn-ring-cap { font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); text-align: center; }

/* ---------- CTA final com brilho ---------- */
.hn-cta-final::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(156, 191, 0, 0.16), transparent 60%);
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 1100px) {
  .hn-title { font-size: 3rem; }
}
@media (max-width: 1024px) {
  .hn-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hn-c2, .hn-c4 { margin-top: 0; }
  .hn-acc { flex-direction: column; height: auto; }
  .hn-panel { flex: none; height: 92px; transition: height 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .hn-panel.hn-open { flex: none; height: 330px; }
  .hn-panel-tab { flex-direction: row; align-items: center; top: 1.2rem; }
  .hn-panel-tab > i { width: 44px; height: 44px; font-size: 1.1rem; flex-shrink: 0; }
  .hn-panel.hn-open .hn-panel-tab h3 { font-size: 1.3rem; }
  .hn-eudr-in { grid-template-columns: 1fr; text-align: left; }
}
@media (max-width: 768px) {
  .hn-hero { padding: 6.5rem 1.2rem 3.5rem; }
  .hn-title { font-size: 2.3rem; }
  .hn-rot { white-space: normal; }
  .hn-rotator { height: 2.2em; }
  .hn-lead { font-size: 1rem; }
  .hn-cta .btn { width: 100%; justify-content: center; }
  .hn-cards { gap: 0.8rem; }
  .hn-card { min-height: 140px; padding: 1.1rem; }
  .hn-card b { font-size: 0.95rem; margin-top: 0.8rem; }
  .hn-card small { display: none; }
  .hn-panel.hn-open { height: 380px; }
  .hn-pn { display: none; }
  .hn-eudr { padding: 1rem 1.2rem 4rem; }
  .hn-eudr-in { padding: 2.2rem 1.5rem; }
  .hn-eudr h2 { font-size: 1.6rem; }
  .hn-eudr .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hn-w, .hn-card { opacity: 1; transform: none; filter: none; animation: none; }
  .hn-hero-bg, .hn-track, .hn-rot, .hn-dot, .hn-tilt-group .value-card, .hn-fog, .hn-rays { animation: none; }
  .hn-motes { display: none; }
}

