/* ============================================================
   Blockchain101 — Stylesheet
   Tema: Dark edukatif, aksen emerald + cyan + violet
   ============================================================ */

:root {
  --bg: #070d1a;
  --bg-2: #0d1526;
  --surface: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.15);
  --text: #f3f7fd;                 /* kontras tinggi: nyaman dibaca */
  --muted: #b7c2d6;                /* dinaikkan agar teks pendukung jelas */
  --emerald: #3ee6a8;
  --cyan: #38d9f5;
  --violet: #a78bfa;
  --gold: #fcd34d;
  --red: #fb7a7a;
  --grad: linear-gradient(120deg, #34d399, #22d3ee);
  --grad-title: linear-gradient(110deg, #3ee6a8 10%, #38d9f5 50%, #a78bfa 95%);
  --radius: 18px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --nav-bg: rgba(7, 13, 26, 0.88);
  --menu-bg: rgba(13, 21, 38, 0.97);
  --input-bg: rgba(0, 0, 0, 0.3);
}

/* ---------- TEMA TERANG ---------- */
[data-theme="light"] {
  --bg: #f0f4fa;
  --bg-2: #ffffff;
  --surface: rgba(10, 25, 55, 0.05);
  --border: rgba(10, 25, 55, 0.18);
  --text: #0d1526;
  --muted: #47536b;                /* lebih gelap → kontras baca tinggi */
  --emerald: #059669;
  --cyan: #0e94b8;
  --violet: #7c3aed;
  --gold: #b45309;
  --red: #dc2626;
  --grad-title: linear-gradient(110deg, #059669 10%, #0e94b8 50%, #7c3aed 95%);
  --shadow: 0 18px 44px rgba(16, 24, 40, 0.14);
  --nav-bg: rgba(255, 255, 255, 0.9);
  --menu-bg: rgba(255, 255, 255, 0.98);
  --input-bg: #ffffff;
}

[data-theme="light"] .bg-glow {
  background:
    radial-gradient(600px 400px at 12% 8%, rgba(52, 211, 153, 0.2), transparent 60%),
    radial-gradient(700px 500px at 88% 25%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(760px 520px at 30% 88%, rgba(167, 139, 250, 0.14), transparent 60%),
    var(--bg);
}

body { transition: background 0.35s ease, color 0.35s ease; }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  font-size: 1.03rem;              /* sedikit diperbesar agar nyaman dibaca */
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
}

/* Keterbacaan & aksesibilitas global */
p { color: var(--muted); }
strong { color: var(--text); }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

img { max-width: 100%; display: block; }

.container { width: min(1100px, 92%); margin-inline: auto; }

/* Dekorasi latar */
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 400px at 12% 8%, rgba(52, 211, 153, 0.16), transparent 60%),
    radial-gradient(700px 500px at 88% 25%, rgba(34, 211, 238, 0.13), transparent 60%),
    radial-gradient(760px 520px at 30% 92%, rgba(167, 139, 250, 0.12), transparent 60%),
    var(--bg);
}

/* ---------- Utilitas ---------- */
.section { padding: 92px 0; }

.section-tag {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emerald);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.4);
  padding: 6px 16px; border-radius: 999px;
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700; line-height: 1.2;
  margin-bottom: 16px;
}

