/*
  idapp-inspired palette (UX harmony, not 1:1 logo match)
  -- Surface: cool mist
  -- Primary: deepened sky blue (CTAs, emphasis)
  -- Accent: soft teal (highlights, badges)
  -- Ink: cool navy (headings)
*/

:root {
    --brand-surface: #EEF5FA;
    --brand-primary: #0D8FC4;
    --brand-primary-soft: #C8E8F5;
    --brand-accent: #2BB3A3;
    --brand-accent-soft: #D4F0EB;
    --brand-ink: #1B3554;
    --brand-cyan: #2AA8D8;
    --brand-cyan-light: #7BC8F0;
    --brand-cobalt: #4A8FD9;
    --brand-mint: #3DC9B0;
    --brand-sky: #5BC4E8;
    --brand-periwinkle: #5B8FE8;
    --brand-rose: #E07A8C;
    --brand-footer: #142536;
}

/*primary color*/
.bg-cream {
    background-color: var(--brand-surface);
}

/*font*/
body {
    font-family: 'Poppins', sans-serif;
    color: #3A5169;
}

.bg-yellow-500 {
    background-color: var(--brand-primary);
}
.text-yellow-500 {
    color: var(--brand-primary);
}
.border-yellow-500 {
    border-color: var(--brand-primary);
}
.bg-yellow-300 {
    background-color: var(--brand-accent-soft);
    color: var(--brand-ink);
}

.floating { 
    animation-name: floating; 
    animation-duration: 3s; 
    animation-iteration-count: infinite; 
    animation-timing-function: ease-in-out;
} 
@keyframes floating { 
    0% { transform: translate(0, 0px); } 
    50% { transform: translate(0, 8px); } 
    100% { transform: translate(0, -0px); }  
} 
.floating-4 { 
    animation-name: floating; 
    animation-duration: 4s; 
    animation-iteration-count: infinite; 
    animation-timing-function: ease-in-out;
} 
@keyframes floating-4 { 
    0% { transform: translate(0, 0px); } 
    50% { transform: translate(0, 8px); } 
    100% { transform: translate(0, -0px); }  
}
.text-darken {
    color: var(--brand-ink);
}

/* fluxo 1 → 2 → 3 */
.flow-step {
    position: relative;
}

.flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    pointer-events: none;
}

.flow-arrow__icon {
    width: 1.75rem;
    height: 1.75rem;
}

/* mobile: seta abaixo do card */
@media (max-width: 767px) {
    .flow-arrow {
        position: absolute;
        left: 50%;
        bottom: -2.1rem;
        transform: translateX(-50%) rotate(90deg);
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 999px;
        background: #fff;
        box-shadow: 0 6px 18px rgba(13, 143, 196, 0.18);
        border: 1px solid rgba(13, 143, 196, 0.15);
        z-index: 2;
    }
}

/* desktop: seta à direita do card */
@media (min-width: 768px) {
    .flow-steps {
        align-items: stretch;
    }

    .flow-arrow {
        position: absolute;
        top: 50%;
        right: -1.35rem;
        transform: translateY(-50%);
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 999px;
        background: #fff;
        box-shadow: 0 6px 18px rgba(13, 143, 196, 0.18);
        border: 1px solid rgba(13, 143, 196, 0.15);
        z-index: 2;
    }
}

/* video modal */
body.video-modal-open {
    overflow: hidden;
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.video-modal[hidden] {
    display: none !important;
}

.video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 37, 54, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.video-modal__dialog {
    position: relative;
    z-index: 1;
    animation: videoModalIn 0.28s ease-out;
}

@keyframes videoModalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.video-modal__close {
    position: absolute;
    top: -0.75rem;
    right: -0.75rem;
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 999px;
    background: #fff;
    color: var(--brand-ink);
    box-shadow: 0 8px 24px rgba(20, 37, 54, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.video-modal__close:hover {
    transform: scale(1.06);
    background: var(--brand-surface);
}

.video-modal__close svg {
    width: 1.1rem;
    height: 1.1rem;
}

.video-modal__player {
    width: min(92vw, 960px);
    aspect-ratio: 16 / 9;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #0b1724;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 24px 60px rgba(0, 0, 0, 0.35);
}

.video-modal--reels .video-modal__player {
    width: auto;
    height: min(82vh, 720px);
    aspect-ratio: 9 / 16;
    max-width: min(88vw, 380px);
    border-radius: 1.5rem;
}

.video-modal__player video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

@media (max-width: 767px) {
    .video-modal__close {
        top: -0.5rem;
        right: -0.25rem;
    }
}

.banner-parallax-wrap {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    /* espaço para os círculos (pulse/ping) não serem cortados */
    padding: 3rem 1.25rem 3rem;
}

.banner-parallax-inner {
    position: relative;
    overflow: visible;
}

.banner-parallax {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 30px;
}

.banner-parallax__img {
    position: absolute;
    left: 0;
    top: -25%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
    pointer-events: none;
    border-radius: 30px;
}

/* impact stats strip */
.stats-strip {
    position: relative;
    padding: 2rem 0.5rem;
    border-radius: 1.25rem;
    background:
        linear-gradient(180deg, rgba(238, 245, 250, 0.95) 0%, rgba(255, 255, 255, 0.7) 100%);
    border: 1px solid rgba(13, 143, 196, 0.08);
}

.stat-item .stat-value {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.03em;
    transition: transform 0.3s ease;
}

.stat-item::after {
    content: "";
    display: block;
    width: 2.25rem;
    height: 3px;
    margin: 0.85rem auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
    opacity: 0.55;
}

.stat-item:hover .stat-value {
    transform: translateY(-2px);
}

@media (min-width: 1024px) {
    .stat-item:not(:last-child)::before {
        content: "";
        position: absolute;
        top: 12%;
        right: 0;
        width: 1px;
        height: 76%;
        background: linear-gradient(
            180deg,
            transparent 0%,
            rgba(13, 143, 196, 0.18) 20%,
            rgba(43, 179, 163, 0.18) 80%,
            transparent 100%
        );
    }
}
