:root {
    --brand-color: #b21f32; 
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --hero-blue: #1fa0e2; 
    --section-purple: #f3effe;
    --card-purple: #e9deff;
    --card-yellow: #eff6a0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1 { font-size: 4.5rem; line-height: 1.05; margin-bottom: 20px; letter-spacing: -2px; font-weight: 700;}
h2 { font-size: 2.8rem; line-height: 1.2; margin-bottom: 15px; letter-spacing: -1px; font-weight: 700;}
h3 { font-size: 1.8rem; margin-bottom: 10px; font-weight: 600; line-height: 1.3;}
p { font-size: 1.05rem; line-height: 1.6; color: #4a4a4a; margin-bottom: 20px;}

.subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 15px;
}

/* Navigation */
header {
    background-color: var(--bg-light);
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img { height: 35px; }

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.auth-buttons { display: flex; align-items: center; gap: 20px; }
.login-link { text-decoration: none; color: var(--text-dark); font-weight: 600; font-size: 0.95rem; }

/* Buttons */
.btn {
    padding: 14px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary { background-color: var(--brand-color); color: var(--text-light); }
.btn-primary:hover { background-color: #901727; }

.btn-dark { background-color: #1a1a1a; color: var(--text-light); }
.btn-dark:hover { background-color: #000; }

.btn-light { background-color: var(--text-light); color: var(--text-dark); }
.btn-light:hover { background-color: #f4f4f4; }

.btn-outline { border-color: #1a1a1a; color: #1a1a1a; background: transparent; }
.btn-outline:hover { background: #1a1a1a; color: #fff; }

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    background-color: var(--hero-blue);
    color: var(--text-light);
    padding: 0 5%;
    min-height: 85vh;
}

.hero-content { flex: 1; padding-right: 5%; z-index: 2; }
.hero-content p { color: rgba(255,255,255,0.9); font-size: 1.2rem; max-width: 450px; }
.hero-buttons { display: flex; gap: 15px; margin-top: 35px; }
.hero-image { flex: 1; height: 85vh; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 0 0 0 40px; }

/* Services Section */
.services-section { padding: 100px 5%; max-width: 1400px; margin: 0 auto; }
.services-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 60px; }
.services-title-left { flex: 1; }
.services-title-right { flex: 2; max-width: 600px; }

.services-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    border-radius: 20px;
    padding: 40px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}

.card-img { background: url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80') center/cover; }
.card-content-overlay {
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    padding: 25px;
    border-radius: 15px;
    color: white;
}
.card-content-overlay p { color: #eee; margin-bottom: 0;}
.card-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    background: #def7a4;
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-block;
    margin-top: 20px;
}

.card-purple { background-color: var(--card-purple); align-items: center; text-align: center; justify-content: center; }
.card-yellow { background-color: var(--card-yellow); align-items: center; text-align: center; justify-content: center; }
.card-icon { margin-bottom: 20px; }
.card-purple h3, .card-yellow h3 { font-size: 1.5rem; margin-bottom: 15px; }

/* Rewards Section */
.rewards-section { background-color: var(--section-purple); padding: 100px 5%; text-align: center; }
.rewards-content { max-width: 800px; margin: 0 auto 60px; }
.rewards-content h2 { font-size: 3rem; }
.center-buttons { justify-content: center; }

.rewards-images {
    display: grid;
    grid-template-columns: 60% 38%;
    gap: 2%;
    max-width: 1200px;
    margin: 0 auto;
}
.reward-img-left img, .reward-img-right img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
}

/* Smart Checking Section */
.smart-checking-section { padding: 120px 5%; max-width: 1400px; margin: 0 auto; }
.checking-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 60px; }
.checking-left { flex: 1; }
.checking-right { flex: 2; max-width: 700px; }

.checking-banner { position: relative; border-radius: 30px; overflow: hidden; height: 500px; }
.checking-banner img { width: 100%; height: 100%; object-fit: cover; }
.banner-overlay-text {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: white;
    max-width: 600px;
}
.banner-overlay-text h3 { font-size: 2.5rem; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }

/* Investing Section */
.investing-section {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    padding: 120px 5%;
    text-align: center;
    color: white;
    position: relative;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.investing-content { max-width: 800px; z-index: 2; margin-top: 50px;}
.investing-content p { color: rgba(255,255,255,0.9); font-size: 1.1rem; }
.investing-badge {
    color: #ffd700;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: inline-block;
}

.investing-ui-wrapper {
    position: absolute;
    bottom: 50px;
    width: 100%;
    max-width: 900px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 20px;
}

.ui-widget {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    color: var(--text-dark);
    text-align: left;
}
.widget-small { width: 200px; margin-bottom: 30px; }
.widget-large { width: 250px; }
.widget-title { font-size: 0.8rem; color: #666; margin-bottom: 5px; font-weight: 600;}
.widget-value { font-size: 1.5rem; font-weight: 700; }
.text-green { color: #2e7d32; }
.widget-icon {
    width: 30px;
    height: 30px;
    background: #ffd700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Footer Section */
.site-footer {
    background-color: #111;
    color: #fff;
    padding: 80px 5% 40px;
}

.footer-container { max-width: 1400px; margin: 0 auto; }
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo { height: 40px; margin-bottom: 20px; filter: brightness(0) invert(1); /* Makes logo white for dark bg */ }
.footer-brand p { color: #aaa; font-size: 0.95rem; max-width: 300px; }

.footer-links h4, .footer-contact h4 { font-size: 1.1rem; margin-bottom: 20px; font-weight: 600; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a, .footer-contact a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--brand-color); }
.footer-contact p { color: #aaa; margin-bottom: 10px; font-size: 0.95rem;}

.social-icons { display: flex; gap: 15px; margin-top: 20px; }
.social-icons a {
    display: flex; align-items: center; justify-content: center;
    width: 35px; height: 35px; border-radius: 50%;
    background: #222; color: #fff; font-size: 0.85rem;
}
.social-icons a:hover { background: var(--brand-color); }

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #777;
    font-size: 0.85rem;
}
.footer-legal a { color: #777; text-decoration: none; margin-left: 20px; }
.footer-legal a:hover { color: #fff; }

/* Mobile Only Utility */
.mobile-only { display: none; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer;}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.2rem; }
    .hero { flex-direction: column; padding-top: 50px; min-height: auto;}
    .hero-content { padding-right: 0; text-align: center; margin-bottom: 40px; }
    .hero-content p { margin: 0 auto 20px; }
    .hero-buttons { justify-content: center; }
    .hero-image { width: 100%; height: 500px; border-radius: 20px; }
    
    .services-header, .checking-header { flex-direction: column; }
    .services-title-left, .checking-left { margin-bottom: 20px; }
    .services-cards { grid-template-columns: 1fr; }
    
    .rewards-images { grid-template-columns: 1fr; }
    .reward-img-left img, .reward-img-right img { height: 300px; }
    
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    .desktop-only { display: none; }
    .mobile-only { display: flex; flex-direction: column; width: 100%; gap: 15px; margin-top: 20px;}
    .mobile-menu-btn { display: block; }
    
    .nav-links {
        display: none; position: absolute; top: 70px; left: 0; right: 0;
        background: white; flex-direction: column; padding: 20px 5%;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1); gap: 20px;
    }
    .nav-links.active { display: flex; }
    
    .checking-banner { height: 350px; }
    .banner-overlay-text h3 { font-size: 1.8rem; }
    
    .investing-ui-wrapper { flex-direction: column; align-items: center; position: relative; bottom: 0; margin-top: 40px; gap: 20px;}
    
    .footer-top { grid-template-columns: 1fr; gap: 30px;}
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}
