.container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }

/* Mobile-first grid defaults: single column; expanded in larger viewports */
.grid-2, .grid-3, .grid-4 { display: grid; grid-template-columns: 1fr; gap: 20px; }


section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { margin-bottom: 15px; }
.section-header p { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }
.text-center { text-align: center; }

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    margin: 0;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; position: relative; }
.logo { font-size: 1.6rem; font-weight: 800; color: var(--primary); transition: var(--transition); }
.logo:hover { transform: scale(1.05); }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 32px; align-items: center; z-index: 1002; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); font-weight: 600; position: relative; }

/* Mobile hamburger button and mobile menu (default mobile-first) */
.hamburger {
    display: flex;
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 12px;
    padding: 8px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.hamburger:hover { 
    background: rgba(37, 99, 235, 0.12); 
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15); 
    transform: translateY(-1px); 
}
.hamburger:focus { 
    outline: none; 
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15); 
}
.hamburger .bar {
    display: block;
    width: 22px;
    height: 2.6px;
    background: var(--dark);
    margin: 4px 0;
    border-radius: 2px;
    transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .18s ease, background .18s ease;
}
.hamburger.is-active {
    background: var(--primary);
    border-color: transparent;
}
.hamburger.is-active .bar { background: var(--white); }
.hamburger.is-active .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.is-active .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-active .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}
.trust-badges span {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}
.trust-badges span:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Stats */
.stat {
    text-align: center;
    background: linear-gradient(135deg, var(--white), rgba(37, 99, 235, 0.03));
    padding: 50px 30px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}
.stat::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    pointer-events: none;
}
.stat span { 
    display: block; 
    font-size: 3.5rem; 
    font-weight: 900; 
    color: var(--primary);
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    line-height: 1;
}
.stat p {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
    position: relative;
    z-index: 1;
    line-height: 1.4;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.97), rgba(245, 158, 11, 0.92)), url('https://images.unsplash.com/photo-1523050335392-93851179ae22?auto=format&fit=crop&q=80&w=1400');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.4) 0%, transparent 50%);
    pointer-events: none;
}
.hero-content { 
    position: relative; 
    z-index: 1; 
    max-width: 800px;
    margin: 0 auto;
}
.hero h1 { 
    color: var(--white); 
    font-size: 3rem; 
    font-weight: 900;
    margin-bottom: 24px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    animation: fadeInUp 0.8s ease-out;
    line-height: 1.2;
}
.hero p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    font-weight: 400;
}
.hero .btn {
    font-size: 1.2rem;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}
.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.5);
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.footer { background: linear-gradient(135deg, #0b1220 0%, #0f2540 100%); color: #ffffff; padding: 60px 0 20px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer h4 { color: var(--accent); margin-bottom: 20px; font-size: 1.1rem; }
.footer p { color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.8); transition: var(--transition); }
.footer-links a:hover { color: var(--accent); transform: translateX(5px); }
.footer-links li { margin-bottom: 8px; }
.social-links { display: flex; gap: 12px; }
.social-links a { padding: 8px 12px; background: rgba(255,255,255,0.1); border-radius: 6px; transition: var(--transition); }
.social-links a:hover { background: var(--accent); }

/* Mobile defaults for nav: hidden links, expanded via `.open` */
.btn-nav { display: none; }
.nav-links {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(26,77,140,0.98), rgba(34,154,211,0.95));
    padding: 18px 16px;
    box-shadow: 0 10px 30px rgba(10,25,50,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .45s cubic-bezier(.2,.9,.2,1), opacity .35s ease;
    z-index: 1001;
}
.nav-links.open { max-height: 420px; opacity: 1; }
.nav-links li { margin: 10px 0; list-style: none; }
.nav-links a { display: block; padding: 12px 18px; color: #fff; border-radius: 8px; text-decoration: none; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease; position: relative; }
.nav-links a:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
.nav-links a::after { content: ''; position: absolute; left: 18px; bottom: 8px; height: 3px; width: 0; background: var(--accent); transition: width .28s ease; border-radius: 2px; }
.nav-links a:hover::after { width: calc(100% - 36px); }

/* Desktop and larger screens */
@media (min-width: 769px) {
    .container { padding: 0 20px; }
    .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 30px; }
    .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }

    .hamburger { display: none; }
    .btn-nav { display: inline-block; }
    .nav-links {
        display: flex;
        position: static;
        width: auto;
        background: transparent;
        padding: 0;
        box-shadow: none;
        max-height: none;
        opacity: 1;
        overflow: visible;
    }
    .nav-links li { margin: 0; }
    .nav-links a { color: inherit; padding: 0; background: transparent; font-weight: 600; display: inline-block; }
    .nav-links a:hover { background: transparent; transform: none; }
    .hero h1 { font-size: 3.2rem; }
    .hero { padding: 140px 0; }
}
.header-actions { display: flex; align-items: center; gap: 18px; }