/* FlexWork Landing Page — estilos
   Extraído de index.aspx para melhor cache e separação de concerns.
   Fonte única de verdade para estilos da landing. */

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #dbeafe;
    --secondary: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --light: #f8fafc;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-blue: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #334155;
    overflow-x: hidden;
}

html {
    scroll-padding-top: 96px;
}

#como-funciona,
#trabalhadores,
#empresas,
#contato {
    scroll-margin-top: 96px;
}

h1, h2, h3, h4, h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
}

.logo-diamond {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 6px;
    margin-right: 10px;
    position: relative;
    align-items: center;
    justify-content: center;
}

.logo-diamond::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: white;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary) !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-primary-custom {
    background: var(--gradient-blue);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-primary-custom:focus-visible,
.btn-light-custom:focus-visible,
.btn-outline-custom:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,197.3C1248,203,1344,149,1392,122.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    opacity: 0.3;
}
/* Formas suaves no fundo (referência Join Us – paleta FlexWork) */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    pointer-events: none;
}
.hero-blob-1 {
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, 0.4);
    top: -80px;
    left: -60px;
}
.hero-blob-2 {
    width: 280px;
    height: 280px;
    background: rgba(96, 165, 250, 0.5);
    bottom: 10%;
    left: 15%;
}
.hero-blob-3 {
    width: 240px;
    height: 240px;
    background: rgba(255, 255, 255, 0.25);
    top: 30%;
    right: 5%;
}

/* Desktop: coluna direita estica até o fim do hero; texto à esquerda centralizado */
.hero .hero-row {
    align-items: stretch;
}
.hero .hero-content {
    align-self: center;
}
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
@media (max-width: 991px) {
    .hero .hero-content {
        padding-top: 1rem;
        padding-bottom: 0.5rem;
    }
    .hero h1 {
        font-size: clamp(1.5rem, 4.5vw, 2.1rem);
        margin-bottom: 0.75rem;
    }
    .hero .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    .hero .hero-buttons .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.6;
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-light-custom {
    background: white;
    color: var(--primary);
    border: none;
    box-shadow: 0 4px 20px rgba(255,255,255,0.3);
}

.btn-light-custom:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255,255,255,0.5);
}

.btn-outline-custom {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-custom:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-5px) scale(1.05);
}

