:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --accent-cyan: #00fff5;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --gradient-start: var(--accent-cyan);
    --gradient-end: var(--accent-purple);
    --underline-height: 3px;
    --underline-gap: 6px;
    --underline-transition: 340ms;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation-delay: 5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-pink) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, -50px) scale(1.1);
    }

    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }

    75% {
        transform: translate(40px, 50px) scale(1.05);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.8);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    margin: 0 1rem;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--text-primary) !important;
}

/* Força ícone do toggler em branco (caso não queira alterar o HTML para navbar-dark) */
.navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: none !important;
    /* remove a borda */
    outline: none !important;
    /* remove o contorno padrão */
    box-shadow: none !important;
    /* remove qualquer sombra de foco */
}

.navbar .navbar-toggler:focus,
.navbar .navbar-toggler:active {
    outline: none !important;
    box-shadow: none !important;
}

.navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
    /* leve destaque branco translúcido */
}

.navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'><path stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    width: 28px;
    height: 22px;
}

.navbar img {
    width: 2rem;
    height: 2rem;
    margin: 0.5rem;
}

/* Aplicar a todos os links do nav (Bootstrap .nav-link) */
.navbar .nav-link {
    position: relative;
    /* necessário para o ::after posicionado */
    padding-bottom: calc(var(--underline-gap) + var(--underline-height));
    color: inherit;
    /* mantém cor atual do link */
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

/* Pseudo-elemento que será a linha animada */
.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    /* ocupa todo o width do link */
    bottom: var(--underline-gap);
    /* distância do texto */
    height: var(--underline-height);
    border-radius: 999px;
    /* bordas arredondadas na linha */
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    transform-origin: left center;
    transform: scaleX(0);
    /* começa “vazio” */
    transition: transform var(--underline-transition) cubic-bezier(.22, .9, .31, 1);
    pointer-events: none;
    /* não atrapalha clique */
    will-change: transform;
}

/* Ao passar o mouse (hover), teclado (focus) ou quando o item for ativo */
.navbar .nav-link:hover::after,
.navbar .nav-link:focus::after,
.navbar .nav-link.active::after,
.navbar .nav-item.show .nav-link::after {
    transform: scaleX(1);
    /* anima para “cheio” */
}

/* Melhora para foco por teclado (acessibilidade visual) */
.navbar .nav-link:focus {
    outline: none;
    /* se você removeu outlines globalmente */
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.12);
    /* leve indicação de foco */
}

/* Respeitar preferência por menos movimento */
@media (prefers-reduced-motion: reduce) {
    .navbar .nav-link::after {
        transition: none;
        transform: scaleX(1);
    }
}

.btn-gradient {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    color: #000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 255, 245, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 255, 245, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 100px;
    z-index: 1;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -3px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    animation: gradient-shift 5s ease infinite;
    background-size: 200% auto;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 40px rgba(0, 255, 245, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 245, 0.05), rgba(168, 85, 247, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 255, 245, 0.3);
    box-shadow: 0 20px 60px rgba(0, 255, 245, 0.15);
}

.glass-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: #000;
    position: relative;
    z-index: 1;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* Sections */
.section {
    padding: 8rem 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Segurança contra overflow: garante que imagens e iframes não excedam a largura do container */
img,
picture,
svg,
video,
iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Garante que blocos que porventura usem 100vw não ultrapassem a largura visível */
.full-bleed,
.vw-100 {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Garante que containers com conteúdo absoluto não causem scroll */
.container,
.section,
.services-grid,
.portfolio-grid {
    box-sizing: border-box;
}

/* Força html/body sem overflow horizontal (reafirmação segura) */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}


/* Mantém comportamento atual em desktop (hover) */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Hover em desktop permanece igual */
.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.portfolio-category {
    color: var(--accent-cyan);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ===== Responsividade: telas pequenas - mostra sempre os textos ===== */
@media (max-width: 768px) {

    /* Exibe overlay sempre */
    .portfolio-overlay {
        opacity: 1 !important;
        /* força visibilidade em mobile */
        /* gradiente mais suave para não esconder totalmente a imagem */
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.7) 100%);
        padding: 1rem;
        justify-content: flex-end;
    }

    /* Texto um pouco maior em mobile para legibilidade */
    .portfolio-title {
        font-size: 1.25rem;
        line-height: 1.2;
    }

    .portfolio-category {
        font-size: 0.95rem;
    }

    /* Desativa a escala da imagem em touch (evita recortes e movimentos inesperados) */
    .portfolio-item:hover .portfolio-image,
    .portfolio-item .portfolio-image {
        transform: none !important;
        transition: none !important;
    }

    /* Garante que a imagem não ultrapasse o container quando o overlay ocupar espaço */
    .portfolio-image {
        object-position: center top;
    }

    /* Aumenta o espaçamento interno para que o texto não fique colado à borda em telas pequenas */
    .portfolio-overlay {
        padding: 1rem 1rem 1.2rem 1rem;
    }
}

