/* style.css */

/* 1. Fontes */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Michroma&display=swap');

:root {
    --futura-primary: #D300C5;
    --futura-secondary: #240090;
    --futura-accent: #00E5FF;
    --futura-dark-bg: #050515;
    --hero-header-offset: 104px;
    --hero-bottom-space: 80px;

    /* Motion system (premium + consistente) */
    --motion-120: 120ms;
    --motion-240: 240ms;
    --motion-480: 480ms;
    --motion-720: 720ms;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    color-scheme: light dark;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus ring (acessível + premium) */
:where(a, button, input, textarea, select):focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.25);
}

/* 2. Loader */
#loader {
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}
.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
@keyframes loader-bar-grow {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}
.animate-loader-bar {
    animation: loader-bar-grow 1.5s ease-out forwards;
    background: linear-gradient(90deg, var(--futura-secondary), var(--futura-primary));
}

/* 3. Efeitos Especiais */

/* Fade In */
.fade-in-section {
    opacity: 1;
    transform: none;
}

/* Só anima quando JS está ativo (evita conteúdo escondido sem JS) */
html.js .fade-in-section {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity var(--motion-480) var(--ease-out),
        transform var(--motion-480) var(--ease-out);
    will-change: transform, opacity;
}

html.js .fade-in-section[data-reveal="scale"] {
    transform: translateY(14px) scale(0.985);
}

/* Variante: entra da esquerda */
html.js .fade-in-section[data-reveal="from-left"] {
    transform: translateX(-28px);
}

html.js .fade-in-section[data-reveal="from-right"] {
    transform: translateX(28px);
}

/* Delay controlado por JS (stagger) */
html.js .fade-in-section {
    transition-delay: var(--reveal-delay, 0ms);
}

/* Quando o JS marca como visível, precisa vencer a especificidade de `html.js .fade-in-section` */
html.js .fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

html.js .fade-in-section.is-visible[data-reveal="scale"] {
    transform: translateY(0) scale(1);
}

html.js .fade-in-section.is-visible[data-reveal="from-left"] {
    transform: translateX(0);
}

html.js .fade-in-section.is-visible[data-reveal="from-right"] {
    transform: translateX(0);
}

/* Header scroll behavior (classes aplicadas via JS) */
header.is-hidden {
    transform: translateY(-120%);
}

html:not(.dark) header.is-scrolled .container > div {
    background-color: rgba(255, 255, 255, 0.78);
    border-color: rgba(0, 0, 0, 0.08);
}

html.dark header.is-scrolled .container > div {
    background-color: rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.10);
}

/* Premium card hover (leve e performático) */
.premium-card {
    transition: transform var(--motion-240) var(--ease-out), border-color var(--motion-240) var(--ease-out);
    transform: translateZ(0);
}

.premium-card:hover {
    transform: translateY(-2px);
}

.premium-card:active {
    transform: translateY(-1px);
}

/* Sessão Planos (redes-sociais) */
.plans-section .plans-grid {
    perspective: 1000px;
    align-items: stretch;
}

.plans-section .plan-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 1.1rem;
    transition:
        transform var(--motion-240) var(--ease-out),
        border-color var(--motion-240) var(--ease-out),
        box-shadow var(--motion-240) var(--ease-out);
}

.plans-section .plan-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--futura-secondary), var(--futura-primary), var(--futura-accent));
    opacity: 0;
    transition: opacity var(--motion-240) var(--ease-out);
    pointer-events: none;
}

.plans-section .plan-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(211, 0, 197, 0.06) 0%, transparent 45%),
        radial-gradient(120% 120% at 100% 100%, rgba(0, 229, 255, 0.05) 0%, transparent 42%);
    opacity: 0.9;
}

.plans-section .plan-card:hover,
.plans-section .plan-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -38px rgba(0, 0, 0, 0.65);
}

.plans-section .plan-card:hover::before,
.plans-section .plan-card:focus-within::before,
.plans-section .plan-card-featured::before {
    opacity: 1;
}

.plans-section .plan-card-featured {
    box-shadow: 0 10px 35px -25px var(--futura-primary);
}

.plans-section .plan-card-featured > span {
    top: 0.85rem;
    right: 0.85rem;
    letter-spacing: 0.14em;
}

.plans-section .plan-price {
    line-height: 1;
    letter-spacing: -0.02em;
    font-size: clamp(1.8rem, 2.35vw, 2.15rem);
    margin-top: 1rem;
    margin-bottom: 0.1rem;
}

.plans-section .plan-price span {
    margin-left: 0.2rem;
}

