:root{
    --bg: #0B0A0A;
    --panel: #120B0B;
    --card: #1A0F0F;
    --text: #F3F4F6;   
    --muted:#D4C6C3;
    --brand:#A3342B;   
    --brand-2:#FFB649; 
    --accent:#FFB649;
    --shadow: 0 10px 30px rgba(0,0,0,.35);
    --radius: 14px;
    --container: clamp(1240px, 94vw, 1680px);
}


*{
    box-sizing:border-box;
}
html {
    scroll-behavior: smooth;
}
html,body{
    height:100%;
}
body{
    margin:0;
    font: 16px/1.65 system-ui,-apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial;
    color:var(--text);                
    background:
        radial-gradient(1200px 600px at 30% -20%, rgba(163,52,43,.24), transparent 60%),
        radial-gradient(1000px 500px at 80% 10%, rgba(255,182,73,.16), transparent 60%),
        linear-gradient(#0b0a0a, #140c0c);
}
h1,h2,h3,h4,h5,h6,p,li,summary,label,small,strong,b,em,span,a{
    color:var(--text);
}
a{
    text-decoration:none;
}
a:hover{
    opacity:.95;
}
::selection{
    background: rgba(255,182,73,.35); 
    color:#fff
}

.container{
    max-width:var(--container);
    margin:0 auto; 
    padding:0 20px;
}
.section{
    margin:50px 0;
}
.section-title{
    margin:0 0 12px; 
    font-size:clamp(20px, 2.2vw, 28px)
}
.mt-1{
    margin-top:12px;
}
.muted{
    color:var(--muted);
}
.small{
    font-size:12px;
}
.w-full{
    width:100%;
}

/* Button */
.btn {
    border:0; 
    border-radius:10px; 
    padding:10px 14px; 
    cursor:pointer; 
    color:var(--text);
    transition: 0.3s ease;

}
.btn:hover {
    transform: scale(1.1);
    background-color: #f89c12;
    color: white;
}
.btn-ghost{
    background:transparent;
}
.btn-primary{
    background:var(--brand); 
    color:#fff;
    box-shadow:var(--shadow)
}
.btn-primary:hover{
    background-color: #ff5b4c;
}
.btn-outline{
    background:transparent; 
    border:1px solid 
    rgba(255,255,255,.2)
}
.btn:hover{
    filter:brightness(1.07);
}
.only-mobile{
    display:none;
}

/* Topbar  */
.topbar{
    position:relative; 
    top:75px; 
    z-index:70;
    display:flex; 
    justify-content:space-between; 
    align-items:center; 
    gap:8px;
    padding:10px 20px; 
    background: linear-gradient(90deg, rgba(163,52,43,.22), rgba(255,182,73,.18));
    border-bottom:1px solid rgba(255,255,255,.06); 
    backdrop-filter: blur(8px);
    color:var(--text);
}

/* header */
.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;              
    z-index: 100;             
    background: var(--panel);
    border-bottom: 1px solid rgba(255,255,255,.06);
    display: flex;            
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    box-sizing: border-box;
}
.header-actions{
    display:flex; 
    gap:8px; 
    justify-self:end}
.badge-parent{
    position:relative;
}
.badge-num{
    position:absolute; 
    top:-6px; 
    right:-6px; 
    min-width:18px; 
    height:18px; 
    padding:0 5px;
    border-radius:999px; 
    background:var(--brand-2); 
    color:#2B1412; 
    font-size:12px; 
    display:grid; 
    place-items:center;
}
.brand{
    display:flex; 
    align-items:center;
    gap:12px; 
    color:var(--text);
}
.logo{
    width:46px; 
    height:46px; 
    display:grid; 
    place-items:center; 
    border-radius:12px; 
    border:1px solid rgba(255,255,255,.10); 
    overflow:hidden;
}
.logo img{
    width:100%; 
    height:100%; 
    object-fit:contain; 
    display:block;
}
.brand-text small{
    color:var(--muted)
}
.nav{
    display:flex;
    gap:16px; 
    justify-self:center;
}
.nav a{
    transition: ease 0.3s;
}
.nav a:hover{
    transform: scale(1.03);
    font: bolder;
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 5px;
}

