/* ============================
   REGISTRONIC - SaaS Premium Theme
   ============================ */

/* --- 1. Variáveis e Setup --- */
:root {
    --brand-primary: #3b82f6;
    --brand-secondary: #06b6d4;
    --brand-accent: #8b5cf6;

    --bg-base: #03050C;
    --bg-surface: rgba(255, 255, 255, 0.03);
    --bg-surface-hover: rgba(255, 255, 255, 0.05);

    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-glow: rgba(59, 130, 246, 0.3);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --gradient-brand: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    --gradient-glow: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(139, 92, 246, 0.5));

    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --transition-snappy: 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* overflow-x NÃO deve ser definido aqui: valores != visible no <html>
       fazem o browser usar <html> como containing block de position:fixed,
       prendendo elementos fixos ao documento em vez de à viewport. */
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* Overflow horizontal controlado aqui: <body> propaga para a viewport
       sem afetar o containing block de position:fixed. */
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typografias SaaS --- */
h1,
h2,
h3,
h4 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Luzes Globais de Fundo --- */
.ambient-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

.ambient-glow--top-left {
    top: -200px;
    left: -200px;
    background: rgba(59, 130, 246, 0.3);
}

.ambient-glow--bottom-right {
    bottom: -200px;
    right: -200px;
    background: rgba(139, 92, 246, 0.2);
}

/* --- Cursor customizado (Opcional, ativado via JS) --- */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* --- Botões e Interações --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-snappy);
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.btn--primary {
    background: var(--text-main);
    color: var(--bg-base);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn--primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.btn--secondary {
    color: #25D366;
    background: rgba(255, 255, 255, 0.05);
    /* Exemplo de fundo */
    border: 1px solid var(--border-glass);
}

.btn--base-dark {
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn--base-dark:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: var(--bg-surface-hover);
}

.btn--glass {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(12px);
    transition: all var(--transition-smooth);
}

.btn--glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

/* Ícones nos botões */
.group-hover\:translate-x {
    transition: transform var(--transition-snappy);
}

.group:hover .group-hover\:translate-x {
    transform: translateX(4px);
}

/* --- Navbar Moderna --- */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    padding: 20px 40px;
    background: rgba(3, 5, 12, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    transition: all var(--transition-smooth);
}

/* SHRINK AO SCROLL */
.navbar.navbar-shrink {
    padding: 12px 40px;
    backdrop-filter: blur(16px);
    background: rgba(3, 5, 12, 0.8);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar__logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
    transition: all var(--transition-smooth);
}

.navbar.navbar-shrink .navbar__logo img {
    height: 55px;
}

.navbar__logo:hover img {
    transform: scale(1.05);
}

.glow-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-secondary);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.navbar__logo-text {
    font-family: 'Space Grotesk';
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

/* NAV LIST */
.navbar__list {
    display: flex;
    gap: 32px;
    list-style: none;
    position: relative;
}

.navbar__link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.navbar__link:hover,
.navbar__link.active {
    color: var(--text-main);
}

/* REMOVE underline antigo */
.navbar__link::after {
    display: none;
}

/* APPLE INDICATOR */
.nav-indicator {
    position: absolute;
    bottom: -6px;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, #3b82f6, #06b6d4, #8b5cf6);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    opacity: 0;
}

.navbar__toggle.btn--icon-glass {
    display: none;
}

/* --- Hero Section Premium --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero__grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 80%);
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero__content {
    z-index: 2;
    position: relative;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--brand-primary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.badge__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-primary);
    box-shadow: 0 0 10px var(--brand-primary);
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 24px;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.trust-metrics {
    display: flex;
    gap: 32px;
    align-items: center;
}

.trust-metrics__number {
    font-family: 'Space Grotesk';
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.trust-metrics__label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.trust-metrics__divider {
    width: 1px;
    height: 30px;
    background: var(--border-glass);
}

/* Falso UI Mockup na Hero */
.mockup-panel {
    border-radius: var(--radius-md);
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    position: relative;
    box-shadow: var(--shadow-glow);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform var(--transition-smooth);
}

.mockup-panel:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-panel::before {
    content: '';
    position: absolute;
    inset: 1px;
    background: #0a0c16;
    border-radius: calc(var(--radius-md) - 1px);
    z-index: -1;
}

.mockup-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    gap: 6px;
}

