:root{
    --blue:#0b3b76;
    --blue2:#075aa9;
    --green:#19a974;
    --ink:#0e2238;
    --muted:#65778b;
    --bg:#f5f8fc;
    --line:#dce5ef;
    --white:#fff;
    --warn:#e78b27;
    --bad:#c43c3c;
}

*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:Arial,"Segoe UI",sans-serif;
    color:var(--ink);
    background:var(--bg);
}

a{
    color:var(--blue2);
    text-decoration:none;
}

.top{
    height:76px;
    background:#fff;
    border-bottom:1px solid var(--line);
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 5%;
    position:sticky;
    top:0;
    z-index:10;
}

.brand{
    display:flex;
    align-items:center;
    gap:10px;
    color:var(--ink);
    font-size:20px;
}

.brandmark{
    width:40px;
    height:40px;
    border-radius:13px;
    background:linear-gradient(135deg,var(--blue),var(--green));
    display:grid;
    place-items:center;
    color:#fff;
    font-weight:800;
}

.top nav{
    display:flex;
    gap:22px;
    align-items:center;
}

.navbtn,
.btn{
    background:linear-gradient(135deg,var(--blue2),var(--green));
    color:#fff!important;
    border:0;
    padding:12px 20px;
    border-radius:12px;
    font-weight:700;
    cursor:pointer;
    display:inline-block;
}

.btn.ghost{
    background:#fff;
    color:var(--blue2)!important;
    border:1px solid var(--line);
}

.btn.light{
    background:#fff;
    color:var(--blue)!important;
}

.btn.full,
.full{
    grid-column:1/-1;
}

