:root {
    --rsc-primary: #0062A6;
    --rsc-secondary: #1A9ADD;
    --rsc-dark: #06101A;
    --rsc-light: #f5f7fb;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #020617;
    color: #0f172a;
    height: 100%;
}

.wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
}

main {
    flex-grow: 1;
    /* Permite que o conteúdo principal cresça e empurre o footer */
}

/* NAVBAR */

.navbar {
    backdrop-filter: blur(16px);
    background: rgba(6, 16, 26, 0.92) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.navbar-brand img {
    height: 40px;
}

.navbar .nav-link {
    font-size: 0.95rem;
    color: #e5e7eb !important;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: var(--rsc-secondary) !important;
}

/* HERO (usado na home) */

.hero {
    padding: 7rem 0 5rem;
    background: radial-gradient(circle at top, #0b172b 0, #020617 45%, #000 100%);
    color: #e5e7eb;
}

.hero-title {
    font-size: clamp(2.2rem, 3.4vw, 3.1rem);
    font-weight: 700;
    line-height: 1.1;
}

.hero-highlight {
    background: linear-gradient(90deg, var(--rsc-primary), var(--rsc-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    color: #cbd5f5;
    max-width: 540px;
}

.badge-rsc {
    background: rgba(0, 98, 166, 0.15);
    border-radius: 999px;
    color: #bae6fd;
    border: 1px solid rgba(26, 154, 221, 0.7);
    padding: 0.25rem 0.9rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-cta .btn-primary {
    background: linear-gradient(135deg, var(--rsc-primary), #1d7ed6);
    border: none;
}

.hero-cta .btn-outline-light {
    border-color: rgba(148, 163, 184, 0.7);
    color: #e5e7eb;
}

.hero-card {
    background: radial-gradient(circle at top left, rgba(0, 98, 166, 0.25), transparent 60%),
        radial-gradient(circle at bottom right, rgba(26, 154, 221, 0.25), transparent 60%),
        rgba(15, 23, 42, 0.95);
    border-radius: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 1.8rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
}

/* SEÇÕES GENÉRICAS */

.section {
    padding: 4.5rem 0;
    background: #020617;
    color: #e5e7eb;
}

.section-alt {
    background: #020617;
}

.section-contrast {
    background: #0b172b;
}

.section-title {
    font-size: 1.9rem;
    font-weight: 600;
    color: #f9fafb;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: #9ca3af;
    max-width: 620px;
}

/* CARDS */

.card-rsc {
    background: #020617;
    border-radius: 1.25rem;
    border: 1px solid rgba(51, 65, 85, 0.9);
    padding: 1.5rem;
    color: #e5e7eb;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
}

.card-rsc::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(0, 98, 166, 0.25), transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease-out;
}

.card-rsc:hover::before {
    opacity: 1;
}

.card-rsc-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 98, 166, 0.2);
    color: #7dd3fc;
    margin-bottom: 0.5rem;
}

.card-button {
    z-index: 10;
    position: relative;
    /* Garante que o botão esteja acima de outros elementos */
}

/* partner */
.partner-card {
    display: block;
    height: 100%;
    padding: 18px;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.partner-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
}

.partner-card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 78px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.partner-card-logo img {
    max-width: 100%;
    min-width: 100%;
    max-height: 100px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .92;
    transition: filter .15s ease, opacity .15s ease;
}

.partner-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-card-body {
    text-align: center;
}

.partner-card-name {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.98rem;
    line-height: 1.2;
}

.partner-card-link {
    margin-top: 4px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    word-break: break-word;
}

/* opcional: controles do carousel mais “clean” */
#partnersCarousel .carousel-control-prev,
#partnersCarousel .carousel-control-next {
    width: 44px;
}

/* área visível do letreiro */
.partners-marquee {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 6px 2px;
}

/* fade nas bordas (fica chique) */
.partners-marquee::before,
.partners-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.partners-marquee::before {
    left: 0;
    background: linear-gradient(to right, rgba(10, 10, 12, 1), rgba(10, 10, 12, 0));
}

.partners-marquee::after {
    right: 0;
    background: linear-gradient(to left, rgba(10, 10, 12, 1), rgba(10, 10, 12, 0));
}

/* trilho que se move */
.partners-track {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: partners-scroll var(--partners-speed, 28s) linear infinite;
    will-change: transform;
}

/* pausa ao passar mouse */
.partners-marquee:hover .partners-track {
    animation-play-state: paused;
}

/* card no modo marquee: fixa largura para caber 4 visíveis */
.partner-card--marquee {
    flex: 0 0 auto;
    width: 300px;
    /* 4 cards por “janela” */
    min-width: 240px;
    /* evita ficar minúsculo em telas médias */
}

/* em telas menores, 2 visíveis */
@media (max-width: 768px) {
    .partner-card--marquee {
        min-width: 200px;
    }

    .partners-marquee::before,
    .partners-marquee::after {
        width: 35px;
    }
}

/* animação: anda meia “volta” porque duplicamos a lista */
@keyframes partners-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


/* partner */

.overlay-element {
    z-index: 1;
    /* Garante que o overlay fique abaixo */
}


/* LISTAS / TAGS */

.list-tech {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
}

.list-tech li {
    font-size: 0.82rem;
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(55, 65, 81, 0.85);
    color: #e5e7eb;
}

.badge-soft {
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(75, 85, 99, 0.9);
    color: #e5e7eb;
}

/* CEO */

.ceo-photo {
    width: 80px;
    height: 80px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid var(--rsc-secondary);
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.95);
}

/* CONTATO / CARDS ESPECIAIS */

.contact-card {
    background: radial-gradient(circle at top, rgba(0, 98, 166, 0.22), transparent 60%),
        rgba(15, 23, 42, 0.95);
    border-radius: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
    padding: 1.8rem;
}

.contact-info-item {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    color: #e5e7eb;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.contact-info-item i {
    color: var(--rsc-secondary);
}

/* PILL OPEN SOURCE */

.oss-pill {
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.6);
    color: #bbf7d0;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* FOOTER */

footer {
    position: sticky;
    border-top: 1px solid rgba(31, 41, 55, 0.9);
    background: #020617;
    color: #9ca3af;
    padding: 1.5rem 0;
    font-size: 0.85rem;
}

/* BOTÃO FLUTUANTE WHATSAPP */

.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 20px;
    z-index: 1050;
}

.whatsapp-float .btn {
    border-radius: 999px;
    padding: 0.6rem 0.95rem;
    box-shadow: 0 12px 35px rgba(22, 163, 74, 0.65);
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    font-size: 0.9rem;
}

/* ANIMAÇÕES COM SCROLL */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* RESPONSIVO */

@media (max-width: 767.98px) {
    .hero {
        padding-top: 6rem;
    }
}