/* ================================================================
   DataPulseX — Adapta-Inspired Elegance Layer v1.0
   Premium visual enhancements: grain, glows, glass, gradients
   ================================================================ */

/* ── 0. CURSOR VARIABLES ── */
:root {
    --cursor-color: var(--cyan);
    --cursor-size: 8px;
    --follower-size: 36px;
}

.ecom-theme { --cursor-color: var(--amber); }
.imob-theme { --cursor-color: var(--green); }

/* Hide default cursor on desktop (exceto campos de formulário e menu mobile) */
@media (pointer: fine) {
    body, a, button, .btn-hero-primary, .btn-hero-ghost, .mq-item, .feat-card, .price-card, .segment-card {
        cursor: none !important;
    }
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    input[type="search"],
    textarea,
    .lp-lead-field textarea,
    .contact-wrapper textarea.form-input,
    .contact-wrapper input.form-input:not([type="checkbox"]):not([type="radio"]) {
        cursor: text !important;
    }
    select,
    .contact-wrapper select.form-input {
        cursor: pointer !important;
    }
    .hamburger,
    .mob-close,
    label.lp-lead-consent,
    .lp-lead-consent input[type="checkbox"] {
        cursor: pointer !important;
    }
}

/* ── 1. GRAIN TEXTURE OVERLAY ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9997;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px 180px;
    mix-blend-mode: overlay;
}

/* ── 2. ANNOUNCEMENT BAR ── */
.announcement-bar {
    width: 100%;
    background: linear-gradient(90deg, #8B5CF6 0%, #00D4FF 50%, #8B5CF6 100%);
    background-size: 200% 100%;
    animation: announcementShimmer 4s ease-in-out infinite;
    padding: 10px 20px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9001;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.announcement-bar .announce-sparkle {
    font-size: 14px;
    animation: sparkleRotate 2s ease-in-out infinite;
}

@keyframes announcementShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes sparkleRotate {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(15deg); }
}

/* Push navbar down when announcement bar is present */
.has-announcement .navbar {
    top: 38px;
}

.has-announcement .hero {
    padding-top: 198px;
}

.has-announcement .ecom-theme .hero,
.has-announcement .imob-theme .hero {
    padding-top: 218px;
}

/* ── 3. ENHANCED SECTION GLOW ORBS ── */
.section-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
    z-index: 0;
    animation: orbPulse 8s ease-in-out infinite;
}

.section-glow.glow-tl {
    width: 600px; height: 600px;
    top: -200px; left: -200px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
}

.section-glow.glow-tr {
    width: 500px; height: 500px;
    top: -100px; right: -150px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation-delay: -3s;
}

.section-glow.glow-br {
    width: 700px; height: 700px;
    bottom: -250px; right: -200px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
    animation-delay: -5s;
}

.section-glow.glow-center {
    width: 800px; height: 800px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 60%);
    animation-delay: -2s;
}

@keyframes orbPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.section-glow.glow-center {
    animation-name: orbPulseCenter;
}

@keyframes orbPulseCenter {
    0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

/* ── 4. GRADIENT SECTION DIVIDERS ── */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 212, 255, 0.3) 30%, rgba(139, 92, 246, 0.3) 70%, transparent 100%);
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 8px;
    background: radial-gradient(ellipse, rgba(0, 212, 255, 0.25) 0%, transparent 70%);
    filter: blur(4px);
}

/* E-com theme divider */
.ecom-theme .section-divider {
    background: linear-gradient(90deg, transparent 0%, rgba(245, 158, 11, 0.3) 30%, rgba(245, 158, 11, 0.15) 70%, transparent 100%);
}

.ecom-theme .section-divider::before {
    background: radial-gradient(ellipse, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
}

/* Imob theme divider */
.imob-theme .section-divider {
    background: linear-gradient(90deg, transparent 0%, rgba(16, 185, 129, 0.3) 30%, rgba(16, 185, 129, 0.15) 70%, transparent 100%);
}

.imob-theme .section-divider::before {
    background: radial-gradient(ellipse, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
}

/* ── 5. SOCIAL PROOF / TRUST STRIP ── */
.trust-strip {
    padding: 48px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.trust-strip-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gray-3);
    margin-bottom: 28px;
}

.trust-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.trust-logo-item {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-3);
    opacity: 0.45;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.trust-logo-item:hover {
    opacity: 0.8;
}

.trust-logo-item i {
    font-size: 22px;
}

/* Counter version */
.trust-counter-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 0 4px;
}

.trust-counter-strip span {
    font-size: 13px;
    color: var(--gray-3);
    font-weight: 500;
}

.trust-counter-strip strong {
    color: var(--cyan);
    font-weight: 800;
}

/* ── 6. TESTIMONIAL SECTION ── */
.testimonial-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: var(--dark-2);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.testimonial-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 32px;
    position: relative;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    border-color: var(--border-light);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.testimonial-card:hover::before {
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.testimonial-card.featured {
    border-color: rgba(0, 212, 255, 0.2);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.04) 0%, rgba(20, 20, 20, 0.6) 100%);
}

.testimonial-card.featured::before {
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    opacity: 0.8;
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    font-size: 14px;
    color: #F59E0B;
}

.testimonial-quote {
    font-size: 15px;
    color: var(--gray-1);
    line-height: 1.75;
    flex: 1;
    font-style: italic;
}

.testimonial-quote::before {
    content: '"';
    font-size: 32px;
    color: var(--cyan);
    opacity: 0.4;
    line-height: 0;
    vertical-align: -0.4em;
    margin-right: 4px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.testimonial-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.testimonial-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonial-info strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
}

