/* CemuHub — gaya kongsi laman (index, cert, tutorial, 404). Configure & denied ada salinan token sendiri. */
:root{
  --bg:#0b0a0f;
  --surface:#131119;
  --surface-2:#1a1722;
  --line:#25212f;
  --line-2:#352f44;
  --text:#f3f1f7;
  --muted:#a39db1;
  --faint:#757087;
  --accent:#8a5cf0;
  --accent-hi:#9d76f4;
  --accent-ink:#bea6ff;
  --accent-wash:rgba(138,92,240,.12);
  --ok:#3ecf8e;
  --danger:#ff6b81;
  --radius:14px;
  --wrap:1160px;
  color-scheme:dark;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:84px}
body{margin:0;background:var(--bg);color:var(--text);font:16px/1.6 "DM Sans",system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased;min-height:100vh;display:flex;flex-direction:column}
main{flex:1;min-width:0;width:100%}
.hero>*,.layout>*,.bento>*,.doc>*{min-width:0}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
p a,.link{color:var(--accent-ink);text-decoration:underline;text-decoration-color:rgba(190,166,255,.4);text-underline-offset:3px}
p a:hover,.link:hover{text-decoration-color:currentColor}
h1,h2,h3{margin:0;line-height:1.1;font-weight:700;letter-spacing:-.02em;text-wrap:balance}
p{margin:0}
:focus-visible{outline:2px solid var(--accent-ink);outline-offset:3px;border-radius:6px}
::selection{background:var(--accent);color:#fff}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 20px}
.muted{color:var(--muted)}
.faint{color:var(--faint)}
[hidden]{display:none!important}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* nav */
.nav{position:sticky;top:0;z-index:20;background:rgba(11,10,15,.82);backdrop-filter:saturate(1.4) blur(12px);-webkit-backdrop-filter:saturate(1.4) blur(12px);border-bottom:1px solid var(--line)}
.nav .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;height:64px}
.brand{display:flex;align-items:center;gap:10px;font-weight:700;letter-spacing:-.01em}
.brand img{width:28px;height:28px;border-radius:7px}
.brand em{font-style:normal;color:var(--accent-ink);font-weight:500}
.links{display:flex;align-items:center;gap:4px;font-size:14.5px}
.links a:not(.btn){padding:8px 12px;border-radius:8px;color:var(--muted);transition:color .15s,background .15s}
.links a:not(.btn):hover,.links a[aria-current]{color:var(--text);background:var(--surface-2)}
.links .btn{margin-left:8px}
.menu{display:none;position:relative}
.menu summary{list-style:none;cursor:pointer;width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--line-2);border-radius:10px}
.menu summary::-webkit-details-marker{display:none}
.menu[open] summary{background:var(--surface-2)}
.menu .sheet{position:absolute;right:0;top:52px;min-width:220px;background:var(--surface);border:1px solid var(--line-2);border-radius:12px;padding:6px;display:grid;box-shadow:0 18px 40px -12px rgba(0,0,0,.7)}
.menu .sheet a{padding:12px 14px;border-radius:8px;font-size:15px}
.menu .sheet a:hover{background:var(--surface-2)}
@media (max-width:820px){.links{display:none}.menu{display:block}}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:10px;border:1px solid transparent;font-weight:600;font-size:14.5px;line-height:1;font-family:inherit;cursor:pointer;background:var(--accent);color:#fff;transition:background .15s,border-color .15s,color .15s;white-space:nowrap}
.btn:hover{background:var(--accent-hi)}
.btn.ghost{background:transparent;border-color:var(--line-2);color:var(--text)}
.btn.ghost:hover{border-color:var(--accent);background:var(--accent-wash)}
.btn.lg{min-height:50px;padding:0 22px;font-size:15.5px}
.btn.block{width:100%}
.btn svg{width:16px;height:16px;flex:none}
.btns{display:flex;gap:10px;flex-wrap:wrap}