/* Respeita preferência de usuário por redução de movimento */
@media (prefers-reduced-motion: reduce) {

    .portfolio-overlay,
    .portfolio-image {
        transition: none !important;
    }
}

/* Testimonials */
.testimonial-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    height: 100%;
}

.quote-icon {
    font-size: 3rem;
    color: var(--accent-cyan);
    opacity: 0.3;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
    color: var(--text-secondary);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
}

.author-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.author-role {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Contact Form */
.contact-form {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 255, 245, 0.1);
    color: var(--text-primary);
    outline: none;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 245, 0.3);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .section {
        padding: 5rem 0;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Carousel controls - botões circulares com o estilo do site */
#testimonialsCarousel {
    position: relative;
    padding: 1rem 0;
    overflow: visible;
    /* permite posicionamento absoluto interno */
}

#testimonialsCarousel .carousel-control-prev,
#testimonialsCarousel .carousel-control-next {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #000;
    /* posição segura: usa pequeno offset interno em vez de negativo */
    left: 8px;
    right: 8px;
}

/* separa as posições usando selectors específicos */
#testimonialsCarousel .carousel-control-prev {
    left: 8px;
    right: auto;
}

#testimonialsCarousel .carousel-control-next {
    right: 8px;
    left: auto;
}

/* substitui o ícone padrão do Bootstrap */
#testimonialsCarousel .carousel-control-prev .carousel-control-prev-icon,
#testimonialsCarousel .carousel-control-next .carousel-control-next-icon {
    display: none;
}

/* ícone interno estilo bootstrap icons */
#testimonialsCarousel .btn-icon {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

/* Hover efeito */
#testimonialsCarousel .carousel-control-prev:hover,
#testimonialsCarousel .carousel-control-next:hover {
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 12px 40px rgba(0, 255, 245, 0.12);
}

/* Espaçamento e responsividade dos cards dentro do carousel */
#testimonialsCarousel .testimonial-card {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Ajuste para que os slides fiquem com boa aparência em telas muito pequenas */
/* reduz a largura nas telas muito pequenas para não invadir a área */
@media (max-width: 767.98px) {

    #testimonialsCarousel .carousel-control-prev,
    #testimonialsCarousel .carousel-control-next {
        width: 40px;
        height: 40px;
        left: 8px;
        right: 8px;
        transform: translateY(-50%);
    }
}

/* Indicadores (bolinhas) personalizados */
#testimonialsCarousel .carousel-indicators.custom-indicators {
    position: static;
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

#testimonialsCarousel .carousel-indicators.custom-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--accent-cyan);
    opacity: 0.4;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

#testimonialsCarousel .carousel-indicators.custom-indicators button.active {
    opacity: 1;
    transform: scale(1.2);
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
}

#testimonialsCarousel .carousel-indicators.custom-indicators button:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Botão flutuante do WhatsApp */
#whatsappButton {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    z-index: 999;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover e foco com animação suave */
#whatsappButton:hover,
#whatsappButton:focus {
    transform: scale(1.08);
    box-shadow: 0 10px 32px rgba(0, 255, 245, 0.25);
    text-decoration: none;
    color: #fff;
}

/* Ícone */
#whatsappButton i {
    line-height: 1;
}

/* Responsividade (telas muito pequenas) */
@media (max-width: 575.98px) {
    #whatsappButton {
        width: 50px;
        height: 50px;
        bottom: 16px;
        right: 16px;
        font-size: 1.6rem;
    }
}

#whatsappButton::after {
    content: "Fale conosco!";
    position: absolute;
    right: 70px;
    bottom: 50%;
    transform: translateY(50%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    white-space: nowrap;
}

#whatsappButton:hover::after {
    opacity: 1;
}

/* =========================
   Typing effect + cursor
   ========================= */

/* Garantir que a span seja inline-block para posicionar o cursor */
.gradient-text-title {
    position: relative;
    display: inline-block;
    padding-right: 0.45rem;
    /* espaço para o cursor */
    /* conserva seu gradiente de texto atual */
}

