:root {
    --primary: #6c63ff;
    --primary-dark: #5a52e0;
    --secondary: #a855f7;
    --dark: #0f0c29;
    --dark2: #1a1740;
    --gray: #6c757d;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* ── Navbar ── */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s;
}

.navbar.scrolled {
    background: rgba(15, 12, 41, 0.97) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 0.6rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
}

.navbar-brand .logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.4rem 0.9rem !important;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
}

.btn-nav-login {
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #fff !important;
    border-radius: 8px;
    padding: 0.4rem 1.1rem !important;
}

.btn-nav-login:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-nav-start {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: #fff !important;
    border-radius: 8px;
    padding: 0.4rem 1.2rem !important;
    font-weight: 600;
}

.btn-nav-start:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ── Services dropdown ── */
.nav-services-menu {
    background: rgba(20, 17, 48, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 0.6rem;
    min-width: 230px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    margin-top: 0.5rem;
}

.nav-services-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    border-radius: 8px;
    padding: 0.5rem 0.9rem;
    transition: all 0.15s;
}

.nav-services-menu .dropdown-item:hover {
    background: rgba(108, 99, 255, 0.18);
    color: #fff;
}

.nav-services-menu .dropdown-header {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.4rem 0.9rem 0.2rem;
}

.nav-services-menu .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 0.4rem 0;
}

@media (min-width: 992px) {
    .nav-item.dropdown:hover .nav-services-menu {
        display: block;
    }
}

/* ── Buttons ── */
.btn-primary-grad {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: #fff;
    border-radius: 10px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary-grad:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.45);
    color: #fff;
}

.btn-outline-light-grad {
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    border-radius: 10px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s;
    background: transparent;
}

.btn-outline-light-grad:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ── Section headings ── */
.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1a1d27;
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.05rem;
    max-width: 560px;
}

/* ── Cards ── */
.feature-card {
    border-radius: 18px;
    border: 1px solid #eef0f7;
    background: #fff;
    padding: 2rem;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(108, 99, 255, 0.12);
    border-color: #ddd7ff;
}

.icon-grad {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.api-card {
    border-radius: 20px;
    overflow: hidden;
    border: none;
    transition: all 0.3s;
    cursor: pointer;
}

.api-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.api-card .card-body {
    padding: 2rem;
}

/* ── Stats ── */
.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
}

/* ── Footer ── */
footer {
    background: var(--dark2);
    color: rgba(255, 255, 255, 0.7);
}

footer h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
    display: block;
    margin-bottom: 0.5rem;
}

footer a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.2rem 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-brand .logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ── Decorative vectors (corporate look) ── */
.deco {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.deco-dots {
    width: 170px;
    height: 170px;
    background-image: radial-gradient(rgba(108, 99, 255, 0.45) 2px, transparent 2px);
    background-size: 18px 18px;
}

.deco-dots-light {
    background-image: radial-gradient(rgba(255, 255, 255, 0.16) 2px, transparent 2px);
}

.deco-ring {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 16px solid rgba(108, 99, 255, 0.14);
}

.deco-ring-light {
    border-color: rgba(255, 255, 255, 0.07);
}

.deco-plus {
    font-size: 1.6rem;
    font-weight: 800;
    color: rgba(108, 99, 255, 0.3);
    letter-spacing: 14px;
    line-height: 1.9;
}

.deco-plus-light {
    color: rgba(255, 255, 255, 0.12);
}

.deco-grid-svg {
    opacity: 0.5;
}

@keyframes floatXY {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

@keyframes spinSlow {
    to {
        transform: rotate(360deg);
    }
}

.deco-float {
    animation: floatXY 6s ease-in-out infinite;
}

.deco-float2 {
    animation: floatXY 8s ease-in-out infinite 1.5s;
}

.deco-spin {
    animation: spinSlow 30s linear infinite;
}

/* ── Misc ── */
.badge-pill {
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 14px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.divider-wave {
    overflow: hidden;
    line-height: 0;
}

.divider-wave svg {
    display: block;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.7rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}