.mockup-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.mockup-body {
    display: flex;
    height: 400px;
    padding: 16px;
    gap: 16px;
}

.mockup-sidebar {
    width: 60px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.mockup-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mockup-skeleton {
    height: 120px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.mockup-skeleton.short {
    height: 40px;
    width: 60%;
}

.mockup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    flex: 1;
}

.mockup-card {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

/* Shimmer de carregamento */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        left: 200%;
    }
}

.floating-badge {
    position: absolute;
    padding: 12px 20px;
    border-radius: 30px;
    background: rgba(10, 12, 22, 0.9);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.floating-badge i {
    width: 16px;
    height: 16px;
    color: var(--brand-secondary);
}

.badge-1 {
    bottom: 40px;
    right: -30px;
    animation: float 4s ease-in-out infinite;
}

.badge-2 {
    top: 80px;
    left: -40px;
    animation: float 5s ease-in-out infinite reverse;
}

@keyframes float {
    50% {
        transform: translateY(-10px);
    }
}

/* --- Utilidades de Layout --- */
.section {
    padding: 120px 0;
    position: relative;
}

.center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-badge {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-secondary);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 24px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

/* --- Componentes SaaS "Glass Card" --- */
.glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    /* overflow: hidden;  REMOVIDO para evitar corte de elementos flutuantes */
    backdrop-filter: blur(20px);
    transition: all var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: var(--bg-surface-hover);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* --- Section: Sobre --- */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.premium-showcase {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
}

.showcase-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.showcase-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    color: var(--brand-primary);
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
}

.showcase-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.showcase-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.feature-list i {
    color: var(--brand-secondary);
}

/* --- Section: Soluções/Serviços --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 450px));
    justify-content: center;
    gap: 40px;
}

.service-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover .service-icon-wrapper i {
    transform: scale(1.1);
    color: #fff;
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.service-features {
    border-top: 1px solid var(--border-glass);
    padding-top: 24px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.card-glow.primary {
    background: radial-gradient(circle, var(--brand-primary) 0%, transparent 100%);
}

.card-glow.secondary {
    background: radial-gradient(circle, var(--brand-secondary) 0%, transparent 100%);
}

.card-glow.tertiary {
    background: radial-gradient(circle, var(--brand-accent) 0%, transparent 100%);
}

.service-card:hover .card-glow {
    opacity: 1;
    box-shadow: 0 0 20px var(--brand-primary);
}

/* --- Section: Controle de Ponto Digital --- */
.ponto-digital {
    background: linear-gradient(180deg, var(--bg-base) 0%, rgba(3, 5, 12, 0.4) 100%);
    position: relative;
    overflow: hidden;
}

.ponto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-top: 60px;
}

.ponto-content ul.feature-list li {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all var(--transition-smooth);
    align-items: flex-start;
}

.ponto-content ul.feature-list li:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.ponto-content ul.feature-list li .ponto-icon {
    min-width: 24px;
    height: 24px;
    color: var(--brand-secondary);
    margin-top: 2px;
}

.ponto-content ul.feature-list li strong {
    display: block;
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.ponto-content ul.feature-list li p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Mockup Ponto SaaS */
.ponto-visual {
    perspective: 1200px;
}

.saas-print-wrapper {
    padding: 2px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    position: relative;
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.saas-print-wrapper:hover {
    transform: rotateY(0) rotateX(0);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.print-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.saas-print-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: calc(var(--radius-lg) - 3px);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    filter: contrast(1.05) brightness(0.95);
}

.badge-ponto-1 {
    top: 40px;
    right: -40px;
    animation: float 5s ease-in-out infinite;
}

.badge-ponto-2 {
    bottom: 60px;
    left: -30px;
    animation: float 4s ease-in-out infinite reverse;
}

/* --- Section: Diferenciais --- */
.benefits-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

.benefits-grid {
    display: grid;
    gap: 24px;
}

.benefit-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    border-radius: var(--radius-md);
    transition: background var(--transition-smooth);
}

.benefit-item:hover {
    background: var(--bg-surface);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.benefit-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-secondary);
    font-weight: 600;
    text-decoration: none;
    margin-top: 24px;
    transition: gap 0.2s;
}

.link-arrow:hover {
    gap: 12px;
}

/* --- CTA Section --- */
.cta-premium .container {
    position: relative;
}

.cta-box {
    text-align: center;
    padding: 80px 40px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 20px;
}