.hero{
    min-height:610px;
    padding:80px 7%;
    display:grid;
    grid-template-columns:1.2fr .8fr;
    gap:60px;
    align-items:center;
    background:
        radial-gradient(circle at 80% 20%,#dff6ee 0,transparent 30%),
        linear-gradient(135deg,#f7fbff,#eef7f4);
}

.hero h1{
    font-size:58px;
    line-height:1.05;
    margin:14px 0 20px;
    max-width:900px;
}

.hero p{
    font-size:19px;
    line-height:1.8;
    color:var(--muted);
    max-width:780px;
}

.eyebrow{
    color:var(--green);
    font-weight:800;
    letter-spacing:.8px;
}

.actions{
    display:flex;
    gap:12px;
    margin:28px 0;
}

.trust{
    display:flex;
    gap:22px;
    color:var(--muted);
    font-size:14px;
}

.hero-card{
    background:#fff;
    border:1px solid var(--line);
    border-radius:28px;
    padding:34px;
    box-shadow:0 28px 70px #153b6920;
}

.score{
    font-size:88px;
    font-weight:900;
    color:var(--blue);
}

.score small{
    font-size:28px;
}

.bar{
    height:12px;
    background:#e7eef6;
    border-radius:99px;
    overflow:hidden;
    margin:18px 0;
}

.bar i{
    display:block;
    height:100%;
    background:linear-gradient(90deg,var(--blue2),var(--green));
}

.mini{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
}

.mini span{
    background:var(--bg);
    padding:12px;
    border-radius:12px;
    text-align:center;
    font-size:12px;
}

.section{
    padding:75px 7%;
    background:#fff;
}

.section.alt{
    background:var(--bg);
}

.section-title span{
    color:var(--green);
    font-weight:800;
}

.section-title h2{
    font-size:36px;
    margin:8px 0 30px;
}

.cards{
    display:grid;
    gap:18px;
}

.cards.four{
    grid-template-columns:repeat(4,1fr);
}

.cards.three{
    grid-template-columns:repeat(3,1fr);
}

.cards article,
.action-card{
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
    padding:24px;
    color:var(--ink);
}

.cards article b,
.action-card b{
    font-size:18px;
}

.cards article p,
.action-card p{
    color:var(--muted);
    line-height:1.7;
}

.timeline{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:16px;
}

.timeline article{
    display:flex;
    gap:20px;
    background:#fff;
    border:1px solid var(--line);
    padding:22px;
    border-radius:18px;
}

.timeline article>strong{
    width:44px;
    height:44px;
    border-radius:14px;
    background:var(--blue);
    color:#fff;
    display:grid;
    place-items:center;
    font-size:20px;
    flex:none;
}

.timeline h3{
    margin:0 0 4px;
}

.timeline p{
    color:var(--muted);
}

.timeline small{
    color:var(--green);
    font-weight:700;
}

.pricing{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
}

.pricing article{
    border:1px solid var(--line);
    background:#fff;
    border-radius:20px;
    padding:30px;
}

.pricing article strong{
    font-size:28px;
    color:var(--blue);
}

.pricing .featured{
    border:2px solid var(--green);
    transform:translateY(-8px);
}

.cta{
    margin:0;
    padding:70px 7%;
    background:linear-gradient(135deg,var(--blue),#092950);
    color:#fff;
    text-align:center;
}

.cta h2{
    font-size:38px;
}

.cta p{
    opacity:.85;
    max-width:850px;
    margin:0 auto 24px;
    line-height:1.8;
}

footer{
    padding:30px 7%;
    background:#061a2d;
    color:#c6d5e4;
    display:flex;
    gap:30px;
    justify-content:space-between;
    flex-wrap:wrap;
}

.auth{
    min-height:70vh;
    display:grid;
    place-items:center;
    padding:50px;
}

.authcard,
.setup-card{
    width:min(620px,94vw);
    background:#fff;
    border:1px solid var(--line);
    border-radius:22px;
    padding:32px;
    box-shadow:0 18px 50px #173c641a;
}

.authcard form,
label{
    display:grid;
    gap:7px;
}

.authcard form{
    gap:16px;
}

.auth input,
.auth select,
.auth textarea,
input,
select,
textarea{
    width:100%;
    padding:12px 13px;
    border:1px solid #cbd8e5;
    border-radius:10px;
    background:#fff;
    font:inherit;
}

.alert{
    padding:13px 15px;
    border-radius:10px;
    margin:12px 0;
}

.alert.ok{
    background:#e3f7ef;
    color:#126846;
}

.alert.bad{
    background:#fdeaea;
    color:#932e2e;
}

/* APP */

.app{
    display:grid;
    grid-template-columns:240px minmax(0,1fr);
    min-height:calc(100vh - 76px);
}

.side{
    background:#092d56;
    padding:24px 12px;
    display:grid;
    align-content:start;
    gap:7px;
    min-height:100%;
}

.side a{
    color:#dceafb;
    padding:12px 14px;
    border-radius:10px;
}

.side a:hover{
    background:#ffffff12;
}

.workspace{
    padding:34px;
    overflow:auto;
    min-width:0;
}

.workspace-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
}

.workspace h1{
    margin-top:0;
}

.muted{
    color:var(--muted);
}

/* METRICS */

.metrics{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
    margin:25px 0;
}

.metrics article{
    background:#fff;
    border:1px solid var(--line);
    border-radius:16px;
    padding:22px;
}

.metrics strong{
    display:block;
    font-size:34px;
    color:var(--blue);
}

.metrics span{
    color:var(--muted);
}

.metrics .warn strong{
    color:var(--bad);
}

/* PANELS */

.panel{
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
    padding:24px;
    margin:20px 0;
}

.grid2{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
}

.textbtn{
    border:0;
    background:none;
    color:var(--blue2);
    cursor:pointer;
}

/* GSR */

.gsr-list{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:12px;
    width:100%;
}

.gsr{
    display:grid;
    grid-template-columns:120px minmax(360px,600px) 170px 240px 90px;
justify-content:space-between;
    gap:14px;
    align-items:center;
    background:#fff;
    border:1px solid var(--line);
    border-radius:16px;
    padding:18px;
    width:100%;
    min-width:0;
    box-shadow:0 4px 14px rgba(11,59,118,.04);
}

.gsr:hover{
    border-color:#bfd4e8;
    box-shadow:0 8px 20px rgba(11,59,118,.08);
}

.gsr-code{
    font-weight:900;
    color:var(--blue);
}

.gsr-code small,
.grow small,
.tr small{
    display:block;
    color:var(--muted);
    font-weight:400;
}

.grow{
    min-width:0;
}

.grow span{
    display:block;
    color:var(--muted);
    margin-top:3px;
}

.gsr .grow .btn{
    margin-top:9px;
    padding:8px 13px;
    font-size:13px;
    width:auto;
}

.gsr button,
.task button{
    border:0;
    background:var(--blue);
    color:#fff;
    padding:10px;
    border-radius:8px;
    cursor:pointer;
}

/* PHASES */

.phase{
    background:#fff;
    border:1px solid var(--line);
    border-radius:16px;
    margin:13px 0;
    padding:0 18px;
}

.phase summary{
    display:grid;
    grid-template-columns:110px 1fr 120px;
    gap:14px;
    align-items:center;
    padding:20px 0;
    cursor:pointer;
}

.phase>p{
    color:var(--muted);
}

.task{
    display:grid;
    grid-template-columns:1fr 150px 220px 70px;
    gap:12px;
    align-items:center;
    border-top:1px solid var(--line);
    padding:16px 0;
}

/* TABLES */

.table{
    background:#fff;
    border:1px solid var(--line);
    border-radius:16px;
    overflow:hidden;
}

.tr{
    display:grid;
    grid-template-columns:2fr 1fr 1fr 100px;
    gap:12px;
    padding:14px 16px;
    border-top:1px solid var(--line);
    align-items:center;
}

.tr:first-child{
    border-top:0;
}

.tr.th{
    background:#edf4fb;
    font-weight:700;
}

/* SETUP */

.setup{
    display:grid;
    place-items:center;
    min-height:100vh;
    padding:30px;
    background:linear-gradient(135deg,#eef6ff,#effaf6);
}

.setup-card{
    width:min(780px,96vw);
}

.setup-card .brand{
    margin-bottom:20px;
}

.setup-card hr{
    border:0;
    border-top:1px solid var(--line);
}

/* TABLET */

@media(max-width:900px){

    .hero{
        grid-template-columns:1fr;
        padding:50px 6%;
    }

    .hero h1{
        font-size:42px;
    }

    .cards.four,
    .cards.three,
    .pricing,
    .timeline,
    .metrics{
        grid-template-columns:1fr 1fr;
    }

    .app{
        grid-template-columns:1fr;
    }

    .side{
        grid-template-columns:repeat(2,1fr);
        min-height:auto;
    }

    .gsr{
        grid-template-columns:85px minmax(0,1fr);
    }

    .gsr select,
    .gsr input,
    .gsr>button{
        grid-column:2;
    }

    .gsr .grow .btn{
        grid-column:auto;
    }

    .task{
        grid-template-columns:1fr;
    }

    .task>*{
        grid-column:1;
    }

    .top nav>a:not(.navbtn){
        display:none;
    }
}

/* MOBILE */

@media(max-width:600px){

    .cards.four,
    .cards.three,
    .pricing,
    .timeline,
    .metrics,
    .grid2{
        grid-template-columns:1fr;
    }

    .hero h1{
        font-size:34px;
    }

    .trust{
        display:grid;
    }

    .section{
        padding:50px 5%;
    }

    .workspace{
        padding:20px;
    }

    .side{
        grid-template-columns:1fr 1fr;
    }

    .gsr{
        grid-template-columns:1fr;
    }

    .gsr>*,
    .gsr select,
    .gsr input,
    .gsr>button{
        grid-column:1;
    }

    .tr{
        grid-template-columns:1fr;
    }
}