/* ==========================================================================
   Altvia | MODELO DE CABEÇALHO (hero-feature)
   Arquivo independente, com classes "hf-" exclusivas, para funcionar tanto nas
   páginas novas (altvia.css) quanto nas antigas (Bootstrap + style.css).

   Estrutura:
   <section class="hf-hero">
     <div class="[container da página] hf-grid">
       <div class="hf-text"> breadcrumb, título, frase, texto e botões </div>
       <div class="hf-orbit hf-orbit--5 | hf-orbit--6" aria-hidden="true">
         svg (anéis + ligações + pulsos), núcleo (.hf-core) e rótulos (.hf-chip)
       </div>
     </div>
   </section>

   Para replicar: trocar o ícone e o nome do núcleo e os rótulos.
   .hf-orbit--5 = 5 rótulos (pentágono) | .hf-orbit--6 = 6 rótulos (hexágono)
   ========================================================================== */

.hf-hero {
    --hf-navy: #002c53;
    --hf-navy-deep: #001a2c;
    --hf-teal: #00b1b7;
    --hf-teal-strong: #009ba1;
    --hf-blue: #0078b8;
    --hf-light: #8ee6e9;
    --hf-glow: #6fdde1;

    position: relative;
    overflow: hidden;
    padding: 96px 0 110px;
    color: #fff;
    background:
        radial-gradient(640px 520px at 82% 45%, rgba(0, 177, 183, 0.24), transparent 65%),
        radial-gradient(560px 460px at 8% 0%, rgba(0, 120, 184, 0.35), transparent 65%),
        radial-gradient(420px 360px at 45% 110%, rgba(111, 114, 242, 0.18), transparent 70%),
        linear-gradient(160deg, var(--hf-navy-deep) 0%, var(--hf-navy) 58%, #013a66 100%);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Grade sutil, esmaecendo nas bordas */
.hf-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 50%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 80% at 70% 50%, #000 0%, transparent 75%);
}

/* Linha de luz na base */
.hf-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    pointer-events: none;
    opacity: 0.9;
    background: linear-gradient(to right, transparent, var(--hf-teal) 30%, var(--hf-blue) 70%, transparent);
}

.hf-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}

/* ---------- Texto ---------- */
.hf-breadcrumb {
    list-style: none;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0 0 28px;
    padding: 6px 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 13px;
    text-transform: uppercase;
}

.hf-breadcrumb li {
    margin: 0;
}

.hf-breadcrumb a {
    color: #dbe6ef;
    text-decoration: none;
}

.hf-breadcrumb a:hover,
.hf-breadcrumb [aria-current="page"],
.hf-breadcrumb li + li::before {
    color: var(--hf-light);
}

.hf-breadcrumb [aria-current="page"] {
    font-weight: 600;
}

.hf-breadcrumb li + li::before {
    content: "›";
    margin-right: 12px;
}

