/* ============================================================================
   home.css - CSS exclusivo da pagina inicial (lote P1).
   Tudo aqui e prefixado .home-*; os tokens, botoes, cards, grades, accordion e
   keyframes vem do site.css (design system global) e NAO sao redefinidos.
   Os poucos ajustes escopados a esta pagina (.home-features .feature-card__title,
   .home-como .step-card__num, .home-depoimentos .testimonial-card__avatar) existem
   para bater exatamente com os tamanhos/cores do design da equipe comercial.

   SECOES
     1. Ancoras (scroll-margin do header sticky)
     2. Hero: copy, avatares, maquete animada, robo, cards flutuantes
     3. Escolha sua plataforma
     4. Stats
     5. Recursos
     6. Como funciona
     7. Depoimentos
     8. CEO
     9. FAQ
    10. CTA final
   ============================================================================ */

/* ------------------------------------------------------------- 1. ANCORAS */
#recursos,
#como-funciona,
#depoimentos,
#faq { scroll-margin-top: clamp(76px, 8vw, 100px); }

/* ---------------------------------------------------------------- 2. HERO */
.home-hero { position: relative; }

.home-hero::before,
.home-hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
}
.home-hero::before {
    top: -120px;
    right: -80px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(140, 198, 63, .20), transparent 68%);
}
.home-hero::after {
    bottom: -140px;
    left: -100px;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(35, 44, 139, .12), transparent 66%);
}

.home-hero > .container { position: relative; z-index: 1; }

/* coluna de texto do hero: item de grade, nao pode estourar a largura da coluna */
.home-hero__copy { min-width: 0; }

.home-hero__pill { margin: 0 0 26px; letter-spacing: .3px; }

.home-hero__title { letter-spacing: -1.8px; }

.home-hero__actions { margin-bottom: 38px; }

.home-hero__social { display: flex; align-items: center; gap: 16px; }
.home-hero__avatars { display: flex; flex: none; }
.home-hero__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--bg);
}
.home-hero__avatar + .home-hero__avatar { margin-left: -12px; }
.home-hero__avatar--a { background: var(--navy); }
.home-hero__avatar--b { background: var(--navy-2); }
.home-hero__avatar--c { background: var(--lime); }
.home-hero__social-text { margin: 0; font-size: 14px; line-height: 1.45; color: var(--text); }
.home-hero__social-text strong { font-size: 16px; color: var(--ink); }

/* --- maquete animada (janela + documento + dados extraidos) --------------- */
.home-hero__visual { position: relative; height: 520px; }

