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

:root{
    --primary:#2f55a4;
    --primary-dark:#1f3f85;
    --primary-soft:#e9f0ff;
    --bg:#eef5ff;
    --white:#ffffff;
    --text:#1f2937;
    --muted:#64748b;
    --border:rgba(47,85,164,.12);
    --shadow:0 20px 50px rgba(47,85,164,.10);
    --shadow-soft:0 8px 28px rgba(47,85,164,.07);
    --green:#16a34a;
    --red:#ef4444;
    --yellow:#d97706;
}

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

body{
    min-height:100vh;
    background:
        radial-gradient(circle at 15% 15%,rgba(47,85,164,.08),transparent 35%),
        radial-gradient(circle at 85% 80%,rgba(47,85,164,.06),transparent 35%),
        linear-gradient(160deg,#f0f6ff 0%,#e8f0fe 50%,#f4f8ff 100%);
    color:var(--text);
    overflow-x:hidden;
}

a{
    text-decoration:none;
}

/* NAVBAR */
.navbar{
    width:100%;
    min-height:74px;
    padding:0 45px;
    background:rgba(255,255,255,.86);
    backdrop-filter:blur(20px);
    border-bottom:1px solid rgba(47,85,164,.09);
    display:flex;
    justify-content:space-between;
    align-items:center;
    position:sticky;
    top:0;
    z-index:999;
    box-shadow:0 4px 24px rgba(47,85,164,.06);
}

.logo{
    display:flex;
    align-items:center;
    gap:12px;
    font-size:26px;
    font-weight:800;
    color:var(--primary);
    letter-spacing:-.04em;
}

.logo i{
    width:42px;
    height:42px;
    border-radius:13px;
    background:linear-gradient(135deg,var(--primary),var(--primary-dark));
    display:flex;
    align-items:center;
    justify-content:center;
    color:white;
    font-size:17px;
    box-shadow:0 6px 16px rgba(47,85,164,.28);
}

.nav-links{
    display:flex;
    gap:8px;
    list-style:none;
}

.nav-links a{
    color:var(--muted);
    font-size:14px;
    font-weight:600;
    padding:9px 15px;
    border-radius:12px;
    transition:.25s;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links .active{
    color:var(--primary);
    background:var(--primary-soft);
}

/* CONTAINER */
.container{
    max-width:1120px;
    margin:0 auto;
    padding:52px 24px;
    animation:fadeUp .6s ease both;
}

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

.page-title,
.page-header h1{
    font-size:38px;
    font-weight:800;
    color:var(--primary);
    letter-spacing:-.04em;
    margin-bottom:8px;
}

.subtitle,
.page-header p{
    color:var(--muted);
    font-size:14px;
    line-height:1.8;
    margin-bottom:30px;
}

.section-title{
    font-size:28px;
    font-weight:800;
    color:var(--primary);
    letter-spacing:-.035em;
    margin-bottom:18px;
}

/* HERO */
.hero{
    background:white;
    border:1px solid rgba(255,255,255,.9);
    border-radius:32px;
    padding:54px;
    display:grid;
    grid-template-columns:1.2fr .8fr;
    align-items:center;
    gap:42px;
    box-shadow:var(--shadow);
    position:relative;
    overflow:hidden;
}

.hero::before{
    content:"";
    position:absolute;
    right:-70px;
    top:-70px;
    width:320px;
    height:320px;
    border-radius:50%;
    background:radial-gradient(circle,rgba(47,85,164,.09),transparent 70%);
}

.hero::after{
    content:"";
    position:absolute;
    left:-50px;
    bottom:-50px;
    width:220px;
    height:220px;
    border-radius:50%;
    background:radial-gradient(circle,rgba(47,85,164,.06),transparent 70%);
}

.hero-text{
    position:relative;
    z-index:2;
}

.hero-text h1{
    font-size:50px;
    line-height:1.12;
    font-weight:800;
    color:var(--primary);
    letter-spacing:-.05em;
    margin-bottom:18px;
}

.hero-text p{
    max-width:620px;
    color:#526070;
    font-size:15px;
    line-height:1.9;
    margin-bottom:30px;
}

.hero-text strong{
    color:#334155;
}

.hero-btn,
.primary-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    background:linear-gradient(135deg,var(--primary),var(--primary-dark));
    color:white;
    border:none;
    padding:14px 28px;
    border-radius:15px;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
    box-shadow:0 10px 26px rgba(47,85,164,.28);
    transition:.25s;
}

.hero-btn:hover,
.primary-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 16px 34px rgba(47,85,164,.34);
}

.hero-image{
    position:relative;
    z-index:2;
}