.grad-text {
  background: var(--grad-title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-sub { color: var(--muted); max-width: 680px; font-size: 1.08rem; }
.text-center { text-align: center; }
.text-center .section-sub { margin-inline: auto; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 14px 30px; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary {
  background: var(--grad); color: #04120c;
  box-shadow: 0 10px 30px rgba(52, 211, 153, 0.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(34, 211, 238, 0.35); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--emerald); color: var(--emerald); transform: translateY(-3px); }

/* ---------- Glass ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  padding: 10px 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid var(--border);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo { font-size: 1.6rem; }
.nav-title { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--text); }
.nav-title em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-menu { display: flex; align-items: center; gap: 26px; }
.nav-link {
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  position: relative; transition: color 0.2s ease;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--grad); border-radius: 2px;
  transition: width 0.25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ---------- Aksi navbar (tema + CTA) ---------- */
.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 1.1rem; cursor: pointer;
  display: grid; place-items: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.theme-btn:hover { transform: rotate(18deg) scale(1.08); border-color: var(--emerald); }

.nav-cta {
  font-family: var(--font-head); font-weight: 600; font-size: 0.88rem;
  color: #04120c; text-decoration: none;
  background: var(--grad); padding: 10px 20px; border-radius: 999px;
  box-shadow: 0 8px 22px rgba(52, 211, 153, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(34, 211, 238, 0.35); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-menu .nav-cta { margin-top: 8px; }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto; width: min(300px, 80vw);
    flex-direction: column; align-items: flex-start; gap: 22px;
    background: var(--menu-bg);
    backdrop-filter: blur(20px);
    padding: 100px 36px 40px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    border-left: 1px solid var(--border);
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 0 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px; align-items: center;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.3rem, 5.5vw, 3.8rem);
  font-weight: 700; line-height: 1.12;
  margin-bottom: 22px;
}

.hero-desc { color: var(--muted); font-size: 1.08rem; max-width: 560px; margin-bottom: 32px; }
.hero-desc strong { color: var(--text); }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Visual rantai blok */
.hero-chain {
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.chain-block {
  width: min(280px, 100%);
  padding: 22px 26px;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}
.chain-block:nth-child(3) { animation-delay: 0.8s; }
.chain-block:nth-child(5) { animation-delay: 1.6s; }

.cb-title { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--emerald); }
.cb-hash { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); }

.chain-link {
  width: 4px; height: 34px;
  background: var(--grad); border-radius: 4px;
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.5);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
}

/* ============================================================
   APA ITU — ANALOGI
   ============================================================ */
.analogi {
  display: flex; gap: 28px; align-items: flex-start;
  padding: 40px;
  margin-bottom: 40px;
}
.analogi-icon { font-size: 3.2rem; line-height: 1; }
.analogi h3 { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 12px; }
.analogi p { color: var(--muted); }

.analogi-list { list-style: none; margin: 18px 0; display: grid; gap: 10px; }
.analogi-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 16px; border-radius: 12px;
  color: var(--muted); font-size: 0.97rem;
}
.analogi-list strong { color: var(--text); }

.analogi-concl { font-size: 1.08rem; }

@media (max-width: 640px) {
  .analogi { flex-direction: column; padding: 28px 22px; gap: 16px; }
}

/* ---------- 4 Karakteristik ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-card {
  padding: 30px 24px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(52, 211, 153, 0.45); }

.feature-icon { font-size: 2.2rem; margin-bottom: 14px; }
.feature-card h4 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.92rem; }
.feature-card strong { color: var(--text); }

@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .feature-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CARA KERJA — TIMELINE
   ============================================================ */
.timeline {
  display: grid; gap: 20px;
  max-width: 760px; margin-inline: auto;
  position: relative;
}
.timeline::before {
  content: ''; position: absolute; left: 29px; top: 20px; bottom: 20px;
  width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--emerald), var(--cyan));
  opacity: 0.35;
}

.tl-item {
  display: flex; gap: 22px; align-items: flex-start;
  padding: 26px 28px;
  position: relative; z-index: 1;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.tl-item:hover { transform: translateX(8px); border-color: rgba(34, 211, 238, 0.4); }

.tl-num {
  flex-shrink: 0;
  width: 60px; height: 60px; border-radius: 16px;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.4rem;
  background: var(--grad); color: #04120c;
  box-shadow: 0 8px 24px rgba(52, 211, 153, 0.35);
}
.tl-item h4 { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 6px; }
.tl-item p { color: var(--muted); font-size: 0.96rem; }
.tl-item strong { color: var(--text); }

/* ============================================================
   BANK VS BLOCKCHAIN
   ============================================================ */
.vs-table { overflow: hidden; }

.vs-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 1.1fr;
}
.vs-row > div {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  color: var(--muted); font-size: 0.95rem;
}
.vs-row > div:first-child { font-weight: 600; color: var(--text); }

