* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Cores do dashboard - gradientes purple/blue */
    --color-primary: #8b5cf6;
    --color-primary-dark: #7c3aed;
    --color-primary-light: #a78bfa;
    --color-blue: #212b5f;
    --color-blue-dark: #212b5f;
    --color-green: #22c55e;
    --color-green-dark: #16a34a;
    
    /* Cores neutras */
    --color-text: #1e293b;
    --color-text-light: #374151;
    --color-text-muted: #6b7280;
    --color-bg: #ffffff;
    --color-bg-light: #f9fafb;
    --color-border: #e5e7eb;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.page {
    background: var(--color-bg);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background animado sutil */
.page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.03) 0%, rgba(33, 43, 95, 0.03) 50%, rgba(139, 92, 246, 0.03) 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Topbar modernizado com glass effect - altura fixa; recorte só vertical na logo */
.topbar {
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    height: 72px;
    padding: 0 8%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.topbar:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(139, 92, 246, 0.1);
}

.topbar .brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
    margin-right: 6px;
}

/* Wrapper com altura fixa da barra: só recorta o excedente da logo */
.brand-logo-wrap {
    height: 72px;
    width: clamp(220px, 30vw, 420px);
    display: flex;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

/* Logo 2-3x maior: corte vertical por margin top/bottom sem alterar altura da barra */
.topbar .brand .brand-logo-wrap .brand-logo,
.brand .brand-logo-wrap .brand-logo,
.brand-logo-wrap .brand-logo {
    display: block !important;
    height: 160px !important;
    min-height: 160px !important;
    width: auto !important;
    max-width: 900px !important;
    flex-shrink: 0 !important;
    object-fit: contain !important;
    object-position: left center;
    transition: transform 0.3s ease;
    margin-left: 14px;    /* empurra para a direita */

    margin-right: 0;
    margin-top: -52px;    /* ~175 - 52 - 52 = 71 (barra ~72px) */
    margin-bottom: -52px;
}

.brand-logo-wrap .brand-logo:hover {
    transform: scale(1.05);
}

.topbar-links {
    display: flex;
    gap: 24px;            /* espaçamento uniforme entre botões */
    font-size: 14px;
    color: var(--color-text-light);
    margin-left: 8px;     /* aproxima dos elementos da esquerda */
}

.topbar-links a {
    position: relative;
    padding: 8px 10px;    /* padding igual entre links */
    border-radius: 8px;
    transition: all 0.3s ease;
}

.topbar-login {
    margin-left: auto;    /* mantém login alinhado à direita no desktop */
}

.topbar-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-blue));
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.topbar-links a:hover {
    color: var(--color-primary);
    background: rgba(139, 92, 246, 0.08);
}

.topbar-links a:hover::after {
    width: 80%;
}

.link-soft {
    color: var(--color-primary);
    font-weight: 600;
}

/* Botões modernizados com gradientes sutis */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-blue) 100%);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4), 0 0 0 0 rgba(139, 92, 246, 0.5);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4), 0 0 0 0 rgba(139, 92, 246, 0.5);
    }
    50% {
        box-shadow: 0 10px 25px rgba(139, 92, 246, 0.5), 0 0 0 8px rgba(139, 92, 246, 0);
    }
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.5), 0 5px 15px rgba(33, 43, 95, 0.3);
}

.btn-outline {
    border-color: var(--color-border);
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(139, 92, 246, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.2);
}

.btn-ghost {
    border-color: var(--color-border);
    color: #ffffff;
    background: transparent;
}

.btn-ghost:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(139, 92, 246, 0.08);
    transform: translateY(-2px);
}

/* Hero section modernizado */
.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 60px;
    padding: 100px 8% 80px;
    color: var(--color-text);
    background: transparent;
    position: relative;
    z-index: 1;
}

.hero-pill {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(33, 43, 95, 0.15) 100%);
    color: #212b5f;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.1;
    margin-bottom: 24px;
    color: #212b5f;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-actions-center {
    justify-content: center;
}

.hero-trust {
    display: grid;
    gap: 16px;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.trust-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
}

.trust-title {
    display: block;
    color: #212b5f;
    font-weight: 600;
    margin-bottom: 6px;
}

.trust-subtitle {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: fadeInUp 0.8s ease 1s both;
}

.hero-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.2), 0 0 0 1px rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* .hero-card::before removido - borda/brilho removido */

.hero-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 80px rgba(139, 92, 246, 0.3), 0 0 0 1px rgba(139, 92, 246, 0.2);
}