/* surfaces */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px}
a.card{display:block;transition:border-color .15s,background .15s}
a.card:hover{border-color:var(--line-2);background:var(--surface-2)}
.eyebrow{display:inline-block;font-size:12.5px;font-weight:600;color:var(--accent-ink);letter-spacing:.02em;margin-bottom:12px}
.tag{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:500;color:var(--muted);border:1px solid var(--line-2);border-radius:99px;padding:4px 11px}
.tags{display:flex;flex-wrap:wrap;gap:8px}

/* sections */
.section{padding:72px 0 0}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:24px;flex-wrap:wrap}
.section-head h2{font-size:clamp(26px,3.2vw,34px)}
.section-head p{color:var(--muted);max-width:56ch;margin-top:8px}

/* page header (inner pages) */
.page-head{padding:56px 0 32px}
.page-head h1{font-size:clamp(34px,5vw,54px);letter-spacing:-.03em}
.page-head p{color:var(--muted);max-width:60ch;margin-top:12px;font-size:17px}

/* faq */
.faq{border-top:1px solid var(--line)}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 0;font-weight:600;font-size:16px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"";flex:none;width:10px;height:10px;border-right:2px solid var(--faint);border-bottom:2px solid var(--faint);transform:rotate(45deg) translateY(-3px);transition:transform .2s}
.faq details[open] summary::after{transform:rotate(225deg) translateY(-3px)}
.faq summary:hover{color:var(--accent-ink)}
.faq details p{color:var(--muted);padding:0 0 20px;max-width:72ch}

/* forms */
.field{display:grid;gap:7px}
.field label{font-size:13.5px;font-weight:600;color:var(--muted)}
.input{width:100%;min-height:48px;padding:0 14px;background:var(--bg);border:1px solid var(--line-2);border-radius:10px;color:var(--text);font-size:15px;font-family:inherit;transition:border-color .15s,box-shadow .15s}
.input::placeholder{color:var(--faint)}
.input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-wash)}
.hint{font-size:13px;color:var(--faint)}

/* toggle chips: real checkboxes, keyboard reachable */
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:0 13px;border:1px solid var(--line-2);border-radius:99px;font-size:13.5px;font-weight:500;color:var(--muted);cursor:pointer;user-select:none;transition:border-color .15s,background .15s,color .15s}
.chip input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.chip::before{content:"";width:8px;height:8px;border-radius:99px;border:1.5px solid var(--faint);flex:none;transition:.15s}
.chip:hover{border-color:var(--faint)}
.chip:has(input:checked){border-color:rgba(138,92,240,.6);background:var(--accent-wash);color:var(--text)}
.chip:has(input:checked)::before{background:var(--accent-ink);border-color:var(--accent-ink)}
.chip:has(input:focus-visible){outline:2px solid var(--accent-ink);outline-offset:2px}
.chip small{color:var(--faint);font-size:12px}
.chip[hidden]{display:none}

.msg{font-size:14.5px;padding:12px 15px;border-radius:10px;border:1px solid var(--line-2);background:var(--surface)}
.msg.ok{border-color:rgba(62,207,142,.5)}
.msg.bad{border-color:rgba(255,107,129,.5)}

/* footer */
.foot{margin-top:96px;border-top:1px solid var(--line);color:var(--faint);font-size:13.5px}
.foot .wrap{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;padding-top:26px;padding-bottom:26px}
.foot nav{display:flex;gap:18px;flex-wrap:wrap}
.foot a:hover{color:var(--text)}

/* toast */
#toast{position:fixed;left:50%;bottom:24px;z-index:50;transform:translate(-50%,12px);opacity:0;pointer-events:none;background:var(--text);color:var(--bg);font-size:14px;font-weight:600;padding:12px 18px;border-radius:10px;transition:opacity .2s,transform .2s;max-width:calc(100vw - 32px);text-align:center}
#toast.show{opacity:1;transform:translate(-50%,0)}

@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}html{scroll-behavior:auto}}
