/* ============================================================
   Digital Agent – Landing Page Styles
   ============================================================ */

/* ---- CSS Variables (Color Palette) ---- */
:root {
    --color-primary:        #8487BF;
    --color-primary-dark:   #6c6faa;
    --color-primary-light:  #a5a7d4;
    --color-primary-rgb:    132, 135, 191;

    --color-bg-light:       #F0F1F2;
    --color-bg-white:       #ffffff;
    --color-bg-dark:        #2d2f45;
    --color-bg-darker:      #23253a;

    --color-text:           #333;
    --color-text-muted:     #6c757d;
    --color-text-white:     #ffffff;

    --color-success:        #34c77b;
    --color-border:         #e4e5e9;

    --shadow-sm:            0 2px 12px rgba(0,0,0,.06);
    --shadow-md:            0 8px 30px rgba(0,0,0,.08);
    --shadow-lg:            0 16px 48px rgba(0,0,0,.10);

    --radius-sm:            8px;
    --radius-md:            16px;
    --radius-lg:            24px;

    --font-family:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background: var(--color-bg-white);
    overflow-x: hidden;
}

.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

/* ---- Brand Utility Classes ---- */
.text-primary-brand {
    color: var(--color-primary) !important;
}

.bg-primary-brand {
    background-color: var(--color-primary) !important;
}

/* Badge pill text fix: white text on brand-tinted bg */
.badge.bg-primary-brand.bg-opacity-10 {
    background-color: rgba(var(--color-primary-rgb), .10) !important;
    color: var(--color-bg-white) !important;
}

.bg-light-brand {
    background-color: var(--color-bg-light) !important;
}

.bg-dark-brand {
    background-color: var(--color-bg-dark) !important;
}

.btn-primary-brand {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    font-weight: 600;
    transition: all .3s ease;
}
.btn-primary-brand:hover,
.btn-primary-brand:focus {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--color-primary-rgb), .35);
}

.btn-white {
    background: #fff;
    color: var(--color-primary);
    font-weight: 600;
    border: none;
    transition: all .3s ease;
}
.btn-white:hover {
    background: var(--color-bg-light);
    color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.py-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* ---- Navbar ---- */
.navbar {
    padding: 1rem 0;
    transition: all .3s ease;
}
.navbar.scrolled {
    padding: .5rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: -.5px;
}
.nav-link {
    font-weight: 500;
    color: var(--color-text) !important;
    padding: .5rem 1rem !important;
    transition: color .2s;
    font-size: .95rem;
}
.nav-link:hover {
    color: var(--color-primary) !important;
}

/* ---- Hero Section ---- */
.hero-section {
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 60px;
    background: linear-gradient(135deg, #fff 0%, var(--color-bg-light) 100%);
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), .08) 0%, transparent 70%);
    pointer-events: none;
}

/* Hero illustration */
.hero-illustration {
    position: relative;
    width: 100%;
    height: 400px;
}
.hero-shape {
    width: 240px;
    height: 240px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px auto;
    box-shadow: 0 20px 60px rgba(var(--color-primary-rgb), .25);
    animation: float 6s ease-in-out infinite;
}
.hero-shape i {
    font-size: 5rem;
    color: rgba(255,255,255,.9);
}

.floating-card {
    position: absolute;
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: .85rem;
    animation: float 5s ease-in-out infinite;
}
.floating-card i {
    font-size: 1.2rem;
}
.card-1 { top: 8%;  left: 2%;  animation-delay: 0s; }
.card-2 { top: 42%; right: 0%;  animation-delay: 1.5s; }
.card-3 { bottom: 18%; left: 8%; animation-delay: 3s; }
.card-4 { top: 2%;  right: 10%; animation-delay: .8s; }
.card-5 { bottom: 18%; right: 2%; animation-delay: 2.2s; }
.card-6 { top: 28%; left: 0%;  animation-delay: 3.6s; }
.card-7 { bottom: 12%; left: 40%; animation-delay: 4.2s; }
.card-8 { top: 50%; left: 3%; animation-delay: 1s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* ---- Stats Bar ---- */
.stats-bar {
    background: var(--color-bg-white);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

/* ---- Feature Cards ---- */
.feature-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all .3s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(var(--color-primary-rgb), .3);
}
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: rgba(var(--color-primary-rgb), .1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--color-primary);
    transition: all .3s ease;
}
.feature-card:hover .feature-icon {
    background: var(--color-primary);
    color: #fff;
}