/*  Drawer (Mobile Menu) */
.backdrop{
    position:fixed; 
    inset:0; 
    background:rgba(0,0,0,.55);
    opacity:0; 
    pointer-events:none; 
    transition:opacity .2s ease; 
    z-index:80;
}
.backdrop.show{
    opacity:1; 
    pointer-events:auto;
}
.drawer{
    position:fixed; 
    inset:0 0 0 auto; 
    width:min(340px, 86vw); 
    transform:translateX(100%);
    background:#160D0D; 
    border-left:1px solid rgba(255,255,255,.08); 
    z-index:90;
    display:flex; 
    flex-direction:column; 
    transition:transform .25s ease; 
    color:var(--text);
}
.drawer.open{
    transform:translateX(0)
}
.drawer-head{display:flex;
    align-items:center; 
    justify-content:space-between; 
    gap:10px; padding:14px 16px; 
    border-bottom:1px solid rgba(255,255,255,.08); 
    background:var(--panel);
    color:var(--text);
}
.drawer-nav{
    display:flex; 
    flex-direction:column; 
    padding:10px;
}
.drawer-nav a{
    padding:10px 12px; 
    margin:4px 0; 
    border-radius:10px; 
    color:var(--text);
    background:rgba(255,255,255,.04); 
    border:1px solid rgba(255,255,255,.06);
    transition: ease 0.3s;
    
}
.drawer-nav a:hover {
    transform: scale(1.05);
}
.drawer-foot{
    margin-top:auto; 
    padding:12px; 
    border-top:1px solid rgba(255,255,255,.08); 
    background:var(--panel); 
    color:var(--text);
}
body.noscroll{
    overflow:hidden;
}

@media (max-width: 940px){
    .only-mobile{
        display:inline-flex;
    }
    .nav{
        display:none;
    }
    .header{
        grid-template-columns:auto 1fr auto;
    }
}

/* Hero (kontras tinggi)  */
.hero{
    position:relative; 
    overflow:hidden; 
    padding:96px 20px 72px; 
    border-bottom:1px solid rgba(255,255,255,.06);
}
.hero-scrim{
    position:absolute; 
    inset:0;
    background:
        radial-gradient(1200px 650px at 50% -10%, rgba(0,0,0,.45), transparent 60%),
        radial-gradient(500px 300px at 80% 10%, rgba(255,182,73,.18), transparent 60%);
    pointer-events:none;
}
.surface{
    background:rgba(17,10,10,.72);
    border:1px solid rgba(255,255,255,.10);
    border-radius:16px; 
    padding:26px; 
    backdrop-filter:saturate(120%) blur(6px);
    color:var(--text);
}
.hero-inner{
    max-width:min(1100px, 96vw); 
    margin:0 auto; 
    text-align:center;
}
.hero h1{
    font-size:clamp(30px, 5vw, 56px); 
    margin:0 0 10px; 
    text-shadow:0 1px 2px rgba(0,0,0,.35);
}
.hero p{
    color:var(--text); 
    opacity:.92; 
    margin:0 auto 18px;
    max-width:900px; 
    text-shadow:0 1px 1px rgba(0,0,0,.25);
}
.hero-cta{
    display:flex; 
    gap:10px; 
    justify-content:center;
    flex-wrap:wrap;
}