.plans-section .plan-features {
    margin-bottom: 0.85rem;
    margin-top: 0.55rem;
    display: grid;
    row-gap: 0.5rem;
}

.plans-section .plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    line-height: 1.4;
}

.plans-section .plan-features li i {
    width: 1.05rem;
    text-align: center;
    margin-top: 0.18rem;
    flex-shrink: 0;
    color: var(--futura-accent) !important;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.22);
}

.plans-section .plan-features li span {
    color: rgba(75, 85, 99, 0.96);
}

html.dark .plans-section .plan-features li span {
    color: rgba(229, 231, 235, 0.9);
}

.plans-section .plan-target {
    margin-top: auto;
    min-height: 5.5rem;
    padding-top: 1rem;
}

.plans-section .plan-target p:last-child {
    line-height: 1.6;
}

.plans-section .plan-cta {
    margin-top: 0.8rem;
}

.plans-section .plan-cta .btn-sheen {
    min-height: 2.45rem;
}

@media (min-width: 1024px) {
    .plans-section .plan-features {
        min-height: 18.9rem;
    }
}

@media (max-width: 767px) {
    .plans-section .plan-card-featured {
        transform: none !important;
    }

    .plans-section .plan-target {
        min-height: auto;
    }
}

/* SHIMMER EFFECT (Feixe de Luz nos Ícones) */
@keyframes shimmer-move {
    0% { transform: translateX(-220%) skewX(-20deg); }
    35% { transform: translateX(220%) skewX(-20deg); }
    100% { transform: translateX(220%) skewX(-20deg); }
}

.shimmer-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.75), transparent);
    transform: translateX(-220%) skewX(-20deg);
    filter: blur(6px);
    z-index: 30;
    /* Loop a cada 4 segundos */
    animation: shimmer-move 4s infinite ease-in-out; 
    pointer-events: none;
}
    .js #sites-track-source {
        display: none;
    }

/* Icon Wrapper para conter o brilho */
.icon-shine-wrapper {
    position: relative;
    overflow: hidden; /* Importante para cortar o brilho */
}

/* 4. Marquee Infinito */
.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    display: flex;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Marquee específico para cards: evita cortar o hover "lift" */
.marquee-wrapper.marquee-cards {
    padding-block: 10px;
}

/* FAQ (accordion) */
.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

.marquee-content-horizontal {
    display: flex;
    gap: 0;
    width: max-content;
    animation: marquee-scroll var(--marquee-duration, 40s) linear infinite;
}

.marquee-content-horizontal.marquee-reverse {
    animation-direction: reverse;
}

.marquee-wrapper:hover .marquee-content-horizontal,
.marquee-wrapper:focus-within .marquee-content-horizontal {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 5. Botões Sheen */
@keyframes sheen-btn {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.btn-sheen {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--futura-secondary), var(--futura-primary)) !important;
    transition: all 0.3s ease;
}

.btn-sheen:hover {
     filter: brightness(1.1);
}

.btn-sheen::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-25deg);
    animation: sheen-btn 4s infinite;
    pointer-events: none;
}

/* 6. Scrollbar */
::-webkit-scrollbar { width: 6px; }

