:root {
    --primary: #0D6EFD;
    --primary-dark: #0a58ca;
    --accent: #6C5CE7;
    --accent-light: #a29bfe;
    --bg-dark: #0B0B1A;
    --bg-card: #ffffff;
    --text-primary: #1A1A2E;
    --text-secondary: #4A4A6A;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-card: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 30px 60px -12px rgba(108, 92, 231, 0.25);
}


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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background-color: #f8f9fc;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


.text-accent {
    color: var(--accent) !important;
}

.bg-accent-soft {
    background: linear-gradient(135deg, #f0edff 0%, #e8e3ff 100%);
}

.bg-primary-soft {
    background-color: rgba(13, 110, 253, 0.08);
    color: var(--primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border: none;
    transition: var(--transition-smooth);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(13, 110, 253, 0.35);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
}

.btn-outline-secondary {
    border-color: #d0d5dd;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    font-weight: 500;
}

.btn-outline-secondary:hover {
    background: #f0f2f5;
    border-color: #b0b8c4;
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.25);
}


.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.navbar-brand .text-accent {
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary) !important;
    padding: 0.5rem 1.2rem !important;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 1.2rem;
    right: 1.2rem;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

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


.hero-section {
    min-height: 90vh;
    padding: 6rem 0 4rem;
    background: linear-gradient(160deg, #ffffff 0%, #f5f7ff 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section h1 {
    line-height: 1.1;
}


.feature-card {
    background: var(--bg-card);
    border-radius: 20px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.02) !important;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(108, 92, 231, 0.15) !important;
}

.icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(108, 92, 231, 0.08));
    color: var(--accent);
    transition: var(--transition-smooth);
}

.feature-card:hover .icon-circle {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    transform: scale(1.05);
}


.card {
    border-radius: 20px;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.02) !important;
    background: var(--bg-card);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}


.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


.animate-on-scroll:nth-child(2) {
    transition-delay: 0.1s;
}

.animate-on-scroll:nth-child(3) {
    transition-delay: 0.2s;
}

.animate-on-scroll:nth-child(4) {
    transition-delay: 0.3s;
}

.animate-on-scroll:nth-child(5) {
    transition-delay: 0.4s;
}

.animate-on-scroll:nth-child(6) {
    transition-delay: 0.5s;
}


#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(13, 110, 253, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    z-index: 1050;
    cursor: pointer;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(13, 110, 253, 0.45);
}


.form-control {
    border-radius: 50px !important;
    padding: 0.75rem 1.5rem;
    border-color: #e2e8f0;
    background: #ffffff;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
}


@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        padding: 4rem 0;
    }

    .hero-section h1 {
        font-size: calc(2.2rem + 1.5vw);
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .nav-link::after {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 2rem 0 3rem;
        text-align: center;
    }

    .hero-section .d-flex {
        justify-content: center;
    }

    .hero-section .d-flex.align-items-center.gap-4 {
        justify-content: center;
    }

    .feature-card {
        padding: 1.5rem !important;
    }

    #backToTop {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        bottom: 1.2rem;
        right: 1.2rem;
    }

    .display-5 {
        font-size: calc(1.8rem + 0.5vw);
    }

    .display-6 {
        font-size: calc(1.4rem + 0.5vw);
    }
}

@media (max-width: 575.98px) {
    .btn-lg {
        font-size: 1rem;
        padding: 0.6rem 1.8rem;
    }

    .hero-section .btn-lg {
        width: 100%;
        justify-content: center;
    }

    .hero-section .d-flex.flex-wrap {
        flex-direction: column;
        width: 100%;
    }

    .hero-section .d-flex.flex-wrap .btn {
        width: 100%;
    }
}


img {
    max-width: 100%;
    height: auto;
    display: block;
}