/* Cursor vertical: usa o mesmo gradiente do site */
.gradient-text-title::after {
    content: "";
    position: absolute;
    left: 100%;
    /* posicionado logo após o texto */
    top: 0.08em;
    /* ajuste vertical fino */
    transform: translateX(6px);
    /* distância do texto (ajuste se quiser) */
    width: 8px;
    /* espessura do cursor */
    height: 0.9em;
    /* altura ~ da linha do texto */
    border-radius: 2px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    /* evita efeito estranho em algumas GPUs */
    will-change: opacity, transform;
    /* piscar */
    animation: typing-cursor 1s steps(1, end) infinite;
    pointer-events: none;
}

/* Ajuste fino de alinhamento em telas pequenas (se necessário) */
@media (max-width: 576px) {
    .gradient-text-title::after {
        transform: translateX(4px);
        height: 0.95em;
    }
}

/* Blink keyframes */
@keyframes typing-cursor {

    0%,
    50% {
        opacity: 1;
    }

    50.01%,
    100% {
        opacity: 0;
    }
}

/* Respeitar preferência do usuário por menos movimento */
@media (prefers-reduced-motion: reduce) {
    .gradient-text-title::after {
        animation: none;
        opacity: 1;
    }
}

/* Container dos alerts bottom-left */
#alertContainerBottomLeft {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-start;
    pointer-events: none;
    /* allow clicks only on alert content (close btn) */
}

/* Estilo "glass" para os alerts (usamos a mesma classe em JS: .glass-alert) */
.glass-alert {
    pointer-events: auto;
    /* botão/links clicáveis */
    min-width: 260px;
    max-width: 360px;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.6rem;

    /* Glass effect */
    background-color: rgba(255, 255, 255, 0.03);
    /* base translúcida */
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    /* texto */
    color: var(--text-primary);
    box-shadow: 0 8px 30px rgba(2, 6, 23, 0.6);

    /* entrada/saída */
    transition: opacity 0.45s ease, transform 0.45s ease;
    opacity: 0;
    transform: translateY(8px);
}

/* classe aplicada quando deve estar visível */
.glass-alert.show {
    opacity: 1;
    transform: translateY(0);
}

/* Icon sizing / color */
.glass-alert .bi {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    display: inline-block;
    /* allow color via .glass-alert.alert-success .bi */
    color: inherit;
}

/* Subtle tint on border for success/danger (keeps background translucent neutral) */
.glass-alert.alert-success {
    border-color: rgba(16, 185, 129, 0.10);
}

.glass-alert.alert-danger {
    border-color: rgba(244, 63, 94, 0.10);
}

/* Icon color overrides (subtle) */
.glass-alert.alert-success .bi {
    color: #10b981;
}

/* verde suave */
.glass-alert.alert-danger .bi {
    color: #f43f5e;
}

/* vermelho suave */

/* =========================
   Botão -> morph spinner
   ========================= */

/* Regras base do botão para morph */
button.btn-gradient {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition:
        width 320ms cubic-bezier(.2, .9, .2, 1),
        height 320ms cubic-bezier(.2, .9, .2, 1),
        border-radius 320ms cubic-bezier(.2, .9, .2, 1),
        background 320ms cubic-bezier(.2, .9, .2, 1),
        box-shadow 320ms cubic-bezier(.2, .9, .2, 1),
        padding 220ms ease,
        margin 220ms ease;
    will-change: width, height, border-radius, background, margin;
}

/* conteúdo do botão (texto) — será esmaecido ao entrar em loading */
button.btn-gradient .btn-content {
    display: inline-block;
    transition: opacity 160ms ease, transform 160ms ease;
    will-change: opacity, transform;
    position: relative;
    z-index: 2;
}

/* wrapper do spinner: ocupa centro do botão e não interfere no layout */
button.btn-gradient .spinner-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(.95);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 160ms ease, transform 160ms ease;
    z-index: 3;
}

/* estado loading (mostrar spinner) */
button.btn-gradient.btn-loading .btn-content {
    opacity: 0;
    transform: translateY(-4px);
}

button.btn-gradient.btn-loading .spinner-wrapper {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* estado morf (botão inteiro vira círculo) */
/* --morph-size é definido dinamicamente em JS (px) */
button.btn-gradient.btn-morph {
    width: var(--morph-size) !important;
    height: var(--morph-size) !important;
    min-width: var(--morph-size) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple)) !important;
    border: none !important;
    color: transparent !important;

    /* CENTRALIZAÇÃO quando vira círculo */
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Spinner SVG (rotação) dimensionado em função do --morph-size */
.gradient-spinner {
    width: calc(var(--morph-size) * 0.45);
    height: calc(var(--morph-size) * 0.45);
    display: block;
    animation: spin 1s linear infinite;
    transform-origin: 50% 50%;
}