/* ---- Module Cards ---- */
.module-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    text-align: center;
    transition: all .3s ease;
}
.module-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(var(--color-primary-rgb), .3);
}

/* ---- Report Items ---- */
.report-item {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    font-weight: 500;
    font-size: .9rem;
    transition: all .3s ease;
}
.report-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

/* ---- Value Tags ---- */
.value-tag {
    display: inline-flex;
    align-items: center;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    padding: .5rem 1.15rem;
    font-size: .85rem;
    font-weight: 500;
    transition: all .3s ease;
    color: var(--color-text);
}
.value-tag:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), .05);
}

/* ---- Why Us ---- */
.why-card {
    padding: 2rem 1.5rem;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    transition: all .3s ease;
}
.why-card:hover {
    background: rgba(255,255,255,.1);
    transform: translateY(-4px);
}
.why-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(var(--color-primary-rgb), .2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-primary-light);
}

/* ---- Partners – Infinite horizontal slider ---- */
.partner-slider-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.partner-slider {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: scrollPartners 25s linear infinite;
}

.partner-slide {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2rem;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all .3s ease;
}
.partner-slide:hover {
    box-shadow: var(--shadow-sm);
    border-color: rgba(var(--color-primary-rgb), .3);
}

.partner-img {
    height: 48px;
    width: 140px;
    object-fit: contain;
    filter: grayscale(100%) opacity(.55);
    transition: filter .3s ease;
}
.partner-slide:hover .partner-img {
    filter: grayscale(0%) opacity(1);
}

@keyframes scrollPartners {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partner-slider-wrapper:hover .partner-slider {
    animation-play-state: paused;
}

/* ---- CTA Banner ---- */
.cta-banner {
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-primary-dark) 100%);
}

/* ---- Demo Form ---- */
.demo-form-wrapper {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    padding: .75rem 1rem;
    font-size: .95rem;
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), .15);
}

.interest-check {
    background: var(--color-bg-light);
    border-radius: var(--radius-sm);
    padding: .75rem 1rem .75rem 2.5rem;
    transition: all .2s ease;
    border: 1px solid transparent;
}
.interest-check:hover {
    border-color: rgba(var(--color-primary-rgb), .3);
    background: rgba(var(--color-primary-rgb), .06);
}
.interest-check .form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}
.interest-check .form-check-label {
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
}

/* ---- Footer ---- */
.footer-section {
    background: var(--color-bg-darker);
}
.footer-links li {
    margin-bottom: .5rem;
}
.footer-links a {
    color: rgba(255,255,255,.5);
    text-decoration: none;
    font-size: .9rem;
    transition: color .2s;
}
.footer-links a:hover {
    color: var(--color-primary-light);
}
.footer-social {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.5);
    text-decoration: none;
    transition: all .2s;
    font-size: .9rem;
}
.footer-social:hover {
    background: var(--color-primary);
    color: #fff;
}

/* ---- Back to Top ---- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
    box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), .3);
    z-index: 999;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-3px);
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 40px;
    }
    .hero-illustration {
        height: 300px;
    }
    .hero-shape {
        width: 180px;
        height: 180px;
    }
    .hero-shape i {
        font-size: 3.5rem;
    }
    .floating-card {
        padding: 8px 14px;
        font-size: .8rem;
    }
    .py-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    .demo-form-wrapper {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-illustration {
        height: 250px;
    }
    .hero-shape {
        width: 150px;
        height: 150px;
    }
    .hero-shape i {
        font-size: 2.8rem;
    }
    .card-1 { left: 0; }
    .card-2 { right: 0; }
    .card-3 { left: 5%; }
    .display-4 {
        font-size: 2rem;
    }
    .demo-form-wrapper {
        padding: 1.5rem 1rem;
    }
}

/* ---- Scroll Reveal Animations ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.module-card,
.why-card,
.report-item,
.partner-logo {
    animation: fadeInUp .6s ease both;
}
