:root {
    /* Modern White-Themed FinTech Palette */
    --mint-up: #00D1A0;
    --crimson-down: #FF4D4D;
    --indigo-base: #2D31FA;
    --bg-primary: #F8FAFC;
    --bg-white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --accent-glow: rgba(45, 49, 250, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
}

/* Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(31, 38, 135, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo span {
    color: var(--indigo-base);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--indigo-base);
}

/* Hero Sections */
.page-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, rgba(45, 49, 250, 0.03) 0%, transparent 70%);
}

.page-hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #0F172A 0%, #2D31FA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 1 !important;
    /* Force visibility */
    transform: none !important;
}

.lead {
    font-size: 1.25rem;
    /* Slightly reduced for better balance */
    color: #64748B;
    max-width: 800px;
    margin: 0 auto 3rem;
    /* Increased margin for breathing room */
    line-height: 1.5;
    opacity: 1 !important;
    transform: none !important;
}

.page-hero .container {
    position: relative;
    z-index: 10;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

/* Text Colors */
:root {
    --text-primary: #0F172A;
    --text-secondary: #475569;
    /* Darker slate for better readability */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--indigo-base);
    color: #FFFFFF !important;
    /* Force white for maximum contrast */
    box-shadow: 0 10px 20px rgba(45, 49, 250, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(45, 49, 250, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: var(--indigo-base);
}

/* Background Blobs */
.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(60px);
    /* Reduced blur */
    opacity: 0.6;
    /* Increased opacity from 0.4 */
    border-radius: 50%;
    animation: float 20s infinite alternate ease-in-out;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(100px, 50px) scale(1.1);
    }

    66% {
        transform: translate(-50px, 100px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Sections */
.section {
    padding: 5rem 0;
    /* Reduced from 6rem */
}

@media (max-width: 768px) {
    .section {
        padding: 2.5rem 0;
        /* Tightened from 4rem */
    }
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 2rem;
    }
}

.subtitle {
    display: block;
    color: var(--indigo-base);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-2-alt {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 768px) {

    .grid-2,
    .grid-2-alt {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .featured-card {
        grid-column: span 1 !important;
        flex-direction: column;
        text-align: center;
    }

    .featured-card>div {
        width: 100%;
    }

    .featured-card .glass-card {
        padding: 1.5rem !important;
    }
}

.featured-card {
    grid-column: span 2;
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Footer */
.footer {
    background: linear-gradient(to bottom, #FFFFFF, var(--bg-primary));
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--indigo-base), transparent);
    opacity: 0.1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info .logo {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.footer-info p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.footer h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a:hover {
    color: var(--indigo-base);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.legal-text {
    font-size: 0.75rem !important;
    opacity: 0.6;
    max-width: 500px;
    text-align: right;
    line-height: 1.6;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 4rem 0 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 3rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }

    .legal-text {
        text-align: center;
        max-width: 100%;
    }
}

/* Candle Story Component */
#candle-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 100vw;
    /* Constrain to viewport */
    height: 100%;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.candle-element {
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-origin: bottom;
}

/* Mobile Menu & Responsiveness */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-primary);
    z-index: 1100;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        /* Use transform instead of right: -100% to avoid overflow trigger */
        width: 80%;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        z-index: 1050;
        visibility: hidden;
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
    }

    .page-hero {
        min-height: 70vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 9rem 0 4rem;
        /* Increased top padding to clear 86px navbar */
    }

    .page-hero h1 {
        font-size: clamp(2rem, 9vw, 2.8rem);
        /* Slightly smaller upper bound */
        letter-spacing: -1px;
        margin-bottom: 1.25rem;
    }

    .subtitle {
        margin-bottom: 1.25rem;
    }

    .lead {
        font-size: 1.05rem;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }

    .hero-cta {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        /* Force buttons to be equal width on mobile */
        padding: 1rem 2rem;
        font-size: 1rem;
        text-align: center;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-bottom p:last-child {
        text-align: center;
    }

    .blob {
        max-width: 100vw;
        /* Prevent overflow */
        filter: blur(40px);
        /* Tighter blur for mobile performance */
    }
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    fill: white;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
}