.cta-actions {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

/* --- Section: Contato Moderno --- */
.contact-grid {
    margin-top: 60px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-card {
    padding: 24px;
    gap: 16px;
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    color: var(--text-muted);
}

.contact-card h5 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 4px;
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-form-wrapper {
    padding: 40px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
}

.premium-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: flex;
    gap: 24px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
    background: transparent;
    border: none;
    color: #fff;
    padding: 12px 0;
    font-family: 'Inter';
    font-size: 1rem;
    outline: none;
}

.form-group select {
    appearance: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-group select option {
    background-color: #0a0c16;
    color: #fff;
    padding: 12px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s;
}

.form-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gradient-brand);
    transition: width 0.3s ease;
}

.form-group input:focus~.form-border::after,
.form-group textarea:focus~.form-border::after,
.form-group select:focus~.form-border::after {
    width: 100%;
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border-glass);
    padding-top: 60px;
    background: #010206;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-brand {
    max-width: 300px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 20px 0;
}

.social-links {
    display: flex;
    gap: 12px;
}

.btn--icon-glass {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: #fff;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.btn--icon-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.footer-links-group {
    display: flex;
    gap: 80px;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 24px;
    color: #fff;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.83rem;
    font-weight: 400;
    color: var(--text-muted);
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding: 24px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Float Action --- */
.float-whatsapp {
    /* Garante posicionamento fixo à viewport independente de qualquer
       ancestral com overflow, transform ou filter. */
    position: fixed !important;
    bottom: 20px;
    right: 24px;
    left: auto;
    top: auto;
    z-index: 9999;
    width: 66px;
    height: 66px;
    background: rgba(10, 12, 22, 0.8);
    border: 1px solid rgba(37, 211, 102, 0.3);
    backdrop-filter: blur(10px);
    /* Garante visibilidade mesmo sem classe .active do reveal */
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
}

/* Variante de tamanho para o botão flutuante */
.float-whatsapp.large {
    width: 66px;
    height: 66px;
}

.float-whatsapp:hover {
    border-color: #25D366;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.2);
}

.tooltip-parent {
    position: relative;
}

.tooltip {
    position: absolute;
    right: calc(100% + 15px);
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: #fff;
    color: #000;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.tooltip-parent:hover .tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* --- Button Size Utilities --- */
.btn--lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn--full {
    width: 100%;
}

.btn--icon-glass.small {
    width: 36px;
    height: 36px;
}

.cta-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* --- Mobile Menu Overlay --- */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mobile-overlay.active {
    display: block;
}

/* --- Responsive Images & Media --- */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* --- ANIMAÇÕES DE REVEAL (JS dispara ativando classe .active) --- */
.reveal-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-up.active {
    opacity: 1;
    transform: translateY(0);
    transition-delay: var(--delay, 0ms);
}

.reveal-fade-right {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-right.active {
    opacity: 1;
    transform: translateX(0);
    transition-delay: var(--delay, 0ms);
}

.reveal-fade-left {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-left.active {
    opacity: 1;
    transform: translateX(0);
    transition-delay: var(--delay, 0ms);
}

.reveal-scale-up {
    opacity: 0;
    transform: scale(0.95);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale-up.active {
    opacity: 1;
    transform: scale(1);
    transition-delay: var(--delay, 0ms);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* --- Large Tablets / Small Desktops --- */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }

    .navbar {
        padding: 16px 20px;
    }

    .navbar.navbar-shrink {
        padding: 10px 20px;
    }

    .hero__inner {
        gap: 40px;
    }

    .about__grid,
    .ponto-grid,
    .benefits-layout {
        gap: 50px;
    }

    .footer-links-group {
        gap: 50px;
    }
}

/* --- Tablets (≤ 992px) --- */
@media (max-width: 992px) {
    .section {
        padding: 80px 0;
    }

    /* ---- Mobile Navigation ---- */
    .navbar__menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        height: 100dvh;
        background: rgba(3, 5, 12, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--border-glass);
        z-index: 101;
        padding: 80px 24px 30px;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                    visibility 0.4s;
        overflow-y: auto;
    }

    .navbar__menu.active {
        transform: translateX(0);
        visibility: visible;
    }

    .navbar__list {
        flex-direction: column;
        gap: 4px;
    }

    .navbar__link {
        display: block;
        padding: 14px 16px;
        font-size: 1.05rem;
        border-radius: var(--radius-sm);
        transition: background 0.2s, color 0.2s;
    }

    .navbar__link:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .nav-indicator {
        display: none;
    }

    .navbar__toggle.btn--icon-glass {
        display: inline-flex;
        z-index: 102;
    }

    .navbar__cta {
        display: none;
    }

    /* ---- Grid Layouts ---- */
    .hero__inner,
    .about__grid,
    .ponto-grid,
    .benefits-layout,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ---- Footer ---- */
    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .footer-brand {
        max-width: 100%;
    }

    /* ---- Hero Visual ---- */
    .hero__visual {
        max-width: 600px;
        margin: 0 auto;
    }

    /* Prevent floating badges from causing overflow */
    .badge-1 { right: 0; }
    .badge-2 { left: 0; }
    .badge-ponto-1 { right: 0; }
    .badge-ponto-2 { left: 0; }
}

/* --- Mobile (≤ 768px) --- */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .container {
        padding: 0 16px;
    }

    /* ---- Hero ---- */
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero__content {
        text-align: center;
    }

    .hero__title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
        font-size: 1rem;
    }

    .hero__actions {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .hero__actions .btn {
        width: 100%;
        max-width: 340px;
        justify-content: center;
    }

    .badge {
        font-size: 0.78rem;
    }

    .trust-metrics {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .trust-metrics__number {
        font-size: 1.3rem;
    }

    /* Hide heavy mockup on mobile */
    .mockup-panel {
        display: none;
    }

    .hero__visual {
        display: none;
    }

    /* ---- Cards ---- */
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .glass-card {
        padding: 28px;
    }

    /* ---- Section Typography ---- */
    .section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .section-desc {
        font-size: 1rem;
    }

    /* ---- Ponto Digital ---- */
    .ponto-content ul.feature-list li {
        padding: 16px;
    }

    .saas-print-wrapper {
        transform: none;
    }

    /* ---- CTA ---- */
    .cta-box {
        padding: 50px 24px;
    }

    .cta-title {
        font-size: clamp(1.6rem, 6vw, 2.5rem);
    }

    /* ---- Contact ---- */
    .contact-form-wrapper {
        padding: 24px;
    }

    .form-row {
        flex-direction: column;
        gap: 24px;
    }

    /* ---- Footer ---- */
    .footer-links-group {
        flex-direction: column;
        gap: 30px;
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }

    /* ---- Benefits ---- */
    .benefit-item {
        padding: 16px;
    }

    /* ---- Touch-friendly buttons ---- */
    .btn {
        min-height: 48px;
        padding: 14px 24px;
    }

    /* Mobile menu full width */
    .navbar__menu {
        width: 100%;
        border-left: none;
    }

    /* Reduce ambient glow for performance */
    .ambient-glow {
        width: 300px;
        height: 300px;
        opacity: 0.25;
    }
}

/* --- Small Mobile (≤ 480px) --- */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .section {
        padding: 48px 0;
    }

    .hero {
        padding-top: 90px;
        padding-bottom: 40px;
    }

    .hero__title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }

    .hero__subtitle {
        font-size: 0.95rem;
        margin-bottom: 28px;
    }

    .hero__actions {
        margin-bottom: 32px;
    }

    .hero__actions .btn {
        max-width: 100%;
        font-size: 0.9rem;
    }

    .trust-metrics {
        gap: 16px;
    }

    .trust-metrics__divider {
        display: none;
    }

    .trust-metrics__item {
        text-align: center;
    }

    .section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .glass-card {
        padding: 20px;
    }

    .cta-box {
        padding: 40px 16px;
    }

    .contact-form-wrapper {
        padding: 20px;
    }

    .navbar__logo img {
        height: 50px;
    }

    .navbar {
        padding: 12px 12px;
    }

    .navbar.navbar-shrink {
        padding: 8px 12px;
    }

    .footer {
        padding-top: 40px;
    }

    .footer-top {
        padding-bottom: 30px;
    }

    .footer-col h4 {
        margin-bottom: 16px;
    }

    .social-links {
        justify-content: center;
    }

    .premium-showcase {
        aspect-ratio: auto;
        padding: 30px;
    }

    .showcase-icon {
        width: 48px;
        height: 48px;
    }

    .float-whatsapp {
        width: 54px !important;
        height: 54px !important;
        bottom: 16px;
        right: 16px;
    }
}