/**
 * Complemento mínimo ao Tailwind (Play CDN).
 * Após migrar para o CLI, importe este arquivo no input.css ou converta para @layer.
 */

/* Skip link acessível */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 1rem;
    z-index: 100;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: #00c562;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    outline: 2px solid transparent;
}
.skip-link:focus {
    left: 1rem;
    outline: 2px solid #34d399;
    outline-offset: 2px;
}

/* Hero home: overlay preto + verde na marca */
.hero-grid {
    background-image:
        linear-gradient(165deg, rgba(0, 0, 0, 0.88) 0%, rgba(10, 10, 10, 0.82) 45%, rgba(0, 40, 28, 0.55) 100%),
        url("/assets/hero.png");
    background-size: cover;
    background-position: center;
}

@media (min-width: 768px) {
    .hero-grid::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(15, 118, 110, 0.08) 1px, transparent 1px),
            linear-gradient(90deg, rgba(15, 118, 110, 0.08) 1px, transparent 1px);
        background-size: 64px 64px;
        mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
        pointer-events: none;
    }
}

/* Cards de integração: spotlight (opcional, via JS) */
.integration-spotlight {
    background-image: radial-gradient(
        380px circle at var(--sx, 50%) var(--sy, 50%),
        rgba(0, 197, 98, 0.12),
        transparent 45%
    );
}

/* Barra superior: no topo combina com o hero escuro; ao rolar fica clara */
#site-header {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

#site-header.site-header--top {
    background: rgba(0, 0, 0, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: none;
}

#site-header.site-header--top .header-brand {
    color: #f8fafc;
}

#site-header.site-header--top .header-brand-dot {
    color: #34d399;
}

#site-header.site-header--top .header-link {
    color: rgba(248, 250, 252, 0.88);
}

#site-header.site-header--top .header-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.08);
}

#site-header.site-header--top .header-menu-btn {
    border-color: rgba(255, 255, 255, 0.22);
    background-color: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
}

#site-header.site-header--top .header-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

#site-header.site-header--top #nav-mobile {
    background-color: #0a0a0a;
    border-color: rgba(255, 255, 255, 0.1);
}

#site-header.site-header--top .nav-mobile-link {
    color: rgba(248, 250, 252, 0.92);
}

#site-header.site-header--top .nav-mobile-link:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

#site-header.site-header--scrolled {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgb(226 232 240);
    box-shadow: 0 4px 24px -8px rgba(15, 23, 42, 0.12);
}

#site-header.site-header--scrolled .header-brand {
    color: #000000;
}

#site-header.site-header--scrolled .header-brand-dot {
    color: #00c562;
}

#site-header.site-header--scrolled .header-link {
    color: rgb(71 85 105);
}

#site-header.site-header--scrolled .header-link:hover {
    color: #000000;
    background-color: rgb(241 245 249);
}

#site-header.site-header--scrolled .header-menu-btn {
    border-color: rgb(226 232 240);
    background-color: #fff;
    color: rgb(51 65 85);
}

#site-header.site-header--scrolled .header-menu-btn:hover {
    background-color: rgb(248 250 252);
}

#site-header.site-header--scrolled #nav-mobile {
    background-color: #fff;
    border-color: rgb(241 245 249);
}

#site-header.site-header--scrolled .nav-mobile-link {
    color: rgb(51 65 85);
}

#site-header.site-header--scrolled .nav-mobile-link:hover {
    background-color: rgb(248 250 252);
}

/**
 * Seletor de idioma — bandeiras em SVG (Windows não renderiza emoji de bandeira).
 */
.lang-switcher {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 4px 16px rgba(0, 0, 0, 0.25);
}

#site-header.site-header--scrolled .lang-switcher {
    border-color: rgb(203 213 225);
    background: linear-gradient(180deg, #fff 0%, rgb(248 250 252) 100%);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.lang-switcher--mobile {
    max-width: min(100%, 22rem);
    margin-inline: auto;
}

#site-header .lang-switcher {
    flex-wrap: nowrap;
    justify-content: center;
}

#site-header .lang-switcher--mobile {
    flex-wrap: wrap;
}

.lang-flag {
    display: block;
    width: 1.45rem;
    height: auto;
    aspect-ratio: 60 / 42;
    border-radius: 3px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    object-fit: cover;
}

