/* ============================================================
   MemoriCard Landing Page – Design System
   Palette: Deep Navy (#0f2d52), Blue (#2563eb), Sky (#60a5fa),
            Gray-100 (#f1f5f9), Gray-700 (#334155), White (#fff)
   Font: Inter (Google Fonts)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

body {
    font-family: 'Inter', 'Source Sans Pro', sans-serif;
    color: #334155;
    line-height: 1.65;
    margin: 0;
    padding: 0;
    background-color: #f1f5f9;
}

/* ── Color Utilities ──────────────────────────────────────── */
.text-primary-blue {
    color: #2563eb;
}

.text-memoricard-orange {
    color: #f97316;
}

.bg-primary-blue {
    background-color: #2563eb;
}

.bg-navy {
    background-color: #0f2d52;
}

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(15, 45, 82, 0.08);
    padding: 0.6rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1050;
}

.navbar-brand {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f2d52 !important;
    letter-spacing: -0.5px;
    text-shadow: none;
}

.navbar-brand b {
    color: #2563eb;
}

.navbar .nav-link {
    font-weight: 500;
    font-size: 0.92rem;
    color: #334155 !important;
    margin-right: 4px;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.navbar .nav-link:hover {
    color: #2563eb !important;
    background: #eff6ff;
}

.navbar .nav-item.active .nav-link {
    color: #2563eb !important;
    font-weight: 700;
}

.btn-nav-login {
    background: #0f2d52;
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 10px;
    padding: 0.45rem 1.1rem;
    transition: all 0.2s ease;
}

.btn-nav-login:hover {
    background: #1a4a80;
    color: #fff;
    transform: translateY(-1px);
}

.btn-nav-register {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 10px;
    padding: 0.45rem 1.1rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
}

.btn-nav-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    color: #fff;
}

.btn-nav-white {
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    padding: 0.6rem 1.8rem;
    backdrop-filter: blur(4px);
    transition: all 0.25s ease;
}

.btn-nav-white:hover {
    background: #fff;
    color: #2563eb;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ── Hero Section ─────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, #0f2d52 0%, #1a4a80 45%, #2563eb 100%);
    color: #fff;
    padding: 100px 0 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-desktop-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-desktop-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 45, 82, 0.75);
    /* Dark overlay transparent */
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #bfdbfe;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.hero-content h1 {
    font-family: 'Inter', sans-serif;
    font-size: 3.6rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 22px;
    letter-spacing: -1.5px;
}

.hero-content h1 span {
    background: linear-gradient(90deg, #93c5fd, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.15rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 40px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
}

.hero-content .btn-primary-cta {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 34px;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.45);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.hero-content .btn-primary-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(37, 99, 235, 0.55);
    color: #fff;
}

.hero-image-wrapper {
    margin-top: 40px;
    position: relative;
    display: block;
    width: 100%;
}

/* Banner estilo slide – usa background-image para recorte perfeito */
.hero-banner-img {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: block;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

/* ── Stats Strip ──────────────────────────────────────────── */
.stats-strip {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 28px 0;
}

.stat-item {
    text-align: center;
    padding: 0 20px;
}

.stat-item .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #0f2d52;
    line-height: 1;
    display: block;
}

.stat-item .stat-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: #64748b;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    background: #e2e8f0;
    height: 40px;
    align-self: center;
}

/* ── Section Helpers ──────────────────────────────────────── */
.section-padding {
    padding: 80px 0;
}

.section-padding-sm {
    padding: 56px 0;
}

.section-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #2563eb;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: #0f2d52;
    line-height: 1.2;
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: -0.5px;
}

.section-title span {
    color: #2563eb;
}

.section-subtitle {
    font-size: 1.05rem;
    color: #64748b;
    text-align: center;
    max-width: 580px;
    margin: 0 auto 48px;
}

/* ── Feature Cards ────────────────────────────────────────── */
.feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px 28px;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(15, 45, 82, 0.12);
    border-color: #bfdbfe;
}

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

.feature-icon-wrap {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon-wrap i {
    font-size: 1.4rem;
    color: #2563eb;
}

.feature-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f2d52;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.93rem;
    color: #64748b;
    margin: 0;
    line-height: 1.65;
}

.feature-card .feature-image {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 18px;
}

/* ── How It Works Section ─────────────────────────────────── */
.how-section {
    background: linear-gradient(180deg, #f1f5f9 0%, #fff 100%);
}

.step-card {
    text-align: center;
    padding: 32px 20px;
}

.step-number {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.step-card h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f2d52;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.9rem;
    color: #64748b;
}

.step-connector {
    position: relative;
}

.step-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -30px;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #93c5fd);
    transform: translateY(-50%);
}

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, #0f2d52 0%, #1a4a80 60%, #2563eb 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-section h2 {
    font-size: 2.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    margin-bottom: 36px;
}

/* ── Footer ───────────────────────────────────────────────── */
.main-footer {
    background: #0f2d52;
    color: #94a3b8;
    padding: 32px 0 24px;
    font-size: 0.88rem;
}

.main-footer a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s;
}

.main-footer a:hover {
    color: #fff;
}

.main-footer .footer-brand {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.main-footer .footer-brand span {
    color: #60a5fa;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 20px 0 16px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .navbar-brand {
        font-size: 1.4rem;
    }

    .hero-content h1 {
        font-size: 2.6rem;
    }

    .navbar-collapse {
        background: #fff;
        padding: 12px;
        border-radius: 12px;
        margin-top: 10px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    }

    .step-connector::after {
        display: none;
    }

    .stat-divider {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 60px 0 0;
        /* sem padding inferior – a imagem fecha a seção */
        overflow: visible;
        /* permite a imagem sair do fluxo sem ser cortada */
    }

    .hero-content h1 {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }

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

    /* No mobile: imagem full-width colada na borda inferior */
    .hero-image-wrapper {
        margin-top: 32px;
        margin-bottom: 0 !important;
        width: 100%;
    }

    .hero-banner-img {
        height: 260px;
        border-radius: 0;
        width: 100%;
        background-size: cover;
        background-position: center top;
    }

    .section-padding {
        padding: 56px 0;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }
}