:root{
    --bg:#f3f6fb;
    --surface:#ffffff;
    --surface-2:#f8fafc;
    --surface-3:#eef2f7;
    --text:#111827;
    --text-soft:#5b6472;
    --text-faint:#8b95a7;
    --line:#dde4ee;
    --line-strong:#cdd7e4;

    --primary:#111827;
    --accent:#2563eb;
    --accent-soft:#e8f0ff;
    --success:#16a34a;
    --warning:#d97706;
    --danger:#dc2626;

    --radius-xl:28px;
    --radius-lg:20px;
    --radius-md:16px;
    --radius-sm:12px;

    --shadow-sm:0 8px 24px rgba(17,24,39,.05);
    --shadow-md:0 20px 50px rgba(17,24,39,.08);

    --container:1240px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
    margin:0;
    font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    background:
            linear-gradient(180deg,#f8fbff 0%, #f3f6fb 100%);
    color:var(--text);
    min-height:100vh;
}

a{text-decoration:none;color:inherit}
button,input,select{font:inherit}
.container{width:min(calc(100% - 32px), var(--container));margin:0 auto}

.navbar{
    position:sticky;
    top:0;
    z-index:80;
    background:rgba(255,255,255,.82);
    backdrop-filter:blur(12px);
    border-bottom:1px solid rgba(17,24,39,.06);
}
.nav-inner{
    min-height:76px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
}
.logo{
    display:flex;
    align-items:center;
    gap:12px;
    font-weight:800;
    letter-spacing:-.03em;
    font-size:1.02rem;
}
.logo-mark{
    width:42px;
    height:42px;
    border-radius:14px;
    display:grid;
    place-items:center;
    background:#111827;
    color:#fff;
    font-weight:900;
}
.nav-links{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}
.nav-link{
    color:var(--text-soft);
    font-weight:600;
    padding:10px 12px;
    border-radius:12px;
}
.nav-link:hover{
    background:#f3f6fb;
    color:var(--text);
}

.btn{
    border:0;
    cursor:pointer;
    border-radius:14px;
    padding:12px 16px;
    font-weight:700;
    transition:.2s ease;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{
    background:#111827;
    color:#fff;
}
.btn-primary:hover{
    filter:brightness(1.05);
}
.btn-ghost{
    background:#fff;
    color:var(--text);
    border:1px solid var(--line);
}
.btn-ghost:hover{
    background:#f8fafc;
}
.btn-info{
    background:var(--accent-soft);
    color:var(--accent);
    border:1px solid #cfe0ff;
}
.btn-danger{
    background:#fff1f2;
    color:var(--danger);
    border:1px solid #fecdd3;
}

.card{
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:var(--radius-xl);
    box-shadow:var(--shadow-sm);
}

.pill{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:9px 14px;
    border-radius:999px;
    background:#fff;
    border:1px solid var(--line);
    color:var(--text-soft);
    font-weight:700;
    font-size:.9rem;
}

/* LANDING */
.hero{
    padding:72px 0 52px;
}
.hero-shell{
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:24px;
    align-items:stretch;
}
.hero-left,
.hero-right{
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:32px;
    box-shadow:var(--shadow-md);
}
.hero-left{
    padding:42px;
}
.hero-kicker{
    display:inline-block;
    margin-bottom:18px;
    font-size:.88rem;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:var(--accent);
}
.hero-left h1{
    margin:0 0 16px;
    font-size:clamp(2.8rem, 5vw, 5.5rem);
    line-height:.92;
    letter-spacing:-.06em;
    max-width:720px;
}
.hero-left p{
    max-width:700px;
    color:var(--text-soft);
    font-size:1.04rem;
    line-height:1.85;
}
.hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:24px;
}
.hero-metrics{
    margin-top:30px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
}
.metric{
    padding:18px;
    border-radius:18px;
    background:var(--surface-2);
    border:1px solid var(--line);
}
.metric strong{
    display:block;
    font-size:1.2rem;
    margin-bottom:6px;
}
.metric span{
    color:var(--text-soft);
    font-size:.92rem;
}

.hero-right{
    padding:22px;
    display:flex;
    flex-direction:column;
    gap:16px;
    background:
            linear-gradient(180deg,#ffffff 0%, #f6f9fd 100%);
}
.workspace-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:10px 6px 4px;
}
.workspace-top h3{
    margin:0;
    font-size:1.1rem;
}
.workspace-top p{
    margin:4px 0 0;
    color:var(--text-soft);
}
.badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    border-radius:999px;
    font-size:.82rem;
    font-weight:800;
}
.badge-success{
    background:#ecfdf3;
    color:var(--success);
    border:1px solid #bbf7d0;
}
.workspace-preview{
    display:grid;
    grid-template-columns:220px 1fr;
    gap:16px;
    min-height:420px;
}
.preview-sidebar{
    border:1px solid var(--line);
    border-radius:24px;
    background:#0f172a;
    color:#e5edf9;
    padding:18px;
}
.preview-sidebar .side-title{
    font-size:.8rem;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:#98a6bd;
    margin-bottom:16px;
}
.preview-nav{
    display:grid;
    gap:10px;
}
.preview-nav a{
    padding:12px 14px;
    border-radius:14px;
    background:rgba(255,255,255,.04);
    color:#dce6f6;
    font-weight:600;
}
.preview-nav a.active{
    background:#fff;
    color:#111827;
}
.preview-main{
    border:1px solid var(--line);
    border-radius:24px;
    background:#fff;
    padding:18px;
    display:grid;
    gap:14px;
}
.preview-row{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
}
.preview-box{
    border:1px solid var(--line);
    border-radius:18px;
    padding:16px;
    background:var(--surface-2);
}
.preview-box span{
    display:block;
    color:var(--text-faint);
    font-size:.82rem;
    margin-bottom:8px;
}
.preview-box strong{
    font-size:1.2rem;
}
.preview-table{
    border:1px solid var(--line);
    border-radius:20px;
    overflow:hidden;
}
.preview-table .row{
    display:grid;
    grid-template-columns:1.3fr 1fr .8fr .8fr;
    gap:10px;
    padding:14px 16px;
    border-bottom:1px solid var(--line);
    font-size:.92rem;
}
.preview-table .row.head{
    background:#f8fafc;
    font-size:.8rem;
    text-transform:uppercase;
    letter-spacing:.05em;
    color:var(--text-faint);
    font-weight:700;
}
.preview-table .row:last-child{
    border-bottom:0;
}

