/* Efeitos herdados do site institucional anterior da T3A (hero com blobs,
   grade e spotlight, gênesis com feixes, skyline, stat cards com borda
   giratória, cidade com faróis), portados sem jQuery/GSAP. */

@property --t3a-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

/* ── Grain global ── */
.t3a-grain { position: fixed; inset: 0; pointer-events: none; z-index: 2000; opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ── Hero ── */
.t3a-hero-gradient { position: relative; overflow: hidden;
  background: linear-gradient(135deg, #000d24 0%, #0a1a3a 30%, #1e4b8f 70%, #000d24 100%); }
.t3a-hero-gradient::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at 20% 80%, rgba(75, 196, 242, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(30, 75, 143, 0.12) 0%, transparent 50%); }
.t3a-hero-gradient::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 1;
  background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; }

.t3a-hero-blob { position: absolute; border-radius: 50%; opacity: 0.15; z-index: 1; margin: -80px; }
.t3a-hero-blob--1 { width: 660px; height: 660px; top: -10%; right: -5%; background: radial-gradient(circle closest-side, rgba(75,196,242,1) 0%, rgba(75,196,242,.85) 32%, rgba(75,196,242,.36) 60%, rgba(75,196,242,.05) 87%, rgba(75,196,242,0) 100%); animation: t3a-float1 12s ease-in-out infinite; }
.t3a-hero-blob--2 { width: 560px; height: 560px; bottom: -15%; left: -8%; background: radial-gradient(circle closest-side, rgba(30,75,143,1) 0%, rgba(30,75,143,.85) 32%, rgba(30,75,143,.36) 60%, rgba(30,75,143,.05) 87%, rgba(30,75,143,0) 100%); animation: t3a-float2 15s ease-in-out infinite; }
.t3a-hero-blob--3 { width: 460px; height: 460px; top: 40%; left: 50%; background: radial-gradient(circle closest-side, rgba(75,196,242,1) 0%, rgba(75,196,242,.85) 32%, rgba(75,196,242,.36) 60%, rgba(75,196,242,.05) 87%, rgba(75,196,242,0) 100%); animation: t3a-float3 10s ease-in-out infinite; }
.t3a-hero-blob > i { display: block; width: 100%; height: 100%; } /* alvo do parallax */
@keyframes t3a-float1 { 0%, 100% { translate: 0 0; scale: 1; } 33% { translate: -30px 40px; scale: 1.05; } 66% { translate: 20px -20px; scale: .95; } }
@keyframes t3a-float2 { 0%, 100% { translate: 0 0; scale: 1; } 33% { translate: 40px -30px; scale: 1.08; } 66% { translate: -20px 20px; scale: .92; } }
@keyframes t3a-float3 { 0%, 100% { translate: 0 0; scale: 1; } 50% { translate: -40px 30px; scale: 1.1; } }
@media (max-width: 480px) { .t3a-hero-blob { display: none; } }

.t3a-hero-grid { position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image: radial-gradient(rgba(75, 196, 242, 0.35) 1px, transparent 1px); background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(0,0,0,.5) 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(0,0,0,.5) 0%, transparent 75%); }
.t3a-hero-spot { position: absolute; pointer-events: none; z-index: 1; width: 640px; height: 640px; inset: 0 auto auto 0;
  background: radial-gradient(circle, rgba(75, 196, 242, 0.12), transparent 65%); opacity: 0; transition: opacity .4s ease; }
.t3a-hero-gradient:hover .t3a-hero-spot { opacity: 1; }
@media (max-width: 991px) { .t3a-hero-grid { background-size: 26px 26px; } .t3a-hero-spot { display: none; } }

/* Horizonte no rodapé do hero */
.t3a-city-bld { position: absolute; bottom: 0;
  background: repeating-linear-gradient(0deg, rgba(125,211,245,.1) 0 2px, transparent 2px 11px),
              repeating-linear-gradient(90deg, rgba(125,211,245,.06) 0 2px, transparent 2px 9px),
              linear-gradient(180deg, rgba(75,196,242,.06) 0%, rgba(1,6,18,.97) 75%);
  border: 1px solid rgba(75, 196, 242, 0.18); border-bottom: none; }