.testimonial-info span {
    font-size: 12px;
    color: var(--gray-3);
}

/* ── 7. ENHANCED FEAT CARDS (Glass Edge Glow) ── */
.feat-card {
    position: relative;
}

.feat-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, transparent 40%, transparent 60%, rgba(139, 92, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    pointer-events: none;
}

.feat-card:hover::before {
    opacity: 1;
}

.ecom-theme .feat-card::before {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, transparent 40%, transparent 60%, rgba(245, 158, 11, 0.08) 100%);
}

.imob-theme .feat-card::before {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, transparent 40%, transparent 60%, rgba(16, 185, 129, 0.08) 100%);
}

/* ── 8. ENHANCED PRICING CARDS ── */
.price-card {
    position: relative;
    overflow: visible;
}

.price-card .pc-shine {
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transition: none;
    pointer-events: none;
}

.price-card:hover .pc-shine {
    left: 100%;
    transition: left 0.8s ease;
}

/* ── 9. ENHANCED BUTTONS ── */
.btn-hero-primary {
    position: relative;
}

.btn-hero-primary::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: inherit;
    filter: blur(16px);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn-hero-primary:hover::after {
    opacity: 0.5;
}

/* ── 10. FLOATING DECORATIVE ELEMENTS ── */
.deco-dots {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.deco-dots.dots-left {
    top: 20%; left: 3%;
    display: grid;
    grid-template-columns: repeat(3, 6px);
    gap: 10px;
}

.deco-dots.dots-right {
    bottom: 25%; right: 3%;
    display: grid;
    grid-template-columns: repeat(4, 5px);
    gap: 8px;
}

.deco-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

/* ── 11. HERO BADGE GLOW (Adapta-style) ── */
.hero-badge {
    position: relative;
}

.hero-badge::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(139, 92, 246, 0.15));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hero-badge:hover::before {
    opacity: 1;
}

/* ── 12. SECTION TAG ENHANCED ── */
.sec-tag {
    position: relative;
    overflow: hidden;
}

.sec-tag::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: tagShine 3s ease-in-out infinite;
}

@keyframes tagShine {
    0% { left: -100%; }
    50%, 100% { left: 200%; }
}

/* ── 13. STAT NUMBERS COUNTER GLOW ── */
.stat-num {
    position: relative;
}

.stat-num::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 4px;
    background: var(--cyan);
    border-radius: 4px;
    filter: blur(6px);
    opacity: 0.5;
}

/* ── 14. SCROLL-PROGRESS INDICATOR ── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    z-index: 9999;
    transform-origin: left;
    transform: scaleX(0);
    width: 100%;
    transition: none;
}

.has-announcement .scroll-progress {
    top: 38px;
}

/* ── 15. FOOTER UPGRADE ── */
.main-footer {
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 300px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-border), transparent);
}

/* ── 16. HERO CONTENT ENHANCED LAYOUT ── */
.hero-content {
    position: relative;
}

/* ── 17. ANIMATED GRADIENT BORDER on segment cards ── */
.segment-card {
    position: relative;
    overflow: hidden;
}

.segment-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--purple), var(--cyan));
    background-size: 200% 100%;
    animation: segCardBorder 3s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.segment-card:hover::before {
    opacity: 1;
}

@keyframes segCardBorder {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ── 18. SMOOTH NAVBAR TRANSITION ── */
.navbar {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── 19. CTA SECTION GLOW BG ── */
.cta-glow-bg {
    position: relative;
    overflow: hidden;
}

.cta-glow-bg::before {
    content: '';
    position: absolute;
    width: 800px; height: 800px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

/* ── 21. CUSTOM MAGNETIC CURSOR ── */
.custom-cursor-dot {
    width: var(--cursor-size);
    height: var(--cursor-size);
    background-color: var(--cursor-color);
    position: fixed;
    top: 0; left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

.custom-cursor-follower {
    width: var(--follower-size);
    height: var(--follower-size);
    border: 1px solid rgba(0, 212, 255, 0.3);
    position: fixed;
    top: 0; left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                height 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s ease, 
                background-color 0.4s ease;
}

/* Theme overrides for follower */
.ecom-theme .custom-cursor-follower { border-color: rgba(245, 158, 11, 0.3); }
.imob-theme .custom-cursor-follower { border-color: rgba(16, 185, 129, 0.3); }

/* Hover States */
body.cursor-hover .custom-cursor-dot {
    width: 4px; height: 4px;
    background-color: #fff;
}

body.cursor-hover .custom-cursor-follower {
    width: 54px;
    height: 54px;
    border-color: var(--cursor-color);
    background-color: rgba(255, 255, 255, 0.05);
}

body.cursor-active .custom-cursor-follower {
    transform: translate(-50%, -50%) scale(0.85);
    background-color: rgba(255, 255, 255, 0.1);
}

/* ── 20. RESPONSIVE ── */
@media (max-width: 1024px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 48px auto 0;
    }

    .trust-logos {
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .announcement-bar {
        font-size: 10px;
        padding: 8px 16px;
        letter-spacing: 1px;
    }

    .has-announcement .hero {
        padding-top: 178px;
    }

    .has-announcement .ecom-theme .hero,
    .has-announcement .imob-theme .hero {
        padding-top: 198px;
    }

    .trust-logos {
        gap: 20px;
    }

    .trust-logo-item {
        font-size: 11px;
    }

    .testimonial-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .trust-logos {
        gap: 14px;
        padding: 0 16px;
    }

    .trust-logo-item {
        font-size: 10px;
        letter-spacing: 0.5px;
    }
}