.hero-image img{
    width:100%;
    max-width:430px;
    filter:drop-shadow(0 16px 35px rgba(47,85,164,.12));
}

/* STATS */
.stats{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
    margin-top:28px;
    margin-bottom:28px;
}

.stat-card{
    background:white;
    border:1px solid var(--border);
    border-radius:28px;
    padding:28px;
    box-shadow:var(--shadow-soft);
    position:relative;
    overflow:hidden;
    transition:.3s;
}

.stat-card::after{
    content:"";
    position:absolute;
    top:0;
    right:0;
    width:85px;
    height:85px;
    border-radius:0 28px 0 80px;
    background:linear-gradient(225deg,rgba(47,85,164,.08),transparent);
}

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

.stat-icon{
    width:46px;
    height:46px;
    border-radius:15px;
    background:linear-gradient(135deg,var(--primary-soft),#f0f6ff);
    color:var(--primary);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:17px;
    margin-bottom:15px;
}

.stat-card h2{
    font-size:36px;
    line-height:1;
    font-weight:800;
    color:var(--primary);
    letter-spacing:-.04em;
}

.stat-card p{
    color:var(--muted);
    font-size:13px;
    margin-top:7px;
}

/* CHART */
.chart-card{
    background:white;
    border:1px solid var(--border);
    border-radius:30px;
    padding:30px;
    box-shadow:var(--shadow-soft);
    margin:28px 0;
}

.chart-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:18px;
    margin-bottom:22px;
}

.chart-subtitle{
    color:var(--muted);
    font-size:13px;
    line-height:1.7;
}

.chart-badge{
    background:var(--primary-soft);
    color:var(--primary);
    font-size:12px;
    font-weight:800;
    padding:7px 14px;
    border-radius:999px;
}

/* SEARCH */
.top-action{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    margin:22px 0 18px;
}

.left-action{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
}

.search-box{
    background:white;
    height:50px;
    width:300px;
    display:flex;
    align-items:center;
    gap:12px;
    padding:0 17px;
    border-radius:15px;
    border:1px solid var(--border);
    box-shadow:0 4px 12px rgba(47,85,164,.05);
}

.search-box i{
    color:#94a3b8;
    font-size:14px;
}

.search-box input{
    width:100%;
    border:none;
    outline:none;
    background:transparent;
    font-size:13px;
}

.filter-select{
    height:50px;
    min-width:170px;
    border:1px solid var(--border);
    outline:none;
    padding:0 16px;
    border-radius:15px;
    background:white;
    color:var(--text);
    font-size:13px;
    font-weight:600;
    cursor:pointer;
    box-shadow:0 4px 12px rgba(47,85,164,.05);
}

/* TABLE */
.table-container{
    background:white;
    border:1px solid var(--border);
    border-radius:28px;
    overflow:hidden;
    box-shadow:var(--shadow-soft);
}

table{
    width:100%;
    border-collapse:collapse;
}