/* Fluxo visual (abaixo de Como funciona) */
.flow-visual-block {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
}
.flow-visual-block .flow-summary-title {
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.75rem;
}
@keyframes flowTrustFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
@keyframes flowBadgePulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(59, 130, 246, 0.12); }
    50% { box-shadow: 0 6px 22px rgba(59, 130, 246, 0.28); }
}
.flow-trust-chip {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.1rem 0.85rem;
    text-align: center;
    height: 100%;
    transition: transform 0.35s ease, border-color 0.35s ease;
    animation: flowTrustFloat 4s ease-in-out infinite;
}
.flow-trust-chip:nth-child(1) { animation-delay: 0s; }
.flow-trust-chip:nth-child(2) { animation-delay: 0.4s; }
.flow-trust-chip:nth-child(3) { animation-delay: 0.8s; }
.flow-trust-chip:nth-child(4) { animation-delay: 1.2s; }
.flow-trust-chip:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.45);
}
.flow-trust-chip .ft-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.65rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #2563eb;
}
.flow-trust-chip .ft-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.35;
}
.flow-path-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.35rem 1rem 1.5rem;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}
.flow-path-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 1.15rem;
}
.flow-path-header i {
    color: var(--primary);
    font-size: 1.2rem;
}
.flow-badges-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem 0.25rem;
}
.flow-badge-step {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #cbd5e1;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    animation: flowBadgePulse 2.6s ease-in-out infinite;
    animation-delay: calc(var(--stagger, 0) * 0.18s);
}
.flow-badge-step .fb-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    color: #1d4ed8;
}
.flow-connector {
    color: #94a3b8;
    font-size: 0.7rem;
    padding: 0 0.1rem;
    opacity: 0.85;
}
@media (max-width: 576px) {
    .flow-connector { display: none; }
    .flow-badges-row { flex-direction: column; gap: 0.5rem; }
    .flow-badge-step { width: 100%; justify-content: center; max-width: 320px; }
}
.section-how-grid h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: var(--dark);
}
.section-how-grid ol {
    padding-left: 1.1rem;
    margin: 0;
    color: #475569;
}
.section-how-grid li {
    margin-bottom: 0.5rem;
}
.how-cards-wrap {
    position: relative;
    padding: 2.25rem 1.5rem;
    border-radius: 28px;
    overflow: hidden;
    margin-top: 0.5rem;
}
.how-cards-bg-diamonds {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-color: #f1f5f9;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent 0,
            transparent 18px,
            rgba(59, 130, 246, 0.06) 18px,
            rgba(59, 130, 246, 0.06) 36px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent 0,
            transparent 18px,
            rgba(37, 99, 235, 0.05) 18px,
            rgba(37, 99, 235, 0.05) 36px
        );
    opacity: 1;
}
.how-cards-bg-diamonds::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 90% 70% at 50% 0%, rgba(255, 255, 255, 0.65) 0%, transparent 55%);
}
.how-cards-wrap .section-how-grid {
    position: relative;
    z-index: 1;
}
.how-card-photo {
    margin: -2.5rem -2.5rem 1.25rem -2.5rem;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    height: clamp(320px, 52vw, 480px);
    padding: 0;
    background: linear-gradient(165deg, #eef2ff 0%, #e0e7ff 40%, #dbeafe 100%);
}
.how-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.45s ease;
}
.feature-card:hover .how-card-photo img {
    transform: scale(1.02);
}
.why-hero-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    margin-bottom: 2rem;
}
.why-hero-img img {
    width: 100%;
    height: min(590px, 72vw);
    object-fit: cover;
    object-position: center top;
    display: block;
}
.split-section-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}
.split-section-img img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
}
.img-strip-mini {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.img-strip-mini figure {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    max-width: 140px;
}
.img-strip-mini img {
    width: 100%;
    height: 88px;
    object-fit: cover;
    display: block;
}
.cta-section .img-strip-mini figure {
    border: 2px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
}
.why-pill {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}
.trust-pill-grid .trust-pill {
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem 1rem;
    height: 100%;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: #334155;
    line-height: 1.45;
}
.lead-block {
    font-size: 1.1rem;
    line-height: 1.75;
    color: #475569;
    max-width: 720px;
    margin: 0 auto;
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Stats Section */
.stats-section {
    background: white;
    padding: 4rem 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.05);
    margin-top: -50px;
    position: relative;
    z-index: 3;
    border-radius: 30px 30px 0 0;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: var(--gradient-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-highlight {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.stat-label {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.4;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    border: 1px solid #f1f5f9;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-blue);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 30px;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-blue);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 700px;
    margin: 1.5rem auto 0;
}
@media (min-width: 992px) {
    .section-header.text-lg-start {
        text-align: left;
        margin-bottom: 2rem;
    }
    .section-header.text-lg-start h2::after {
        left: 0;
        transform: none;
    }
    .section-header.text-lg-start .lead-block {
        margin-left: 0 !important;
        margin-right: auto;
    }
}

/* Process Steps */
.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.process-step h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-blue);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,224L48,208C96,192,192,160,288,165.3C384,171,480,213,576,218.7C672,224,768,192,864,165.3C960,139,1056,117,1152,128C1248,139,1344,181,1392,202.7L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    display: block;
    margin: 0.5rem 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }

    .stat-card {
        margin-bottom: 2rem;
    }
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Benefícios / Por que FlexWork - fundo azul + geométrico */
.benefits-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 45%, #3b82f6 100%);
    position: relative;
    overflow: hidden;
}
.benefits-section .container {
    position: relative;
    z-index: 2;
}
.benefits-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23ffffff" stroke-width="0.15" opacity="0.12"/><circle cx="50" cy="50" r="25" fill="none" stroke="%23ffffff" stroke-width="0.1" opacity="0.08"/><line x1="50" y1="10" x2="50" y2="90" stroke="%23ffffff" stroke-width="0.08" opacity="0.1"/><line x1="10" y1="50" x2="90" y2="50" stroke="%23ffffff" stroke-width="0.08" opacity="0.1"/><line x1="20" y1="20" x2="80" y2="80" stroke="%23ffffff" stroke-width="0.06" opacity="0.08"/><line x1="80" y1="20" x2="20" y2="80" stroke="%23ffffff" stroke-width="0.06" opacity="0.08"/></svg>'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 200"><path fill="%23ffffff" fill-opacity="0.07" d="M0,80 Q360,120 720,80 T1440,80 L1440,200 L0,200 Z"/><path fill="%23ffffff" fill-opacity="0.05" d="M0,120 Q360,60 720,120 T1440,120 L1440,200 L0,200 Z"/></svg>');
    background-size: 120px 120px, 1440px 200px;
    background-position: 0 0, 0 100%;
    background-repeat: repeat, repeat-x;
    pointer-events: none;
}
.benefits-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.benefits-section .section-header h2,
.benefits-section .section-header p {
    color: white !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.benefits-section .section-header h2::after {
    background: rgba(255,255,255,0.9);
}
.benefits-section .section-header h2 .text-primary {
    color: white !important;
}
.benefit-item {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    transition: all 0.35s ease;
    position: relative;
    z-index: 1;
}
.benefit-item[data-aos].aos-animate {
    opacity: 1;
    transform: scale(1) translateY(0);
}
.benefit-item:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.benefit-item .benefit-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    transition: transform 0.35s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.benefit-item:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
    background: white;
}
.benefit-item .benefit-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: white;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
/* Imagem ao centro com ícones ao redor */
.benefits-around-wrap {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}
.benefits-around-wrap .benefits-section-image {
    max-width: 50%;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    z-index: 0;
}
.benefits-around-wrap .benefits-section-image:hover {
    transform: scale(1.02);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.25);
}
.benefit-item.benefit-around {
    position: absolute;
    z-index: 1;
    max-width: 180px;
}
.benefit-pos-1 { top: 0;   left: 50%; transform: translateX(-50%); }
.benefit-pos-2 { top: 50%; left: 0;   transform: translateY(-50%); }
.benefit-pos-3 { top: 50%; right: 0;   transform: translateY(-50%); }
.benefit-pos-4 { bottom: 0; left: 15%; }
.benefit-pos-5 { bottom: 0; right: 15%; }
@media (max-width: 991px) {
    .benefits-around-wrap {
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        min-height: auto;
        padding: 1.5rem 0;
    }
    .benefits-around-wrap .benefits-section-image {
        max-width: 85%;
        margin-bottom: 1.5rem;
        order: 0;
    }
    .benefit-item.benefit-around {
        position: static;
        max-width: 200px;
        transform: none;
        order: 1;
        flex: 1 1 160px;
    }
}
@media (max-width: 576px) {
    .benefits-around-wrap .benefits-section-image {
        max-width: 95%;
    }
    .benefits-around-wrap .benefit-around {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Logo Diamond 2D Suave */
.logo-diamond-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diamond-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    animation: gentleFloat 4s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.02);
    }
}