html:not(.dark) ::-webkit-scrollbar-track { background: #E5E7EB; }
html:not(.dark) ::-webkit-scrollbar-thumb { background: #A3A3A3; border-radius: 3px; }
html:not(.dark) ::-webkit-scrollbar-thumb:hover { background: #737373; }

html.dark ::-webkit-scrollbar-track { background: var(--futura-dark-bg); }
html.dark ::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
html.dark ::-webkit-scrollbar-thumb:hover { background: var(--futura-primary); }

/* Utilitários */
.text-gradient-futura {
    background: linear-gradient(90deg, var(--futura-primary), var(--futura-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html.dark :is(i, svg, span).text-futura-secondary {
    color: #6B57FF !important;
}

.bg-pattern-dots {
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
}

.hero-section {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: var(--hero-header-offset);
    padding-bottom: var(--hero-bottom-space);
}

.hero-content-wrap {
    min-height: calc(100vh - var(--hero-header-offset) - var(--hero-bottom-space));
    min-height: calc(100svh - var(--hero-header-offset) - var(--hero-bottom-space));
    display: flex;
    align-items: center;
}

@media (min-width: 1024px) {
    .social-hero {
        padding-top: var(--hero-header-offset);
    }

    .social-hero-content {
        min-height: calc(100vh - var(--hero-header-offset));
        min-height: calc(100svh - var(--hero-header-offset));
        display: flex;
        align-items: center;
    }
}

/* Astronaut float (sessão #quem-somos) */
@keyframes astronaut-float {
    0% {
        transform: translate3d(0, 0, 0) rotate(-0.4deg);
    }
    50% {
        transform: translate3d(0, -12px, 0) rotate(0.4deg);
    }
    100% {
        transform: translate3d(0, 0, 0) rotate(-0.4deg);
    }
}

.astronaut-float {
    animation: astronaut-float 4.8s var(--ease-in-out) infinite;
    will-change: transform;
    transform: translateZ(0);
}

@keyframes social-float {
    0% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -8px, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

.social-float {
    animation: social-float 5.8s var(--ease-in-out) infinite;
    will-change: transform;
    transform: translateZ(0);
}

/* Sessão sem contrato (redes-sociais) */
.no-contract-section .no-contract-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transition:
        transform var(--motion-240) var(--ease-out),
        border-color var(--motion-240) var(--ease-out),
        box-shadow var(--motion-240) var(--ease-out);
}

.no-contract-section .no-contract-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(0, 229, 255, 0.09) 0%, transparent 45%),
        radial-gradient(120% 120% at 100% 100%, rgba(211, 0, 197, 0.09) 0%, transparent 45%);
    opacity: 0.9;
}

.no-contract-section .no-contract-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--futura-accent), var(--futura-primary), var(--futura-secondary));
    opacity: 0.8;
    pointer-events: none;
}

.no-contract-section .no-contract-card:hover,
.no-contract-section .no-contract-card:focus-within {
    transform: translateY(-3px);
    border-color: rgba(211, 0, 197, 0.35);
    box-shadow: 0 16px 40px -30px rgba(211, 0, 197, 0.45);
}

html.dark .no-contract-section .no-contract-card:hover,
html.dark .no-contract-section .no-contract-card:focus-within {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Footer premium (home + redes-sociais) */
.site-footer .footer-grid {
    padding-block: 0.35rem 1.35rem;
    border-bottom: 1px solid rgba(229, 231, 235, 0.95);
}

html.dark .site-footer .footer-grid {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.site-footer .footer-col {
    position: relative;
}

@media (min-width: 1024px) {
    .site-footer .footer-col:not(.footer-newsletter)::before {
        content: "";
        position: absolute;
        left: -1.45rem;
        top: 0.2rem;
        bottom: 0.2rem;
        width: 1px;
        background: rgba(229, 231, 235, 0.8);
    }

    html.dark .site-footer .footer-col:not(.footer-newsletter)::before {
        background: rgba(255, 255, 255, 0.08);
    }
}

.site-footer .footer-heading {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.65rem;
}

.site-footer .footer-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 2.2rem;
    height: 1px;
    background: linear-gradient(90deg, var(--futura-primary), transparent);
}

.site-footer .footer-links {
    display: grid;
    gap: 0.7rem;
}

.site-footer .footer-link,
.site-footer .footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: color var(--motion-240) var(--ease-out), transform var(--motion-240) var(--ease-out);
}

.site-footer .footer-link:hover,
.site-footer .footer-contact-link:hover {
    transform: translateX(2px);
}

.site-footer .footer-contact-link i {
    width: 1rem;
    text-align: center;
    color: var(--futura-primary);
}

.site-footer .footer-newsletter {
    padding-left: 1.1rem;
    border-left: 2px solid rgba(211, 0, 197, 0.2);
}

.site-footer .footer-input {
    min-height: 2.95rem;
    background: rgba(255, 255, 255, 0.6);
}

html.dark .site-footer .footer-input {
    background: rgba(255, 255, 255, 0.03);
}

.site-footer .footer-news-btn {
    min-height: 2.5rem;
    letter-spacing: 0.08em;
}

.site-footer .footer-note {
    line-height: 1.55;
}

.site-footer .footer-bottom {
    align-items: center;
    padding-top: 0.7rem;
}

.site-footer .footer-bottom h2 {
    margin-top: 0;
}

@media (max-width: 1023px) {
    .site-footer .footer-grid {
        row-gap: 2.2rem;
    }

    .site-footer .footer-newsletter {
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 639px) {
    .site-footer .footer-heading {
        margin-bottom: 0.9rem;
    }

    .site-footer .footer-brand {
        padding-bottom: 0.5rem;
    }
}

/* Reduced motion (acessível, sem “motion sickness”) */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    html.js .fade-in-section {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .marquee-content-horizontal,
    .shimmer-effect,
    .btn-sheen::after,
    .animate-loader-bar,
    .astronaut-float,
    .social-float {
        animation: none !important;
    }

    header {
        transition: none !important;
    }
}