.home-hero__visual-bg {
    position: absolute;
    inset: 0;
    border-radius: 32px;
    background: linear-gradient(150deg, #EEF0FF, #E4F3D6);
}

.home-hero__window {
    position: absolute;
    top: 34px;
    left: 34px;
    right: 34px;
    bottom: 34px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 24px 50px -30px rgba(35, 44, 139, .4);
}

.home-hero__window-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: none;
    padding: 12px 15px;
    background: var(--surface-3);
    border-bottom: 1px solid var(--border);
}
.home-hero__window-dot { width: 10px; height: 10px; border-radius: 50%; }
.home-hero__window-dot--red { background: #ff5f57; }
.home-hero__window-dot--yellow { background: #febc2e; }
.home-hero__window-dot--green { background: #28c840; }

.home-hero__window-body { display: flex; flex: 1; min-height: 0; }

.home-doc {
    position: relative;
    display: flex;
    flex: 1.05;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 22px 20px;
    background: #F7F8FC;
    border-right: 1px solid #EEF0F8;
}
.home-doc__bar { flex: none; border-radius: 5px; margin-bottom: 9px; }
.home-doc__bar--title { height: 11px; border-radius: 6px; background: #D9DEF0; margin-bottom: 16px; }
.home-doc__bar--subtitle { height: 9px; border-radius: 6px; background: #D9DEF0; margin-bottom: 12px; }
.home-doc__bar--text { height: 7px; background: #E4E8F5; }
.home-doc__bar--gap { margin-bottom: 18px; }
.home-doc__bar--last { margin-bottom: 0; }
.home-doc__bar--w38 { width: 38%; }
.home-doc__bar--w46 { width: 46%; }
.home-doc__bar--w70 { width: 70%; }
.home-doc__bar--w80 { width: 80%; }
.home-doc__bar--w86 { width: 86%; }
.home-doc__bar--w88 { width: 88%; }
.home-doc__bar--w90 { width: 90%; }
.home-doc__bar--w92 { width: 92%; }
.home-doc__bar--w94 { width: 94%; }

.home-doc__scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, transparent, rgba(140, 198, 63, .28), transparent);
    box-shadow: 0 0 24px rgba(140, 198, 63, .35);
    animation: scanmove 3.6s ease-in-out infinite;
}

.home-extract {
    display: flex;
    flex: .95;
    flex-direction: column;
    gap: 11px;
    min-width: 0;
    padding: 20px 18px;
}
.home-extract__title {
    margin: 0 0 3px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--lime);
}
.home-extract__row {
    display: flex;
    align-items: center;
    gap: 9px;
    animation: rowin 3.6s ease-in-out infinite;
}
.home-extract__check { flex: none; font-size: 17px; color: var(--lime-2); }
.home-extract__field { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.home-extract__label { margin-bottom: 4px; font-size: 10px; line-height: 1.3; color: var(--muted-2); }
.home-extract__bar {
    display: block;
    width: var(--w, 70%);
    height: 7px;
    border-radius: 5px;
    background: var(--navy);
    animation: barfill 3.6s ease-in-out infinite;
}
.home-extract__bar--w60 { --w: 60%; }
.home-extract__bar--w68 { --w: 68%; }
.home-extract__bar--w74 { --w: 74%; }
.home-extract__bar--w82 { --w: 82%; }

.home-extract__row--1,
.home-extract__row--1 .home-extract__bar { animation-delay: .1s; }
.home-extract__row--2,
.home-extract__row--2 .home-extract__bar { animation-delay: .5s; }
.home-extract__row--3,
.home-extract__row--3 .home-extract__bar { animation-delay: .9s; }
.home-extract__row--4,
.home-extract__row--4 .home-extract__bar { animation-delay: 1.3s; }

.home-extract__foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 10px 12px;
    border-radius: 11px;
    background: var(--lime-tint);
}
.home-extract__foot i { flex: none; font-size: 15px; color: var(--lime-2); }
.home-extract__foot-text { font-size: 11.5px; font-weight: 700; line-height: 1.35; color: var(--lime-deep); }
.home-extract__caret { animation: caret 1s step-end infinite; }

.home-hero__robot {
    position: absolute;
    right: -48px;
    bottom: -30px;
    width: 185px;
    height: auto;
    filter: drop-shadow(0 30px 40px rgba(35, 44, 139, .30));
    animation: floaty 5.5s ease-in-out infinite;
}

.home-hero__float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius);
}
.home-hero__float--precisao {
    top: 20px;
    left: -26px;
    background: var(--surface);
    box-shadow: 0 20px 40px -16px rgba(35, 44, 139, .35);
    animation: floaty2 6s ease-in-out infinite;
}
.home-hero__float--tempo {
    bottom: 36px;
    left: -16px;
    background: var(--navy);
    color: #fff;
    box-shadow: 0 20px 40px -14px rgba(35, 44, 139, .55);
    animation: floaty2 6.4s ease-in-out infinite;
}
.home-hero__float-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 11px;
    background: var(--lime-tint);
}
.home-hero__float-icon i { font-size: 22px; color: var(--lime-2); }
.home-hero__float-info { display: flex; flex-direction: column; }
.home-hero__float-value {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 20px;
    line-height: 1;
    color: var(--ink);
}
.home-hero__float-label { margin-top: 2px; font-size: 12px; line-height: 1.3; color: var(--muted); }
.home-hero__float--tempo .home-hero__float-value { color: #fff; }
.home-hero__float--tempo .home-hero__float-label { margin-top: 3px; color: #B9BEEA; }

/* Hero responsivo: a maquete deixa de ter altura fixa e passa a escalar com a
   largura do container (o hero ja vira 1 coluna em <=1024px pelo site.css). */
@media (max-width: 1024px) {
    .home-hero__visual {
        height: auto;
        width: 100%;
        max-width: 620px;
        margin: 0 auto;
        aspect-ratio: 4 / 3;
    }
    .home-hero__float--precisao { left: 0; }
    .home-hero__float--tempo { left: 8px; bottom: 24px; }
    .home-hero__robot { right: -14px; bottom: -22px; width: 160px; }
}

@media (max-width: 768px) {
    .home-hero__visual { aspect-ratio: 1 / 1; }
    .home-hero__window { top: 22px; left: 22px; right: 22px; bottom: 22px; }
    .home-doc { padding: 16px 14px; }
    .home-extract { padding: 14px 12px; gap: 9px; }
}

@media (max-width: 480px) {
    .home-hero__float { display: none; }
    .home-hero__robot { width: 118px; bottom: -14px; right: -8px; }
    .home-hero__window { top: 14px; left: 14px; right: 14px; bottom: 14px; border-radius: var(--radius); }
    .home-extract__label { font-size: 9px; }
}

/* ------------------------------------------------- 3. ESCOLHA SUA PLATAFORMA */
.home-escolha { padding-top: clamp(20px, 3vw, 28px); padding-bottom: 0; }

.home-escolha__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(26px, 3.6vw, 38px);
    color: inherit;
}
.home-escolha__card .icon-box {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    border-radius: 16px;
    font-size: 28px;
}
.home-escolha__titulo { margin: 0 0 8px; font-size: clamp(20px, 2.6vw, 24px); }
.home-escolha__sub { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--lime-2); }
.home-escolha__texto { flex: 1; margin: 0 0 22px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.home-escolha__cta { align-self: flex-start; padding: 13px 22px; }

/* --------------------------------------------------------------- 4. STATS */
.home-stats { padding-top: clamp(44px, 6vw, 72px); }

/* ------------------------------------------------------------- 5. RECURSOS */
.home-features .feature-card__title { font-size: clamp(18px, 2.1vw, 20px); font-weight: 700; }

/* -------------------------------------------------------- 6. COMO FUNCIONA */
.home-como { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.home-como .step-card { padding: clamp(24px, 3vw, 30px) clamp(20px, 2.6vw, 26px); border-color: var(--border-3); }
.home-como .step-card__num {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 15px;
}
.home-como .step-card__text { font-size: 14px; line-height: 1.55; }

/* ---------------------------------------------------------- 7. DEPOIMENTOS */
.home-depoimentos .testimonial-card { gap: 14px; margin: 0; }
.home-depoimentos__icone { font-size: 30px; line-height: 1; color: var(--lime); }
.home-depoimentos .testimonial-card__quote { flex: 1; margin: 0; font-size: 15px; line-height: 1.68; }
.home-depoimentos .testimonial-card__author {
    gap: 13px;
    margin-top: 4px;
    padding-top: 18px;
    border-top: 1px solid #EEF0F8;
}
.home-depoimentos .testimonial-card__avatar { background: var(--navy); color: #fff; font-weight: 700; }
.home-depoimentos__pessoa { display: flex; flex-direction: column; min-width: 0; }
.home-depoimentos .testimonial-card__name { font-weight: 800; }
.home-depoimentos .testimonial-card__role { margin-top: 2px; font-size: 12.5px; }

/* ----------------------------------------------------------------- 8. CEO */
.home-ceo { padding-top: clamp(32px, 4vw, 40px); padding-bottom: clamp(64px, 9vw, 104px); }
.home-ceo__grid {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: clamp(32px, 4.5vw, 56px);
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}
.home-ceo__texto-col { min-width: 0; }
.home-ceo__foto { text-align: center; }
.home-ceo__anel {
    display: inline-block;
    padding: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lime), var(--navy));
}
.home-ceo__img {
    display: block;
    width: 220px;
    height: 220px;
    border: 4px solid var(--bg);
    border-radius: 50%;
    object-fit: cover;
}
.home-ceo__nome {
    margin: 20px 0 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
    color: var(--ink);
}
.home-ceo__cargo { margin: 4px 0 0; font-size: 14px; font-weight: 700; color: var(--lime); }
.home-ceo__titulo { margin: 0 0 18px; font-size: clamp(26px, 3.6vw, 34px); line-height: 1.15; }
.home-ceo__texto { margin: 0 0 14px; font-size: 16px; line-height: 1.7; color: var(--text); text-align: left; }
.home-ceo__texto:last-child { margin-bottom: 0; }
.home-ceo__texto strong { color: var(--ink); }

@media (min-width: 769px) {
    .home-ceo__texto { text-align: justify; }
}

@media (max-width: 900px) {
    .home-ceo__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
    .home-ceo__img { width: 168px; height: 168px; }
}

/* ----------------------------------------------------------------- 9. FAQ */
.home-faq { padding-top: 0; padding-bottom: clamp(56px, 8vw, 88px); }
.home-faq .section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.home-faq__lista { max-width: 820px; margin: 0 auto; }
.home-faq__heading { margin: 0; font: inherit; letter-spacing: normal; color: inherit; }
.home-faq__trigger { gap: 16px; padding: 22px 26px; }
.home-faq__num {
    flex: none;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--lime);
}
.home-faq__pergunta {
    flex: 1;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16.5px;
    line-height: 1.45;
    color: var(--ink-2);
}
.home-faq__icone { display: inline-flex; font-size: 20px; }
/* O design troca o icone (+/-) em vez de girar; o giro do site.css e anulado. */
.home-faq .accordion__trigger[aria-expanded="true"] .accordion__icon { transform: none; }
.home-faq__icone-menos { display: none; }
.home-faq .accordion__item.is-open .home-faq__icone-mais { display: none; }
.home-faq .accordion__item.is-open .home-faq__icone-menos { display: inline-block; }
.home-faq__painel { padding: 0 26px 24px 62px; font-size: 15px; line-height: 1.68; color: var(--text); }

