/* ============================================================================
   retroativo.css - CSS exclusivo da pagina /projeto-retroativo (lote P5).
   Classes especificas usam o prefixo .retro-*; tokens, botoes, cards e grades
   genericas vem do site.css.

   SECOES
     1. Hero escuro
     2. Indicadores
     3. Demonstracao simulada
     4. Caminhos
     5. Etapas
     6. CTA final
     7. Responsivo e movimento reduzido
   ============================================================================ */

/* ----------------------------------------------------------- 1. HERO ESCURO */
.retro-hero { min-height: 560px; display: flex; align-items: center; text-align: center; }
.retro-hero__glow {
    position: absolute;
    top: -120px;
    right: -70px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(140, 198, 63, .26), transparent 68%);
    pointer-events: none;
}
.retro-hero__container { position: relative; z-index: 1; }
.retro-hero__content { max-width: 820px; margin: 0 auto; }
.retro-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 22px;
    padding: 7px 16px;
    border: 1px solid rgba(140, 198, 63, .32);
    border-radius: 100px;
    background: rgba(140, 198, 63, .15);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
    color: #DDE0FF;
}
.retro-hero__badge i { flex: none; font-size: 15px; color: var(--lime); }
.retro-hero__title { max-width: 680px; margin-right: auto; margin-left: auto; font-size: clamp(36px, 5.5vw, 58px); }
.retro-hero__title span { color: var(--lime); }
.retro-hero__lead { max-width: 720px; margin-right: auto; margin-left: auto; }
.retro-hero__stat {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    max-width: 640px;
    margin: 38px auto 0;
    padding: 24px 34px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    background: rgba(10, 13, 40, .42);
    box-shadow: 0 22px 48px -22px rgba(10, 13, 40, .7);
    text-align: left;
    backdrop-filter: blur(6px);
}
.retro-hero__stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; flex: none; border-radius: 16px; background: rgba(140, 198, 63, .16); font-size: 30px; color: var(--lime); }
.retro-hero__stat-copy { display: flex; flex-direction: column; min-width: 0; }
.retro-hero__stat-copy strong { font-family: var(--font-display); font-size: clamp(30px, 4.2vw, 38px); font-weight: 800; line-height: 1; letter-spacing: -1.5px; color: #fff; }
.retro-hero__stat-copy span { margin-top: 6px; font-size: 14px; line-height: 1.45; color: #C2C6F0; }

/* ----------------------------------------------------------- 2. INDICADORES */
.retro-indicators { padding-bottom: clamp(36px, 5vw, 52px); }
.retro-indicators .section-head { margin-bottom: 36px; }
.retro-indicators__grid { max-width: 1040px; margin: 0 auto; }
.retro-indicator { padding: clamp(28px, 4vw, 34px); border-color: var(--border-2); border-radius: 20px; }
.retro-indicator h3 { margin: 18px 0 10px; font-size: 20px; font-weight: 700; }
.retro-indicator p { margin: 0; font-size: 15px; line-height: 1.62; color: var(--text-2); }

/* ----------------------------------------------- 3. DEMONSTRACAO SIMULADA */
#demonstracao { scroll-margin-top: clamp(76px, 8vw, 100px); }
.retro-demo-section { padding-top: 16px; padding-bottom: clamp(42px, 6vw, 64px); }
.retro-demo-section .section-head { margin-bottom: 30px; }
.retro-demo { max-width: 1040px; margin: 0 auto; }
.retro-demo__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.retro-demo__document-card,
.retro-demo__result { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lift); }
.retro-demo__document-card { background: var(--surface); }
.retro-demo__result { background: var(--dark); }
.retro-demo__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-3); }
.retro-demo__bar i { flex: none; font-size: 17px; color: var(--navy); }
.retro-demo__bar span { overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.retro-demo__bar--dark { border-bottom-color: rgba(255, 255, 255, .06); background: var(--footer); }
.retro-demo__bar--dark i { color: var(--lime); }
.retro-demo__bar--dark span { color: #8991C4; }

.retro-demo__document { position: relative; min-height: 390px; padding: 24px; overflow: hidden; }
.retro-demo__file-label { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; padding: 14px 16px; border: 1.5px dashed #C6CAE4; border-radius: 14px; background: #F7F8FC; }
.retro-demo__file-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--navy-tint); font-size: 23px; color: var(--navy); }
.retro-demo__file-label > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.retro-demo__file-label strong { overflow-wrap: anywhere; font-family: var(--font-display); font-size: 14px; line-height: 1.35; color: var(--ink); }
.retro-demo__file-label small { margin-top: 3px; font-size: 12px; color: var(--muted); }
.retro-demo__paper { display: flex; flex-direction: column; gap: 5px; font-family: var(--font-mono); font-size: 10.5px; line-height: 1.6; color: #8A90B8; }
.retro-demo__paper strong { margin-top: 5px; font-weight: 600; color: var(--text); }
.retro-demo__paper strong:first-child { margin-top: 0; }
.retro-demo__scanner { display: none; position: absolute; top: -14%; right: 0; left: 0; z-index: 2; height: 70px; background: linear-gradient(180deg, transparent, rgba(140, 198, 63, .35), transparent); box-shadow: 0 0 28px rgba(140, 198, 63, .4); pointer-events: none; }
.retro-demo.is-scanning .retro-demo__scanner { display: block; animation: retro-scan 1.5s linear infinite; }

.retro-demo__result-body { min-height: 390px; padding: 24px; }
.retro-demo__state { min-height: 342px; }
.retro-demo__state[hidden] { display: none; }
.retro-demo__idle,
.retro-demo__scanning { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.retro-demo__idle > i { font-size: 40px; color: #4A5085; }
.retro-demo__idle p { max-width: 240px; margin: 0; font-size: 13.5px; line-height: 1.5; color: #7B81AE; }
.retro-demo__scanning > i { font-size: 38px; color: #B6E27A; animation: retro-spin .7s linear infinite; }
.retro-demo__scanning p { max-width: 280px; margin: 0; font-size: 13.5px; line-height: 1.5; color: #B6E27A; }
.retro-demo__done { display: flex; flex-direction: column; gap: 18px; }
.retro-demo__data-group h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-family: var(--font-body); font-size: 12px; font-weight: 800; line-height: 1.4; letter-spacing: .5px; color: var(--lime); }
.retro-demo__data-group h3 i { flex: none; font-size: 15px; }
.retro-demo__data-group dl { margin: 0; }
.retro-demo__data-group dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 13px; line-height: 1.45; opacity: 0; animation: retro-row-in .45s ease forwards; }
.retro-demo__data-group dl > div:nth-child(2) { animation-delay: .08s; }
.retro-demo__data-group dl > div:nth-child(3) { animation-delay: .16s; }
.retro-demo__data-group dl > div:nth-child(4) { animation-delay: .24s; }
.retro-demo__data-group dt { color: #8991C4; }
.retro-demo__data-group dd { margin: 0; font-weight: 600; text-align: right; color: #fff; }
.retro-demo__actions { margin-top: 24px; text-align: center; }
.retro-demo__button { min-width: 238px; }
.retro-demo.is-scanning .retro-demo__button-icon { animation: retro-spin .7s linear infinite; }
.retro-demo__notice { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; max-width: 920px; margin: 24px auto 0; text-align: center; }
.retro-demo__notice p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-2); }

/* ------------------------------------------------------------- 4. CAMINHOS */
.retro-paths { padding-top: 8px; padding-bottom: clamp(42px, 6vw, 64px); }
.retro-paths .section-head { margin-bottom: 36px; }
.retro-paths__grid { align-items: stretch; }
.retro-path { display: flex; flex-direction: column; padding: clamp(26px, 3.5vw, 32px); border-color: var(--border-2); border-radius: 20px; }
.retro-path__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.retro-path__number { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--navy); font-family: var(--font-display); font-size: 15px; font-weight: 800; color: #fff; }
.retro-path__tag { padding: 4px 10px; border-radius: 100px; background: var(--lime-tint); font-size: 12px; font-weight: 700; color: var(--lime-2); }
.retro-path h3 { margin: 0 0 10px; font-size: 19px; font-weight: 700; }
.retro-path p { margin: 0; font-size: 14.5px; line-height: 1.62; color: var(--text-2); }

/* --------------------------------------------------------------- 5. ETAPAS */
.retro-process { padding-top: 0; padding-bottom: clamp(42px, 6vw, 64px); }
.retro-process__panel { padding: clamp(34px, 5vw, 48px); border-radius: 24px; background: linear-gradient(135deg, #F0F2FF, #E7F4D9); }
.retro-process__panel .section-head { margin-bottom: 40px; }
.retro-process__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.retro-step { min-width: 0; padding: 26px; border-radius: 18px; background: var(--surface); }
.retro-step__number { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 11px; background: var(--lime); font-family: var(--font-display); font-size: 14px; font-weight: 800; color: var(--dark-2); }
.retro-step h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 700; }
.retro-step p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.retro-process__delivery { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 20px 24px; border-radius: 14px; background: var(--navy); color: #fff; }
.retro-process__delivery > i { flex: none; font-size: 24px; color: var(--lime); }
.retro-process__delivery p { margin: 0; font-size: 14.5px; line-height: 1.55; color: #DDE0FF; }
.retro-process__delivery strong { color: #fff; }

/* ------------------------------------------------------------ 6. CTA FINAL */
.retro-cta-section { padding: 0 0 clamp(48px, 7vw, 72px); }
.retro-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(42px, 6vw, 56px) clamp(24px, 5vw, 48px);
    border-radius: 28px;
    background-image: linear-gradient(120deg, rgba(35, 44, 139, .88), rgba(22, 26, 77, .94)), url('/img/network-bg-1600.webp');
    background-size: cover;
    background-position: center;
    text-align: center;
}
.retro-cta::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 44px 44px; pointer-events: none; }
.retro-cta__glow { position: absolute; top: -100px; right: -60px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(140, 198, 63, .3), transparent 68%); pointer-events: none; }
.retro-cta__content { position: relative; }
.retro-cta__badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 7px 16px; border: 1px solid rgba(140, 198, 63, .3); border-radius: 100px; background: rgba(140, 198, 63, .15); font-size: 12.5px; font-weight: 800; line-height: 1.4; letter-spacing: .5px; color: #B6E27A; }
.retro-cta__badge span { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.retro-cta h2 { margin: 0 0 14px; font-size: clamp(30px, 4.5vw, 40px); color: #fff; }
.retro-cta__lead { max-width: 560px; margin: 0 auto 30px; font-size: clamp(16px, 2vw, 18px); line-height: 1.6; color: #C2C6F0; }
.retro-cta__button { padding-right: 36px; padding-left: 36px; font-size: 17px; font-weight: 800; }
.retro-cta__response { margin: 16px 0 0; font-size: 13px; color: #9AA0D6; }
.retro-cta__proofs { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 30px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .1); }
.retro-cta__proofs span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 11px; background: rgba(255, 255, 255, .06); font-size: 13px; font-weight: 700; color: #fff; }
.retro-cta__proofs i { flex: none; font-size: 17px; color: var(--lime); }

/* ------------------------------------------ 7. RESPONSIVO E MOVIMENTO */
@media (max-width: 1024px) {
    .retro-process__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .retro-hero { min-height: 520px; }
    .retro-demo__grid { grid-template-columns: minmax(0, 1fr); }
    .retro-process__steps { grid-template-columns: minmax(0, 1fr); }
    .retro-cta { background-image: linear-gradient(120deg, rgba(35, 44, 139, .88), rgba(22, 26, 77, .94)), url('/img/network-bg-800.webp'); }
}

@media (max-width: 480px) {
    .retro-hero__badge { align-items: flex-start; font-size: 11px; }
    .retro-hero__stat { align-items: flex-start; padding: 22px 20px; }
    .retro-hero__stat-icon { width: 52px; height: 52px; font-size: 25px; }
    .retro-demo__document,
    .retro-demo__result-body { min-height: 0; padding: 20px; }
    .retro-demo__result-body { min-height: 390px; }
    .retro-demo__state { min-height: 350px; }
    .retro-demo__data-group dl > div { align-items: flex-start; flex-direction: column; gap: 3px; }
    .retro-demo__data-group dd { text-align: left; }
    .retro-demo__button,
    .retro-demo__notice .btn,
    .retro-cta__button { width: 100%; }
    .retro-process__panel { padding-right: 20px; padding-left: 20px; }
    .retro-process__delivery { align-items: flex-start; padding: 18px; }
    .retro-cta__proofs span { width: 100%; justify-content: center; }
}

@keyframes retro-spin { to { transform: rotate(360deg); } }
@keyframes retro-scan { 0% { top: -14%; } 100% { top: 100%; } }
@keyframes retro-row-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
    .retro-demo__scanner,
    .retro-demo__scanning > i,
    .retro-demo__button-icon,
    .retro-demo__data-group dl > div { animation: none; }
    .retro-demo__data-group dl > div { opacity: 1; }
}