.t3a-horizon { position: absolute; left: -3%; right: -3%; bottom: 0; height: 110px; pointer-events: none; z-index: 1; opacity: .35;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%); mask-image: linear-gradient(180deg, transparent 0%, #000 45%); }
.t3a-horizon .t3a-city-bld { border-color: rgba(30, 75, 143, .35);
  background: repeating-linear-gradient(0deg, rgba(30,75,143,.12) 0 2px, transparent 2px 10px),
              linear-gradient(180deg, rgba(75,196,242,.05) 0%, rgba(4,12,34,.55) 80%); }

/* Pílula do kicker com traços */
.t3a-pill { display: inline-flex; align-items: center; gap: 14px; padding: 10px 22px; border-radius: 999px;
  border: 1px solid rgba(75,196,242,.25); background: rgba(0,13,36,.45); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 26px; }
.t3a-pill::before, .t3a-pill::after { content: ""; width: 48px; height: 1px; background: linear-gradient(90deg, transparent, rgba(75,196,242,.6)); }
.t3a-pill::after { transform: scaleX(-1); }
.t3a-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hot); animation: pulse 1.8s infinite; }
@media (max-width: 560px) { .t3a-pill::before, .t3a-pill::after { width: 18px; } }

/* ── Gênesis: núcleo T3A soltando feixes para as editorias ── */
.t3a-genesis { position: relative; height: 225px; margin-top: 52px; pointer-events: none; display: flex; flex-direction: column; }
.t3a-genesis-core { position: absolute; left: 50%; bottom: 6px; width: 74px; height: 74px; margin-left: -37px; border-radius: 20px;
  background: linear-gradient(155deg, rgba(17,27,56,.9), rgba(4,10,28,.95)); border: 1px solid rgba(75,196,242,.5);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 42px -6px rgba(75,196,242,.5), inset 0 1px 0 rgba(125,211,245,.3); }
.t3a-genesis-core img { width: 40px; height: 40px; position: relative; z-index: 1; }
.t3a-genesis-core::before { content: ""; position: absolute; inset: -22px; border-radius: 50%; filter: blur(10px); pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(75,196,242,.35) 85%, transparent 100%); }
.t3a-genesis-ring { position: absolute; inset: -1px; border-radius: 20px; border: 1px solid rgba(75,196,242,.7); opacity: 0; }
.t3a-genesis-agents { position: absolute; left: 50%; bottom: 42px; width: 0; height: 0; }
.t3a-ga { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px;
  white-space: nowrap; background: linear-gradient(155deg, rgba(17,27,56,.92), rgba(4,10,28,.92)); border: 1px solid rgba(75,196,242,.4);
  color: #e6ecf5; font-size: 13px; font-weight: 900; box-shadow: 0 12px 30px -12px rgba(0,0,0,.6);
  transform: translate(-50%, -50%) translate(var(--gx), var(--gy)); }
.t3a-ga i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px rgba(75,196,242,.8); flex: none; }
.t3a-genesis-links { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.t3a-genesis-links path { fill: none; stroke: rgba(75,196,242,.18); stroke-width: 1.2; }
.t3a-genesis-links circle { fill: #7dd3f5; filter: drop-shadow(0 0 4px rgba(75,196,242,.9)); }
@media (prefers-reduced-motion: no-preference) {
  .t3a-genesis-core { animation: gCoreIn .6s cubic-bezier(.34,1.56,.64,1) .35s backwards; }
  .t3a-genesis-core::before { animation: gAura 9s linear infinite; }
  .t3a-genesis-ring { animation: gRing 1.1s ease-out 1s; }
  .t3a-genesis-ring--2 { animation-delay: 1.18s; }
  .t3a-ga { animation: gaIn .8s cubic-bezier(.34,1.4,.5,1) calc(1.15s + var(--gd) * .13s) backwards, gaFloat 4.5s ease-in-out calc(2.3s + var(--gd) * .4s) infinite; }
  .t3a-ga i { animation: gaPing 3.6s ease-in-out calc(2.6s + var(--gd) * .55s) infinite; }
}
@media (max-width: 991px) {
  .t3a-genesis { height: auto; margin-top: 36px; gap: 16px; align-items: center; }
  .t3a-genesis-core { position: relative; left: auto; bottom: auto; margin: 0; order: -1; }
  .t3a-genesis-core::before, .t3a-genesis-links { display: none; }
  .t3a-genesis-agents { position: static; width: auto; height: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .t3a-ga { position: static; transform: none; font-size: 12px; padding: 6px 12px; animation-name: gaInSimple, gaFloat; }
}
@keyframes gCoreIn { from { opacity: 0; transform: scale(.45); } }
@keyframes gRing { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.8); border-radius: 32px; } }
@keyframes gaIn { 0% { opacity: 0; transform: translate(-50%,-50%) translate(0,14px) scale(.3); } 100% { opacity: 1; transform: translate(-50%,-50%) translate(var(--gx), var(--gy)) scale(1); } }
@keyframes gaFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes gaPing { 0%, 86%, 100% { box-shadow: 0 0 8px rgba(75,196,242,.8); } 92% { box-shadow: 0 0 15px 4px rgba(125,211,245,.95); } }
@keyframes gaInSimple { from { opacity: 0; transform: translateY(8px); } }
@keyframes gAura { to { transform: rotate(360deg); } }

/* ── Texto entrando por palavra (equivalente ao SplitText words do site anterior) ── */
.text-anim .w { display: inline-block; opacity: 0; transform: translate3d(20px,0,0);
  transition: opacity 1s cubic-bezier(.33,1,.68,1), transform 1s cubic-bezier(.33,1,.68,1); transition-delay: var(--wd, 0s); }
.text-anim.in .w { opacity: 1; transform: none; }

/* ── Reveal ao rolar (scrollCue slideInUp) ── */
.cue { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); transition-delay: var(--cd, 0s); }
.cue.in { opacity: 1; transform: none; }