/* SECTION */
.section{padding:72px 0}
.section-head{
    max-width:760px;
    margin:0 auto 30px;
    text-align:center;
}
.section-head h2{
    margin:0 0 12px;
    font-size:clamp(1.9rem,3vw,3rem);
    letter-spacing:-.05em;
}
.section-head p{
    margin:0;
    color:var(--text-soft);
    line-height:1.85;
}
.grid-3{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
}
.feature-card{
    padding:28px;
    background:#fff;
}
.feature-icon{
    width:58px;
    height:58px;
    border-radius:18px;
    display:grid;
    place-items:center;
    background:#111827;
    color:#fff;
    font-size:1.2rem;
    margin-bottom:18px;
}
.feature-card h3{
    margin:0 0 10px;
    letter-spacing:-.03em;
}
.feature-card p{
    margin:0;
    color:var(--text-soft);
    line-height:1.8;
}
.alt-section{
    background:linear-gradient(180deg,#f8fbff 0%, #eef4fb 100%);
    border-top:1px solid rgba(17,24,39,.05);
    border-bottom:1px solid rgba(17,24,39,.05);
}
.timeline-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
}
.timeline-card{
    padding:28px;
}
.timeline-number{
    width:52px;
    height:52px;
    border-radius:16px;
    display:grid;
    place-items:center;
    margin-bottom:16px;
    background:#111827;
    color:#fff;
    font-weight:800;
}
.timeline-card h3{margin:0 0 10px}
.timeline-card p{margin:0;color:var(--text-soft);line-height:1.75}

.footer{
    padding:28px 0 40px;
    color:var(--text-soft);
}
.footer-inner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:14px;
    flex-wrap:wrap;
}
.footer-links{
    display:flex;
    gap:16px;
    flex-wrap:wrap;
}
.footer a:hover{text-decoration:underline}