.diamond {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diamond-face {
    position: absolute;
    width: 100%;
    height: 100%;
}

.diamond-front {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.95) 0%,
        rgba(96, 165, 250, 0.9) 50%,
        rgba(147, 197, 253, 0.85) 100%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    border-radius: 10px;
    box-shadow:
        0 20px 60px rgba(59, 130, 246, 0.4),
        inset 0 0 60px rgba(255, 255, 255, 0.15);
    animation: gentlePulse 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

@keyframes gentlePulse {
    0%, 100% {
        box-shadow:
            0 20px 60px rgba(59, 130, 246, 0.4),
            inset 0 0 60px rgba(255, 255, 255, 0.15);
    }
    50% {
        box-shadow:
            0 25px 80px rgba(59, 130, 246, 0.6),
            inset 0 0 80px rgba(255, 255, 255, 0.25);
    }
}

/* Losango puro sem texto */

.diamond-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    background: radial-gradient(circle,
        rgba(59, 130, 246, 0.4) 0%,
        rgba(59, 130, 246, 0.2) 30%,
        transparent 70%);
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes glowPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

/* Hero: imagem preenche toda a coluna da direita (desktop) */
.hero-image-col {
    display: flex;
    align-items: stretch;
    padding: 0;
}
.hero-image-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: calc(90vh - 80px);
    max-height: calc(90vh - 80px);
    overflow: hidden;
}
.hero-image-wrap .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: calc(90vh - 80px);
    object-fit: cover;
    object-position: center top;
    display: block;
}
.hero-image-wrap .hero-image-1 {
    animation: heroFade1 40s ease-in-out infinite;
}
.hero-image-wrap .hero-image-2 {
    animation: heroFade2 40s ease-in-out infinite;
}
/* 40s total: 20s imagem 1, ~1s transição, 20s imagem 2, ~1s transição */
@keyframes heroFade1 {
    0%, 47% { opacity: 1; }
    50%, 97% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes heroFade2 {
    0%, 47% { opacity: 0; }
    50%, 97% { opacity: 1; }
    100% { opacity: 0; }
}
/* Mobile (≤991px): imagem abaixo do texto */
@media (max-width: 991px) {
    .hero-image-wrap {
        min-height: 42vh;
    }
    .hero-image-wrap .hero-image {
        min-height: 42vh;
    }
}

/* Adicionar partículas ao redor do losango */
.diamond-wrapper::before,
.diamond-wrapper::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
}