.hf-title {
    max-width: 640px;
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(2.25rem, 1.2rem + 2.8vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.12;
    text-wrap: balance;
}

.hf-kicker {
    margin: 0 0 12px;
    color: var(--hf-light);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
}

.hf-lead {
    max-width: 580px;
    margin: 0;
    color: #c9d6e2;
    font-size: 1.125rem;
    line-height: 1.6;
}

.hf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border: 0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.hf-btn--primary {
    background: linear-gradient(90deg, var(--hf-blue), #00a0a6);
    color: #fff;
}

.hf-btn--primary:hover {
    color: #fff;
    transform: scale(1.04);
}

.hf-btn--ghost {
    color: #fff;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7);
}

.hf-btn--ghost:hover {
    background: #fff;
    color: var(--hf-navy);
}

.hf-btn:focus-visible,
.hf-breadcrumb a:focus-visible {
    outline: 3px solid var(--hf-teal);
    outline-offset: 3px;
}

/* ---------- Ilustração em órbita ---------- */
.hf-orbit {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    margin-inline: auto;
}

.hf-orbit svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.hf-ring {
    fill: none;
    stroke: rgba(255, 255, 255, 0.16);
    stroke-width: 1.5;
    transform-origin: 260px 260px;
}

.hf-ring--outer {
    stroke-dasharray: 3 9;
    animation: hf-spin 80s linear infinite;
}

.hf-ring--inner {
    stroke: rgba(142, 230, 233, 0.4);
    stroke-dasharray: 2 6;
    animation: hf-spin 50s linear infinite reverse;
}

.hf-link {
    stroke: rgba(255, 255, 255, 0.14);
    stroke-width: 1.5;
}

/* Pulsos de dados: da borda do núcleo até cada rótulo */
.hf-pulses line {
    stroke: var(--hf-light);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-dasharray: 8 92;
    filter: drop-shadow(0 0 4px rgba(111, 221, 225, 0.9));
    animation: hf-travel 3s linear infinite;
}

.hf-pulses line:nth-child(2) { animation-delay: -0.6s; }
.hf-pulses line:nth-child(3) { animation-delay: -1.2s; }
.hf-pulses line:nth-child(4) { animation-delay: -1.8s; }
.hf-pulses line:nth-child(5) { animation-delay: -2.4s; }
.hf-pulses line:nth-child(6) { animation-delay: -1.5s; }

.hf-core {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 30%;
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
    border-radius: 28%;
    background: linear-gradient(135deg, var(--hf-blue), var(--hf-teal-strong));
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 20px 60px rgba(0, 177, 183, 0.45);
    color: #fff;
    text-align: center;
}

.hf-core::before {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 32%;
    border: 1.5px solid rgba(111, 221, 225, 0.45);
    animation: hf-glow 3s ease-out infinite;
}

.hf-core i {
    font-size: clamp(1.8rem, 1rem + 2vw, 2.6rem);
}

.hf-core span {
    padding: 0 6px;
    font-size: clamp(11px, 0.6rem + 0.35vw, 13px);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.hf-chip {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(0, 26, 44, 0.72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.hf-chip i {
    color: var(--hf-glow);
}

/* 5 rótulos: pentágono (linhas do SVG: 260,62 | 448,199 | 376,420 | 144,420 | 72,199) */
.hf-orbit--5 .hf-chip:nth-of-type(1) { left: 50%;   top: 12%; }
.hf-orbit--5 .hf-chip:nth-of-type(2) { left: 86.1%; top: 38.3%; }
.hf-orbit--5 .hf-chip:nth-of-type(3) { left: 72.3%; top: 80.7%; }
.hf-orbit--5 .hf-chip:nth-of-type(4) { left: 27.7%; top: 80.7%; }
.hf-orbit--5 .hf-chip:nth-of-type(5) { left: 13.9%; top: 38.3%; }

/* 6 rótulos: hexágono (linhas do SVG: 260,62 | 431,161 | 431,359 | 260,458 | 89,359 | 89,161) */
.hf-orbit--6 .hf-chip:nth-of-type(1) { left: 50%;   top: 12%; }
.hf-orbit--6 .hf-chip:nth-of-type(2) { left: 82.9%; top: 31%; }
.hf-orbit--6 .hf-chip:nth-of-type(3) { left: 82.9%; top: 69%; }
.hf-orbit--6 .hf-chip:nth-of-type(4) { left: 50%;   top: 88%; }
.hf-orbit--6 .hf-chip:nth-of-type(5) { left: 17.1%; top: 69%; }
.hf-orbit--6 .hf-chip:nth-of-type(6) { left: 17.1%; top: 31%; }

@keyframes hf-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes hf-travel {
    from {
        stroke-dashoffset: -36;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    to {
        stroke-dashoffset: -92;
        opacity: 0;
    }
}

@keyframes hf-glow {
    0% {
        opacity: 0.9;
        transform: scale(0.92);
    }

    100% {
        opacity: 0;
        transform: scale(1.18);
    }
}

/* ---------- Responsivo ---------- */
@media (max-width: 991.98px) {
    .hf-hero {
        padding: 64px 0 72px;
    }

    .hf-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hf-orbit {
        max-width: 420px;
    }
}

@media (max-width: 639.98px) {
    .hf-orbit {
        max-width: 330px;
    }

    .hf-chip {
        gap: 6px;
        padding: 7px 11px;
        font-size: 12px;
    }

    .hf-core::before {
        inset: -10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hf-ring--outer,
    .hf-ring--inner,
    .hf-core::before {
        animation: none;
    }

    .hf-pulses {
        display: none;
    }

    .hf-btn {
        transition: none;
    }
}

/* Em telas menores, os rótulos laterais do hexágono se afastam um pouco do núcleo */
@media (max-width: 991.98px) {
    .hf-orbit--6 .hf-chip:nth-of-type(2),
    .hf-orbit--6 .hf-chip:nth-of-type(3) { left: 86%; }
    .hf-orbit--6 .hf-chip:nth-of-type(5),
    .hf-orbit--6 .hf-chip:nth-of-type(6) { left: 14%; }
}

/* ==========================================================================
   VARIAÇÕES DE ILUSTRAÇÃO (uma por assunto)
   .hf-orbit  = Infraestrutura & Cloud (acima)
   .hf-radar  = Segurança da Informação
   .hf-build  = Transformação Digital
   ========================================================================== */

.hf-visual {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    margin-inline: auto;
    container-type: inline-size;
}

/* Elementos compartilhados: cartão "vidro", barra de janela e ponto de status */
.hf-glass {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    background: rgba(0, 26, 44, 0.78);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    color: #fff;
}

.hf-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3ddc97;
    box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6);
    animation: hf-dot 2s ease-out infinite;
}

.hf-winbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3cqi 4cqi;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hf-winbar span {
    width: 1.8cqi;
    height: 1.8cqi;
    min-width: 6px;
    min-height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.hf-winbar span:first-child { background: #ff7b72; }
.hf-winbar span:nth-child(2) { background: #f2cc60; }
.hf-winbar span:nth-child(3) { background: #3ddc97; }

.hf-winbar em {
    margin-left: auto;
    color: #9fb3c4;
    font-size: clamp(10px, 2.6cqi, 13px);
    font-style: normal;
    font-weight: 600;
}

@keyframes hf-dot {
    0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6); }
    100% { box-shadow: 0 0 0 8px rgba(61, 220, 151, 0); }
}

/* ---------- SEGURANÇA: radar de proteção ---------- */
.hf-radar-disc {
    position: absolute;
    top: 3%;
    right: 0;
    width: 82%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 1px solid rgba(142, 230, 233, 0.35);
    background: radial-gradient(circle, rgba(0, 177, 183, 0.14) 0%, rgba(0, 26, 44, 0.55) 72%);
    overflow: hidden;
}

.hf-radar-disc svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hf-radar-grid circle,
.hf-radar-grid line {
    fill: none;
    stroke: rgba(142, 230, 233, 0.22);
    stroke-width: 1;
}

.hf-radar-grid circle:nth-child(2) {
    stroke-dasharray: 3 6;
}

.hf-radar-sweep {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg 290deg, rgba(111, 221, 225, 0) 290deg, rgba(111, 221, 225, 0.42) 359deg, rgba(142, 230, 233, 0.9) 360deg);
    animation: hf-spin 4.5s linear infinite;
}

.hf-blip {
    position: absolute;
    width: 2.6%;
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--hf-light);
    box-shadow: 0 0 10px rgba(142, 230, 233, 0.9);
}

.hf-blip::after {
    content: "";
    position: absolute;
    inset: -120%;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    color: rgba(142, 230, 233, 0.8);
    animation: hf-blip 2.4s ease-out infinite;
}

.hf-blip--threat {
    background: #ff8a65;
    box-shadow: 0 0 12px rgba(255, 138, 101, 0.95);
}

.hf-blip--threat::after {
    color: rgba(255, 138, 101, 0.85);
}

.hf-blip:nth-of-type(1) { left: 34%; top: 22%; }
.hf-blip:nth-of-type(2) { left: 76%; top: 30%; animation-delay: -0.6s; }
.hf-blip:nth-of-type(3) { left: 82%; top: 64%; }
.hf-blip:nth-of-type(4) { left: 60%; top: 84%; }
.hf-blip:nth-of-type(5) { left: 22%; top: 42%; }
.hf-blip:nth-of-type(2)::after { animation-delay: -0.8s; }
.hf-blip:nth-of-type(3)::after { animation-delay: -1.6s; }
.hf-blip:nth-of-type(4)::after { animation-delay: -0.4s; }
.hf-blip:nth-of-type(5)::after { animation-delay: -1.2s; }

.hf-shield {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 30%;
    aspect-ratio: 120 / 140;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4%;
    filter: drop-shadow(0 16px 40px rgba(0, 177, 183, 0.5));
    color: #fff;
}

.hf-shield svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hf-shield i {
    margin-top: -8%;
    font-size: clamp(1.4rem, 7cqi, 2.4rem);
}

.hf-shield span {
    font-size: clamp(10px, 2.6cqi, 13px);
    font-weight: 700;
}

.hf-status {
    position: absolute;
    left: 0;
    bottom: 1%;
    z-index: 3;
    width: 44%;
    padding: 3.6cqi 4cqi;
}

.hf-status-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 2.4cqi;
    padding-bottom: 2.4cqi;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: clamp(11px, 3cqi, 14px);
    font-weight: 700;
}

.hf-status ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.6cqi;
}

.hf-status li {
    display: flex;
    align-items: center;
    gap: 2cqi;
    margin: 0;
    color: #dbe6ef;
    font-size: clamp(10px, 2.7cqi, 13px);
    font-weight: 500;
    white-space: nowrap;
}

.hf-status li i {
    color: #3ddc97;
}

.hf-alert {
    position: absolute;
    top: 8%;
    left: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 3cqi;
    padding: 2.8cqi 4cqi;
    border-color: rgba(255, 138, 101, 0.45);
}

.hf-alert > i {
    color: #ff8a65;
    font-size: clamp(14px, 4.4cqi, 20px);
}

.hf-alert strong,
.hf-alert small {
    display: block;
    line-height: 1.3;
    white-space: nowrap;
}

.hf-alert strong {
    font-size: clamp(11px, 3cqi, 14px);
}

.hf-alert small {
    color: #9fb3c4;
    font-size: clamp(10px, 2.5cqi, 12px);
}

@keyframes hf-blip {
    0% { opacity: 0.9; transform: scale(0.4); }
    100% { opacity: 0; transform: scale(1.6); }
}

/* ---------- TRANSFORMAÇÃO: do código ao resultado ---------- */
.hf-editor {
    position: absolute;
    top: 4%;
    left: 0;
    z-index: 1;
    width: 66%;
}

.hf-code {
    display: grid;
    gap: 2.4cqi;
    padding: 4cqi 4cqi 5cqi;
}

.hf-line {
    display: flex;
    gap: 1.6cqi;
    height: 2.2cqi;
    min-height: 7px;
    clip-path: inset(0 100% 0 0);
    animation: hf-type 9s steps(14, end) infinite;
}

.hf-line i {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.35);
}

.hf-line .k { background: #6fdde1; }
.hf-line .f { background: #7cb8ff; }
.hf-line .s { background: #f2cc60; opacity: 0.85; }
.hf-line .t { background: rgba(255, 255, 255, 0.3); }

.hf-line:nth-child(1) { animation-delay: 0s; }
.hf-line:nth-child(2) { animation-delay: 0.6s; padding-left: 5cqi; }
.hf-line:nth-child(3) { animation-delay: 1.2s; padding-left: 5cqi; }
.hf-line:nth-child(4) { animation-delay: 1.8s; padding-left: 10cqi; }
.hf-line:nth-child(5) { animation-delay: 2.4s; padding-left: 5cqi; }
.hf-line:nth-child(6) { animation-delay: 3s; }

.hf-caret {
    width: 1.2cqi;
    min-width: 3px;
    height: 3cqi;
    background: var(--hf-light);
    animation: hf-caret 1s steps(1) infinite;
}

.hf-flow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.hf-flow-path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.22);
    stroke-width: 2;
    stroke-dasharray: 4 8;
}

.hf-flow-pulse {
    fill: none;
    stroke: var(--hf-light);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 8 92;
    filter: drop-shadow(0 0 5px rgba(111, 221, 225, 0.9));
    animation: hf-flow 2.6s linear infinite;
}

.hf-gear {
    position: absolute;
    left: 22.8%;
    top: 67.8%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transform: translate(-50%, -50%);
    color: #fff;
}

.hf-gear-badge {
    display: grid;
    place-items: center;
    width: 15cqi;
    min-width: 46px;
    aspect-ratio: 1 / 1;
    border-radius: 30%;
    background: linear-gradient(135deg, var(--hf-blue), var(--hf-teal-strong));
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 14px 36px rgba(0, 177, 183, 0.5);
    font-size: clamp(18px, 6cqi, 28px);
}

.hf-gear-badge i {
    animation: hf-spin 12s linear infinite;
}

.hf-gear-label {
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(0, 26, 44, 0.8);
    font-size: clamp(10px, 2.5cqi, 12px);
    font-weight: 700;
    white-space: nowrap;
}

.hf-app {
    position: absolute;
    right: 0;
    bottom: 4%;
    z-index: 2;
    width: 60%;
}

.hf-app-body {
    padding: 3.6cqi 4cqi 4cqi;
}

.hf-app-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 3cqi;
    font-size: clamp(11px, 3cqi, 14px);
    font-weight: 700;
}

.hf-bars {
    display: flex;
    align-items: flex-end;
    gap: 2cqi;
    height: 16cqi;
    margin-bottom: 3.2cqi;
    padding-bottom: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hf-bars span {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(to top, var(--hf-blue), var(--hf-glow));
    transform-origin: bottom;
    animation: hf-bar 3.2s ease-in-out infinite;
}

.hf-bars span:nth-child(1) { height: 35%; animation-delay: -0.2s; }
.hf-bars span:nth-child(2) { height: 50%; animation-delay: -0.6s; }
.hf-bars span:nth-child(3) { height: 45%; animation-delay: -1s; }
.hf-bars span:nth-child(4) { height: 68%; animation-delay: -1.4s; }
.hf-bars span:nth-child(5) { height: 80%; animation-delay: -1.8s; }
.hf-bars span:nth-child(6) { height: 96%; animation-delay: -2.2s; }

.hf-app-tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.6cqi;
}

.hf-app-tags li {
    display: inline-flex;
    align-items: center;
    gap: 1.4cqi;
    margin: 0;
    padding: 1.2cqi 2.4cqi;
    border-radius: 999px;
    background: rgba(111, 221, 225, 0.12);
    color: #dbe6ef;
    font-size: clamp(10px, 2.5cqi, 12px);
    font-weight: 600;
    white-space: nowrap;
}

.hf-app-tags i {
    color: var(--hf-glow);
}

.hf-float {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 2cqi 3.4cqi;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    font-size: clamp(11px, 2.8cqi, 14px);
    font-weight: 600;
    white-space: nowrap;
    animation: hf-float 6s ease-in-out infinite;
}

.hf-float i {
    color: var(--hf-glow);
}

.hf-float--software { left: 82%; top: 14%; }
.hf-float--dados { left: 15%; top: 92%; animation-delay: -3s; }

@keyframes hf-type {
    0% { clip-path: inset(0 100% 0 0); }
    12% { clip-path: inset(0 0 0 0); }
    80% { clip-path: inset(0 0 0 0); opacity: 1; }
    92% { clip-path: inset(0 0 0 0); opacity: 0; }
    100% { clip-path: inset(0 100% 0 0); opacity: 0; }
}

@keyframes hf-caret {
    50% { opacity: 0; }
}

@keyframes hf-flow {
    from { stroke-dashoffset: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    to { stroke-dashoffset: -92; opacity: 0; }
}

@keyframes hf-bar {
    0%, 100% { transform: scaleY(0.55); }
    50% { transform: scaleY(1); }
}

@keyframes hf-float {
    0%, 100% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, calc(-50% - 6px)); }
}

/* ---------- Responsivo e movimento reduzido das variações ---------- */
@media (max-width: 991.98px) {
    .hf-visual {
        max-width: 420px;
    }
}

@media (max-width: 639.98px) {
    .hf-visual {
        max-width: 340px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hf-radar-sweep,
    .hf-blip::after,
    .hf-dot,
    .hf-gear-badge i,
    .hf-bars span,
    .hf-float,
    .hf-caret {
        animation: none;
    }

    .hf-line {
        animation: none;
        clip-path: none;
    }

    .hf-flow-pulse {
        display: none;
    }
}

/* ==========================================================================
   VARIAÇÃO: PÁGINA INICIAL (.hf-hero--home)
   Mesma família das páginas de serviço, com fundo próprio inspirado no logo:
   feixes diagonais no ângulo do traço do "A" e quadrados teal como o pingo do "i".
   À direita, o ecossistema: a Altvia no centro alimentando as três especialidades.
   ========================================================================== */

.hf-hero--home {
    display: flex;
    align-items: center;
    min-height: min(880px, calc(100vh - 84px));
    padding: 104px 0 120px;
    background:
        radial-gradient(720px 560px at 80% 42%, rgba(0, 177, 183, 0.22), transparent 65%),
        radial-gradient(640px 540px at 0% 0%, rgba(0, 120, 184, 0.42), transparent 65%),
        radial-gradient(560px 440px at 38% 118%, rgba(111, 114, 242, 0.3), transparent 70%),
        linear-gradient(155deg, #00121f 0%, var(--hf-navy-deep) 32%, var(--hf-navy) 74%, #013a66 100%);
}

.hf-hero--home::before {
    content: none;
}

.hf-hero--home > .container {
    width: 100%;
}

.hh-grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
}

/* Feixes diagonais e quadrados de marca */
.hh-beams {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hh-beam {
    position: absolute;
    left: -25%;
    width: 150%;
    transform: rotate(-32deg);
    background: linear-gradient(90deg, transparent 8%, rgba(0, 120, 184, 0.34) 42%, rgba(0, 177, 183, 0.3) 62%, transparent 90%);
    filter: blur(1px);
    overflow: hidden;
}

.hh-beam::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, transparent 42%, rgba(142, 230, 233, 0.55) 50%, transparent 58%, transparent 100%);
    background-size: 220% 100%;
    animation: hh-shimmer 8s linear infinite;
}

.hh-beam--1 { top: 66%; height: 120px; opacity: 0.6; }
.hh-beam--2 { top: 84%; height: 40px; opacity: 0.45; }
.hh-beam--2::after { animation-delay: -3s; }
.hh-beam--3 { top: 42%; height: 18px; opacity: 0.35; }
.hh-beam--3::after { animation-delay: -5.5s; }

.hh-square {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: linear-gradient(180deg, #19c6c9, #0a8fbf);
    box-shadow: 0 0 24px rgba(0, 177, 183, 0.75);
    animation: hh-drift 9s ease-in-out infinite;
}

.hh-square--1 { top: 16%; left: 47%; }
.hh-square--2 { top: 93%; left: 46%; width: 10px; height: 10px; animation-delay: -3s; }
.hh-square--3 { top: 10%; right: 5%; width: 8px; height: 8px; animation-delay: -6s; opacity: 0.8; }

/* Texto */
.hh-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 24px;
    padding: 7px 16px 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: #dbe6ef;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hh-eyebrow-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: linear-gradient(180deg, #19c6c9, #0a8fbf);
    box-shadow: 0 0 12px rgba(0, 177, 183, 0.8);
}

.hh-title {
    max-width: 680px;
    font-size: clamp(2.4rem, 1.1rem + 3.6vw, 4.25rem);
    font-weight: 800;
    line-height: 1.06;
}

.hh-hl {
    background: linear-gradient(90deg, #8ee6e9 0%, #6fdde1 40%, #7cb8ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hf-hero--home .hf-lead {
    max-width: 540px;
    font-size: 1.2rem;
}

.hh-trust {
    margin-top: 44px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    max-width: 560px;
}

.hh-trust p {
    margin: 0 0 14px;
    color: #9fb3c4;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hh-trust ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 32px;
    margin: 0;
    padding: 0;
}

.hh-trust li {
    margin: 0;
}

.hh-trust img {
    height: 46px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.72;
    transition: opacity 0.2s ease;
}

.hh-trust img:hover {
    opacity: 1;
}

/* Ecossistema */
.hh-eco {
    position: relative;
    width: 100%;
    max-width: 580px;
    aspect-ratio: 560 / 620;
    margin-left: auto;
    container-type: inline-size;
}

.hh-links {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.hh-link {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 2;
    stroke-dasharray: 4 7;
}

.hh-pulses path {
    fill: none;
    stroke: var(--hf-light);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 10 90;
    filter: drop-shadow(0 0 5px rgba(111, 221, 225, 0.95));
    animation: hh-travel 2.4s linear infinite;
}

.hh-pulses path:nth-child(2) { animation-delay: -0.8s; }
.hh-pulses path:nth-child(3) { animation-delay: -1.6s; }

.hh-core {
    position: absolute;
    left: 18%;
    top: 50%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7%;
    width: 33%;
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.22), transparent 55%),
        linear-gradient(140deg, var(--hf-blue), var(--hf-teal-strong));
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 0 90px rgba(0, 177, 183, 0.55), inset 0 -12px 30px rgba(0, 0, 0, 0.25);
}

.hh-core::before,
.hh-core::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hh-core::before {
    inset: -12%;
    border: 1.5px dashed rgba(142, 230, 233, 0.5);
    animation: hf-spin 40s linear infinite;
}

.hh-core::after {
    inset: -28%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 1px rgba(0, 177, 183, 0.08) inset;
    animation: hh-breathe 5s ease-in-out infinite;
}

.hh-core img {
    width: 62%;
    height: auto;
    filter: brightness(0) invert(1);
}

.hh-core span {
    color: #dff7f8;
    font-size: clamp(10px, 2.2cqi, 13px);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
}

.hh-cards {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hh-cards li {
    position: absolute;
    z-index: 3;
    margin: 0;
    transform: translateY(-50%);
    animation: hh-bob 7s ease-in-out infinite;
}

.hh-cards li:nth-child(1) { left: 42%; top: 14%; width: 58%; }
.hh-cards li:nth-child(2) { left: 46%; top: 50%; width: 54%; animation-delay: -2.3s; }
.hh-cards li:nth-child(3) { left: 42%; top: 86%; width: 58%; animation-delay: -4.6s; }

.hh-card {
    display: flex;
    align-items: flex-start;
    gap: 3.2cqi;
    padding: 3.4cqi 3.6cqi;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
    color: #fff;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.hh-card:hover {
    color: #fff;
    transform: translateY(-4px);
    border-color: rgba(142, 230, 233, 0.6);
    background: linear-gradient(160deg, rgba(0, 177, 183, 0.24), rgba(255, 255, 255, 0.05));
}

.hh-card:focus-visible {
    outline: 3px solid var(--hf-teal);
    outline-offset: 3px;
}

.hh-card-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 10cqi;
    min-width: 38px;
    aspect-ratio: 1 / 1;
    border-radius: 28%;
    background: linear-gradient(135deg, var(--hf-blue), var(--hf-teal-strong));
    box-shadow: 0 8px 20px rgba(0, 177, 183, 0.35);
    font-size: clamp(16px, 4cqi, 22px);
}

.hh-card-body {
    min-width: 0;
}

.hh-card strong {
    display: block;
    margin-bottom: 4px;
    font-size: clamp(13px, 3.1cqi, 16px);
    font-weight: 700;
    line-height: 1.25;
}

.hh-card small {
    display: block;
    color: #c9d6e2;
    font-size: clamp(11px, 2.45cqi, 13px);
    line-height: 1.45;
}

.hh-card em {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    color: var(--hf-light);
    font-size: clamp(10px, 2.3cqi, 12px);
    font-style: normal;
    font-weight: 600;
}

.hh-card-go {
    align-self: center;
    margin-left: auto;
    color: var(--hf-light);
    font-size: clamp(12px, 2.6cqi, 14px);
    transition: transform 0.2s ease;
}

.hh-card:hover .hh-card-go {
    transform: translateX(3px);
}

@keyframes hh-shimmer {
    from { background-position: 120% 0; }
    to { background-position: -120% 0; }
}

@keyframes hh-drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(6px, -10px) rotate(12deg); }
}