.vs-head > div {
  font-family: var(--font-head); font-weight: 700;
  color: var(--text); border-top: none;
  background: rgba(52, 211, 153, 0.06);
}

.vs-row .hl { color: var(--emerald); font-weight: 600; }

@media (max-width: 700px) {
  .vs-row { grid-template-columns: 1fr; }
  .vs-row > div { border-top: none; padding: 10px 20px; }
  .vs-row > div:first-child { padding-top: 18px; border-top: 1px solid var(--border); }
  .vs-head { display: none; }
  .vs-row > div:nth-child(2)::before { content: '🏦 Bank: '; font-weight: 600; color: var(--text); }
  .vs-row > div:nth-child(3)::before { content: '⛓️ Blockchain: '; font-weight: 600; color: var(--text); }
}

/* ============================================================
   VIDEO PEMBELAJARAN
   ============================================================ */
.yt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.yt-card {
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.yt-card:hover {
  transform: translateY(-8px);
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: var(--shadow);
}

.video-frame {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: #000;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.yt-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 9px; flex: 1; }

.yt-level {
  align-self: flex-start;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
  color: var(--lv);
  background: color-mix(in srgb, var(--lv) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--lv) 35%, transparent);
}

.yt-body h4 { font-family: var(--font-head); font-size: 1.08rem; line-height: 1.35; }
.yt-body p { color: var(--muted); font-size: 0.9rem; }
.yt-channel {
  font-size: 0.82rem; font-weight: 600; color: var(--cyan);
  margin-top: auto; padding-top: 10px;
  border-top: 1px dashed var(--border);
}

/* Video tunggal (halaman wallet) — tampil lebar & di tengah */
.yt-single { max-width: 720px; margin-inline: auto; }

@media (max-width: 960px) { .yt-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* ============================================================
   SIMULASI BLOCKCHAIN
   ============================================================ */
.sim-status {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  max-width: 640px; margin: 0 auto 36px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.3);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.sim-status.invalid {
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.4);
}
.sim-dot {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
  background: var(--emerald); box-shadow: 0 0 12px var(--emerald);
}
.sim-status.invalid .sim-dot { background: var(--red); box-shadow: 0 0 12px var(--red); }

.sim-chain {
  display: flex; align-items: stretch; justify-content: center;
  gap: 0; flex-wrap: wrap;
}

.sim-block {
  width: min(300px, 100%);
  background: var(--surface);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.sim-block.broken {
  border-color: rgba(248, 113, 113, 0.6);
  box-shadow: 0 0 24px rgba(248, 113, 113, 0.15);
}

.sim-block-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.sim-block-head h4 { font-family: var(--font-head); font-size: 1rem; color: var(--emerald); }
.sim-block.broken .sim-block-head h4 { color: var(--red); }
.sim-badge {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(52, 211, 153, 0.12); color: var(--emerald);
}
.sim-block.broken .sim-badge { background: rgba(248, 113, 113, 0.12); color: var(--red); }

.sim-field { margin-bottom: 12px; }
.sim-field label {
  display: block; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin-bottom: 5px;
}
.sim-field input[type="text"] {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body); font-size: 0.9rem;
  padding: 10px 12px;
  transition: border-color 0.25s ease;
}
.sim-field input[type="text"]:focus { outline: none; border-color: var(--emerald); }

.sim-hash {
  font-family: var(--font-mono); font-size: 0.8rem;
  background: var(--input-bg);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--cyan);
  word-break: break-all;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.sim-block.broken .sim-hash { color: var(--red); border-color: rgba(248, 113, 113, 0.4); }

.sim-connector {
  display: flex; align-items: center;
  padding: 0 8px;
  font-size: 1.5rem; color: var(--emerald);
  transition: color 0.3s ease;
}
.sim-connector.broken { color: var(--red); }

.sim-explain {
  max-width: 760px; margin: 40px auto 0;
  padding: 30px 34px;
}
.sim-explain h4 { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 10px; }
.sim-explain p { color: var(--muted); font-size: 0.97rem; }
.sim-explain strong { color: var(--text); }
.sim-explain .invalid-text { color: var(--red); }
.sim-note { margin-top: 12px; font-size: 0.85rem !important; opacity: 0.75; }

@media (max-width: 1080px) {
  .sim-chain { flex-direction: column; align-items: center; gap: 0; }
  .sim-connector { transform: rotate(90deg); padding: 6px 0; }
}

/* ============================================================
   ISTILAH (GLOSSARY)
   ============================================================ */
.gloss-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.gloss-card {
  padding: 26px 22px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.gloss-card:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, 0.4); }