/* keyframes */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* acessibilidade: botões desabilitados */
button.btn-gradient:disabled {
    cursor: not-allowed;
    opacity: 0.95;
}

/* FAQ specific */
.faq-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.faq-section .accordion-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
}

.faq-section .accordion-button {
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    border: none;
    padding: 1rem 1.25rem;
}

.faq-section .accordion-button:not(.collapsed) {
    background: linear-gradient(90deg, var(--accent-cyan)20%, rgba(255, 255, 255, 0.02) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: unset;
}

.faq-section .accordion-body {
    color: var(--text-secondary);
    padding: 1rem 1.25rem;
}

.faq-section .glass-card {
    padding: 0;
    box-shadow: none;
    border-radius: 12px;
}

.faq-section .accordion-item+.accordion-item {
    margin-top: 0.75rem;
}

.faq-section .link-light {
    color: var(--accent-cyan);
    text-decoration: underline;
}

/* -------- Pricing Section (EWTZero) -------- */
.pricing-section {
    padding: 6rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.6rem;
    align-items: start;
    margin-top: 2.5rem;
}

/* Base do card reutiliza glass-card, mas com variações */
.pricing-card {
    padding: 2rem;
    border-radius: 20px;
    position: relative;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

/* Muted — licença vitalícia (menos proeminente) */
.pricing-card--muted {
    opacity: 0.86;
    transform: translateY(0);
    border-color: rgba(255, 255, 255, 0.04);
    box-shadow: none;
}

.pricing-card--muted .plan-title {
    font-weight: 700;
    color: var(--text-primary);
}

.pricing-card--muted .plan-tag {
    color: var(--text-secondary);
    background: transparent;
}

/* Highlight — plano mensal (destaque) */
.pricing-card--highlight {
    border: 1px solid rgba(0, 255, 245, 0.18);
    box-shadow: 0 20px 60px rgba(0, 255, 245, 0.08);
    transform: translateY(-8px);
    background: linear-gradient(180deg, rgba(0, 255, 245, 0.02), rgba(168, 85, 247, 0.02));
}

.pricing-card--highlight:hover {
    transform: translateY(-12px) scale(1.01);
}

/* Header */
.plan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.plan-title {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.plan-tag {
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: transparent;
    padding: 0.2rem 0.45rem;
    border-radius: 8px;
}

/* Badge */
.plan-badge {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    color: #000;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 6px 22px rgba(0, 255, 245, 0.08);
}

/* Price */
.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin: 0.6rem 0 1rem;
}

.price-amount {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    color: transparent;
}

.price-period {
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.95rem;
}

/* Description and list */
.plan-desc {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.plan-benefits {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
}

.plan-benefits li {
    margin: 0.55rem 0;
    padding-left: 1.6rem;
    position: relative;
}

.plan-benefits li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    box-shadow: 0 6px 18px rgba(0, 255, 245, 0.06);
}

/* CTA area */
.plan-cta {
    margin-top: 0.6rem;
}

.plan-cta-sub {
    margin-top: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Buttons */
.pricing-card .btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Footnote */
.plan-footnote {
    margin-top: 0.9rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Responsividade */
@media (max-width: 768px) {
    .plan-price {
        justify-content: flex-start;
    }

    .pricing-grid {
        gap: 1rem;
    }

    .pricing-card {
        min-height: auto;
        padding: 1.4rem;
    }
}

/* Modal customizado - mantém visual glass */
#purchaseModal .modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* #purchaseModal .modal-header,
#purchaseModal .modal-footer {
    background: transparent;
} */

#purchaseModal .modal-title {
    font-weight: 800;
    /* background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple)); */
    /* -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent; */
    letter-spacing: -1px;
    color: #ffffff;
}

#purchaseModal .btn-close-white {
    filter: invert(1) brightness(1.2);
}

#purchaseForm .form-label {
    color: var(--text-primary);
    font-weight: 600;
}

#purchaseForm .form-control {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

/*Scrollbar*/
/* WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 999px;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.6);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 999px;
    border: 2px solid rgba(0, 0, 0, 0.18);
}

/* Firefox (usar cores e largura) */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-cyan) rgba(255, 255, 255, 0.02);
}

/* Para elementos específicos (ex.: .container-scroll) você pode aplicar regras locais */