:root{
    --bg:#f8fbff;
    --card:rgba(255,255,255,.78);
    --text:#0f172a;
    --muted:#64748b;
    --primary:#2563eb;
    --primary-dark:#1d4ed8;
    --cyan:#06b6d4;
    --border:rgba(148,163,184,.22);
    --shadow:0 20px 70px rgba(15,23,42,.10);
    --dark:#020617;
}

body.dark{
    --bg:#020617;
    --card:rgba(15,23,42,.72);
    --text:#f8fafc;
    --muted:#94a3b8;
    --border:rgba(148,163,184,.18);
    --shadow:0 20px 80px rgba(0,0,0,.45);
}

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:Inter,Segoe UI,Arial,sans-serif;
    background:
        radial-gradient(circle at top left,rgba(37,99,235,.15),transparent 34%),
        radial-gradient(circle at top right,rgba(6,182,212,.14),transparent 28%),
        var(--bg);
    color:var(--text);
    overflow-x:hidden;
}

a{
    text-decoration:none;
    color:inherit;
}

.container{
    width:min(1180px,92%);
    margin:auto;
}

.bg-orb{
    position:fixed;
    width:420px;
    height:420px;
    border-radius:50%;
    filter:blur(90px);
    opacity:.28;
    z-index:-1;
}

.orb-one{
    top:80px;
    left:-120px;
    background:#2563eb;
}

.orb-two{
    right:-120px;
    bottom:80px;
    background:#06b6d4;
}

/* NAVBAR */

.navbar{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:1000;
    backdrop-filter:blur(18px);
    background:rgba(248,251,255,.74);
    border-bottom:1px solid var(--border);
}

body.dark .navbar{
    background:rgba(2,6,23,.72);
}