.hero-card img {
    max-width: 100%;
    display: block;
    border-radius: 24px;
    position: relative;
    z-index: 1;
}

/* Sections modernizadas */
.section {
    padding: 100px 8%;
    background: transparent;
    position: relative;
    z-index: 1;
}

.section-dark {
    background: linear-gradient(180deg, rgba(249, 250, 251, 0.8) 0%, rgba(255, 255, 255, 0.8) 100%);
    color: var(--color-text);
    position: relative;
}

.section-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(33, 43, 95, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.section-light {
    background: transparent;
}

.section-head {
    max-width: 680px;
    margin: 0 auto 60px;
    text-align: center;
}

.section-kicker {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #212b5f;
    margin-bottom: 16px;
    font-weight: 600;
}

.section h2 {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 16px;
    color: #212b5f;
}

.section p {
    color: var(--color-text-light);
    line-height: 1.7;
    font-size: 18px;
}

.section-dark p {
    color: var(--color-text-light);
}

/* Grid modernizado */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

/* Cards modernizados com hover effects */
.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.08), 0 0 0 1px rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.2), 0 0 0 1px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
}

.card:hover::before {
    transform: scaleX(1);
}

.section-dark .card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--color-text);
}

.card-soft {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(33, 43, 95, 0.05) 100%);
}

.card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #212b5f;
    font-weight: 700;
}

.card p {
    color: var(--color-text-light);
    line-height: 1.7;
}

/* Callout modernizado */
.callout {
    margin-top: 40px;
    padding: 32px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(33, 43, 95, 0.1) 100%);
    border: 2px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
    position: relative;
    overflow: hidden;
}

.callout::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.callout h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #212b5f;
    position: relative;
    z-index: 1;
}

.callout p {
    color: var(--color-text-light);
    position: relative;
    z-index: 1;
}

/* Exemplo: o que aparece ao escanear (Como funciona) */
.example-scan {
    margin-top: 48px;
    text-align: center;
}

.example-scan-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.example-scan-img {
    max-width: 340px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.15);
}

/* Exemplos Por que Biplo (WhatsApp + perfil médico) */
.examples-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25v0px, 1fr));
    gap: 28px;
    margin-bottom: 48px;
    max-width: 100%;
}

.example-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.08);
    text-align: center;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.example-card h4 {
    color: #212b5f;
    font-size: 17px;
    margin-bottom: 10px;
}

.example-card p {
    color: var(--color-text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Imagens em tamanho fixo para não depender do container */
.example-card img {
    width: 220px;
    max-width: 220px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Comparison modernizado */
.comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.comparison-col {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(139, 92, 246, 0.15);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.08);
    transition: all 0.4s ease;
}

.comparison-col:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
}

.comparison-title {
    font-weight: 700;
    color: #212b5f;
    margin-bottom: 12px;
    font-size: 18px;
}

.comparison-list {
    list-style: none;
    display: grid;
    gap: 10px;
    color: var(--color-text-light);
    line-height: 1.5;
}

.comparison-list li {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 0;
    line-height: 1.5;
}

.comparison-list li > span:not(.badge) {
    color: var(--color-text-light);
    line-height: 1.5;
    display: block;
}

/* Badge fica em linha própria acima do texto */
.comparison-list li .badge {
    display: inline-block;
    margin-bottom: 0;
    margin-right: 0;
    width: fit-content;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: all 0.3s ease;
    width: fit-content;
    align-self: flex-start;
}

.badge-good {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(22, 163, 74, 0.15) 100%);
    color: #065f46;
    border-color: rgba(34, 197, 94, 0.3);
}

.badge-warn {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.15) 100%);
    color: #7c2d12;
    border-color: rgba(245, 158, 11, 0.3);
}

/* Features modernizado */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.feature {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 28px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.08);
    transition: all 0.4s ease;
    position: relative;
}

.feature::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(33, 43, 95, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 20px;
}

.feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
}

.feature:hover::after {
    opacity: 1;
}

.feature h3 {
    color: #212b5f;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.feature p {
    color: var(--color-text-light);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* CTA modernizado */
.cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-blue) 50%, var(--color-primary) 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    margin-bottom: 16px;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    background-clip: unset !important;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 32px;
    font-size: 18px;
}

.cta .btn-ghost {
    color: #ffffff !important;
}

.cta .btn-ghost:hover {
    color: #ffffff !important;
}