#site-header.site-header--scrolled .lang-flag {
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(15, 23, 42, 0.06) inset;
}

.lang-btn {
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 2.25rem;
}

#site-header.site-header--top .lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#site-header.site-header--scrolled .lang-btn:hover {
    background-color: rgb(241 245 249);
}

.lang-btn:focus-visible {
    outline: 2px solid #00c562;
    outline-offset: 2px;
}

#site-header.site-header--top .lang-btn--active {
    background-color: rgba(255, 255, 255, 0.16);
    box-shadow:
        0 0 0 2px rgba(0, 197, 98, 0.95),
        0 0 20px rgba(0, 197, 98, 0.28);
}

#site-header.site-header--scrolled .lang-btn--active {
    background-color: rgb(236 253 245);
    box-shadow: 0 0 0 2px #00c562;
}

/* Benefícios — fundo em camadas */
.section-benefits__glow {
    background: radial-gradient(ellipse 120% 75% at 50% -35%, rgba(0, 197, 98, 0.11), transparent 58%);
}

.section-benefits__grid {
    background-image:
        linear-gradient(to right, rgb(226 232 240 / 0.55) 1px, transparent 1px),
        linear-gradient(to bottom, rgb(226 232 240 / 0.55) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, black 42%, transparent 100%);
}

/* Cartões de benefício — hierarquia visual mais clara */
.benefit-card {
    position: relative;
    border-radius: 1rem;
    border: 1px solid rgb(226 232 240);
    background: linear-gradient(165deg, #fff 0%, rgb(252 252 253) 55%, rgb(248 250 252) 100%);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.benefit-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.25rem;
    bottom: 1.25rem;
    width: 3px;
    border-radius: 99px;
    background: linear-gradient(180deg, #00c562, rgba(0, 197, 98, 0.35));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.benefit-card:hover {
    border-color: rgba(0, 197, 98, 0.35);
    box-shadow: 0 12px 32px -12px rgba(15, 23, 42, 0.15);
    transform: translateY(-2px);
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-card--pro {
    border-color: rgb(226 232 240 / 0.9);
    background: linear-gradient(155deg, #fff 0%, rgb(255 255 255) 40%, rgb(248 250 252 / 0.85) 100%);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.benefit-card--pro:hover {
    box-shadow:
        0 20px 40px -20px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(0, 197, 98, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.benefit-card__index {
    position: absolute;
    right: 0.35rem;
    top: 0.2rem;
    z-index: 0;
    font-size: clamp(2.75rem, 8vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.07em;
    color: rgb(241 245 249);
    pointer-events: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.benefit-card--pro:hover .benefit-card__index {
    color: rgb(236 253 245);
    transform: translateX(-2px);
}

.benefit-card--pro .benefit-card__icon,
.benefit-card--pro h3,
.benefit-card--pro p {
    position: relative;
    z-index: 1;
}

/* Processo — pipeline escuro */
.section-process__ambient {
    background:
        radial-gradient(ellipse 100% 65% at 50% -25%, rgba(0, 197, 98, 0.14), transparent 52%),
        radial-gradient(ellipse 55% 45% at 100% 100%, rgba(16, 185, 129, 0.08), transparent 42%);
}

.section-process__noise {
    background-image: repeating-linear-gradient(
        -12deg,
        transparent,
        transparent 3px,
        rgba(255, 255, 255, 0.025) 3px,
        rgba(255, 255, 255, 0.025) 4px
    );
}

.process-pipeline {
    position: relative;
}

.process-pipeline__rail {
    position: absolute;
    left: 6%;
    right: 6%;
    top: 1.5rem;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(52, 211, 153, 0.15) 12%,
        rgba(0, 197, 98, 0.45) 50%,
        rgba(52, 211, 153, 0.15) 88%,
        transparent 100%
    );
    box-shadow: 0 0 24px rgba(0, 197, 98, 0.15);
}

@media (max-width: 767px) {
    .process-pipeline__rail {
        display: none;
    }
}

/* Legibilidade em blocos densos */
.section-lead {
    font-size: 1.0625rem;
    line-height: 1.7;
    letter-spacing: -0.01em;
}
