/* Global Reset & Typography */
:root {
    --bg-color: #f8fafc;
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #059669;
    --text-color: #0f172a;
    --text-muted: #475569;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 1);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Effects */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob-1 {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, rgba(248,250,252,0) 70%);
    border-radius: 50%;
    filter: blur(60px);
}

.blob-2 {
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, rgba(248,250,252,0) 70%);
    border-radius: 50%;
    filter: blur(80px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

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

.nav-actions .btn {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-login {
    background: transparent;
    color: var(--text-color);
    border: 1px solid #cbd5e1;
}

.btn-login:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    margin-left: 1rem;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 5% 4rem;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.hero-title .highlight {
    background: linear-gradient(to right, var(--primary-color), #3b82f6, var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-desc {
    font-size: 1.35rem;
    color: #334155;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-outline {
    background: white;
    color: var(--text-color);
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

/* Dashboard Mockup Showcase */
.showcase-wrapper {
    margin-top: 4rem;
    perspective: 1000px;
}

.showcase-img {
    width: 100%;
    max-width: 900px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transform: rotateX(10deg);
    transition: transform 0.5s ease;
}

.showcase-img:hover {
    transform: rotateX(0deg);
}

/* Features Section */
.features {
    padding: 6rem 5%;
    background: linear-gradient(to bottom, transparent, rgba(241, 245, 249, 0.8));
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #cbd5e1;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Steps Section */
.steps {
    padding: 6rem 5%;
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.step-item {
    flex: 1;
    min-width: 250px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.1);
}

.step-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 3rem 5%;
    text-align: center;
    color: var(--text-muted);
}

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

@media (max-width: 768px) {
    /* Navbar Mobile */
    .navbar {
        padding: 0.8rem 4%;
        gap: 0;
    }
    .nav-brand {
        font-size: 1.1rem;
    }
    .nav-links {
        display: none;
    }
    .nav-actions {
        gap: 0.5rem;
        display: flex;
        align-items: center;
    }
    .hide-mobile {
        display: none !important;
    }
    .nav-actions .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        margin: 0;
        white-space: nowrap;
    }

    /* Hero Section Mobile */
    .hero {
        padding: 5.5rem 6% 2rem;
        min-height: auto;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 1rem;
    }
    .hero-title {
        font-size: 1.7rem;
        line-height: 1.3;
        letter-spacing: -0.01em;
        margin-bottom: 1rem;
    }
    .hero-desc {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    .hero-benefits {
        padding: 0 !important;
        margin-bottom: 1.5rem !important;
    }
    .hero-benefits li {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .btn-large {
        width: 100%;
        font-size: 0.95rem;
        padding: 0.9rem 1rem;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        line-height: 1.4;
        text-align: center;
    }

    /* Showcase Mobile */
    .showcase-wrapper {
        perspective: none;
        margin-top: 1.5rem;
    }
    .showcase-img {
        transform: none;
        border-radius: 8px;
    }

    /* Features & Steps Mobile */
    .features, .steps {
        padding: 2.5rem 5%;
    }
    .section-header {
        margin-bottom: 2rem;
    }
    .section-title {
        font-size: 1.4rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .feature-card {
        padding: 1.2rem;
    }
    .feature-title {
        font-size: 1.15rem;
    }
    .feature-desc {
        font-size: 1rem;
    }

    /* Steps Mobile */
    .steps-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    .step-item {
        width: 100%;
    }

    /* Testimonials Mobile */
    .steps .feature-card {
        padding: 1.2rem;
    }
    .steps .feature-card p {
        font-size: 1rem !important;
    }

    /* Risk Reversal Mobile */
    .features[style*="max-width: 800px"] {
        padding: 2rem 6% !important;
    }

    /* Footer CTA Mobile */
    section[style*="padding: 6rem 5%"] {
        padding: 2.5rem 6% !important;
    }
    section[style*="padding: 6rem 5%"] h2 {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
    }
    section[style*="padding: 6rem 5%"] p {
        font-size: 0.95rem !important;
    }
    section[style*="padding: 6rem 5%"] .btn-large,
    section[style*="padding: 6rem 5%"] .btn-outline {
        padding: 0.9rem 1.5rem !important;
        font-size: 0.95rem !important;
    }

    /* Footer Mobile */
    footer {
        padding: 1.5rem 5% !important;
    }
    footer p {
        font-size: 0.8rem !important;
    }
}