/* Cards & lists */
.card{
    background:var(--card);
    border:1px solid rgba(255,255,255,.07);
    border-radius:var(--radius);
    padding:18px; 
    box-shadow:var(--shadow); 
    color:var(--text);
}
.grid{
    display:grid; 
    gap:16px
}
.auto-fit-320{
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
}
.auto-fit-300{
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
}
.auto-fit-280{
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
}
.kv{
    list-style:none; 
    margin:0; 
    padding:0;
}
.kv li{
    display:flex; 
    justify-content:space-between; 
    gap:16px; padding:8px 0; 
    border-bottom:1px dashed rgba(255,255,255,.08);
}
.kv li:last-child{
    border-bottom:0;
}
.kv span{
    color:var(--muted);
}

.list{
    margin:0; 
    padding-left:18px;
}
.list li{
    margin:6px 0;
}

/*  Search  */
.actions-inline{
    display:flex; 
    gap:8px; 
    align-items:center; 
    flex-wrap:wrap; 
    color:var(--text);
}
.pill{
    display:flex; 
    align-items:center; 
    gap:8px; 
    background:var(--panel);
    border:1px solid rgba(255,255,255,.10); 
    padding:8px 10px; 
    border-radius:12px; 
    color:var(--text);
}
.pill input{
    background:transparent; 
    border:0; 
    color:var(--text); 
    outline:none; 
    min-width:220px;
}
.pill input::placeholder{
    color:currentColor; 
    opacity:.55;
}
.kbd{
    font-size:12px; 
    opacity:.75; 
    border:1px solid rgba(255,255,255,.25); 
    padding:0 6px; 
    border-radius:6px; 
    color:var(--text);
}
select{
    background:var(--panel); 
    color:var(--text); 
    border:1px solid rgba(255,255,255,.15); 
    padding:8px 10px; 
    border-radius:10px;
}

/*  Book Cards  */
.book.card{
    display:flex; 
    flex-direction:column; 
    gap:12px; 
    color:var(--text);
}

.thumb{
    border-radius:12px; 
    aspect-ratio: 4/3; 
    display:grid; 
    place-items:center;
    background:
    linear-gradient(120deg, rgba(163,52,43,.22), rgba(255,182,73,.16)),
    radial-gradient(400px 160px at 10% 10%, rgba(255,182,73,.22), transparent 60%),
    #110A0A; border:1px solid rgba(255,255,255,.10);
}
.thumb svg{
    width:60px; 
    height:60px; 
    opacity:.95; 
    color:var(--text);
}
.meta{
    display:flex; 
    flex-direction:column; 
    gap:6px; 
    color:var(--text);
}
.meta .title{font-weight:700;
    color:var(--text);
}
.meta .author{
    color:var(--muted); 
    font-size:14px;
}
.price{
    font-weight:700;
    color:var(--brand-2);
}
.badge{
    font-size:12px; 
    color:#2B1412; 
    background:var(--accent); 
    padding:4px 8px; 
    border-radius:999px;
}
.actions{display:flex; 
    gap:8px; 
    margin-top:auto;
}
.actions .btn{
    flex:1;
}
.card.book {
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card.book:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.card.book .thumb {
    width: 100%;
    height: 250px; 
    overflow: hidden;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card.book .thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    object-position: center;
    background-color: var(--brand-2); 
    display: block;
    border-radius: 10px;
}

.card.book .meta {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}




/*  Roadmap  */
.tabs{
    display:flex; 
    gap:6px; 
    flex-wrap:wrap; 
    margin-bottom:10px; 
    color:var(--text);
}
.tab{
    padding:8px 10px; 
    border-radius:999px; 
    border:1px solid 
    rgba(255,255,255,.18); 
    background:transparent; 
    color:var(--text); 
    cursor:pointer;
}
.tab.is-active{
    background:var(--brand); 
    border-color:var(--brand); 
    color:#fff
}
.roadmap-wrap{display:grid; 
    gap:22px; 
    color:var(--text)
}
.phase{
    display:grid; 
    gap:12px;
}
.phase-head{
    display:flex; 
    align-items:center; 
    justify-content:space-between; 
    gap:12px;
}
.phase-title{
    display:flex; 
    align-items:center; 
    gap:10px;
}
.phase-title .dot{
    width:10px; 
    height:10px; 
    border-radius:50%;
    background:var(--brand-2); 
    box-shadow:0 0 18px rgba(255,182,73,.6);
}
.phase-grid{
    display:grid; 
    gap:12px; 
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
}
.phase .card h4{
    margin:0 0 8px; 
    font-size:1.02rem;
}
.phase .list{
    padding-left:18px;
}

/*  Struktur Organisasi (Perbaikan Layout Team)  */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 20px;
    justify-items: center;
    padding: 10px;
}

