@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #4338ca;
    --primary-light: #6366f1;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --text-dark: #1e293b;
    --text-slate: #475569;
    --accent: #10b981;

    /* Exact Dashboard Colors */
    --clr-active: #e0f2fe;
    --clr-inactive: #ffedd5;
    --clr-outstanding-in: #f3e8ff;
    --clr-profit: #d1fae5;
    --clr-expense: #fee2e2;

    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: #fff;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Advanced Background Blobs */
.blob-bg {
    position: fixed;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(67, 56, 202, 0.05) 0%, transparent 70%);
    z-index: -1;
    filter: blur(60px);
}

.blob-bg-2 {
    position: fixed;
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    z-index: -1;
    filter: blur(60px);
}

/* Nav */
nav {
    padding: 1.2rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    padding: 0.8rem 8%;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 800;
    font-size: 1.2rem;
}

.logo-area img {
    height: 55px;
    transition: 0.3s;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-slate);
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary);
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-login {
    background: #663399;
    color: white;
    padding: 0.6rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
    box-shadow: 0 4px 12px rgba(102, 51, 153, 0.2);
    font-size: 0.9rem;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.desktop-only {
    display: inline-flex !important;
}

.mobile-only {
    display: none !important;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-login:hover {
    background: #572b82;
    box-shadow: 0 6px 15px rgba(102, 51, 153, 0.3);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

@media (max-width: 968px) {
    .mobile-toggle {
        display: block;
    }
}

/* Hero */
.hero {
    padding: 180px 8% 100px;
    text-align: center;
    position: relative;
}

.badge-v4 {
    display: inline-block;
    background: #eef2ff;
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 2rem;
    border: 1px solid #e0e7ff;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
    color: var(--text-dark);
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-slate);
    max-width: 800px;
    margin: 0 auto 4rem;
}

/* Advanced Dashboard Frame */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.dashboard-shadow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 60%;
    background: var(--primary);
    filter: blur(100px);
    opacity: 0.1;
    z-index: -1;
}

.main-dashboard {
    border-radius: 24px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    background: white;
    padding: 10px;
}

.main-dashboard img {
    width: 100%;
    border-radius: 14px;
    display: block;
}

/* Stats Counter */
.stats-bar {
    padding: 4rem 8%;
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    background: #fff;
}

.stat-card {
    text-align: center;
}

.stat-card h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-slate);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Ticker Bar */
.ticker-wrap {
    background: #f8fafc;
    padding: 1.5rem 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    overflow: hidden;
}

.ticker {
    display: flex;
    gap: 4rem;
    width: fit-content;
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ticker span {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    white-space: nowrap;
}

/* Features Grid */
.features {
    padding: 120px 8%;
}

.section-head {
    text-align: center;
    margin-bottom: 80px;
}

.section-head h2 {
    font-size: 3rem;
    font-weight: 800;
}

.f-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.f-box {
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid #f1f5f9;
    background: #fff;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.f-box:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.f-box i {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    transition: 0.3s;
}

.f-box.blue i {
    background: var(--clr-active);
    color: #0369a1;
}

.f-box.profit i {
    background: var(--clr-profit);
    color: #047857;
}

.f-box.orange i {
    background: var(--clr-inactive);
    color: #c2410c;
}

.f-box.purple i {
    background: var(--clr-outstanding-in);
    color: #7e22ce;
}

.f-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.f-box p {
    color: var(--text-slate);
    font-size: 1rem;
    line-height: 1.7;
}

/* Uday Group 'Beyond Premium' Icon Dock */
.support-floating {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-right: 15px;
}

.support-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-decoration: none !important;
    /* Force remove blue link color */
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.support-icon-box {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    /* High-end Squircle */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: -10px 15px 30px rgba(0, 0, 0, 0.25);
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.support-icon-box i {
    width: 32px;
    height: 32px;
    transition: 0.4s;
    z-index: 3;
    color: white !important;
}

/* Beyond Premium Gradients */
.support-icon-box.wa {
    background: linear-gradient(135deg, #075e54, #128c7e, #25d366);
}

.support-icon-box.call {
    background: linear-gradient(135deg, #b45309, #d97706, #fbbf24);
}

.support-icon-box.mail {
    background: linear-gradient(135deg, #1e293b, #1e3a8a, #3b82f6);
}

/* Glass Shine Overlay */
.support-icon-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(45deg);
    transition: 0.8s;
    z-index: 2;
}

/* Label: Hidden initially, reveals during Pill expansion */
.support-label {
    color: white !important;
    font-size: 0;
    font-weight: 800;
    opacity: 0;
    transition: 0.4s;
    white-space: nowrap;
    margin-left: 0;
}

/* Transformation: Squircle to Pill */
.support-item:hover {
    transform: translateX(-10px);
}

.support-item:hover .support-icon-box {
    width: 180px;
    /* Expands to show text */
    border-radius: 35px;
    /* Becomes a pill */
    justify-content: flex-start;
    padding-left: 20px;
}

.support-item:hover .support-label {
    font-size: 1rem;
    margin-left: 15px;
    opacity: 1;
}

.support-item:hover .support-icon-box::before {
    left: 100%;
}

.support-item:hover i {
    transform: scale(1.1) rotate(15deg);
}

/* Premium Floating Breath */
@keyframes support-float {

    0%,
    100% {
        transform: translateY(-50%) translateX(0);
    }

    50% {
        transform: translateY(-50%) translateX(-5px);
    }
}

.support-floating {
    animation: support-float 4s ease-in-out infinite;
}

@media (max-width: 768px) {
    .support-floating {
        padding-right: 0;
        gap: 10px;
    }

    .support-icon-box {
        width: 55px;
        height: 55px;
        border-radius: 12px 0 0 12px;
    }

    .support-item:hover .support-icon-box {
        width: 55px;
        padding-left: 0;
        justify-content: center;
    }

    .support-label {
        display: none;
    }
}

/* Footer */
footer {
    padding: 100px 8% 50px;
    background: #020617;
    color: white;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col h4 {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--primary-light);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 1rem;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    transition: 0.2s;
}

.footer-col a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 80px auto 0;
    padding-top: 3rem;
    border-top: 1px solid #1e293b;
    text-align: center;
}

@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .btn-login {
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }

    .btn-login i {
        display: none;
    }

    /* Mobile Nav Styles */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        padding: 100px 8% 2rem;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin-bottom: 2rem;
    }

    .nav-links a {
        font-size: 1.2rem;
        color: var(--text-dark);
    }

    .nav-links .btn-login {
        display: flex;
        width: 100%;
        margin-top: 1rem;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }
}

@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        gap: 2rem;
    }
}