@media (max-width: 560px) {
    .home-faq__trigger { gap: 12px; padding: 18px 18px; }
    .home-faq__pergunta { font-size: 15.5px; }
    .home-faq__painel { padding: 0 18px 20px; }
}

/* --------------------------------------------------------- 10. CTA FINAL */
.home-cta-section { padding-bottom: clamp(48px, 7vw, 72px); }

.home-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(44px, 7vw, 72px) clamp(24px, 5vw, 56px);
    border-radius: var(--radius-xl);
    background-image: linear-gradient(120deg, rgba(28, 35, 110, .90), rgba(18, 21, 64, .94)), url('/img/network-bg-1600.webp');
    background-size: cover;
    background-position: center;
    text-align: center;
}
.home-cta__brilho {
    position: absolute;
    top: -100px;
    right: -60px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(140, 198, 63, .35), transparent 68%);
    pointer-events: none;
}
.home-cta__inner { position: relative; }
.home-cta__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 22px;
    padding: 8px 16px;
    border-radius: 100px;
    background: rgba(255, 255, 255, .12);
    font-size: 13px;
    font-weight: 700;
    color: #DDE0FF;
}
.home-cta__badge .dot { width: 7px; height: 7px; }
.home-cta__titulo { margin: 0 0 16px; font-size: clamp(28px, 5vw, 44px); letter-spacing: -1.2px; color: #fff; }
.home-cta__lead { margin: 0 0 34px; font-size: clamp(16px, 2vw, 18px); color: #C2C6F0; }
.home-cta__btn { padding: 17px 36px; font-size: 17px; font-weight: 800; }
.home-cta__nota { margin: 22px 0 0; font-size: 13px; color: #9AA0D6; }

@media (max-width: 768px) {
    .home-cta {
        background-image: linear-gradient(120deg, rgba(28, 35, 110, .90), rgba(18, 21, 64, .94)), url('/img/network-bg-800.webp');
    }
}