.team-grid .card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    max-width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
}

.team-grid .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* Avatar logo bulat */
.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgb(255, 230, 0), #ffde24);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.avatar img:hover {
    transform: scale(1.1);
}

/* Nama dan peran */
.name {
    font-weight: 600;
    font-size: 1rem;
    margin-top: 4px;
    color: var(--text);
}

.role {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 2px;
}

/*  Contact  */
.contact{
    display:grid; 
    grid-template-columns:1.2fr .8fr; 
    gap:16px;
}
form label{
    display:block; 
    margin:8px 0; 
    color:var(--text);
}
input,textarea{
    width:100%; 
    padding:10px 12px; 
    color:var(--text);
    background:#130C0C;
    border:1px solid rgba(255,255,255,.15); 
    border-radius:10px;
}
input::placeholder, textarea::placeholder{
    color:currentColor; 
    opacity:.55;
}
.form-resp{
    min-height:20px; 
    margin-top:6px;
}
@media (max-width: 940px){ 
    .contact{
        grid-template-columns:1fr;
    } 
}

/*  FAQ  */
details{
    background:var(--panel); 
    border:1px solid rgba(255,255,255,.10); 
    border-radius:12px; 
    padding:12px 14px; 
    margin:10px 0; 
    color:var(--text);
}
summary{
    cursor:pointer; 
    font-weight:600; 
    color:var(--text);
}

/*  Footer  */
.footer{
    margin-top:48px; 
    padding:24px 0; 
    background:var(--panel); 
    border-top:1px solid rgba(255,255,255,.06); 
    color:var(--text);
}
.footer-inner{
    display:flex; 
    align-items:center; 
    justify-content:space-between;
    gap:16px; 
    flex-wrap:wrap;
}
.footer a{
    opacity:.95;
}
.footer a:hover{
    opacity:1;
}
.brand.mini .logo{
    width:32px; 
    height:32px;
}

/*  Empty / helpers  */
.empty{
    opacity:.9; 
    text-align:center; 
    padding:16px 0;
}
.hidden{
    display:none;
}

/*  Modal  */
.modal{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 10px;
    box-sizing: border-box;
    border: 0;
    border-radius: 12px;
    background: var(--card);
    color: var(--text);
}
.modal::backdrop{
    background:rgba(0,0,0,.55);
}
.modal-box{
    width:min(780px, 96vw); 
    background:var(--card); 
    border:1px solid rgba(255,255,255,.12);
    border-radius:14px; 
    box-shadow:var(--shadow); 
    padding:0; overflow:hidden; 
    color:var(--text);
}
.modal-head,.modal-foot{
    display:flex; 
    align-items:center; 
    justify-content:space-between; 
    gap:10px; padding:14px 16px; 
    background:var(--panel); 
    border-bottom:1px solid rgba(255,255,255,.10); 
    color:var(--text);
}
.modal-foot{
    border-top:1px solid rgba(255,255,255,.10); 
    border-bottom:0;
}
.modal .body{
    padding:16px; 
    color:var(--text)
}
.modal .grid-2{
    display:grid; 
    grid-template-columns:1fr 1fr; 
    gap:14px;
}
@media (max-width: 600px) {
    .modal {
        top: 0;
        left: 0;
        transform: none;
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        overflow-y: auto;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; 
    }
    .modal-content {
        min-width: 100%;
        box-sizing: border-box;
        padding: 1rem;
    }
}

