/* Premium Landing Page Design - Fintech Elite Style */

:root {
    --primary: #4F6AF6;
    --primary-hover: #3D53D4;
    --secondary: #6C63FF;
    --hero-bg: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
    --background: #F7F8FC;
    --white: #FFFFFF;
    --border: #E9EDF5;
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;
    --success: #10B981;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --shadow-premium: 0 20px 50px -12px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-primary);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-poppins {
    font-family: 'Poppins', sans-serif;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Navbar */
nav {
    height: 90px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    height: 70px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-text {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

nav:not(.scrolled) .logo-text {
    color: white;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.2s;
}

nav:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.7);
}

nav:not(.scrolled) .nav-link:hover {
    color: white;
}

.nav-link:hover {
    color: var(--primary);
}

.btn {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #4F6AF6 0%, #6C63FF 100%);
    color: white;
    box-shadow: 0 8px 30px rgba(79, 106, 246, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(79, 106, 246, 0.45);
}

.btn-ghost {
    color: var(--text-primary);
    font-weight: 800;
}

.btn-secondary-hero {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-secondary-hero:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
}

nav:not(.scrolled) .btn-ghost {
    color: white;
}

/* Hero Section */
.hero {
    padding: 220px 0 160px;
    background: var(--hero-bg);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--background) 0%, transparent 100%);
    z-index: 5;
}

.hero-badge {
    padding: 8px 18px;
    background: rgba(79, 106, 246, 0.1);
    border: 1px solid rgba(79, 106, 246, 0.2);
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    color: #818CF8;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: 72px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.05em;
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 21px;
    color: rgba(255, 255, 255, 0.5);
    max-width: 650px;
    margin: 0 auto 48px;
    line-height: 1.6;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 100px;
    position: relative;
    z-index: 10;
}

.hero-visual {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    transform: perspective(1000px) rotateX(5deg);
}

.hero-main-card {
    background: #FFFFFF;
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.15);
    z-index: 2;
    animation: float 6s ease-in-out infinite;
    border: 1px solid var(--border);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(1deg);
    }
}

/* Trusted By */
.trusted-by {
    padding: 80px 0;
    background: var(--background);
}

.trusted-title {
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.logo-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    opacity: 1;
}

.logo-strip span {
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s;
    cursor: default;
}

.logo-strip span:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Features */
.section {
    padding: 140px 0;
}

.section-tag {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 14px;
    display: block;
    margin-bottom: 16px;
}

.section h2 {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 24px;
}

.section p.intro {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 64px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: #F3F4FF;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

/* How it Works */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 80px;
    position: relative;
}

.workflow-grid::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    z-index: 0;
}

.workflow-step {
    position: relative;
    text-align: center;
}

.step-num {
    width: 48px;
    height: 48px;
    background: var(--white);
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    margin: 0 auto 24px;
    position: relative;
    z-index: 1;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: center;
}

.pricing-card {
    background: white;
    padding: 48px;
    border-radius: 32px;
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.3s;
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-premium);
}

.price {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 8px;
}

.price span {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Footer */
footer {
    background: #0F172A;
    color: white;
    padding: 120px 0 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 28px;
    color: #F8FAFC;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: #64748B;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-links a:hover {
    color: white;
    transform: translateX(4px);
    display: inline-block;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 64px;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (max-width: 640px) {
    .container {
        padding: 0 24px;
    }

    /* Hero */
    .hero {
        padding: 140px 0 80px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 6px 14px;
        margin-bottom: 24px;
    }

    .hero h1 {
        font-size: 40px;
        line-height: 1.1;
        letter-spacing: -0.04em;
    }

    .hero p {
        font-size: 17px;
        color: rgba(255, 255, 255, 0.6);
        margin-bottom: 32px;
        padding: 0;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 60px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 16px;
        font-size: 15px;
    }

    .hero-visual {
        transform: none;
        max-width: 100%;
    }

    .hero-main-card {
        padding: 24px;
        border-radius: 20px;
    }

    .floating-card {
        display: none;
    }

    /* Section Headers */
    .section {
        padding: 80px 0;
    }

    .section h2 {
        font-size: 30px;
        line-height: 1.2;
    }

    .section p.intro {
        font-size: 16px;
        margin-bottom: 40px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 32px;
    }

    .feature-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
    }

    /* Image-Text splits & Stats & Testimonials */
    .section-split .container>div,
    .section-stats .container>div,
    .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .section-stats .container>div:first-child div[style*="font-size: 48px"] {
        font-size: 36px !important;
    }

    /* Ensure text comes before image on mobile in split sections */
    .section-split .split-text {
        order: -1 !important;
    }

    .section-split .split-image {
        order: 1 !important;
        padding: 24px !important;
    }

    /* Workflow */
    .workflow-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .workflow-grid::before {
        left: 20px;
        top: 0;
        bottom: 0;
        width: 1.5px;
        height: 100%;
        background: linear-gradient(180deg, transparent, var(--border), transparent);
    }

    .workflow-step {
        text-align: left;
        display: flex;
        gap: 20px;
        align-items: flex-start;
    }

    .step-num {
        margin: 0;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
    }

    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pricing-card.featured {
        transform: none;
        order: -1;
    }

    .pricing-card {
        padding: 40px 32px;
    }

    .pricing-card .btn {
        width: 100%;
        justify-content: center;
    }

    /* Final CTA Overlapping Card */
    .cta-overlap-card {
        margin-bottom: -60px !important;
        border-radius: 32px !important;
        padding: 60px 24px !important;
    }

    .cta-overlap-card h2 {
        font-size: 32px !important;
    }

    .cta-overlap-card .btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Footer */
    footer {
        padding-top: 120px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-col {
        padding-right: 0 !important;
    }

    .nav-links {
        display: none;
    }
}