:root {
    --primary-900: #0f172a;
    --primary-800: #1e293b;
    --primary-700: #1e3a8a;
    --primary-600: #1d4ed8;
    --primary-500: #3b82f6;
    --accent-600: #0f766e;
    --accent-500: #14b8a6;
    --accent-400: #2dd4bf;
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #0f766e 50%, #059669 100%);
    --gradient-hero: linear-gradient(160deg, #0f172a 0%, #1e293b 40%, #1e3a8a 100%);
    --gradient-card: linear-gradient(135deg, #1e3a8a 0%, #0f766e 100%);
    --gradient-cta: linear-gradient(135deg, #1e3a8a 0%, #059669 100%);
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-light: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background: var(--surface);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: transparent;
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.navbar.scrolled .nav-link {
    color: var(--text-primary);
}

.navbar.scrolled .brand-text {
    color: var(--primary-700);
}

.navbar.scrolled .navbar-toggler-icon {
    filter: none;
}

.navbar .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.nav-logo {
    width: 36px;
    height: auto;
    margin-right: 8px;
}

.brand-text {
    font-weight: 800;
    font-size: 1.4rem;
    color: #fff;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #fff;
}

.btn-login {
    background: var(--gradient-primary);
    color: #fff !important;
    border: none;
    padding: 0.5rem 1.5rem !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
    color: #fff !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: var(--gradient-hero);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-500);
    top: -200px;
    right: -100px;
    filter: blur(80px);
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-500);
    bottom: -100px;
    left: -100px;
    filter: blur(60px);
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #6366f1;
    top: 50%;
    left: 50%;
    filter: blur(80px);
}

.shape-4 {
    width: 200px;
    height: 200px;
    background: #059669;
    top: 20%;
    right: 30%;
    filter: blur(60px);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--accent-400);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 0.3px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 520px;
    font-weight: 400;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.btn-get-started {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.4);
}

.btn-get-started:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(30, 58, 138, 0.5);
    color: #fff;
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
    transform: translateY(-3px);
}

.hero-trust-badges {
    display: flex;
    gap: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    font-weight: 500;
}

.trust-item i {
    color: var(--accent-400);
    font-size: 1rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 450px;
}

.hero-dashboard-preview {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-2xl);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
}

.preview-dots span:first-child { background: #ef4444; }
.preview-dots span:nth-child(2) { background: #f59e0b; }
.preview-dots span:nth-child(3) { background: #22c55e; }

.preview-title {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.preview-body {
    height: 200px;
    display: flex;
    align-items: flex-end;
}

.preview-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    width: 100%;
    height: 100%;
    padding-bottom: 1rem;
}

.preview-chart .bar {
    flex: 1;
    background: var(--gradient-primary);
    border-radius: 6px 6px 0 0;
    opacity: 0.8;
    animation: barGrow 1.5s ease-out forwards;
    transform-origin: bottom;
}

@keyframes barGrow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.preview-chart .bar:nth-child(1) { animation-delay: 0.1s; }
.preview-chart .bar:nth-child(2) { animation-delay: 0.2s; }
.preview-chart .bar:nth-child(3) { animation-delay: 0.3s; }
.preview-chart .bar:nth-child(4) { animation-delay: 0.4s; }
.preview-chart .bar:nth-child(5) { animation-delay: 0.5s; }
.preview-chart .bar:nth-child(6) { animation-delay: 0.6s; }
.preview-chart .bar:nth-child(7) { animation-delay: 0.7s; }

/* Floating Cards */
.floating-card {
    position: absolute;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
    z-index: 3;
}

.floating-card .card-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}

.floating-card .card-info {
    display: flex;
    flex-direction: column;
}

.floating-card .card-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.floating-card .card-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

.card-1 {
    top: 0;
    right: 0;
    animation-delay: 0s;
}

.card-1 .card-icon {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
}

.card-2 {
    bottom: 60px;
    left: -20px;
    animation-delay: 2s;
}

.card-2 .card-icon {
    background: linear-gradient(135deg, #14b8a6, #059669);
}

.card-3 {
    top: 80px;
    left: -30px;
    animation-delay: 4s;
}

.card-3 .card-icon {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll-indicator a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: all 0.3s ease;
    animation: bounce 2s ease-in-out infinite;
}

.hero-scroll-indicator a:hover {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Section Common Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.08), rgba(15, 118, 110, 0.08));
    color: var(--primary-700);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: var(--surface);
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon.blue { background: linear-gradient(135deg, #3b82f6, #6366f1); }
.feature-icon.green { background: linear-gradient(135deg, #14b8a6, #059669); }
.feature-icon.purple { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.feature-icon.orange { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.feature-icon.teal { background: linear-gradient(135deg, #0d9488, #06b6d4); }
.feature-icon.red { background: linear-gradient(135deg, #ef4444, #ec4899); }

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* How It Works Section */
.how-it-works-section {
    padding: 6rem 0;
    background: var(--surface-alt);
}

.steps-row {
    position: relative;
}

.step-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    height: 100%;
    position: relative;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.step-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.step-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.step-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.25);
    transition: transform 0.3s ease;
}

.step-card:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
}

.step-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.step-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Stats Section */
.stats-section {
    padding: 5rem 0;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.stat-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.stat-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--accent-400);
    margin: 0 auto 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

.cta-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cta-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
}

.cta-shape-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-500);
    top: -200px;
    right: -100px;
    filter: blur(80px);
}

.cta-shape-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-500);
    bottom: -150px;
    left: -100px;
    filter: blur(60px);
}

.cta-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.35);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(30, 58, 138, 0.45);
    color: #fff;
}

/* Footer */
.footer {
    background: var(--primary-900);
    padding: 3rem 0 1.5rem;
    color: rgba(255,255,255,0.6);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    width: 32px;
    height: auto;
}

.footer-brand-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-visual {
        display: none;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .cta-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding-top: 70px;
    }

    .hero-title {
        font-size: 2.25rem;
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta-group {
        flex-direction: column;
    }

    .hero-cta-group .btn {
        width: 100%;
        text-align: center;
    }

    .hero-trust-badges {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .section-title {
        font-size: 1.85rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .features-section,
    .how-it-works-section,
    .cta-section {
        padding: 4rem 0;
    }

    .stats-section {
        padding: 3rem 0;
    }

    .stat-number {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 1.85rem;
    }

    .footer-links {
        justify-content: flex-start;
        margin-top: 1rem;
    }

    .step-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.85rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }
}