@keyframes hh-travel {
    from { stroke-dashoffset: 0; opacity: 0; }
    12% { opacity: 1; }
    88% { opacity: 1; }
    to { stroke-dashoffset: -90; opacity: 0; }
}

@keyframes hh-bob {
    0%, 100% { transform: translateY(-50%); }
    50% { transform: translateY(calc(-50% - 6px)); }
}

@keyframes hh-breathe {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.04); }
}

/* Responsivo */
@media (max-width: 1199.98px) {
    .hh-grid {
        gap: 40px;
    }
}

@media (max-width: 991.98px) {
    .hf-hero--home {
        min-height: 0;
        padding: 64px 0 80px;
    }

    .hh-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hh-eco {
        max-width: 560px;
        margin-inline: auto;
    }
}

@media (max-width: 639.98px) {
    .hh-trust img {
        height: 30px;
    }

    .hh-trust ul {
        gap: 12px 22px;
    }

    /* No celular, o ecossistema vira uma pilha: núcleo em cima e cartões embaixo */
    .hh-eco {
        aspect-ratio: auto;
        container-type: normal;
    }

    .hh-links {
        display: none;
    }

    .hh-core {
        position: relative;
        left: auto;
        top: auto;
        width: 150px;
        margin: 18px auto 44px;
        transform: none;
    }

    .hh-core span {
        font-size: 11px;
    }

    .hh-cards {
        display: grid;
        gap: 12px;
    }

    .hh-cards li {
        position: static;
        width: auto !important;
        transform: none;
        animation: none;
    }

    .hh-card {
        gap: 14px;
        padding: 16px;
    }

    .hh-card-icon {
        width: 42px;
        font-size: 18px;
    }

    .hh-card strong { font-size: 15px; }
    .hh-card small { font-size: 13px; }
    .hh-card em { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .hh-beam::after,
    .hh-square,
    .hh-core::before,
    .hh-core::after,
    .hh-cards li {
        animation: none;
    }

    .hh-pulses {
        display: none;
    }
}

/* Ajustes finos da página inicial em telas menores */
@media (max-width: 991.98px) {
    .hh-square--1 {
        top: 6%;
        left: auto;
        right: 8%;
    }
}

@media (max-width: 639.98px) {
    .hh-eyebrow {
        padding: 6px 12px 6px 10px;
        font-size: 11px;
        letter-spacing: 0.01em;
    }

    .hh-core {
        width: 136px;
        margin: 8px auto 36px;
    }
}

@media (max-width: 639.98px) {
    .hh-square--1 {
        display: none;
    }
}

@media (max-width: 639.98px) {
    .hh-square--3 {
        top: 3%;
        right: 4%;
    }
}

@media (max-width: 991.98px) {
    .hh-square--2 {
        top: auto;
        bottom: 26px;
        left: 10%;
    }
}

/* Entre 992 e 1279px, a página inicial também usa o layout empilhado (texto em cima, ecossistema embaixo) */
@media (min-width: 992px) and (max-width: 1279.98px) {
    .hf-hero--home {
        min-height: 0;
        padding: 72px 0 88px;
    }

    .hh-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hh-eco {
        max-width: 560px;
        margin-inline: auto;
    }

    .hh-square--1 {
        top: 6%;
        left: auto;
        right: 8%;
    }

    .hh-square--2 {
        top: auto;
        bottom: 26px;
        left: 10%;
    }
}

/* ==========================================================================
   VARIAÇÃO ÍNDIGO (.hf-hero--indigo): área institucional e de conteúdo
   (Sobre Nós, Cases e Blog). Mesma imersão dos cabeçalhos escuros, com o
   índigo (derivado do lilás da marca) no lugar do azul-marinho dos serviços.
   ========================================================================== */

.hf-hero--indigo {
    --hf-violet: #6f72f2;
    --hf-violet-ink: #4f53d6;
    --hf-lilac: #c3c5ff;

    color: #fff;
    background:
        radial-gradient(640px 520px at 84% 38%, rgba(0, 177, 183, 0.26), transparent 65%),
        radial-gradient(600px 500px at 4% 0%, rgba(111, 114, 242, 0.55), transparent 65%),
        radial-gradient(520px 420px at 48% 118%, rgba(0, 120, 184, 0.35), transparent 70%),
        linear-gradient(160deg, #0d0f33 0%, #1b1d5c 52%, #2c2f86 100%);
}

/* pontilhado no lugar da grade das páginas de serviço */
.hf-hero--indigo::before {
    background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.2px, transparent 1.6px);
    background-size: 22px 22px;
}

.hf-hero--indigo::after {
    background: linear-gradient(to right, transparent, var(--hf-teal) 30%, var(--hf-violet) 70%, transparent);
}

.hf-hero--indigo .hf-breadcrumb {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.hf-hero--indigo .hf-breadcrumb a {
    color: #e0e1ff;
}

.hf-hero--indigo .hf-breadcrumb a:hover,
.hf-hero--indigo .hf-breadcrumb [aria-current="page"],
.hf-hero--indigo .hf-breadcrumb li + li::before {
    color: var(--hf-lilac);
}

.hf-hero--indigo .hf-title {
    color: #fff;
}

.hf-hero--indigo .hf-kicker {
    color: var(--hf-lilac);
}

.hf-hero--indigo .hf-lead {
    color: #d6d8f5;
}

.hf-hero--indigo .hf-btn--ghost {
    color: #fff;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.75);
}

.hf-hero--indigo .hf-btn--ghost:hover {
    background: #fff;
    color: #1b1d5c;
}

/* cartões brancos com sombra mais profunda sobre o fundo escuro */
.hf-hero--indigo .hf-paper {
    box-shadow: 0 26px 60px rgba(5, 6, 30, 0.5), 0 2px 6px rgba(5, 6, 30, 0.25);
}

/* linhas de Sobre Nós em tons mais claros, para contraste no índigo */
.hf-hero--indigo .hf-trail-pulses path {
    filter: drop-shadow(0 0 5px rgba(195, 197, 255, 0.95));
}

.hf-hero--indigo .hf-union {
    box-shadow: 0 0 0 10px rgba(195, 197, 255, 0.12), 0 0 0 22px rgba(0, 177, 183, 0.1), 0 24px 60px rgba(5, 6, 30, 0.5);
}

.hf-hero--indigo .hf-union::before {
    border-color: rgba(195, 197, 255, 0.5);
}

/* Cartão "papel" branco, usado nas ilustrações da área institucional */
.hf-paper {
    border: 1px solid rgba(0, 44, 83, 0.07);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 44, 83, 0.16), 0 2px 6px rgba(0, 44, 83, 0.05);
    color: var(--hf-navy);
}

.hf-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 1cqi 2.6cqi;
    border-radius: 999px;
    font-size: clamp(10px, 2.4cqi, 12px);
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.hf-pill--teal { background: #e3f7f8; color: #007177; }
.hf-pill--violet { background: #ecebff; color: var(--hf-violet-ink); }
.hf-pill--grey { background: #eef1f5; color: #4a5a68; }

/* ---------- CASES E BLOG: histórias reais ---------- */
.hf-stories .hf-story-blog {
    position: absolute;
    top: 7%;
    left: 0;
    z-index: 1;
    width: 60%;
    padding: 5cqi;
    transform: rotate(-5deg);
    text-decoration: none;
    animation: hf-tilt-a 8s ease-in-out infinite;
}

.hf-stories .hf-story-case {
    position: absolute;
    top: 33%;
    right: 0;
    z-index: 2;
    display: block;
    width: 64%;
    padding: 5.4cqi;
    transform: rotate(3deg);
    text-decoration: none;
    transition: box-shadow 0.25s ease;
    animation: hf-tilt-b 8s ease-in-out infinite;
}

.hf-stories .hf-story-case:hover,
.hf-stories .hf-story-blog:hover {
    color: var(--hf-navy);
    box-shadow: 0 30px 70px rgba(0, 44, 83, 0.24), 0 0 0 2px rgba(0, 177, 183, 0.35);
}

.hf-story-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6cqi;
    margin-bottom: 3cqi;
}

.hf-story-title {
    display: block;
    margin-bottom: 3cqi;
    color: var(--hf-navy);
    font-size: clamp(13px, 3.5cqi, 18px);
    font-weight: 700;
    line-height: 1.3;
}

.hf-story-lines {
    display: grid;
    gap: 1.8cqi;
    margin-bottom: 3.6cqi;
}

.hf-story-lines i {
    display: block;
    height: 1.6cqi;
    min-height: 5px;
    border-radius: 99px;
    background: #e6ebf1;
}

.hf-story-author {
    display: flex;
    align-items: center;
    gap: 2cqi;
}

.hf-story-author b {
    width: 6cqi;
    min-width: 18px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hf-violet), var(--hf-teal));
}

.hf-story-author i {
    display: block;
    width: 26%;
    height: 1.6cqi;
    min-height: 5px;
    border-radius: 99px;
    background: #dfe5ec;
}

.hf-story-result {
    display: flex;
    align-items: center;
    gap: 3.4cqi;
    margin: 0 0 3.4cqi;
    padding: 3.4cqi;
    border-radius: 14px;
    background: linear-gradient(135deg, #eafafb, #eef3ff);
}

.hf-story-result strong {
    flex-shrink: 0;
    background: linear-gradient(90deg, var(--hf-blue), var(--hf-teal-strong));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(30px, 11cqi, 56px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.hf-story-result span {
    color: #3d4a55;
    font-size: clamp(11px, 2.7cqi, 14px);
    font-weight: 500;
    line-height: 1.4;
}

.hf-story-go {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #007177;
    font-size: clamp(11px, 2.8cqi, 14px);
    font-weight: 700;
}

.hf-story-chip {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 2.4cqi;
    padding: 2.4cqi 3.6cqi;
    border-radius: 14px;
    font-size: clamp(11px, 2.7cqi, 14px);
    font-weight: 600;
    white-space: nowrap;
    animation: hf-chip-bob 6s ease-in-out infinite;
}

@keyframes hf-chip-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.hf-story-chip b {
    color: var(--hf-violet-ink);
    font-size: clamp(14px, 4cqi, 20px);
    font-weight: 800;
}

.hf-story-chip--1 { left: 2%; bottom: -4%; }
.hf-story-chip--2 { right: 2%; top: 4%; animation-delay: -3s; }

@keyframes hf-tilt-a {
    0%, 100% { transform: rotate(-5deg) translateY(0); }
    50% { transform: rotate(-4deg) translateY(-6px); }
}

@keyframes hf-tilt-b {
    0%, 100% { transform: rotate(3deg) translateY(0); }
    50% { transform: rotate(2deg) translateY(-8px); }
}

/* ---------- SOBRE NÓS: trajetórias que se unem ---------- */
.hf-journeys svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.hf-trail {
    fill: none;
    stroke-width: 5;
    stroke-linecap: round;
    opacity: 0.9;
}

/* espessura proporcional aos anos de experiência */
.hf-trail--1 { stroke: url(#hfTrailA); stroke-width: 7; }
.hf-trail--2 { stroke: url(#hfTrailB); stroke-width: 5.5; }
.hf-trail--3 { stroke: url(#hfTrailC); stroke-width: 4; }

.hf-trail-pulses path {
    fill: none;
    stroke: #fff;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 6 94;
    filter: drop-shadow(0 0 4px rgba(111, 114, 242, 0.9));
    animation: hf-trail 3.2s linear infinite;
}

.hf-trail-pulses path:nth-child(2) { animation-delay: -1.1s; }
.hf-trail-pulses path:nth-child(3) { animation-delay: -2.2s; }

.hf-trail-start circle {
    fill: #fff;
    stroke-width: 4;
}

.hf-origin {
    position: absolute;
    z-index: 2;
    display: grid;
    gap: 2px;
    padding: 2.2cqi 3.4cqi;
    width: 31%;
    transform: translateY(-50%);
    border-radius: 14px;
    line-height: 1.25;
}

.hf-origin strong {
    font-size: clamp(11px, 2.9cqi, 15px);
    font-weight: 700;
}

.hf-origin span {
    color: #5a6b7a;
    font-size: clamp(10px, 2.4cqi, 12px);
    font-weight: 600;
}

/* posições das três origens (início de cada linha) */
.hf-origin--1 { left: 0; top: 22%; }
.hf-origin--2 { left: 0; top: 50%; }
.hf-origin--3 { left: 0; top: 78%; }

.hf-union {
    position: absolute;
    left: 80%;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 26%;
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 10px rgba(111, 114, 242, 0.08), 0 0 0 22px rgba(0, 177, 183, 0.06), 0 24px 60px rgba(0, 44, 83, 0.2);
}

.hf-union::before {
    content: "";
    position: absolute;
    inset: -12%;
    border-radius: 50%;
    border: 1.5px dashed rgba(111, 114, 242, 0.45);
    animation: hf-spin 40s linear infinite;
}

.hf-union img {
    width: 66%;
    height: auto;
}

.hf-years {
    position: absolute;
    right: 0;
    top: 92%;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 3cqi;
    padding: 2.6cqi 4cqi;
    transform: translateY(-50%);
    border-radius: 16px;
    white-space: nowrap;
}

.hf-years strong {
    background: linear-gradient(90deg, var(--hf-violet), var(--hf-teal-strong));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(22px, 7.4cqi, 38px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}

.hf-years span {
    color: #3d4a55;
    font-size: clamp(10px, 2.6cqi, 13px);
    font-weight: 600;
    line-height: 1.3;
}

@keyframes hf-trail {
    from { stroke-dashoffset: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    to { stroke-dashoffset: -94; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hf-stories .hf-story-blog,
    .hf-stories .hf-story-case,
    .hf-story-chip,
    .hf-union::before {
        animation: none;
    }

    .hf-trail-pulses {
        display: none;
    }
}

.hf-story-lines i:nth-child(2) { width: 92%; }
.hf-story-lines i:nth-child(3) { width: 64%; }

/* Cases e Blog no celular: área um pouco mais alta e só um selo, para não cobrir o case */
@media (max-width: 639.98px) {
    .hf-stories {
        aspect-ratio: 5 / 6;
    }

    .hf-story-chip--1 {
        display: none;
    }
}

/* ==========================================================================
   Página Início | ajustes pontuais
   ========================================================================== */

/* 2) Primeiro bloco compacto: texto e ilustração cabem na tela sem rolagem */
.hf-hero--home {
    min-height: 0;
    padding: clamp(36px, 5.5vh, 64px) 0 clamp(44px, 6.5vh, 72px);
}

.hf-hero--home .hh-eyebrow {
    margin-bottom: 18px;
}

.hf-hero--home .hh-title {
    margin-bottom: 16px;
    font-size: clamp(2.2rem, 1.1rem + 2.6vw, 3.4rem);
}

.hf-hero--home .hf-lead {
    font-size: 1.1rem;
}

.hf-hero--home .hf-actions {
    margin-top: 26px;
}

.hf-hero--home .hh-trust {
    margin-top: 30px;
    padding-top: 18px;
}

.hf-hero--home .hh-trust p {
    margin-bottom: 10px;
}

.hf-hero--home .hh-trust img {
    height: 40px;
}

/* a ilustração acompanha a altura da tela (proporção 560 x 620) */
@media (min-width: 1280px) {
    .hf-hero--home .hh-eco {
        max-width: min(540px, calc((100vh - 84px - 110px) * 0.903));
    }
}

/* ---------- CARREIRAS: faça parte do time ---------- */
.hf-team-card {
    position: absolute;
    left: 13%;
    top: 31%;
    z-index: 2;
    width: 74%;
    padding: 5cqi 5.4cqi;
}

.hf-team-open {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 2.4cqi;
    padding: 1cqi 2.6cqi;
    border-radius: 999px;
    background: #e6f9f0;
    color: #0f7a4f;
    font-size: clamp(10px, 2.5cqi, 12.5px);
    font-weight: 700;
}

.hf-team-open b {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    animation: hf-dot 2s ease-out infinite;
}

.hf-team-title {
    margin: 0 0 3.2cqi;
    color: var(--hf-navy);
    font-size: clamp(15px, 4.6cqi, 23px);
    font-weight: 800;
    line-height: 1.2;
}

.hf-team-row {
    display: flex;
    align-items: center;
    margin-bottom: 3.6cqi;
}

.hf-avatar {
    display: grid;
    place-items: center;
    width: 10.5cqi;
    min-width: 34px;
    aspect-ratio: 1 / 1;
    margin-right: -2.2cqi;
    border: 3px solid #fff;
    border-radius: 50%;
    color: #fff;
    font-size: clamp(12px, 3.6cqi, 18px);
}

.hf-avatar--1 { background: linear-gradient(135deg, #0078b8, #009ba1); }
.hf-avatar--2 { background: linear-gradient(135deg, #6f72f2, #4f53d6); }
.hf-avatar--3 { background: linear-gradient(135deg, #009ba1, #3ddc97); }
.hf-avatar--4 { background: linear-gradient(135deg, #002c53, #0078b8); }

.hf-avatar--you {
    margin-right: 0;
    border: 2px dashed #6f72f2;
    background: #f1f0ff;
    color: #4f53d6;
    animation: hf-you 2.4s ease-in-out infinite;
}

.hf-team-you {
    margin-left: 3cqi;
    color: #4f53d6;
    font-size: clamp(12px, 3.4cqi, 17px);
    font-weight: 800;
}

.hf-team-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6cqi;
    padding-top: 3cqi;
    border-top: 1px solid #eef1f5;
}

.hf-team-info span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 1cqi 2.4cqi;
    border-radius: 999px;
    background: #eef3fb;
    color: #3d4a55;
    font-size: clamp(10px, 2.5cqi, 12.5px);
    font-weight: 600;
}

.hf-team-info i { color: #0078b8; }

.hf-role {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 2cqi;
    padding: 2cqi 3.4cqi;
    border-radius: 12px;
    font-size: clamp(11px, 2.8cqi, 14px);
    font-weight: 700;
    white-space: nowrap;
    animation: hf-chip-bob 6s ease-in-out infinite;
}

.hf-role i { color: #4f53d6; font-size: 1.1em; }

.hf-role--1 { left: 4%; top: 9%; }
.hf-role--2 { left: 56%; top: 4%; animation-delay: -1s; }
.hf-role--3 { left: 76%; top: 18%; animation-delay: -2s; }
.hf-role--4 { left: 1%; top: 80%; animation-delay: -3s; }
.hf-role--5 { left: 62%; top: 82%; animation-delay: -4s; }
.hf-role--6 { left: 30%; top: 90%; animation-delay: -5s; }

@keyframes hf-you {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(111, 114, 242, 0.35); }
    50% { transform: scale(1.06); box-shadow: 0 0 0 6px rgba(111, 114, 242, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .hf-role, .hf-avatar--you, .hf-team-open b { animation: none; }
}

/* Carreiras: etiquetas de baixo afastadas do cartão */
.hf-role--4 { top: 83%; }
.hf-role--5 { top: 84%; }

@media (max-width: 639.98px) {
    .hf-team { aspect-ratio: 5 / 6; }
    .hf-team-card { top: 25%; }
    .hf-role--1 { top: 6%; }
    .hf-role--2 { top: 2%; }
    .hf-role--3 { top: 13%; }
    .hf-role--4 { top: 85%; left: 0; }
    .hf-role--5 { top: 85%; left: 60%; }
    .hf-role--6 { top: 94%; left: 30%; }
}

@media (min-width: 640px) and (max-width: 1199.98px) {
    .hf-role--4 { top: 86%; }
    .hf-role--5 { top: 86%; }
    .hf-role--6 { top: 92%; }
}

/* Logos do topo da Início: tamanho visual equilibrado entre formatos diferentes */
.hf-hero--home .hh-trust img {
    width: auto;
    height: auto;
    max-width: 104px;
    max-height: 40px;
}

/* Logos do topo da Início: tamanho pelo peso visual (área parecida) e alinhados ao centro */
.hf-hero--home .hh-trust ul { align-items: center; gap: 14px 30px; }
.hf-hero--home .hh-trust img { max-width: none; max-height: none; width: auto; }
.hf-hero--home .hh-trust img[src$="b3-topo.png"] { height: 35px; }
.hf-hero--home .hh-trust img[src$="rchlo-topo.png"] { height: 32px; }
.hf-hero--home .hh-trust img[src$="honda.svg"] { height: 42px; }
.hf-hero--home .hh-trust img[src$="jacto.webp"] { height: 25px; }
.hf-hero--home .hh-trust img[src$="dori-mono.webp"] { height: 38px; }
.hf-hero--home .hh-trust li { display: flex; align-items: center; height: 42px; }

@media (max-width: 639.98px) {
    .hf-hero--home .hh-trust ul { gap: 12px 22px; }
    .hf-hero--home .hh-trust img[src$="b3-topo.png"] { height: 29px; }
    .hf-hero--home .hh-trust img[src$="rchlo-topo.png"] { height: 26px; }
    .hf-hero--home .hh-trust img[src$="honda.svg"] { height: 34px; }
    .hf-hero--home .hh-trust img[src$="jacto.webp"] { height: 20px; }
    .hf-hero--home .hh-trust img[src$="dori-mono.webp"] { height: 31px; }
    .hf-hero--home .hh-trust li { height: 34px; }
}

/* Topo das páginas internas: etiqueta e título sempre começam na mesma altura
   (alinhados ao topo, em vez de centralizados em relação à ilustração) */
@media (min-width: 992px) {
    .hf-hero:not(.hf-hero--home) .hf-grid {
        align-items: start;
    }
}

/* Celulares muito estreitos: breadcrumb um pouco menor para não quebrar em duas linhas */
@media (max-width: 359.98px) {
    .hf-breadcrumb { gap: 6px; font-size: 10.5px; letter-spacing: 0.02em; }
    .hf-breadcrumb { padding-left: 12px; padding-right: 12px; }
}

/* Logos do topo da Início um pouco menores e mais discretos */
.hf-hero--home .hh-trust img { opacity: 0.6; }
.hf-hero--home .hh-trust img[src$="b3-topo.png"] { height: 28px; }
.hf-hero--home .hh-trust img[src$="rchlo-topo.png"] { height: 26px; }
.hf-hero--home .hh-trust img[src$="honda.svg"] { height: 34px; }
.hf-hero--home .hh-trust img[src$="jacto.webp"] { height: 20px; }
.hf-hero--home .hh-trust img[src$="dori-mono.webp"] { height: 30px; }
.hf-hero--home .hh-trust li { height: 34px; }
.hf-hero--home .hh-trust ul { gap: 12px 26px; }

@media (max-width: 639.98px) {
    .hf-hero--home .hh-trust img[src$="b3-topo.png"] { height: 24px; }
    .hf-hero--home .hh-trust img[src$="rchlo-topo.png"] { height: 22px; }
    .hf-hero--home .hh-trust img[src$="honda.svg"] { height: 29px; }
    .hf-hero--home .hh-trust img[src$="jacto.webp"] { height: 17px; }
    .hf-hero--home .hh-trust img[src$="dori-mono.webp"] { height: 26px; }
    .hf-hero--home .hh-trust li { height: 29px; }
    .hf-hero--home .hh-trust ul { gap: 10px 20px; }
}