/* AUTH */
.auth-wrap{
    min-height:100vh;
    display:grid;
    grid-template-columns:1fr 460px;
    gap:24px;
    align-items:stretch;
    padding:24px;
    background:linear-gradient(180deg,#f8fbff,#f3f6fb);
}
.auth-side,
.auth-card{
    border:1px solid var(--line);
    border-radius:32px;
    background:#fff;
    box-shadow:var(--shadow-md);
}
.auth-side{
    padding:44px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}
.auth-side-badge{
    display:inline-flex;
    padding:10px 14px;
    border-radius:999px;
    border:1px solid var(--line);
    background:#f8fafc;
    color:var(--text-soft);
    font-weight:700;
    margin-bottom:18px;
}
.auth-side h1{
    margin:0 0 16px;
    font-size:clamp(2.4rem,4vw,4.5rem);
    line-height:.96;
    letter-spacing:-.05em;
}
.auth-side p{
    color:var(--text-soft);
    line-height:1.9;
    max-width:620px;
}
.auth-card{
    width:min(100%,460px);
    padding:30px;
    align-self:center;
}
.auth-card h2{
    margin:10px 0 10px;
    letter-spacing:-.03em;
}
.auth-card p{
    margin:0 0 20px;
    color:var(--text-soft);
}
.form-group{margin-bottom:14px}
.label{
    display:block;
    margin-bottom:8px;
    color:var(--text);
    font-weight:700;
}
.input{
    width:100%;
    padding:14px 16px;
    border-radius:14px;
    border:1px solid var(--line-strong);
    background:#fff;
    color:var(--text);
    outline:none;
    transition:.2s ease;
}
.input:focus{
    border-color:#93c5fd;
    box-shadow:0 0 0 4px rgba(37,99,235,.10);
}
.alert{
    padding:14px 16px;
    border-radius:14px;
    margin-bottom:16px;
    font-size:.95rem;
}
.alert-success{
    background:#ecfdf3;
    color:#166534;
    border:1px solid #bbf7d0;
}
.alert-danger{
    background:#fef2f2;
    color:#991b1b;
    border:1px solid #fecaca;
}

/* DASHBOARD */
.dashboard-shell{
    display:grid;
    grid-template-columns:280px 1fr;
    gap:22px;
    padding:24px 0 40px;
}
.app-sidebar{
    background:#0f172a;
    color:#e5edf9;
    border-radius:30px;
    padding:22px;
    min-height:calc(100vh - 120px);
    position:sticky;
    top:96px;
}
.app-sidebar .side-brand{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:24px;
    font-weight:800;
}
.app-sidebar .side-brand .logo-mark{
    width:40px;
    height:40px;
    border-radius:12px;
    background:#fff;
    color:#111827;
}
.side-user{
    padding:16px;
    border-radius:18px;
    background:rgba(255,255,255,.06);
    margin-bottom:18px;
}
.side-user strong{
    display:block;
    margin-bottom:6px;
}
.side-user span{
    color:#9eb0cb;
    font-size:.92rem;
}
.side-menu{
    display:grid;
    gap:10px;
    margin-top:18px;
}
.side-menu a{
    padding:13px 14px;
    border-radius:14px;
    color:#dbe5f5;
    background:rgba(255,255,255,.04);
    font-weight:600;
}
.side-menu a.active{
    background:#fff;
    color:#111827;
}
.side-actions{
    margin-top:22px;
    display:grid;
    gap:10px;
}
.side-actions .btn{
    width:100%;
}

.dashboard-main{
    display:grid;
    gap:18px;
}
.workspace-hero{
    background:#fff;
    border:1px solid var(--line);
    border-radius:30px;
    padding:30px;
    box-shadow:var(--shadow-sm);
}
.workspace-hero h1{
    margin:12px 0 10px;
    font-size:clamp(2rem,3.2vw,3.1rem);
    letter-spacing:-.05em;
}
.workspace-hero p{
    margin:0;
    color:var(--text-soft);
    line-height:1.85;
    max-width:760px;
}
.stats{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:16px;
}
.stat-card{
    padding:22px;
}
.stat-card span{
    display:block;
    color:var(--text-faint);
    margin-bottom:8px;
}
.stat-card strong{
    font-size:2rem;
    letter-spacing:-.04em;
}

.panel-block{
    background:#fff;
    border:1px solid var(--line);
    border-radius:28px;
    box-shadow:var(--shadow-sm);
    overflow:hidden;
}
.panel-head{
    padding:22px 24px 14px;
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:18px;
}
.panel-head h2{
    margin:0;
    font-size:1.2rem;
    letter-spacing:-.03em;
}
.panel-head p{
    margin:6px 0 0;
    color:var(--text-soft);
}
.table-wrap{
    overflow:auto;
    padding:0 16px 16px;
}
table{
    width:100%;
    min-width:920px;
    border-collapse:separate;
    border-spacing:0 10px;
}
th{
    text-align:left;
    font-size:.8rem;
    text-transform:uppercase;
    letter-spacing:.06em;
    color:var(--text-faint);
    padding:0 14px 8px;
}
td{
    background:#f8fafc;
    padding:16px 14px;
    font-size:.94rem;
    color:var(--text);
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
}
tr td:first-child{
    border-left:1px solid var(--line);
    border-top-left-radius:14px;
    border-bottom-left-radius:14px;
}
tr td:last-child{
    border-right:1px solid var(--line);
    border-top-right-radius:14px;
    border-bottom-right-radius:14px;
}
.muted{color:var(--text-faint)}

.status{
    display:inline-flex;
    align-items:center;
    padding:8px 12px;
    border-radius:999px;
    font-size:.8rem;
    font-weight:800;
}
.status-pending{background:#fff7ed;color:#c2410c;border:1px solid #fed7aa}
.status-approved{background:#ecfdf3;color:#166534;border:1px solid #bbf7d0}
.status-rejected{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}
.status-cancelled{background:#f3f4f6;color:#4b5563;border:1px solid #e5e7eb}

/* MODAL */
.modal-overlay{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.35);
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
    z-index:9999;
    backdrop-filter:blur(6px);
}
.modal-overlay.active{display:flex}
.modal-box{
    width:min(860px,100%);
    background:#fff;
    border:1px solid var(--line);
    border-radius:30px;
    box-shadow:0 30px 80px rgba(17,24,39,.18);
    overflow:hidden;
}
.modal-header{
    padding:22px 24px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    border-bottom:1px solid var(--line);
}
.modal-header h3{
    margin:0;
    font-size:1.3rem;
    letter-spacing:-.03em;
}
.modal-close{
    width:42px;
    height:42px;
    border-radius:14px;
    border:1px solid var(--line);
    background:#fff;
    cursor:pointer;
}
.modal-body{padding:24px}
.modal-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:14px;
}
.modal-item{
    padding:16px;
    border-radius:18px;
    border:1px solid var(--line);
    background:#f8fafc;
}
.modal-item strong{
    display:block;
    color:var(--text-faint);
    font-size:.82rem;
    text-transform:uppercase;
    letter-spacing:.05em;
    margin-bottom:8px;
}
.modal-item span{
    color:var(--text);
    word-break:break-word;
}
.modal-footer{
    padding:0 24px 24px;
    display:flex;
    justify-content:flex-end;
}

/* RESPONSIVE */
@media (max-width: 1100px){
    .hero-shell,
    .auth-wrap,
    .dashboard-shell{
        grid-template-columns:1fr;
    }

    .app-sidebar{
        min-height:auto;
        position:static;
    }

    .workspace-preview{
        grid-template-columns:1fr;
    }
}

@media (max-width: 900px){
    .grid-3,
    .timeline-grid,
    .stats,
    .hero-metrics,
    .preview-row{
        grid-template-columns:1fr 1fr;
    }
}

@media (max-width: 680px){
    .grid-3,
    .timeline-grid,
    .stats,
    .hero-metrics,
    .preview-row,
    .modal-grid{
        grid-template-columns:1fr;
    }

    .hero-left,
    .hero-right,
    .workspace-hero,
    .panel-block{
        border-radius:24px;
    }

    .hero-left{
        padding:28px;
    }

    .auth-wrap{
        padding:16px;
    }

    .nav-links .btn,
    .hero-actions .btn{
        width:100%;
    }
}