/* Hero Liflex – baseado no "Scroll Expansion Hero" (21st.dev), recomposto: texto + chamada à esquerda, mídia 3D à direita que expande ao rolar. */
.seh {
  --seh-accent: #FFE600;
  --seh-blue: #1306A8;
  --seh-navy: #05033a;
  position: relative;
  background: var(--seh-navy);
  color: #fff;
  font-family: inherit;
}
.seh *, .seh *::before, .seh *::after { box-sizing: border-box; }
.seh__section { position: relative; height: min(100vh, 610px); min-height: 580px; overflow: hidden; }

/* fundo: gradiente de marca, brilhos suaves e grade técnica */
.seh__bg { position: absolute; inset: 0; z-index: 0; background: #0b0654; overflow: hidden; }
.seh__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; opacity: .62; filter: saturate(.85) contrast(1.05); }
.seh__bg::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 3, 64, .94) 0%, rgba(11, 6, 84, .78) 38%, rgba(19, 6, 168, .38) 100%),
    linear-gradient(180deg, rgba(5, 3, 58, .25), rgba(5, 3, 58, .8) 100%); }
.seh__bg::before { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 70% at 50% 45%, #000, transparent); mask-image: radial-gradient(70% 70% at 50% 45%, #000, transparent); }

.seh__stage { position: relative; z-index: 1; width: 100%; height: 100%; }

/* coluna de texto */
.seh__copy { position: absolute; z-index: 2; left: max(5vw, calc((100vw - 1180px) / 2)); top: 40px; width: min(540px, 46vw); will-change: opacity, transform; }
.seh__eyebrow { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.1rem; padding: .35rem .85rem; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #dbe9f5; }
.seh__eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--seh-accent); box-shadow: 0 0 10px var(--seh-accent); }
.seh__headline { margin: 0 0 1.1rem; font-size: clamp(1.9rem, 3.1vw, 2.9rem); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.seh__headline em { font-style: normal; color: var(--seh-accent); }
.seh__lead { margin: 0 0 1.7rem; font-size: 1.05rem; line-height: 1.55; color: #c3d4e3; max-width: 30em; }
.seh__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.1rem; }
.seh__btn { display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.5rem; border-radius: 10px; font-weight: 700; font-size: .95rem; text-decoration: none; transition: transform .15s, box-shadow .2s, background .2s; }
.seh__btn:hover { text-decoration: none; transform: translateY(-2px); }
.seh__btn--primary { background: var(--seh-accent); color: #05033a; box-shadow: 0 8px 24px rgba(255, 230, 0, .25); }
.seh__btn--primary:hover { color: #0b2236; box-shadow: 0 12px 30px rgba(255, 230, 0, .38); }
.seh__btn--ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .05); }
.seh__btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, .13); }
.seh__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.seh__stats { display: flex; gap: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.seh__stat strong { display: block; font-size: 1.55rem; line-height: 1.1; font-weight: 800; color: var(--seh-accent); }
.seh__stat span { display: block; margin-top: .2rem; font-size: .78rem; color: #aebfcf; line-height: 1.3; }

/* cartão de mídia (posição e tamanho vêm do JS) */
.seh__media { position: absolute; z-index: 1; left: 73%; top: 290px; width: 540px; height: 500px; transform: translate(-50%, -50%);
  border-radius: 24px; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 90px rgba(42, 27, 208, .4); }
.seh__media-inner { position: relative; width: 100%; height: 100%; border-radius: 24px; overflow: hidden; background: #0b0654; }
.seh__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.seh__shade { display: none; }
.seh__chip { position: absolute; z-index: 3; top: 16px; left: 16px; padding: .3rem .75rem; border-radius: 99px; background: rgba(5, 3, 58, .7); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: .74rem; font-weight: 600; letter-spacing: .04em; backdrop-filter: blur(6px); pointer-events: none; transition: opacity .2s; }

/* indicador de rolagem */
.seh__scroll { position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .45rem; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: #cfe0ee; pointer-events: none; }
.seh__scroll i { width: 22px; height: 36px; border: 2px solid rgba(255, 255, 255, .55); border-radius: 12px; position: relative; }
.seh__scroll i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--seh-accent); animation: seh-wheel 1.6s ease-in-out infinite; }
@keyframes seh-wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

.seh__content { display: none; }

/* mídia 3D */
.seh__canvas { display: none; position: absolute; inset: 0; width: 100%; height: 100%; }
.seh--3d .seh__media-inner { background: radial-gradient(ellipse at 50% 42%, #2c20a8 0%, #150b78 50%, #070345 100%); }
.seh--3d .seh__canvas { display: block; }
.seh--3d .seh__fallback { display: none; }
.seh__label { display: none; position: absolute; top: 0; left: 0; z-index: 2; opacity: 0; pointer-events: none; white-space: nowrap; text-align: center;
  color: #fff; font-size: .8rem; font-weight: 700; line-height: 1.2; padding: .3rem .6rem; border-radius: .4rem;
  background: rgba(5, 3, 58, .78); border: 1px solid var(--seh-accent); text-shadow: none; }
.seh__label small { font-weight: 400; color: var(--seh-accent); font-size: .7rem; }
.seh--3d .seh__label { display: block; }

/* tablet / celular: texto em cima, mídia embaixo */
@media (max-width: 899px) {
  .seh__copy { left: 6vw; right: 6vw; width: auto; top: 24px; }
  .seh__headline { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .seh__lead { font-size: .95rem; margin-bottom: 1.1rem; }
  .seh__cta { margin-bottom: 0; }
  .seh__stats { display: none; }
  .seh__btn { padding: .75rem 1.15rem; font-size: .88rem; }
  .seh__scroll { display: none; }
}
@media (max-width: 520px) { .seh__lead { display: none; } .seh__label { font-size: .65rem; padding: .2rem .4rem; } }
@media (prefers-reduced-motion: reduce) { .seh__scroll i::after { animation: none; opacity: 1; } }

/* arrastar para girar */
.seh--3d .seh__canvas { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.seh--3d .seh__canvas.grabbing { cursor: grabbing; }
.seh__hint { display: none; position: absolute; z-index: 3; left: 50%; bottom: 14px; transform: translateX(-50%); padding: .3rem .8rem; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(5, 3, 58, .65); color: #dfe2ff; font-size: .72rem; font-weight: 600; letter-spacing: .03em; cursor: pointer; backdrop-filter: blur(6px); white-space: nowrap; }
.seh__hint:hover { background: var(--seh-accent); color: #05033a; }
.seh--3d .seh__hint { display: block; }
@media (max-width: 899px) { .seh__backdrop { left: 18px; right: -10px; top: -16px; bottom: -18px; } }

.seh__stand { display: none; position: absolute; z-index: 3; right: 14px; bottom: 14px; padding: .3rem .8rem; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(5, 3, 58, .65); color: #dfe2ff; font-size: .72rem; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); }
.seh__stand:hover { background: var(--seh-accent); color: #05033a; }
.seh--3d .seh__stand { display: block; }
.seh__hint { left: 14px; transform: none; }

/* ===== modo "Ver por dentro" ===== */
.seh__scroll { display: none !important; }
.seh__explore { position: absolute; z-index: 4; left: 50%; bottom: 62px; transform: translateX(-50%); display: none; align-items: center; gap: .55rem; padding: .8rem 1.5rem; border: 0; border-radius: 99px;
  background: var(--seh-accent); color: #05033a; font: 800 .95rem/1 inherit; letter-spacing: .01em; cursor: pointer; box-shadow: 0 12px 30px rgba(255, 230, 0, .3); animation: seh-pulse 2.4s ease-in-out infinite; }
.seh__explore:hover { transform: translateX(-50%) translateY(-2px); }
.seh__explore svg { width: 16px; height: 16px; fill: currentColor; }
@keyframes seh-pulse { 0%, 100% { box-shadow: 0 12px 30px rgba(255, 230, 0, .3), 0 0 0 0 rgba(255, 230, 0, .45); } 50% { box-shadow: 0 12px 30px rgba(255, 230, 0, .3), 0 0 0 14px rgba(255, 230, 0, 0); } }
.seh--3d .seh__explore { display: inline-flex; }
.seh__close, .seh__ctl { display: none; }
.seh.is-explore .seh__explore, .seh.is-explore .seh__chip { display: none; }
.seh.is-explore .seh__close { display: inline-flex; }
.seh.is-explore .seh__ctl { display: flex; }
.seh.is-explore .seh__media { border-radius: 0; box-shadow: none; border: 0; }
.seh.is-explore .seh__media-inner { border-radius: 0; }
.seh.is-explore .seh__canvas { touch-action: none; }
.seh__close { position: absolute; z-index: 5; top: 18px; right: 18px; align-items: center; gap: .45rem; padding: .55rem 1.05rem; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(5, 3, 58, .7); color: #fff; font: 700 .85rem/1 inherit; cursor: pointer; backdrop-filter: blur(6px); }
.seh__close:hover { background: var(--seh-accent); color: #05033a; border-color: var(--seh-accent); }
.seh__ctl { position: absolute; z-index: 4; left: 50%; bottom: 64px; transform: translateX(-50%); align-items: center; gap: 14px; width: min(520px, 86vw); padding: .65rem 1.1rem; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(5, 3, 58, .7); backdrop-filter: blur(8px); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #dfe2ff; }
.seh__ctl span { white-space: nowrap; }
.seh__range { flex: 1; min-width: 0; height: 28px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.seh__range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #FFE600, rgba(255, 255, 255, .28)); }
.seh__range::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .28); }
.seh__range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #FFE600; border: 3px solid #05033a; box-shadow: 0 0 0 2px #FFE600; }
.seh__range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #FFE600; border: 3px solid #05033a; }
.seh.is-explore .seh__hint, .seh.is-explore .seh__stand { bottom: 14px; }
html.seh-explore, html.seh-explore body { overflow: hidden !important; }
@media (max-width: 899px) { .seh__explore { bottom: 54px; padding: .7rem 1.2rem; font-size: .88rem; } .seh__ctl { bottom: 62px; } .seh__ctl span:first-child, .seh__ctl span:last-child { font-size: .64rem; } }

/* o modo "Ver por dentro" precisa ficar acima do cabeçalho e de seus elementos (o palco cria um contexto de empilhamento) */
html.seh-explore .seh__stage { z-index: 9990; }

@media (max-width: 520px) { .seh__hint-x { display: none; } .seh__hint, .seh__stand { font-size: .68rem; padding: .3rem .65rem; } }

@media (max-width: 899px) { .seh__section { height: 700px; min-height: 0; } }
@media (max-width: 899px) { .seh:not(.is-explore) .seh__stand { top: 16px; bottom: auto; right: 14px; } }