/* Footer modernizado */
.footer {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.95) 100%);
    backdrop-filter: blur(10px);
    color: var(--color-text-muted);
    padding: 60px 8%;
    display: grid;
    gap: 24px;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.footer-logo {
    height: 120px !important;   /* 3x do original (40px) */
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.1);
}

.footer-links {
    display: flex;
    gap: 24px;
    font-size: 14px;
}

.footer-links a {
    color: var(--color-text-light);
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
}

.footer-links a:hover {
    color: var(--color-primary);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.footer-note {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* Footer mobile: colunas e sem overflow horizontal */
@media (max-width: 900px) {
    .footer {
        padding: 40px 5%;
        gap: 20px;
        max-width: 100%;
        overflow: hidden;
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 16px;
        font-size: 13px;
    }

    .footer-links a {
        padding: 6px 8px;
    }

    .footer-logo {
        height: 96px !important;   /* 3x do original (32px) */
    }

    .footer-note {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 32px 4%;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Animações de scroll */
@media (prefers-reduced-motion: no-preference) {
    .card,
    .feature,
    .comparison-col {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 0.6s ease forwards;
    }
    
    .card:nth-child(1) { animation-delay: 0.1s; }
    .card:nth-child(2) { animation-delay: 0.2s; }
    .card:nth-child(3) { animation-delay: 0.3s; }
    .feature:nth-child(1) { animation-delay: 0.1s; }
    .feature:nth-child(2) { animation-delay: 0.2s; }
    .feature:nth-child(3) { animation-delay: 0.3s; }
    .feature:nth-child(4) { animation-delay: 0.4s; }
    .feature:nth-child(5) { animation-delay: 0.5s; }
    .feature:nth-child(6) { animation-delay: 0.6s; }
}

/* Botão Login fixo - visível apenas quando a topbar sai da viewport */
.btn-login-fixed {
    display: none;
    position: fixed;
    top: calc(12px + env(safe-area-inset-top, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
    left: auto;
    z-index: 9999;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-blue) 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-login-fixed.visible {
    display: inline-flex;
}

.btn-login-fixed:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.5);
    color: #ffffff !important;
}

/* Barra NUNCA acompanha scroll - apenas o botão Login fixo fica sempre visível */

/* Responsive */
@media (max-width: 900px) {
    .topbar {
        flex-wrap: wrap;
        justify-content: center;
        height: auto;
        min-height: 72px;
        padding: 8px 5% 10px;
        gap: 10px;
        overflow: visible;
    }

    .topbar .brand {
        order: 1;
        width: auto;
    }

    .topbar-links {
        order: 2;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        margin-left: 0;
    }

    .topbar-links a {
        padding: 6px 10px;
    }

    .topbar-login {
        order: 3;
        padding: 8px 16px;
        font-size: 13px;
        margin-left: 0;
    }

    .brand-logo-wrap {
        width: clamp(180px, 28vw, 300px);
    }

    .topbar .brand .brand-logo-wrap .brand-logo,
    .brand .brand-logo-wrap .brand-logo {
        height: 180px !important;
        min-height: 180px !important;
        margin-left: 18px;
        margin-top: -54px;   /* 180 - 54 - 54 = 72 */
        margin-bottom: -54px;
    }
    
    .hero {
        padding: 80px 6% 60px;
        gap: 40px;
    }
    
    .section {
        padding: 80px 6%;
    }
    
    .grid-3,
    .features,
    .comparison {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .topbar {
        height: auto;
        min-height: 64px;
        padding: 8px 4% 10px;
        gap: 8px;
        justify-content: center;
        overflow: visible;
    }

    .topbar-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .topbar-links a {
        padding: 5px 8px;
        font-size: 13px;
    }

    .topbar-login {
        order: 3;
        padding: 6px 14px;
        font-size: 12px;
    }

    /* Logo mobile: mesma ideia, barra fixa e recorte vertical */
    .brand-logo-wrap {
        height: 64px;
        width: clamp(150px, 50vw, 240px);
    }

    .topbar .brand .brand-logo-wrap .brand-logo,
    .brand .brand-logo-wrap .brand-logo {
        height: 135px !important;
        min-height: 135px !important;
        margin-left: 4px;    /* evita cortar no lado direito em telas estreitas */
        margin-top: -36px;   /* ~135 - 36 - 36 = 63 (barra ~64px) */
        margin-bottom: -36px;
    }

    .hero {
        padding: 60px 4% 40px;
    }

    .section {
        padding: 60px 4%;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
}
