/* Motion cinematográfico leve — só na vitrine pública */

.cinematic-page {
    overflow-x: clip;
}

.cinematic-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, #F2EBDF, #fff);
    z-index: 2000;
    pointer-events: none;
}

@supports (animation-timeline: scroll()) {
    .cinematic-progress {
        animation: cinematic-progress linear;
        animation-timeline: scroll(root);
    }
}

@keyframes cinematic-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.cinematic-hero {
    position: relative;
    isolation: isolate;
    min-height: min(92vh, 820px);
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 80px;
    padding: 4.5rem 0 5rem;
}

.hero-atmosphere {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(1200px 600px at 15% 20%, rgba(242, 235, 223, 0.22), transparent 55%),
        radial-gradient(900px 500px at 90% 80%, rgba(0, 0, 0, 0.28), transparent 50%),
        linear-gradient(135deg, var(--cor-primaria) 0%, var(--cor-secundaria) 100%);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.45;
    will-change: transform;
}

.hero-orb-1 {
    width: 340px;
    height: 340px;
    top: -80px;
    left: -40px;
    background: #F2EBDF;
    animation: cinematic-float 14s ease-in-out infinite;
}

.hero-orb-2 {
    width: 420px;
    height: 420px;
    right: -120px;
    bottom: -80px;
    background: #F07335;
    animation: cinematic-float 18s ease-in-out infinite reverse;
}

.hero-orb-3 {
    width: 220px;
    height: 220px;
    left: 42%;
    top: 30%;
    background: #fff;
    opacity: 0.18;
    animation: cinematic-float 11s ease-in-out infinite;
}

.hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

@supports (animation-timeline: scroll()) {
    .hero-atmosphere {
        animation: cinematic-hero-shift linear both;
        animation-timeline: scroll();
        animation-range: 0% 70%;
    }
}

@keyframes cinematic-hero-shift {
    to {
        transform: translateY(-12%) scale(1.08);
        filter: saturate(1.15);
    }
}

@keyframes cinematic-float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(24px, -30px, 0); }
}

.cinematic-hero .container {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    opacity: 0.88;
}

.hero-kicker::before {
    content: '';
    width: 28px;
    height: 1px;
    background: currentColor;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.15em;
    font-size: clamp(2.2rem, 6vw, 4.4rem);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1.25rem;
}

.hero-title .line {
    display: block;
}

.hero-title .line-mask {
    background: linear-gradient(90deg, #fff 0%, #F2EBDF 45%, #fff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: cinematic-shimmer 7s linear infinite;
}

@keyframes cinematic-shimmer {
    from { background-position: 0% 50%; }
    to { background-position: 200% 50%; }
}

.cinematic-hero .hero-content p {
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
}

.scroll-hint {
    margin-top: 3rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.8;
}

.scroll-hint span {
    width: 18px;
    height: 28px;
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 12px;
    position: relative;
}

.scroll-hint span::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 6px;
    width: 3px;
    height: 7px;
    border-radius: 2px;
    background: #fff;
    transform: translateX(-50%);
    animation: cinematic-wheel 1.6s ease-in-out infinite;
}

@keyframes cinematic-wheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

.cinematic-hero .reveal {
    animation: cinematic-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cinematic-hero .reveal-delay-1 { animation-delay: 0.1s; }
.cinematic-hero .reveal-delay-2 { animation-delay: 0.2s; }
.cinematic-hero .reveal-delay-3 { animation-delay: 0.3s; }

.reveal {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
    opacity: 1;
    transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@supports (animation-timeline: view()) {
    .cinematic-card,
    .cinematic-stat,
    .cinematic-feature {
        animation: cinematic-rise linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 32%;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@keyframes cinematic-rise {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0) scale(0.98);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

.cinematic-stat,
.cinematic-card,
.cinematic-feature {
    content-visibility: auto;
    contain-intrinsic-size: 280px;
}

.cinematic-stat .stat-icon,
.cinematic-feature .feature-icon {
    box-shadow: 0 12px 30px rgba(240, 115, 53, 0.28);
}

.section-header h2 {
    letter-spacing: -0.03em;
}

@media (prefers-reduced-motion: reduce) {
    .cinematic-progress,
    .hero-atmosphere,
    .hero-orb,
    .hero-title .line-mask,
    .scroll-hint span::after,
    .cinematic-card,
    .cinematic-stat,
    .cinematic-feature,
    .reveal {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }

    .scroll-hint {
        display: none;
    }
}

@media (max-width: 768px) {
    .cinematic-hero {
        min-height: auto;
        padding: 3.2rem 0 3.5rem;
    }

    .hero-orb-2,
    .hero-orb-3 {
        display: none;
    }
}
