/* Base */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #111827;
}

/* Color tokens */

:root {
    --primary: #553D9C;
    --primary-light: #6D4DB8;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-900: #111827;
}

/* Generic */

.primary-text {
    color: var(--primary);
}

.primary-bg {
    background-color: var(--primary);
}

/* Header / navbar */

.header-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.header-glass.scrolled {
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.navbar {
    min-height: 64px;
}

.brand-text {
    color: var(--primary);
    font-size: 1.4rem;
}

.brand-text:hover {
    color: var(--primary);
}

.nav-link-custom {
    color: #4B5563 !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link-custom:hover,
.nav-link-custom:focus {
    color: var(--primary) !important;
}

/* Hero */

.hero-section {
    padding-top: 7rem;
    padding-bottom: 4rem;
   background:
        /* Left bottom purple fading toward center */
        radial-gradient(
            circle at 0% 100%,                        /* bottom-left */
            rgba(175, 140, 255, 0.55) 0%,             /* strong at origin */
            rgba(175, 140, 255, 0.35) 20%,
            rgba(175, 140, 255, 0.15) 40%,
            rgba(175, 140, 255, 0.05) 60%,
            rgba(255, 255, 255, 1) 100%               /* fully fades at center */
        ),

        /* Right bottom purple fading toward center */
        radial-gradient(
            circle at 100% 100%,                      /* bottom-right */
            rgba(175, 140, 255, 0.55) 0%,             /* strong at origin */
            rgba(175, 140, 255, 0.35) 20%,
            rgba(175, 140, 255, 0.15) 40%,
            rgba(175, 140, 255, 0.05) 60%,
            rgba(255, 255, 255, 1) 100%               /* fully fades at center */
        ),

        #f6f6f9; 
}

.hero-title {
    font-size: clamp(2.2rem, 3vw + 1.5rem, 3.5rem);
    line-height: 1.15;
}

.hero-btn {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 18px 45px rgba(85, 61, 156, 0.45);
}

.hero-btn:hover {
    background-color: #472f8a;
    border-color: #472f8a;
    box-shadow: 0 24px 55px rgba(85, 61, 156, 0.6);
    transform: translateY(-2px);
}

/* Dashboard card in hero */

.dashboard-card {
    position: relative;
}

.dashboard-card .card {
    border-radius: 1.5rem;
}

.dashboard-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(30px);
    opacity: 0.35;
}

.dashboard-glow-top {
    width: 7rem;
    height: 7rem;
    background: #E9D5FF;
    top: -1.5rem;
    right: -1.5rem;
}

.dashboard-glow-bottom {
    width: 7rem;
    height: 7rem;
    background: #BFDBFE;
    bottom: -1.5rem;
    left: -1.5rem;
}

/* Stat cards */

.stat-card {
    border-radius: 1.1rem;
    padding: 1rem 1.1rem;
    background: #EFF6FF;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-card i {
    width: 32px;
    height: 32px;
}

.stat-blue {
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
}

.stat-green {
    background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
}

.stat-purple {
    background: linear-gradient(135deg, #F5F3FF, #EDE9FE);
    color: var(--primary);
}

.stat-orange {
    background: linear-gradient(135deg, #FFF7ED, #FFEDD5);
}

/* Sections */

.section-default {
    padding: 4rem 0;
}

.section-gradient {
    background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
}

.section-title {
    font-size: clamp(2rem, 2.4vw + 1rem, 2.8rem);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    max-width: 720px;
    margin: 0 auto;
    color: var(--gray-600);
    font-size: 20px;
}

/* Workflow */

.workflow-wrapper {
    position: relative;
}

.workflow-step {
    padding-top: 2.75rem;
}

.workflow-icon {
    width: 80px;
    height: 80px;
    border-radius: 999px;
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.12);
    margin: 0 auto 0.5rem;
    transition: transform 0.25s ease;
}

.workflow-icon i {
    color: var(--primary);
    width: 36px;
    height: 36px;
}

.workflow-step:hover .workflow-icon {
    transform: scale(1.08);
}

.workflow-badge {
    position: absolute;
    top: 0.9rem;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.workflow-title {
    margin-top: 1.5rem;
    margin-bottom: 0.25rem;
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
}

.workflow-text {
    font-size: 18px;
    color: var(--gray-600);
}

/* Cards & bullets */

.card-hover {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.1);
}

.icon-badge {
    width: 64px;
    height: 64px;
    border-radius: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-badge i {
    width: 32px;
    height: 32px;
}

.bullet-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    margin-right: 0.6rem;
    margin-top: 0.35rem;
    flex-shrink: 0;
}

/* Features */

.feature-card {
    background: #ffffff;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    background: #553D9C15;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    color: var(--primary);
    width: 28px;
    height: 28px;
}

/* Feature stats bar */

.feature-stats {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #ffffff;
}

.feature-stats i {
    width: 40px;
    height: 40px;
}

/* Smart city cards */

.simple-card {
    background-color: #ffffff;
}

.simple-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.9rem;
    background: #553D9C15;
    display: flex;
    align-items: center;
    justify-content: center;
}

.simple-icon i {
    color: var(--primary);
    width: 24px;
    height: 24px;
}

/* Tech & integrations */

.tech-card {
    background: radial-gradient(circle at top left, #4C1D95, #111827);
    color: #ffffff;
}

.tech-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.tech-item i {
    width: 40px;
    height: 40px;
}

/* Testimonials */

.testimonial-card {
    background-color: #ffffff;
}

.quote-icon {
    position: absolute;
    top: 1.2rem;
    right: 1.4rem;
    opacity: 0.08;
}

.quote-icon i {
    width: 40px;
    height: 40px;
    color: var(--primary);
}

.avatar-icon {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: #553D9C15;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contact */

.contact-wrapper {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.contact-left {
    background: transparent;
}

.contact-left i {
    width: 24px;
    height: 24px;
}

.text-white-90 {
    color: rgba(255, 255, 255, 0.9) !important;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.contact-form .form-control,
.contact-form .form-select {
    border-radius: 0.75rem;
    border-color: #D1D5DB;
    padding: 0.7rem 0.9rem;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(85, 61, 156, 0.25);
    border-color: var(--primary);
}

.contact-form button.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    border-radius: 0.85rem;
    padding: 0.9rem 1.25rem;
    box-shadow: 0 14px 35px rgba(85, 61, 156, 0.45);
}

.contact-form button.btn-primary:hover {
    background-color: #472f8a;
    border-color: #472f8a;
    transform: translateY(-2px);
}

/* Success state */

.success-icon {
    width: 56px;
    height: 56px;
    color: var(--primary);
}

/* Footer */

.footer-main {
    background: #111827;
    color: #ffffff;
}

.footer-link {
    color: #9CA3AF;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #ffffff;
}

.social-circle {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #111827;
    border: 1px solid #1F2937;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E5E7EB;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.social-circle:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

/* Animations (kept from your original) */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-in forwards;
}

.animate-slide-in {
    animation: slideIn 0.8s ease-out forwards;
}

/* Responsive tweaks */

@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 6rem;
        padding-bottom: 3.5rem;
    }
}

.feature-card {
    border-radius: 1.25rem; /* matches rounded-4 */
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #ffffff;
    box-shadow: none;
    transition:
        transform 180ms ease-out,
        box-shadow 180ms ease-out,
        border-color 180ms ease-out,
        background-color 180ms ease-out;
}

/* Hover state */
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0px 28px 85px rgba(85, 61, 156, 0.28);
    border-color: #553D9C;
    background: radial-gradient(circle at top left, #f5f3ff, #ffffff);
}

/* Optional: icon accent on hover */
.feature-card .feature-icon i {
    transition: color 180ms ease-out, transform 180ms ease-out;
    color: #553D9C;
}

.feature-card:hover .feature-icon i {
    transform: translateY(-2px);
    color: #3c2b76;
}
.stat-icon {
    width: 36px;
    height: 36px;
    stroke-width: 2;
}

.small{
    font-size: 18px !important ;
}

.simple-card {
    border-radius: 1.25rem; /* matches rounded-4 */
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #ffffff;
    box-shadow: none;
    transition:
        transform 180ms ease-out,
        box-shadow 180ms ease-out,
        border-color 180ms ease-out,
        background-color 180ms ease-out;
}

/* Hover state */
.simple-card:hover {
    transform: translateY(-6px);
    box-shadow: 0px 28px 85px rgba(85, 61, 156, 0.28);
    border-color: #553D9C;
    background: radial-gradient(circle at top left, #f5f3ff, #ffffff);
}

/* Optional: icon accent on hover */
.simple-card .simple-icon i {
    transition: color 180ms ease-out, transform 180ms ease-out;
    color: #553D9C;
}

.simple-card:hover .simple-icon i {
    transform: translateY(-2px);
    color: #3c2b76;
}

#dynamicHeroText {
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity .45s ease, transform .45s ease;
}
 
#dynamicHeroText.active {
    opacity: 1;
    transform: translateY(0);
}