.gloss-card h4 { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 8px; }
.gloss-card h4 span { color: var(--muted); font-weight: 500; font-size: 0.85rem; }
.gloss-card p { color: var(--muted); font-size: 0.9rem; }

@media (max-width: 960px) { .gloss-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gloss-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CONTOH PENGGUNAAN
   ============================================================ */
.use-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.use-card {
  padding: 30px 26px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.use-card:hover { transform: translateY(-6px); border-color: rgba(52, 211, 153, 0.45); }
.use-card span { font-size: 2.2rem; display: block; margin-bottom: 14px; }
.use-card h4 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 8px; }
.use-card p { color: var(--muted); font-size: 0.93rem; }

@media (max-width: 860px) { .use-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .use-grid { grid-template-columns: 1fr; } }

/* ============================================================
   JENIS BLOCKCHAIN
   ============================================================ */
.jenis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.jenis-card {
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.jenis-card:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, 0.4); }

.jenis-badge {
  align-self: flex-start;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px;
  color: var(--jb);
  background: color-mix(in srgb, var(--jb) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--jb) 35%, transparent);
}
.jenis-card h4 { font-family: var(--font-head); font-size: 1.2rem; }
.jenis-card p { color: var(--muted); font-size: 0.95rem; }
.jenis-card strong { color: var(--text); }
.jenis-ex {
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--cyan);
  margin-top: auto; padding-top: 10px;
  border-top: 1px dashed var(--border);
}

