/* Custom Styles for HUB DE NOTÍCIAS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Properties */
/* Cleaned styles: Tailwind-first approach
   - Most layout, spacing and color utilities moved to Tailwind classes in HTML
   - Keep only variables, small fallbacks and animations that Tailwind can't express
   - If you want to further reduce file size, progressively move remaining selectors into inline Tailwind utilities
*/

/* Reset: minimal and safe (Tailwind provides most base styles already) */
* { box-sizing: border-box; }

:root{
  --primary-gradient: linear-gradient(135deg,#000,#333);
  --muted: rgba(0,0,0,0.06);
}

/* Pattern background used in hero (kept as data-uri to avoid extra requests) */
.geometric-pattern-background{
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity:.03;
}

/* Floating orbs used for subtle motion in hero */
.floating-orb{ animation: floatingOrb 20s infinite ease-in-out; opacity:.45; mix-blend-mode:multiply; }
.floating-orb:nth-child(2){ animation-duration:25s; animation-delay:-10s; }
@keyframes floatingOrb{
  0%{ transform: translate3d(0,0,0) scale(1); }
  50%{ transform: translate3d(30px,-20px,0) scale(1.05); }
  100%{ transform: translate3d(0,0,0) scale(1); }
}

/* Gradient text helper (used where text gradient is desired) */
.gradient-text{ background: var(--primary-gradient); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.animated-gradient{ background-size:200% 200%; animation: gradient-shift 4s linear infinite; }
@keyframes gradient-shift{ 0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%} }

/* Stat number animation: subtle movement for numbers that are updated with JS */
.stat-number{ background-clip:text; -webkit-background-clip:text; -webkit-text-fill-color:transparent; animation: statPulse 3s ease-in-out infinite; }
@keyframes statPulse{ 0%{opacity:0.9; transform:translateY(0)}50%{opacity:1; transform:translateY(-4px)}100%{opacity:0.9; transform:translateY(0)} }

/* Estilos Premium para o Card de Preço */
.perspective-1000 {
    perspective: 1000px;
}

.transform-style-3d {
    transform-style: preserve-3d;
}

.rotate-y-3 {
    transform: rotateY(3deg);
}

.premium-plan-card {
    box-shadow: 
        0 20px 40px -15px rgba(0,0,0,0.05),
        0 10px 20px -5px rgba(0,0,0,0.025);
    isolation: isolate;
}

/* Efeito de Brilho Animado */
@keyframes shine {
    from {
        transform: translateX(-100%) skewX(45deg);
    }
    to {
        transform: translateX(200%) skewX(45deg);
    }
}

.animate-shine {
    animation: shine 2s infinite;
}

/* Efeito de Pulso Suave */
@keyframes soft-pulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

.animate-soft-pulse {
    animation: soft-pulse 3s infinite;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 25px 50px -12px rgba(0,0,0,0.05),
        0 12px 24px -8px rgba(0,0,0,0.03);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.benefit-item:hover {
    background: rgba(0,0,0,0.02);
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    font-size: 1.2rem;
}

/* Minimal scroll indicator */
.scroll-indicator{ position:fixed; left:50%; transform:translateX(-50%); bottom:18px; width:28px; height:48px; display:flex; align-items:flex-start; justify-content:center; }
.scroll-dot{ width:6px; height:6px; background:#111; border-radius:999px; animation:scroll 1.8s infinite; }
@keyframes scroll{ 0%{ transform:translateY(0); opacity:1 }50%{ transform:translateY(12px); opacity:.5 }100%{ transform:translateY(0); opacity:1 } }

/* FAQ accordion: minimal JS-driven styles */
.faq-item{ border-radius:.5rem; overflow:hidden; }
.faq-toggle-button{ width:100%; display:flex; align-items:center; justify-content:space-between; padding:1rem; cursor:pointer; background:transparent; }
.faq-content{ max-height:0; overflow:hidden; transition:max-height .32s ease, padding .24s ease; }
.faq-item.active .faq-content{ padding:1rem; max-height:420px; }

/* Hub logo container fallback (SVG animations stay inside SVG) */
.hub-logo-container{ display:block; margin:0 auto; }

/* Small utilities that are hard to express purely with Tailwind (kept intentionally small) */
.logo-spin{ animation:subtle-rotate 20s linear infinite; }
@keyframes subtle-rotate{ from{transform:rotate(0)} to{transform:rotate(360deg)} }

/* Accessibility: keep focus outlines for keyboard users */
:focus{ outline: 3px solid rgba(0,0,0,0.06); outline-offset: 2px; }

/* End of cleaned stylesheet — prefer Tailwind utilities for layout, spacing, colors and most interactions */

/* Check Items Animation */
.check-item {
    opacity: 0;
    transform: translateX(-20px);
    animation: slide-in-right 0.5s ease forwards;
}

.check-item:nth-child(1) { animation-delay: 0.1s; }
.check-item:nth-child(2) { animation-delay: 0.2s; }
.check-item:nth-child(3) { animation-delay: 0.3s; }

@keyframes slide-in-right {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Trust Items */
.trust-item {
    padding: 30px;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.scale-hover {
    transition: all 0.3s ease;
}

.scale-hover:hover {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.05);
}

.trust-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: #4ade80;
}

.rotate-icon {
    display: inline-block;
    animation: rotate-bounce 2s ease-in-out infinite;
}

@keyframes rotate-bounce {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(15deg) scale(1.1); }
}

/* Pricing Toggle Switch */
.pricing-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.pricing-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 30px;
    transition: .4s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.pricing-toggle input:checked + .toggle-slider {
    background-color: #000;
}

.pricing-toggle input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

.pricing-toggle:hover .toggle-slider {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Price animation */
.monthly-price, .annual-price, .monthly-total, .annual-total {
    transition: opacity 0.3s ease;
}

/* Testimonials Carousel */
.testimonials-carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 60px;
}

.testimonials-carousel {
    position: relative;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease;
    padding: 0 10px;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-slide.prev {
    transform: translateX(-100%);
}

.testimonial-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #000;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: #333;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #000;
    transform: scale(1.2);
}

.indicator:hover {
    background: #666;
}

.stars {
    color: #FFD700;
    font-size: 18px;
    margin-bottom: 15px;
    animation: star-shine 2s ease-in-out infinite;
}

@keyframes star-shine {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.testimonial-text {
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.pulse-avatar {
    animation: pulse 2s ease-in-out infinite;
}

/* Rating Section */
.rating-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.rating-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.rating-number {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

.rating-stars {
    margin-top: 10px;
}

.star {
    font-size: 24px;
    color: #ddd;
    transition: all 0.3s ease;
    display: inline-block;
}

.star.filled {
    color: #FFD700;
    animation: star-pop 0.5s ease;
}

@keyframes star-pop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Fade In Up Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fade-in-up 0.8s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .demo-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .phone-mockup {
        max-width: 340px;
    }

    .scroll-indicator {
        position: fixed;
    }
    
    .card-inner {
        padding: 30px 25px;
    }
    
    .cta-button {
        padding: 14px 30px;
        font-size: 16px;
    }
    
    .testimonials-carousel-container {
        padding: 0 20px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .hero-title {
        font-size: 1.7rem !important;
        padding-top: 1.5rem !important;
        padding-bottom: 0.5rem !important;
        text-align: center !important;
        word-break: break-word;
    }
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
        text-align: center !important;
        word-break: break-word;
    }
    .cta-button.large {
        font-size: 1.1rem !important;
        padding: 1rem 1.5rem !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
    }
    .flex.flex-wrap {
        gap: 0.5rem !important;
        justify-content: center !important;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 30px;
    }
    
    .price-number {
        font-size: 2rem !important;
    }
}

/* === Disruptive Hub Logo === */
.hub-logo-container {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 2rem auto;
}

.hub-logo {
    width: 100%;
    height: auto;
    display: block;
}

/* Animation: The black rectangle in the mask starts covering the text and moves away to the right, revealing it. */
#hubMaskRect {
    transform: translateX(0%);
    animation: reveal 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    animation-delay: 0.3s;
}

/* Animation: The tagline fades in and moves up */
#hubTagline {
    transform: translateY(10px);
    animation: fade-in-up-logo 1s ease-out forwards;
    animation-delay: 1s; /* Start after the main text is revealed */
}

@keyframes reveal {
    to {
        transform: translateX(100%);
    }
}

@keyframes fade-in-up-logo {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FAQ Accordion Styles */
.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    background: white;
    margin-bottom: 1rem;
    overflow: hidden; /* Ensure content is clipped */
}

.faq-item.active {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: #000; /* Highlight active item */
}

.faq-toggle-button {
    background: none;
    border: none;
    outline: none !important;
    cursor: pointer;
    font-size: 1.125rem; /* Slightly larger font */
    font-weight: 600; /* Bolder question */
    width: 100%;
    text-align: left;
    padding: 1.5rem 1.25rem; /* More padding */
    transition: all 0.2s ease;
    color: #1a1a1a; /* Darker text for questions */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-toggle-button:hover {
    background: #f8f8f8; /* Lighter hover background */
}

.faq-toggle-button svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #6b7280; /* Icon color */
}

.faq-item.active .faq-toggle-button svg {
    transform: rotate(180deg);
    color: #000; /* Icon color when active */
}

.faq-content {
    max-height: 0; /* Use max-height for smooth transition */
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out, padding 0.3s ease-in-out;
    padding: 0 1.25rem;
    color: #4b5563;
    line-height: 1.7; /* Improved readability */
}

.faq-item.active .faq-content {
    max-height: 500px; /* A large enough value to accommodate content */
    opacity: 1;
    padding: 0.5rem 1.25rem 1.5rem 1.25rem; /* Padding when open */
}
/* ===== TRUST SECTION - REDESIGNED ===== */
.trust-item-elegant {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.trust-item-elegant::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #000 0%, #666 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.trust-item-elegant:hover::before {
    transform: scaleX(1);
}

.trust-item-elegant:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.12);
}

.trust-card-inner {
    position: relative;
    z-index: 2;
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.trust-item-elegant:hover .icon-wrapper {
    background: linear-gradient(135deg, #000 0%, #333 100%);
    transform: scale(1.05) rotate(5deg);
}

.trust-item-elegant:hover .icon-wrapper svg {
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .trust-item-elegant {
        padding: 2rem 1.5rem;
    }

    .premium-card-inner {
        padding: 2rem 1.5rem;
    }
}