.nav-inner{
    height:82px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.brand{
    display:flex;
    align-items:center;
    gap:12px;
    font-size:23px;
    font-weight:800;
}

.brand-icon{
    width:42px;
    height:42px;
    border-radius:14px;
    display:grid;
    place-items:center;
    color:white;
    background:linear-gradient(135deg,#2563eb,#06b6d4);
    box-shadow:0 12px 30px rgba(37,99,235,.35);
    font-weight:900;
}

.nav-menu{
    display:flex;
    align-items:center;
    gap:34px;
    color:var(--muted);
    font-size:14px;
}

.nav-menu a:hover{
    color:var(--primary);
}

.nav-action{
    display:flex;
    align-items:center;
    gap:12px;
}

.theme-toggle,
.mobile-toggle{
    width:42px;
    height:42px;
    border:none;
    border-radius:14px;
    background:var(--card);
    color:var(--text);
    border:1px solid var(--border);
    cursor:pointer;
}

.mobile-toggle{
    display:none;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    border-radius:14px;
    padding:13px 22px;
    font-weight:700;
    font-size:14px;
    transition:.25s;
}

.btn-primary{
    background:linear-gradient(135deg,var(--primary),var(--cyan));
    color:white;
    box-shadow:0 15px 32px rgba(37,99,235,.30);
}

.btn-primary:hover{
    transform:translateY(-3px);
}

.btn-ghost{
    border:1px solid var(--border);
    background:var(--card);
    color:var(--text);
}

.btn-lg{
    padding:15px 25px;
}

/* HERO */

.hero{
    padding:150px 0 80px;
}

.hero-grid{
    display:grid;
    grid-template-columns:1.02fr .98fr;
    gap:55px;
    align-items:center;
}

.eyebrow{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:10px 16px;
    border-radius:999px;
    border:1px solid var(--border);
    background:var(--card);
    color:var(--primary);
    font-weight:700;
    font-size:14px;
    margin-bottom:24px;
}

.hero h1{
    font-size:clamp(42px,5vw,68px);
    line-height:1.05;
    letter-spacing:-2px;
    margin-bottom:24px;
}

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

.hero p{
    color:var(--muted);
    line-height:1.8;
    font-size:18px;
    max-width:650px;
}

.hero-buttons{
    margin-top:34px;
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.hero-stats{
    margin-top:34px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
    max-width:610px;
}

.hero-stats div{
    padding:17px;
    border-radius:18px;
    background:var(--card);
    border:1px solid var(--border);
}

.hero-stats strong{
    display:block;
    font-size:22px;
}

.hero-stats span{
    display:block;
    margin-top:5px;
    color:var(--muted);
    font-size:13px;
}

/* MOCKUP */

.hero-visual{
    position:relative;
}

.dashboard-mockup{
    background:linear-gradient(180deg,rgba(255,255,255,.90),rgba(255,255,255,.55));
    border:1px solid var(--border);
    border-radius:34px;
    overflow:hidden;
    box-shadow:var(--shadow);
    transform:rotate(1.5deg);
}

body.dark .dashboard-mockup{
    background:linear-gradient(180deg,rgba(15,23,42,.94),rgba(15,23,42,.65));
}

.mockup-top{
    height:56px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 20px;
    border-bottom:1px solid var(--border);
}

.mockup-top div{
    display:flex;
    gap:8px;
}

.mockup-top span{
    width:12px;
    height:12px;
    border-radius:50%;
    background:#94a3b8;
}

.mockup-top span:nth-child(1){
    background:#ef4444;
}

.mockup-top span:nth-child(2){
    background:#f59e0b;
}

.mockup-top span:nth-child(3){
    background:#22c55e;
}

.mockup-top p{
    font-size:13px;
    color:var(--muted);
}

.mockup-body{
    display:grid;
    grid-template-columns:88px 1fr;
    min-height:440px;
}

.mockup-sidebar{
    border-right:1px solid var(--border);
    padding:18px;
    display:flex;
    flex-direction:column;
    gap:14px;
}

.side-logo{
    width:45px;
    height:45px;
    border-radius:14px;
    background:linear-gradient(135deg,var(--primary),var(--cyan));
}

.mockup-sidebar span{
    width:42px;
    height:12px;
    border-radius:999px;
    background:rgba(148,163,184,.25);
}

.mockup-main{
    padding:22px;
}

.mini-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.mini-header h4{
    font-size:18px;
}

.mini-header p{
    color:var(--muted);
    font-size:13px;
}

.mini-header button{
    border:none;
    color:white;
    background:#22c55e;
    padding:8px 13px;
    border-radius:999px;
}

.mini-cards{
    margin-top:22px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:13px;
}

.mini-cards div{
    padding:15px;
    border:1px solid var(--border);
    border-radius:18px;
    background:rgba(255,255,255,.45);
}

body.dark .mini-cards div{
    background:rgba(15,23,42,.55);
}

.mini-cards i{
    color:var(--primary);
    margin-bottom:12px;
}

.mini-cards span{
    display:block;
    color:var(--muted);
    font-size:12px;
}

.mini-cards strong{
    display:block;
    margin-top:5px;
}

.chart-box{
    margin-top:22px;
    height:185px;
    border:1px solid var(--border);
    border-radius:22px;
    position:relative;
    overflow:hidden;
    background:
        linear-gradient(to bottom,rgba(148,163,184,.10) 1px,transparent 1px);
    background-size:100% 45px;
}

.bar{
    position:absolute;
    bottom:18px;
    width:42px;
    border-radius:12px 12px 0 0;
    background:linear-gradient(180deg,var(--cyan),var(--primary));
}

.bar-1{left:40px;height:70px;}
.bar-2{left:105px;height:118px;}
.bar-3{left:170px;height:90px;}
.bar-4{left:235px;height:140px;}
.bar-5{left:300px;height:100px;}

.receipt-card{
    margin-top:18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:16px;
    border-radius:18px;
    background:linear-gradient(135deg,rgba(37,99,235,.12),rgba(6,182,212,.12));
    border:1px solid var(--border);
}

.receipt-card p{
    color:var(--muted);
    font-size:13px;
}

.receipt-card strong{
    color:var(--primary);
}

/* SECTION */

.section{
    padding:95px 0;
}

.section-heading{
    text-align:center;
    max-width:770px;
    margin:0 auto 48px;
}

.section-heading.left{
    text-align:left;
    margin:0 0 28px;
}

.section-heading span{
    color:var(--primary);
    font-weight:800;
    font-size:14px;
    text-transform:uppercase;
    letter-spacing:.8px;
}

.section-heading h2{
    margin-top:13px;
    font-size:clamp(32px,4vw,48px);
    letter-spacing:-1.5px;
}

.section-heading p{
    margin-top:15px;
    color:var(--muted);
    line-height:1.8;
}

/* WORKFLOW */

.workflow-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
}

.workflow-card{
    padding:32px;
    border-radius:26px;
    background:var(--card);
    border:1px solid var(--border);
    box-shadow:0 15px 45px rgba(15,23,42,.06);
}

.workflow-card.active{
    background:linear-gradient(135deg,rgba(37,99,235,.12),rgba(6,182,212,.12));
}

.workflow-icon{
    width:58px;
    height:58px;
    display:grid;
    place-items:center;
    border-radius:18px;
    background:linear-gradient(135deg,var(--primary),var(--cyan));
    color:white;
    font-size:22px;
    margin-bottom:20px;
}

.workflow-card h3{
    margin-bottom:12px;
}

.workflow-card p{
    color:var(--muted);
    line-height:1.75;
}

/* PRODUCTS */

.product-section{
    background:linear-gradient(180deg,transparent,rgba(37,99,235,.06),transparent);
}

.product-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
}

.product-card{
    position:relative;
    padding:32px;
    border-radius:30px;
    background:var(--card);
    border:1px solid var(--border);
    box-shadow:var(--shadow);
}

.product-card.featured{
    transform:translateY(-18px);
    border-color:rgba(37,99,235,.45);
}

.product-label{
    position:absolute;
    top:22px;
    right:22px;
    color:var(--primary);
    background:rgba(37,99,235,.10);
    border-radius:999px;
    padding:7px 12px;
    font-size:12px;
    font-weight:800;
}

.product-icon{
    width:64px;
    height:64px;
    border-radius:21px;
    display:grid;
    place-items:center;
    color:white;
    font-size:25px;
    margin-bottom:24px;
}

.product-icon.blue{
    background:linear-gradient(135deg,#2563eb,#60a5fa);
}

.product-icon.cyan{
    background:linear-gradient(135deg,#0891b2,#22d3ee);
}

.product-icon.purple{
    background:linear-gradient(135deg,#7c3aed,#a78bfa);
}

.product-card h3{
    font-size:23px;
    margin-bottom:13px;
}

.product-card p{
    color:var(--muted);
    line-height:1.75;
}

.product-card ul{
    margin-top:20px;
    list-style:none;
}

.product-card li{
    margin:12px 0;
    color:var(--muted);
}

.product-card li::before{
    content:"✓";
    margin-right:9px;
    color:#22c55e;
    font-weight:900;
}

.product-link{
    margin-top:24px;
    color:var(--primary);
    font-weight:800;
    display:inline-flex;
    align-items:center;
    gap:8px;
}

/* FEATURES */

.feature-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px;
}

.feature-card{
    padding:28px;
    border-radius:24px;
    background:var(--card);
    border:1px solid var(--border);
    transition:.25s;
}

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

.feature-card i{
    font-size:27px;
    color:var(--primary);
    margin-bottom:18px;
}

.feature-card h3{
    margin-bottom:10px;
}

.feature-card p{
    color:var(--muted);
    line-height:1.7;
}

/* TECH */

.tech-grid{
    display:grid;
    grid-template-columns:.9fr 1.1fr;
    gap:50px;
    align-items:center;
}

.tech-list{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.tech-list div{
    padding:25px;
    border-radius:24px;
    background:var(--card);
    border:1px solid var(--border);
}

.tech-list i{
    color:var(--primary);
    font-size:25px;
    margin-bottom:15px;
}

.tech-list p{
    color:var(--muted);
    line-height:1.7;
    margin-top:8px;
}

/* CTA */

.cta{
    padding:80px 0;
}

.cta-box{
    text-align:center;
    border-radius:34px;
    padding:70px 35px;
    color:white;
    background:
        radial-gradient(circle at top left,rgba(255,255,255,.20),transparent 35%),
        linear-gradient(135deg,#1d4ed8,#06b6d4);
    box-shadow:0 30px 90px rgba(37,99,235,.32);
}

.cta-box span{
    font-weight:800;
    opacity:.88;
}

.cta-box h2{
    font-size:clamp(32px,4vw,50px);
    max-width:800px;
    margin:14px auto;
}

.cta-box p{
    max-width:720px;
    margin:0 auto 28px;
    line-height:1.8;
    opacity:.9;
}

.cta-actions{
    display:flex;
    justify-content:center;
    gap:14px;
    flex-wrap:wrap;
}

.btn-light{
    background:white;
    color:#1d4ed8;
}

.btn-dark-outline{
    border:1px solid rgba(255,255,255,.55);
    color:white;
}

/* FOOTER */

.footer{
    padding:70px 0 25px;
    border-top:1px solid var(--border);
}

.footer-grid{
    display:grid;
    grid-template-columns:1.5fr 1fr 1fr 1fr;
    gap:35px;
}

.footer p{
    color:var(--muted);
    margin-top:18px;
    line-height:1.8;
}

.footer h4{
    margin-bottom:16px;
}

.footer a:not(.brand){
    display:block;
    color:var(--muted);
    margin:10px 0;
}

.footer a:hover{
    color:var(--primary);
}

.footer-bottom{
    text-align:center;
    color:var(--muted);
    margin-top:50px;
    font-size:14px;
}

/* RESPONSIVE */

@media(max-width:900px){

    .mobile-toggle{
        display:block;
    }

    .nav-menu{
        position:fixed;
        top:82px;
        left:4%;
        right:4%;
        display:none;
        flex-direction:column;
        padding:24px;
        background:var(--card);
        border:1px solid var(--border);
        border-radius:22px;
        backdrop-filter:blur(18px);
    }

    .nav-menu.active{
        display:flex;
    }

    .nav-action .btn-primary{
        display:none;
    }

    .hero-grid,
    .tech-grid{
        grid-template-columns:1fr;
    }

    .hero{
        padding-top:125px;
    }

    .hero-stats,
    .workflow-grid,
    .product-grid,
    .feature-grid,
    .tech-list,
    .footer-grid{
        grid-template-columns:1fr;
    }

    .product-card.featured{
        transform:none;
    }

    .dashboard-mockup{
        transform:none;
    }

    .mockup-body{
        grid-template-columns:1fr;
    }

    .mockup-sidebar{
        display:none;
    }

}

@media(max-width:540px){

    .hero-buttons,
    .cta-actions{
        flex-direction:column;
    }

    .btn{
        width:100%;
    }

    .mini-cards{
        grid-template-columns:1fr;
    }

    .hero h1{
        letter-spacing:-1px;
    }

}