.diamond-wrapper::before {
    top: 20%;
    left: -30px;
    animation: particleFloat1 4s ease-in-out infinite;
}

.diamond-wrapper::after {
    bottom: 20%;
    right: -30px;
    animation: particleFloat2 5s ease-in-out infinite;
}

@keyframes particleFloat1 {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 1;
    }
    50% {
        transform: translateY(-30px) translateX(15px);
        opacity: 0.5;
    }
}

@keyframes particleFloat2 {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 1;
    }
    50% {
        transform: translateY(30px) translateX(-15px);
        opacity: 0.5;
    }
}

/* Responsive Diamond */
@media (max-width: 768px) {
    .logo-diamond-container {
        height: 300px;
    }

    .diamond-wrapper {
        width: 200px;
        height: 200px;
    }

    .diamond-front {
        width: 180px;
        height: 180px;
    }


    .diamond-glow {
        width: 250px;
        height: 250px;
    }
}
@media (max-width: 768px) {
    #animatedFlowIframe {
        height: 580px !important;
    }
}

/* Back to Top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.back-to-top:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 3px;
}

.back-to-top.show {
    display: flex;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

/* ==================================================================
   Skip-to-content link (#16 — acessibilidade WCAG)
   Visualmente oculto; aparece quando recebe foco (Tab).
   ================================================================== */
.skip-link {
    position: absolute;
    top: -48px;
    left: 16px;
    background: #1e3a8a;
    color: #ffffff;
    padding: 10px 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    transition: top 0.2s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
    top: 0;
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
    color: #ffffff;
}

/* ==================================================================
   Print stylesheet (#17)
   Oculta elementos interativos/decorativos, simplifica cores para
   impressão legível e econômica de tinta.
   ================================================================== */
@media print {
    /* Oculta navegação fixa, seletor de idioma, botão "voltar ao topo",
       iframe de animação e skip link */
    .navbar,
    .skip-link,
    .back-to-top,
    #animatedFlowIframe,
    #langDropdown,
    .hero-blob,
    .diamond-glow,
    .benefits-section::before,
    .benefits-section::after,
    .hero::before,
    .cta-section::before {
        display: none !important;
    }

    /* Reset de cores gradientes para preto sobre branco */
    body,
    .hero,
    .cta-section,
    .benefits-section,
    footer {
        background: #ffffff !important;
        color: #000000 !important;
    }

    .hero h1,
    .hero-subtitle,
    .section-header h2,
    .cta-section h2,
    .section-header p {
        color: #000000 !important;
        text-shadow: none !important;
    }

    /* Cards e imagens: remove sombras caras de imprimir */
    .feature-card,
    .trust-pill,
    .benefit-item,
    .flow-trust-chip,
    .flow-path-card,
    .why-hero-img,
    .split-section-img,
    .how-cards-wrap {
        box-shadow: none !important;
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
    }

    /* Gradientes de texto viram preto sólido para impressão */
    .navbar-brand,
    .stat-number {
        background: none !important;
        -webkit-background-clip: initial !important;
        -webkit-text-fill-color: initial !important;
        background-clip: initial !important;
        color: #000000 !important;
    }

    /* Mostra URLs de links externos para referência impressa */
    a[href^="http"]::after,
    a[href^="mailto:"]::after {
        content: " (" attr(href) ")";
        font-size: 0.85em;
        color: #334155;
        word-break: break-all;
    }

    /* Evita quebra de página em meio a seções importantes */
    section,
    .feature-card,
    .stat-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    /* Ajuste de fonte para legibilidade */
    body {
        font-size: 11pt;
        line-height: 1.5;
    }
    h1 { font-size: 20pt; }
    h2 { font-size: 16pt; }
    h3 { font-size: 13pt; }
}