/*  Cart  */
.cart-list{
    display:grid; 
    gap:10px; 
    color:var(--text);
}
.cart-item{
    display:grid; 
    grid-template-columns:auto 1fr auto auto; 
    gap:10px; 
    align-items:center;
    padding:10px; 
    border:1px solid rgba(255,255,255,.10); 
    border-radius:12px; 
    background:#140d0d; 
    color:var(--text);
}
.cart-item .thumb{
    width:48px; 
    height:48px; 
    aspect-ratio:1/1;
}
.qty{
    display:inline-flex; 
    align-items:center; 
    gap:6px; 
    border:1px solid rgba(255,255,255,.15);
    border-radius:10px; 
    padding:4px 8px; 
    color:var(--text);
}
.qty button{background:transparent; 
    color:var(--text); 
    border:0; 
    font-size:18px; 
    width:22px; 
    height:22px; 
    cursor:pointer;
}
.qty input{
    color:var(--text);
}
.cart-summary{
    margin:10px 0; 
    border-top:1px dashed rgba(255,255,255,.18); 
    padding-top:10px; 
    color:var(--text);
}
.sum-row{display:flex; 
    justify-content:space-between; 
    align-items:center; 
    margin:6px 0; 
    color:var(--text);
}

/*  Toast & Back to top  */
.toast{
    position:fixed; 
    right:16px; 
    bottom:16px; 
    z-index:100;
    background: #140d0d;
    border:1px solid rgba(255,255,255,.10); 
    padding:10px 12px; 
    color: #fff;
    border-radius:10px; 
    opacity:0; 
    transform:translateY(10px);
    transition: all .25s ease;
}
.toast.show{
    opacity:1; 
    transform:translateY(0);
}
.btn-top{
    position:fixed; 
    right:16px; 
    bottom:78px; 
    width:44px; 
    height:44px; 
    border-radius:50%;
    background:var(--brand); 
    color:#fff; 
    border:0; 
    box-shadow:var(--shadow);
    display:grid; 
    place-items:center; 
    cursor:pointer; 
    opacity:0; 
    transform:translateY(10px);
    transition: all .25s ease;
}
.btn-top.show{
    opacity:1; 
    transform:translateY(0);
}

/* Light mode opsional*/
body.light{
    --bg: #FFF9F0;
    --panel:#FFFFFF;
    --card:#FFFFFF;
    --text:#1E0E0C;          
    --muted:#5D4844;
    background:linear-gradient(180deg,#FFF4E2 0%, #FFF9F0 100%);
}
body.light .topbar{
    background: 
    linear-gradient(90deg, rgba(163,52,43,.10), rgba(255,182,73,.12));
}
body.light .surface{
    background:rgba(255,255,255,.78); 
    border-color:rgba(0,0,0,.08);
}
body.light .drawer{
    background:#fff;
}
body.light .drawer-head{background:#fff; 
    border-color:rgba(0,0,0,.08);
}
body.light .drawer-nav a{
    background:#F5EFE8; 
    border-color:#E8D9D3;
}
body.light input, body.light textarea{
    background:#F7EFE8; 
    border-color:#E8D9D3; 
    color:var(--text);
}
body.light .pill{
    background:#fff; 
    border-color:rgba(0,0,0,.1);
}
body.light select{
    background:#fff; 
    border-color:rgba(0,0,0,.15); 
    color:var(--text);
}
body.light .cart-item {
    background: #fffaf5;
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text);
}

body.light .cart-summary {
    border-top-color: rgba(0, 0, 0, 0.1);
    color: var(--text);
}

body.light .qty {
    border-color: rgba(0, 0, 0, 0.2);
}

body.light .qty button {
    color: var(--text);
}

body.light .modal-box {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--text);
}

body.light .modal-head,
body.light .modal-foot {
    background: #fff8f3;
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text);
}