table thead th{
    background:linear-gradient(180deg,#f2f6ff,#edf4ff);
    color:var(--primary);
    font-size:12px;
    font-weight:800;
    padding:17px 14px;
    border-bottom:1px solid var(--border);
    text-align:center;
}

table tbody td{
    padding:16px 14px;
    font-size:13px;
    color:#334155;
    border-bottom:1px solid #eef2f7;
    text-align:center;
}

table tbody tr:nth-child(even){
    background:#f8faff;
}

table tbody tr:hover{
    background:#edf4ff;
}

.positive{
    color:var(--green);
    font-weight:800;
}

.negative{
    color:var(--red);
    font-weight:800;
}

/* KRITERIA */
.criteria-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.criteria-card{
    background:white;
    border:1px solid var(--border);
    border-radius:30px;
    padding:32px;
    box-shadow:var(--shadow-soft);
    position:relative;
    overflow:hidden;
    transition:.3s;
}

.criteria-card::before{
    content:"";
    position:absolute;
    right:-50px;
    top:-50px;
    width:140px;
    height:140px;
    border-radius:50%;
    background:radial-gradient(circle,rgba(47,85,164,.07),transparent);
}

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

.criteria-icon{
    width:60px;
    height:60px;
    border-radius:18px;
    background:linear-gradient(135deg,#dce8ff,#eff5ff);
    color:var(--primary);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:23px;
    margin-bottom:18px;
}

.criteria-card h3{
    font-size:24px;
    font-weight:800;
    color:var(--primary);
    margin-bottom:10px;
}

.criteria-type{
    display:inline-block;
    padding:6px 15px;
    border-radius:999px;
    font-size:11px;
    font-weight:800;
    background:#dcfce7;
    color:#166534;
    margin-bottom:14px;
}

.criteria-type.cost,
.cost{
    background:#fef3c7;
    color:#92400e;
}

.criteria-card p{
    color:var(--muted);
    font-size:13px;
    line-height:1.9;
}

/* AHP */
.ahp-card{
    max-width:820px;
    margin:0 auto;
    background:linear-gradient(135deg,rgba(47,85,164,.035),rgba(255,255,255,.98));
    border:1px solid rgba(47,85,164,.14);
    border-radius:32px;
    padding:44px;
    box-shadow:var(--shadow);
}

.step-text{
    color:var(--primary);
    font-size:13px;
    font-weight:700;
    margin-bottom:16px;
}

.progress-bar{
    width:100%;
    height:10px;
    background:#e9eef8;
    border-radius:999px;
    overflow:hidden;
    margin-bottom:30px;
}

.progress-fill-ahp,
.fill{
    height:100%;
    background:linear-gradient(90deg,var(--primary),#5b7fd1);
    border-radius:999px;
}

.ahp-card h1{
    font-size:34px;
    font-weight:800;
    color:var(--primary);
    text-align:center;
    letter-spacing:-.04em;
    margin-bottom:8px;
}

.question-subtitle{
    color:var(--muted);
    font-size:13px;
    text-align:center;
    margin-bottom:35px;
}

.slider-top{
    display:flex;
    justify-content:space-between;
    font-size:16px;
    font-weight:800;
    color:#334155;
    margin-bottom:14px;
}

input[type="range"]{
    width:100%;
    accent-color:var(--primary);
    cursor:pointer;
}

.slider-scale{
    display:flex;
    justify-content:space-between;
    color:#94a3b8;
    font-size:11px;
    margin-top:8px;
}

.preview-choice{
    background:linear-gradient(135deg,var(--primary-soft),#f8fbff);
    border:1px solid rgba(47,85,164,.14);
    border-radius:22px;
    padding:20px;
    margin-top:26px;
    text-align:center;
    color:var(--primary);
    font-size:14px;
    line-height:1.7;
    font-weight:600;
}

.button-group{
    display:flex;
    justify-content:flex-end;
    gap:12px;
    margin-top:26px;
}

.secondary-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:white;
    color:var(--primary);
    border:1.5px solid var(--border);
    padding:14px 26px;
    border-radius:15px;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
    transition:.25s;
}

.secondary-btn:hover{
    background:var(--primary-soft);
}

/* HASIL */
.summary-card{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
    gap:18px;
    margin-bottom:28px;
}

.summary-item{
    background:white;
    border:1px solid var(--border);
    border-radius:28px;
    padding:25px;
    text-align:center;
    box-shadow:var(--shadow-soft);
}

.summary-item h3{
    font-size:30px;
    font-weight:800;
    color:var(--primary);
    letter-spacing:-.04em;
}

.summary-item span{
    color:var(--muted);
    font-size:12px;
    font-weight:500;
}

.ranking-card{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
    gap:20px;
    margin-bottom:30px;
}

.stock-card{
    background:white;
    border:1px solid var(--border);
    border-radius:30px;
    padding:28px;
    text-align:center;
    box-shadow:var(--shadow-soft);
    transition:.3s;
}

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

.stock-card.top{
    border:2px solid var(--primary);
    background:linear-gradient(160deg,#f0f5ff,#fff);
}

.rank{
    font-size:28px;
    margin-bottom:10px;
}

.stock-card h3{
    font-size:28px;
    font-weight:800;
    color:var(--primary);
    letter-spacing:-.04em;
    margin-bottom:12px;
}

.score{
    font-size:38px;
    font-weight:800;
    color:var(--primary);
    letter-spacing:-.05em;
    margin:16px 0 12px;
}

.badge{
    display:inline-block;
    padding:8px 15px;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
}

.badge.green,
.green{
    background:#dcfce7;
    color:#166534;
}

.badge.yellow,
.yellow{
    background:#fef3c7;
    color:#92400e;
}

.badge.blue,
.blue{
    background:#dbeafe;
    color:#1e40af;
}

/* RESPONSIVE */
@media(max-width:900px){
    .navbar{
        padding:0 24px;
    }

    .nav-links{
        display:none;
    }

    .hero{
        grid-template-columns:1fr;
        text-align:center;
        padding:38px 26px;
    }

    .hero-image{
        order:-1;
    }

    .hero-text h1{
        font-size:36px;
    }

    .stats,
    .criteria-grid{
        grid-template-columns:1fr;
    }

    .container{
        padding:34px 18px;
    }

    .button-group{
        flex-direction:column;
    }

    .primary-btn,
    .secondary-btn{
        width:100%;
    }
}

@media(max-width:520px){
    .page-title,
    .page-header h1{
        font-size:30px;
    }

    .hero-text h1{
        font-size:31px;
    }

    .search-box,
    .filter-select{
        width:100%;
    }
}

/* =========================
   DASHBOARD PREMIUM VISUAL
========================= */

.dashboard-premium{
    max-width:1120px;
    padding-top:55px;
}

.hero-premium{
    background:#ffffff;
    border-radius:36px;
    padding:52px 56px;
    display:grid;
    grid-template-columns:1.3fr .9fr;
    gap:50px;
    align-items:center;
    box-shadow:0 25px 60px rgba(47,85,164,.12);
    border:1px solid rgba(255,255,255,.9);
    position:relative;
    overflow:hidden;
}

.hero-premium::before{
    content:"";
    position:absolute;
    right:-80px;
    top:-80px;
    width:320px;
    height:320px;
    border-radius:50%;
    background:radial-gradient(circle,rgba(47,85,164,.10),transparent 70%);
}

.hero-left,
.hero-right{
    position:relative;
    z-index:2;
}

.hero-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:#e9f0ff;
    color:#2f55a4;
    padding:7px 16px;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
    margin-bottom:22px;
}

.hero-badge span{
    width:7px;
    height:7px;
    border-radius:50%;
    background:#2f55a4;
}

.hero-left h1{
    font-size:48px;
    line-height:1.08;
    color:#2f55a4;
    font-weight:800;
    letter-spacing:-.06em;
    margin-bottom:22px;
}

.hero-left p{
    max-width:620px;
    color:#526070;
    font-size:15px;
    line-height:1.9;
    margin-bottom:32px;
}

.hero-left strong{
    color:#334155;
}

.hero-action{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
}

.hero-outline{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    background:#ffffff;
    color:#2f55a4;
    border:1.5px solid rgba(47,85,164,.16);
    padding:14px 28px;
    border-radius:15px;
    font-size:14px;
    font-weight:800;
    box-shadow:0 8px 20px rgba(47,85,164,.05);
    transition:.25s;
}

.hero-outline:hover{
    background:#e9f0ff;
    transform:translateY(-2px);
}

.hero-right{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.kpi-card{
    background:linear-gradient(135deg,#f8fbff,#ffffff);
    border:1px solid rgba(47,85,164,.12);
    border-radius:24px;
    padding:20px 24px;
    display:flex;
    align-items:center;
    gap:18px;
    box-shadow:0 8px 24px rgba(47,85,164,.08);
    transition:.25s;
}

.kpi-card:hover{
    transform:translateX(-5px);
    box-shadow:0 15px 34px rgba(47,85,164,.12);
}

.kpi-icon{
    width:50px;
    height:50px;
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
}

.kpi-icon.green{
    background:#dcfce7;
    color:#166534;
}

.kpi-icon.blue{
    background:#dbeafe;
    color:#1d4ed8;
}

.kpi-icon.yellow{
    background:#fef3c7;
    color:#92400e;
}

.kpi-card p{
    color:#64748b;
    font-size:12px;
    font-weight:700;
    margin-bottom:3px;
}

.kpi-card h3{
    color:#2f55a4;
    font-size:24px;
    font-weight:800;
    line-height:1;
}

.kpi-card span{
    display:block;
    margin-top:5px;
    font-size:12px;
    color:#2f55a4;
    font-weight:700;
}

.kpi-card .up{
    color:#16a34a;
}

.premium-stats{
    margin-top:28px;
}

.premium-stats .stat-card{
    min-height:150px;
}

.premium-chart{
    margin-top:34px;
    padding:34px;
    border-radius:34px;
}

.premium-chart canvas{
    margin-top:10px;
}

body{
    background:
    linear-gradient(rgba(47,85,164,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,85,164,.025) 1px, transparent 1px),
    linear-gradient(160deg,#f0f6ff 0%,#e8f0fe 55%,#f4f8ff 100%);
    background-size:48px 48px, 48px 48px, auto;
}

@media(max-width:900px){
    .hero-premium{
        grid-template-columns:1fr;
        padding:38px 28px;
    }

    .hero-left h1{
        font-size:36px;
    }
}

.stat-card h2 {
    display: block;
    margin-top: 18px;
    margin-bottom: 6px;
    font-size: 32px;
    font-weight: 700;
    color: #1e3a8a;
    opacity: 1;
    visibility: visible;
}

.stats .stat-card {
    min-height: 180px;
}

.stats .stat-card h2 {
    display: block !important;
    font-size: 34px !important;
    color: #1e3a8a !important;
    margin: 14px 0 8px !important;
    position: relative;
    z-index: 5;
}

.stats .stat-card p {
    position: relative;
    z-index: 5;
}