/* ============================================================
   Mobile polish — hero + navbar dropdown (≤991px)
   ============================================================ */

/* Desktop-only: manter aparência "pill" do seletor de idioma.
   No mobile este estilo some e o item vira linha full-width dentro do menu. */
@media (min-width: 992px) {
    .lang-pill {
        border: 1px solid #e2e8f0;
        border-radius: 20px;
        padding: 6px 12px !important;
    }
}

/* Scroll hint (chevron animado) visível apenas em telas pequenas */
.hero-scroll-hint { display: none; }

@media (max-width: 991px) {
    /* ---------- Hero ---------- */
    .hero {
        min-height: auto;
        padding-top: 96px;
        padding-bottom: 2.25rem;
    }
    .hero .hero-content {
        padding-top: 0.5rem;
        padding-bottom: 1rem;
        text-align: center;
    }
    .hero h1 {
        font-size: clamp(1.85rem, 6.2vw, 2.35rem);
        line-height: 1.2;
        margin-bottom: 1rem;
        letter-spacing: -0.015em;
    }
    .hero .hero-subtitle {
        font-size: 1rem;
        line-height: 1.55;
        margin-bottom: 1.35rem;
        opacity: 0.92;
    }
    .hero-buttons {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.55rem;
        align-items: stretch;
        justify-content: center;
    }
    .hero .hero-buttons .btn {
        margin: 0;
        padding: 0.75rem 0.65rem;
        font-size: 0.9rem;
        border-radius: 12px;
        flex: 1 1 0;
        min-width: 0;
        justify-content: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .hero .hero-buttons .btn i {
        margin-right: 0.35rem;
        font-size: 0.95rem;
    }
    /* Imagem do hero maior no mobile, agora que os botões estão compactos */
    .hero-image-wrap {
        min-height: 52vh;
        border-radius: 22px;
        margin-top: 1rem;
        box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
    }
    .hero-image-wrap .hero-image {
        border-radius: 22px;
    }

    /* Scroll hint */
    .hero-scroll-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.18);
        color: #ffffff;
        font-size: 0.9rem;
        z-index: 3;
        text-decoration: none;
        animation: scrollBounce 2.2s ease-in-out infinite;
        backdrop-filter: blur(4px);
        border: 1px solid rgba(255, 255, 255, 0.25);
    }
    .hero-scroll-hint:hover,
    .hero-scroll-hint:focus {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.28);
    }

    /* ---------- Navbar menu colapsável ---------- */
    .navbar-toggler {
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 0.4rem 0.55rem;
    }
    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    }

    /* Menu collapse vira um painel flutuante posicionado abaixo da navbar,
       evitando conflito com o flex-wrap: nowrap do container. */
    .navbar {
        position: fixed; /* já é, via .fixed-top, mas reforça contexto de posicionamento */
    }
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-radius: 0 0 18px 18px;
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
        margin: 0;
        padding: 0.35rem 0 0.9rem;
        border-top: 1px solid rgba(226, 232, 240, 0.7);
        overflow: hidden;
        z-index: 1030;
    }

    .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(226, 232, 240, 0.55);
    }
    .navbar-nav .nav-item:last-child,
    .navbar-nav .nav-item.nav-item-login {
        border-bottom: none;
    }

    .navbar-nav .nav-link {
        padding: 0.95rem 1.25rem !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center;
        gap: 0.7rem;
        font-weight: 500;
        color: #1e293b;
    }
    .navbar-nav .nav-link i {
        color: var(--primary);
        width: 20px;
        text-align: center;
        font-size: 0.95rem;
    }
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        background: rgba(59, 130, 246, 0.07);
        transform: none !important;
        color: var(--primary) !important;
    }
    /* Remove o underline animado (só faz sentido no desktop) */
    .navbar-nav .nav-link::after,
    .navbar-nav .nav-link:hover::after {
        display: none;
        width: 0;
    }

    /* Seletor de idioma dentro do menu mobile: linha normal, sem pill */
    .navbar-nav #langDropdown.lang-pill {
        width: 100%;
        border: none !important;
        border-radius: 0 !important;
        padding: 0.95rem 1.25rem !important;
        justify-content: flex-start !important;
    }
    .navbar-nav .dropdown-menu {
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
        margin: 0.25rem 1rem 0.5rem;
        padding: 0.35rem 0;
    }
    .navbar-nav .dropdown-item {
        padding: 0.65rem 1rem;
        border-radius: 8px;
    }

    /* Botão Entrar: full-width, destacado, com respiro em volta */
    .nav-item-login {
        padding: 0.85rem 1.25rem 0.35rem;
    }
    .nav-item-login .btn-primary-custom {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.25rem;
        border-radius: 12px;
        font-size: 1rem;
    }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.75; }
    50%      { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* Respeita preferência de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    .hero-scroll-hint { animation: none; }
}

