/* =====================================================================
   Halaman Download Software Mouse & Buku Panduan — gaya sama dengan beranda
   ===================================================================== */
:root {
    --bg: #f6f6f8; --surface: #ffffff; --surface-2: #ffffff;
    --line: rgba(15,23,42,0.077); --line-strong: rgba(15,23,42,0.154);
    --text: #111827; --muted: #4b5563; --dim: #6b7280;
    --red: #ff1744; --red-hover: #ff1744; --red-soft: rgba(255,23,68,0.1); --red-line: rgba(255,23,68,0.3);
    --green: #22c55e; --radius: 16px; --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
    margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
body::before {
    content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(700px 420px at 15% -10%, rgba(255,23,68,0.14), transparent 70%),
                radial-gradient(600px 400px at 100% 0%, rgba(255,23,68,0.06), transparent 70%);
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,0.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .3px; text-decoration: none; }
.brand .mark { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #fff5f7; border: 1.5px solid var(--red); box-shadow: 0 0 16px rgba(255,23,68,0.4); font-size: .85rem; }
.brand b { color: var(--red); }
.top-links { display: flex; gap: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 18px; border-radius: 11px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: .85rem; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, border-color .2s, box-shadow .2s; white-space: nowrap; color: var(--text); background: transparent; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 26px rgba(255,23,68,0.28); }
.btn-primary:hover { background: var(--red-hover); box-shadow: 0 14px 32px rgba(255,23,68,0.4); }
.btn-ghost { border-color: var(--line-strong); }
.btn-ghost:hover { border-color: rgba(15,23,42,0.33); background: rgba(15,23,42,0.03); }
.btn-yt { background: rgba(255,23,68,0.1); border-color: rgba(255,23,68,0.35); color: #ff1744; }
.btn-yt:hover { background: rgba(255,23,68,0.18); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 14px; font-size: .8rem; }

/* Hero */
.hero { padding: 54px 0 26px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--red); font-size: .72rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--red); box-shadow: 0 0 8px var(--red); }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); line-height: 1.1; letter-spacing: -1.2px; margin: 12px 0 12px; }
.hero h1 span { color: var(--red); }
.hero p { color: var(--muted); max-width: 640px; margin: 0; }
.stats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px; }
.stats div { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; }
.stats i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--red-soft); border: 1px solid var(--red-line); color: var(--red); font-size: .85rem; }
.stats b { color: var(--text); }

/* Toolbar: cari + filter */
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 10px 0 22px; }
.search { position: relative; flex: 1 1 280px; max-width: 420px; }
.search i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.search input { width: 100%; padding: 12px 14px 12px 42px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); font: inherit; font-size: .9rem; outline: none; transition: border-color .2s, box-shadow .2s; }
.search input:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(255,23,68,0.12); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; transition: .2s; }
.chip:hover { color: var(--text); border-color: rgba(15,23,42,0.33); }
.chip.on { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(255,23,68,.25); }
.chip.on small { color: rgba(255,255,255,.8); }
.chip small { color: var(--dim); font-weight: 600; margin-left: 4px; }

/* Grid kartu */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); border-color: var(--red-line); box-shadow: 0 20px 44px rgba(15,23,42,0.126); }
.card-media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #ffffff, #ffffff); display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media.cover { aspect-ratio: 1 / 1; }
.card-media.cover img { object-fit: cover; padding: 0; }
.card-media .ph { font-size: 2.6rem; color: rgba(255,23,68,0.35); }
.tag { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; font-size: .66rem; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; background: rgba(255,255,255,0.85); border: 1px solid var(--line-strong); backdrop-filter: blur(6px); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 0 0 6px; font-size: 1rem; line-height: 1.35; letter-spacing: -.2px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--dim); font-size: .76rem; margin-bottom: 14px; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.ver { color: var(--muted); font-size: .8rem; margin: 0 0 12px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-actions { margin-top: auto; display: flex; gap: 8px; }
.card-actions .btn { flex: 1; }

.empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }
.empty i { font-size: 2rem; color: var(--dim); margin-bottom: 10px; display: block; }

/* Info strip */
.note { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); margin: 34px 0 0; color: var(--muted); font-size: .85rem; }
.note i { color: var(--red); margin-top: 3px; }
.note b { color: var(--text); }

/* Detail panduan */
.detail { display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: start; padding: 34px 0 10px; }
.detail-cover { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); position: sticky; top: 88px; }
.detail-cover img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.detail-cover .ph { aspect-ratio: 1 / 1; display: grid; place-items: center; font-size: 4rem; color: rgba(255,23,68,0.35); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.panel + .panel { margin-top: 16px; }
.panel h1 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.2; letter-spacing: -.8px; margin: 8px 0 12px; }
.panel h2 { font-size: 1rem; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.panel h2 i { color: var(--red); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.fact { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .76rem; color: var(--muted); }
.fact b { color: var(--text); }
.warn { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: rgba(255,23,68,0.08); border: 1px solid rgba(255,23,68,0.3); color: #e11d48; font-size: .86rem; margin-bottom: 16px; }
.warn i { color: #ff1744; margin-top: 3px; }
.prose { color: #4b5563; font-size: .92rem; line-height: 1.8; white-space: pre-line; }
.video { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #111 center / cover no-repeat; border: 1px solid var(--line); text-decoration: none; }
.video::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.65)); }
.video .play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; display: grid; place-items: center; background: #ff1744; color: #fff; font-size: 1.2rem; box-shadow: 0 0 0 10px rgba(255,23,68,0.18); transition: transform .25s; }
.video:hover .play { transform: scale(1.1); }
.video .play i { margin-left: 4px; }
.video span.cap { position: absolute; left: 14px; bottom: 12px; z-index: 1; color: #fff; font-size: .8rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.dl-box { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.dl-box p { margin: 0; color: var(--muted); font-size: .85rem; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: .85rem; font-weight: 700; margin-top: 26px; }
.back-link:hover { color: var(--text); }

footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 26px 0; color: var(--dim); font-size: .8rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 900px) {
    .detail { grid-template-columns: 1fr; }
    .detail-cover { position: static; max-width: 420px; }
}
@media (max-width: 560px) {
    .wrap { padding: 0 16px; }
    .top-links .btn span { display: none; }
    .hero { padding: 36px 0 18px; }
    .search { max-width: none; }
    .panel { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
