/* ============================================
   MBS Landing Page - Institutional
   Paleta: Excelence Brand Guide
   Navy: #1B2638 | Teal: #258098 | Green: #1BAB70
   Fonte auxiliar: Fira Sans (Google Fonts)
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #e0e6ed;
    background-color: #0f1923;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Container --- */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.header-scrolled {
    background-color: rgba(15, 25, 35, 0.95);
    backdrop-filter: blur(12px);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-list {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-list a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #a0b0c0;
    transition: color 0.2s ease;
    letter-spacing: 0.02em;
}

.nav-list a:hover {
    color: #ffffff;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #e0e6ed;
    font-size: 1.3rem;
    cursor: pointer;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #258098, #1BAB70);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 128, 152, 0.35);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.05rem;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(37, 128, 152, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(27, 171, 112, 0.06) 0%, transparent 60%),
        linear-gradient(180deg, #0f1923 0%, #1B2638 100%);
}

.hero-content {
    max-width: 780px;
}

.hero-logo {
    height: 64px;
    width: auto;
    margin-bottom: 32px;
    filter: drop-shadow(0 4px 24px rgba(37, 128, 152, 0.25));
    animation: heroLogoFade 1s ease-out;
}

@keyframes heroLogoFade {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 300;
    color: #a0b0c0;
    line-height: 1.7;
    margin-bottom: 40px;
}

/* --- Sections --- */
.section {
    padding: 100px 0;
}

.section-dark {
    background-color: #1B2638;
}

.section:not(.section-dark) {
    background-color: #0f1923;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.section-description {
    text-align: center;
    font-size: 1.05rem;
    font-weight: 300;
    color: #8899aa;
    max-width: 600px;
    margin: 0 auto 60px;
}

/* --- Grid --- */
.grid {
    display: grid;
    gap: 24px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* --- Steps Logo --- */
.steps-logo {
    text-align: center;
    margin-bottom: 48px;
}

.steps-logo-img {
    width: 48px;
    height: 48px;
    opacity: 0.2;
}

/* --- Steps (Como funciona) --- */
.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.step {
    flex: 1;
    text-align: center;
    padding: 32px 20px;
    opacity: 0;
    transform: translateY(20px);
}

.step.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.step-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #258098;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.step h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.step p {
    font-size: 0.88rem;
    font-weight: 300;
    color: #8899aa;
    line-height: 1.6;
}

.step-arrow {
    display: flex;
    align-items: center;
    padding-top: 40px;
    color: #258098;
    font-size: 1.2rem;
    opacity: 0.4;
}

/* --- Card: Problem --- */
.card-problem {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 32px 28px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.card-problem.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.card-problem:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 128, 152, 0.3);
}

.card-problem-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(37, 128, 152, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #258098;
    font-size: 1.2rem;
}

.card-problem h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.card-problem p {
    font-size: 0.9rem;
    font-weight: 300;
    color: #8899aa;
    line-height: 1.6;
}

/* --- Card: Audience --- */
.card-audience {
    text-align: center;
    padding: 48px 32px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(27, 38, 56, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.card-audience.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.card-audience:hover {
    transform: translateY(-4px);
    border-color: rgba(27, 171, 112, 0.3);
}

.card-audience-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 128, 152, 0.15), rgba(27, 171, 112, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #1BAB70;
    font-size: 1.5rem;
}

.card-audience h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.card-audience p {
    font-size: 0.9rem;
    font-weight: 300;
    color: #8899aa;
    line-height: 1.6;
}

/* --- Card: Feature --- */
.card-feature {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 36px 28px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.card-feature.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.card-feature:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 128, 152, 0.3);
}

.card-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: linear-gradient(135deg, #258098, #1BAB70);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #ffffff;
    font-size: 1.3rem;
}

.card-feature h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.card-feature p {
    font-size: 0.9rem;
    font-weight: 300;
    color: #8899aa;
    line-height: 1.6;
}

/* --- Card: Differentials --- */
.card-diff {
    text-align: center;
    padding: 40px 28px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(27, 38, 56, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.card-diff.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.card-diff:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 128, 152, 0.3);
}

.card-diff-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(37, 128, 152, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #258098;
    font-size: 1.3rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.card-diff:hover .card-diff-icon {
    background: linear-gradient(135deg, #258098, #1BAB70);
    color: #ffffff;
}

.card-diff h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.card-diff p {
    font-size: 0.88rem;
    font-weight: 300;
    color: #8899aa;
    line-height: 1.6;
}

/* --- Card: Compliance --- */
.compliance-grid {
    gap: 20px;
}

.card-compliance {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 32px 24px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.card-compliance.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.card-compliance:hover {
    transform: translateY(-4px);
    border-color: rgba(27, 171, 112, 0.3);
}

.card-compliance-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(37, 128, 152, 0.15), rgba(27, 171, 112, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #1BAB70;
    font-size: 1.2rem;
}

.card-compliance h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.compliance-subtitle {
    font-size: 0.8rem;
    font-weight: 400;
    color: #258098;
    margin-bottom: 16px;
}

.compliance-text {
    font-size: 0.88rem;
    font-weight: 300;
    color: #8899aa;
    line-height: 1.65;
}

.card-compliance ul {
    list-style: none;
}

.card-compliance li {
    font-size: 0.85rem;
    font-weight: 300;
    color: #8899aa;
    padding: 5px 0;
    padding-left: 16px;
    position: relative;
}

.card-compliance li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #258098;
}

/* --- Security --- */
.security-layers {
    max-width: 720px;
    margin: 0 auto;
}

.security-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 0;
    transform: translateX(-20px);
}

.security-item.revealed {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.security-item:last-child {
    border-bottom: none;
}

.security-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(37, 128, 152, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #258098;
    font-size: 1.1rem;
}

.security-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}

.security-content p {
    font-size: 0.9rem;
    font-weight: 300;
    color: #8899aa;
    line-height: 1.5;
}

/* --- CTA --- */
.section-cta {
    background: linear-gradient(135deg, #1B2638 0%, #162030 50%, #1B2638 100%);
    text-align: center;
    padding: 100px 24px;
}

.cta-content {
    max-width: 560px;
}

.cta-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 28px;
}

.section-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.section-cta p {
    font-size: 1.05rem;
    font-weight: 300;
    color: #8899aa;
    margin-bottom: 36px;
}

.section-cta .btn i {
    margin-right: 8px;
}

/* --- Footer --- */
.footer {
    background-color: #0a1018;
    padding: 48px 0 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
    text-align: center;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 10px;
}

.footer-logo-mbs {
    height: 24px;
    width: auto;
    opacity: 0.7;
}

.footer-logo-separator {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
}

.footer-logo {
    height: 28px;
    width: auto;
    opacity: 0.7;
}

.footer-company {
    font-size: 0.75rem;
    font-weight: 400;
    color: #556677;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-contact {
    margin-bottom: 24px;
}

.footer-contact p {
    font-size: 0.9rem;
    color: #8899aa;
}

.footer-contact i {
    color: #258098;
    margin-right: 8px;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: #445566;
}

/* --- Section Watermark --- */
.section-watermark {
    position: relative;
    overflow: hidden;
}

.section-watermark::before {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 240px;
    height: 240px;
    background: url('../img/mbs_icon.png') no-repeat center / contain;
    opacity: 0.02;
    pointer-events: none;
}

/* --- Scroll Reveal stagger --- */
.card-problem:nth-child(2), .card-feature:nth-child(2), .card-diff:nth-child(2), .card-compliance:nth-child(2) {
    transition-delay: 0.1s;
}
.card-problem:nth-child(3), .card-feature:nth-child(3), .card-diff:nth-child(3), .card-compliance:nth-child(3) {
    transition-delay: 0.2s;
}
.card-problem:nth-child(4), .card-feature:nth-child(4), .card-diff:nth-child(4), .card-compliance:nth-child(4) {
    transition-delay: 0.3s;
}
.card-problem:nth-child(5), .card-feature:nth-child(5), .card-diff:nth-child(5) {
    transition-delay: 0.4s;
}
.card-problem:nth-child(6), .card-feature:nth-child(6), .card-diff:nth-child(6) {
    transition-delay: 0.5s;
}

.step:nth-child(3) { transition-delay: 0.15s; }
.step:nth-child(5) { transition-delay: 0.3s; }
.step:nth-child(7) { transition-delay: 0.45s; }

.card-audience:nth-child(2) { transition-delay: 0.15s; }
.card-audience:nth-child(3) { transition-delay: 0.3s; }

.security-item:nth-child(2) { transition-delay: 0.1s; }
.security-item:nth-child(3) { transition-delay: 0.2s; }
.security-item:nth-child(4) { transition-delay: 0.3s; }
.security-item:nth-child(5) { transition-delay: 0.4s; }
.security-item:nth-child(6) { transition-delay: 0.5s; }

/* --- Responsive --- */

/* Tablet */
@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-list {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 25, 35, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        z-index: 999;
    }

    .nav-list.nav-open {
        display: flex;
    }

    .nav-list a {
        font-size: 1.2rem;
        color: #e0e6ed;
    }

    .nav-toggle {
        display: block;
        z-index: 1001;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-4 {
        grid-template-columns: 1fr;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step-arrow {
        transform: rotate(90deg);
        padding-top: 0;
        padding-bottom: 0;
        margin: -8px 0;
    }

    .hero {
        padding: 100px 24px 60px;
        min-height: auto;
    }

    .hero-logo {
        height: 48px;
        margin-bottom: 24px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .btn-lg {
        padding: 16px 28px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .card-feature,
    .card-problem,
    .card-diff,
    .card-compliance {
        padding: 24px 20px;
    }
}