@media (max-width: 860px) { .jenis-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

/* ============================================================
   KUIS INTERAKTIF
   ============================================================ */
.quiz-card {
  max-width: 700px; margin-inline: auto;
  padding: 30px clamp(20px, 4vw, 38px) 36px;
}

.quiz-topbar {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: var(--muted); font-weight: 600;
  margin-bottom: 10px;
}
.quiz-score-live strong { color: var(--gold); }

.quiz-progress {
  height: 8px; border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 26px;
}
.quiz-progress-bar {
  height: 100%; width: 0%;
  background: var(--grad);
  border-radius: 8px;
  transition: width 0.4s ease;
}

.quiz-q { font-family: var(--font-head); font-size: 1.25rem; line-height: 1.4; margin-bottom: 22px; }

.quiz-opts { display: grid; gap: 12px; }
.quiz-opt {
  text-align: left;
  font-family: var(--font-body); font-size: 0.97rem; font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px 18px;
  cursor: pointer;
  display: flex; gap: 12px; align-items: flex-start;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.quiz-opt .opt-letter {
  flex-shrink: 0;
  width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 0.8rem;
  background: var(--border); color: var(--text);
  transition: background 0.2s ease, color 0.2s ease;
}
.quiz-opt:not(:disabled):hover { border-color: var(--cyan); transform: translateX(6px); }
.quiz-opt:disabled { cursor: default; opacity: 0.75; }

.quiz-opt.correct {
  border-color: var(--emerald);
  background: rgba(52, 211, 153, 0.12);
  opacity: 1;
}
.quiz-opt.correct .opt-letter { background: var(--emerald); color: #04120c; }

.quiz-opt.wrong {
  border-color: var(--red);
  background: rgba(248, 113, 113, 0.1);
  opacity: 1;
}
.quiz-opt.wrong .opt-letter { background: var(--red); color: #fff; }

.quiz-why {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.07);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--muted); font-size: 0.93rem;
  animation: fadeUp 0.4s ease;
}
.quiz-why strong { color: var(--text); }

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

.quiz-next { margin-top: 20px; }

/* Hasil akhir */
.quiz-result { text-align: center; padding: 14px 0 6px; }
.quiz-result-emoji { font-size: 3.4rem; margin-bottom: 10px; }
.quiz-result-score {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  line-height: 1;
}
.quiz-result-msg { color: var(--muted); margin: 14px auto 24px; max-width: 440px; }
.quiz-result-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   HALAMAN WALLET (wallet.html)
   ============================================================ */
.page-hero {
  padding: 170px 0 60px;
  text-align: center;
}

/* Kartu peringatan */
.warn-card {
  display: flex; gap: 22px; align-items: flex-start;
  max-width: 820px; margin-inline: auto;
  padding: 30px 34px;
  border-radius: var(--radius);
  background: rgba(248, 113, 113, 0.07);
  border: 1px solid rgba(248, 113, 113, 0.4);
}
.warn-icon { font-size: 2.4rem; line-height: 1; }
.warn-card h3 {
  font-family: var(--font-head); font-size: 1.2rem;
  color: var(--red); margin-bottom: 8px;
}
.warn-card p { color: var(--muted); font-size: 0.97rem; }
.warn-card strong { color: var(--text); }

@media (max-width: 560px) {
  .warn-card { flex-direction: column; gap: 12px; padding: 24px; }
}

/* Checklist persiapan */
.prep-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.prep-card {
  padding: 26px 22px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.prep-card:hover { transform: translateY(-6px); border-color: rgba(52, 211, 153, 0.45); }
.prep-card span { font-size: 2.2rem; }
.prep-card p { color: var(--muted); font-size: 0.93rem; }

@media (max-width: 900px) { .prep-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .prep-grid { grid-template-columns: 1fr; } }

/* Langkah kritis (seed phrase) */
.tl-critical {
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.05);
}
.tl-critical .tl-num {
  background: linear-gradient(120deg, #fbbf24, #f59e0b);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.35);
}

/* Aturan mini di dalam langkah */
.mini-rules {
  list-style: none;
  margin-top: 12px;
  display: grid; gap: 8px;
}
.mini-rules li {
  color: var(--muted); font-size: 0.92rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 9px 14px; border-radius: 10px;
}
.mini-rules strong { color: var(--text); }

/* Link inline di paragraf */
.inline-link {
  color: var(--cyan); font-weight: 600; text-decoration: none;
  border-bottom: 1px dashed rgba(34, 211, 238, 0.5);
  transition: color 0.2s ease;
}
.inline-link:hover { color: var(--emerald); }

/* ============================================================
   FAQ (accordion pakai <details>)
   ============================================================ */
.faq-list {
  max-width: 760px; margin-inline: auto;
  display: grid; gap: 14px;
}
.faq-item { padding: 0; overflow: hidden; }

.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 20px 24px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--emerald); }

.faq-chevron { transition: transform 0.3s ease; color: var(--muted); flex-shrink: 0; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--emerald); }

.faq-item p {
  padding: 0 24px 22px;
  color: var(--muted); font-size: 0.96rem;
}
.faq-item p strong { color: var(--text); }

/* ============================================================
   CTA PENUTUP
   ============================================================ */
.cta-card {
  text-align: center;
  padding: 72px 40px;
  border-radius: calc(var(--radius) * 1.4);
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(52, 211, 153, 0.12), transparent 70%),
    var(--surface);
  border: 1px solid rgba(52, 211, 153, 0.28);
}
.cta-card h2 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.25; margin-bottom: 16px;
}
.cta-card p { color: var(--muted); max-width: 560px; margin-inline: auto; }

@media (max-width: 640px) { .cta-card { padding: 48px 22px; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 56px 0 30px;
  text-align: center;
}
.footer .nav-brand { margin-bottom: 16px; }
.footer-desc { color: var(--muted); max-width: 480px; margin: 0 auto 26px; font-size: 0.95rem; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  color: var(--muted); font-size: 0.86rem;
}

/* ---------- To top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad); color: #04120c; border: none;
  font-size: 1.2rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 10px 26px rgba(52, 211, 153, 0.4);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-4px); }

/* ---------- Reduksi motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