/* ── Marquee de temas ── */
.t3a-marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; background: rgba(0,13,36,.5);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.t3a-marquee-track { display: flex; width: max-content; animation: t3a-marquee 38s linear infinite; }
.t3a-marquee:hover .t3a-marquee-track { animation-play-state: paused; }
.t3a-marquee span { display: inline-flex; align-items: center; gap: 34px; padding-right: 34px; font-weight: 900; font-size: clamp(30px, 4.6vw, 56px); line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.t3a-marquee span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px rgba(75,196,242,.7); }
.t3a-marquee span::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px rgba(75,196,242,.8); }
@keyframes t3a-marquee { to { transform: translateX(-50%); } }

/* ── Stat cards (editorias) ── */
.t3a-stat-card { position: relative; overflow: hidden; border-radius: 24px; padding: 36px 30px; min-height: 300px; display: flex; align-items: flex-end;
  background: linear-gradient(160deg, #000d24 0%, #060f22 40%, #0d1b38 100%); border: 1px solid rgba(255,255,255,.08);
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease, border-color .35s ease; }
.t3a-stat-card::before { content: ''; position: absolute; inset: -1px; border-radius: 25px; padding: 1px;
  background: conic-gradient(from var(--t3a-angle), transparent 40%, #4bc4f2 50%, #1e4b8f 60%, transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: t3a-border-spin 6s linear infinite; opacity: 0; transition: opacity .5s ease; }
.t3a-stat-card::after { content: ''; position: absolute; inset: 0; border-radius: 24px; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E"); }
.t3a-stat-card:hover { transform: translateY(-5px); border-color: rgba(75,196,242,.45);
  box-shadow: 0 18px 44px -16px rgba(0,13,36,.35), 0 0 0 1px rgba(75,196,242,.18), 0 0 34px -6px rgba(75,196,242,.22); }
.t3a-stat-card:hover::before { opacity: 1; }
.t3a-stat-card__orb { position: absolute; border-radius: 50%; pointer-events: none; margin: -80px; transition: opacity .5s ease, transform .5s ease; }
.t3a-stat-card__orb--1 { width: 440px; height: 440px; opacity: .08; top: -25%; right: -15%; background: radial-gradient(circle closest-side, rgba(75,196,242,1), rgba(75,196,242,.36) 60%, rgba(75,196,242,0)); }
.t3a-stat-card__orb--2 { width: 340px; height: 340px; opacity: .1; bottom: -10%; left: -10%; background: radial-gradient(circle closest-side, rgba(30,75,143,1), rgba(30,75,143,.36) 60%, rgba(30,75,143,0)); }
.t3a-stat-card:hover .t3a-stat-card__orb--1 { opacity: .14; transform: scale(1.15); }
.t3a-stat-card:hover .t3a-stat-card__orb--2 { opacity: .16; transform: scale(1.1); }
.t3a-stat-card__grid { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s ease;
  background-image: linear-gradient(rgba(75,196,242,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(75,196,242,.03) 1px, transparent 1px); background-size: 40px 40px; }
.t3a-stat-card:hover .t3a-stat-card__grid { opacity: 1; }
.t3a-stat-card__inner { position: relative; z-index: 2; width: 100%; }
.t3a-stat-card__icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(75,196,242,.1); border: 1px solid rgba(75,196,242,.15);
  display: flex; align-items: center; justify-content: center; margin-bottom: 24px; color: var(--cyan);
  animation: t3a-icon-pulse 3s ease-in-out infinite, t3a-float 4s ease-in-out infinite; }
.t3a-stat-card__icon svg { width: 24px; height: 24px; }
.t3a-stat-card__divider { width: 40px; height: 2px; background: linear-gradient(90deg, #4bc4f2, transparent); margin-bottom: 18px; border-radius: 2px; opacity: .5; }
.t3a-stat-card h3 { font-size: 20px; overflow-wrap: anywhere; margin-bottom: 10px; background: linear-gradient(135deg, #fff 30%, #4bc4f2 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.t3a-stat-card p { margin: 0; color: rgba(255,255,255,.6); font-size: 15px; line-height: 1.65; }
@keyframes t3a-border-spin { to { --t3a-angle: 360deg; } }
@keyframes t3a-icon-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(75,196,242,.3); } 50% { box-shadow: 0 0 20px 6px rgba(75,196,242,.15); } }
@keyframes t3a-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ── Passos com cascata ── */
.fx-steps .card { position: relative; overflow: hidden; }
.fx-steps .card::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--cyan), transparent); transition: width 1.2s cubic-bezier(.22,1,.36,1) calc(var(--cd, 0s) + .3s); }
.fx-steps .card.in::before { width: 100%; }

/* ── Cidade com faróis no CTA final ── */
.final { position: relative; overflow: hidden; padding: 110px 0 200px; }
.final .wrap { position: relative; z-index: 3; }
.t3a-city { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.t3a-city-glow { position: absolute; left: 50%; bottom: -30px; width: 130%; height: 45%; transform: translateX(-50%);
  background: radial-gradient(ellipse 55% 70% at 50% 100%, rgba(75,196,242,.2) 0%, transparent 62%), radial-gradient(ellipse 95% 55% at 50% 100%, rgba(30,75,143,.28) 0%, transparent 70%); }
.t3a-city-layer { position: absolute; left: -4%; right: -4%; bottom: 0; height: 42%; will-change: transform; }
.t3a-city-layer--far { opacity: .3; filter: blur(1px); }
.t3a-city-layer--near { opacity: .85; }
.t3a-beacon { position: absolute; top: -5px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: rgba(255,255,255,.12);
  transition: background .45s ease var(--bd, 0s), box-shadow .45s ease var(--bd, 0s); }
.t3a-city.is-live .t3a-beacon { background: var(--cyan); box-shadow: 0 0 12px 3px rgba(75,196,242,.65); }
@media (prefers-reduced-motion: no-preference) { .t3a-city.is-live .t3a-beacon { animation: t3aBeaconPulse 3.2s ease-in-out calc(var(--bd, 0s) + .6s) infinite; } }
@keyframes t3aBeaconPulse { 0%, 100% { box-shadow: 0 0 12px 3px rgba(75,196,242,.65); } 50% { box-shadow: 0 0 18px 6px rgba(75,196,242,.35); } }
@media (max-width: 991px) { .t3a-city-layer--near { display: none; } .t3a-city-layer--far { opacity: .4; } }

/* Pausa fora da tela e respeito a movimento reduzido */
.t3a-motion-paused *, .t3a-motion-paused::before, .t3a-motion-paused::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .t3a-hero-blob, .t3a-marquee-track, .t3a-stat-card::before, .t3a-stat-card__icon { animation: none !important; }
  .text-anim .w, .cue { opacity: 1 !important; transform: none !important; transition: none !important; }
  .t3a-hero-spot { display: none; }
}
@media (max-width: 560px) { .t3a-stat-card { min-height: 0; padding: 28px 24px; } }
.page.t3a-hero-gradient { padding-bottom: 140px; }
.page.t3a-hero-gradient .wrap { position: relative; z-index: 2; }

/* ── Tipografia de redação nos efeitos ── */
.t3a-marquee span { font-stretch: 68%; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.t3a-ga { font-weight: 600; font-stretch: 88%; }