/* ============================================================
   CTA "Entrar" sempre visível no mobile (ao lado do hamburger)
   Compacto para caber logo + CTA + hamburger em uma só linha.
   ============================================================ */
.nav-cta-mobile {
    padding: 0.38rem 0.75rem !important;
    font-size: 0.82rem !important;
    font-weight: 600;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.22);
    margin-left: auto;
    margin-right: 0.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    line-height: 1;
    height: auto;
    min-height: 0;
    flex-shrink: 0;
}
.nav-cta-mobile i {
    font-size: 0.78rem;
}
.nav-cta-mobile:hover,
.nav-cta-mobile:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.32);
    color: #ffffff;
}

/* Evita quebra de linha na barra (logo | CTA | hamburger) em telas pequenas.
   Encolhe logo discretamente e garante que o container não quebre. */
@media (max-width: 991px) {
    .navbar > .container {
        flex-wrap: nowrap;
        gap: 0.4rem;
    }
    .navbar-brand {
        flex-shrink: 1;
        min-width: 0;
        margin-right: 0;
    }
    .navbar-brand img {
        height: 42px !important;
        width: auto;
    }
    /* Hero — mais espaço no topo para acomodar a navbar */
    .hero {
        padding-top: 84px;
    }
}
@media (max-width: 400px) {
    .navbar-brand img {
        height: 36px !important;
    }
    .nav-cta-mobile {
        padding: 0.35rem 0.65rem !important;
        font-size: 0.78rem !important;
    }
}

/* ============================================================
   Hero — entrada impactante (staggered fade + blur + scale)
   ============================================================ */
@keyframes heroFadeUpBlur {
    0% {
        opacity: 0;
        transform: translateY(42px) scale(0.97);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes heroFadeUp {
    0%   { opacity: 0; transform: translateY(26px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes heroButtonsIn {
    0%   { opacity: 0; transform: translateY(28px) scale(0.94); }
    70%  { opacity: 1; transform: translateY(-3px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Shine sutil que atravessa o título ~1s após ele aparecer */
@keyframes heroTitleShine {
    0%   { background-position: 220% 0; }
    100% { background-position: -120% 0; }
}

.hero-content h1 {
    /* Gradiente com brilho no meio; idle = posição off-screen (tudo branco) */
    background: linear-gradient(
        115deg,
        #ffffff 0%,
        #ffffff 42%,
        #bcd4ff 50%,
        #ffffff 58%,
        #ffffff 100%
    );
    background-size: 220% 100%;
    background-position: 220% 0;
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Entrada + brilho sequenciais */
    animation:
        heroFadeUpBlur 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both,
        heroTitleShine 2.4s ease-in-out 1.5s 1 forwards;
}

.hero-content .hero-subtitle {
    animation: heroFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

.hero-content .hero-buttons {
    animation: heroButtonsIn 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s both;
}

/* Imagem do hero entra com leve delay */
.hero-image-col {
    animation: heroFadeUp 1.0s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

@media (prefers-reduced-motion: reduce) {
    .hero-content h1,
    .hero-content .hero-subtitle,
    .hero-content .hero-buttons,
    .hero-image-col {
        animation: none;
        background: none;
        -webkit-text-fill-color: currentColor;
        color: #ffffff;
    }
}

