/* =====================================================================
   ALETHEIA — gaya bersama semua halaman (arah "Aurora Depth")
   Nila pekat + aurora ungu/cyan yang bergerak pelan + kaca beku.
   ===================================================================== */
:root {
  /* tema terang "mutiara & sampanye": selaras dengan dewi (rambut perak, sutra, filigri emas) */
  --bg: #f6f2ea; --bg-2: #fbf8f2; --bg-3: #efe8dc;
  --ink: #17151c; --ink-2: #34303c; --muted: #6d6774; --faint: #9b95a0;
  --line: rgba(60,44,22,.10); --line-2: rgba(60,44,22,.17);
  --glass: rgba(255,255,255,.55); --glass-2: rgba(255,255,255,.82);
  --gold: #9c7633; --gold-2: #cfae6c; --gold-3: #f1e4c6;
  --violet: #c09a55; --violet-2: #8f6b2c; --cyan: #7f95b8; --magenta: #c98aa0;
  --good: #23946c; --warn: #b9781a; --bad: #cc3d62;
  --font: "Sora", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 18px; --r-sm: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(16px, 4vw, 44px);
  --max: 1360px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; } /* atribut hidden harus menang atas display kelas apa pun */
html { background: var(--bg); color-scheme: light; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-weight: 300; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img { display: block; max-width: 100%; }
.mono { font-family: var(--mono); font-weight: 400; letter-spacing: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: rgba(176,138,72,.45); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- latar aurora (dipakai semua halaman) ---------- */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sky .aur { position: absolute; inset: -25%; filter: blur(90px); opacity: .55; }
.sky .aur i { position: absolute; border-radius: 50%; will-change: transform; }
.sky .aur i:nth-child(1) { width: 44%; height: 44%; left: 50%; top: 6%; background: #e9d6ae; animation: drift1 22s ease-in-out infinite; }
.sky .aur i:nth-child(2) { width: 36%; height: 36%; left: 64%; top: 38%; background: #c9d3e3; opacity: .55; animation: drift2 26s ease-in-out infinite; }
.sky .aur i:nth-child(3) { width: 30%; height: 30%; left: 26%; top: 50%; background: #efd2d8; opacity: .4; animation: drift1 30s ease-in-out infinite reverse; }
.sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky .fade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(246,242,234,.35) 55%, var(--bg) 100%); }
body.page .sky .aur { opacity: .4; }
@keyframes drift1 { 50% { transform: translate(-12%, 10%) scale(1.15); } }
@keyframes drift2 { 50% { transform: translate(10%, -12%) scale(.9); } }
main, header.nav, footer { position: relative; z-index: 2; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(246,242,234,.72); backdrop-filter: blur(16px); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; letter-spacing: .24em; font-size: 13px; }
.brand svg { width: 26px; height: 26px; }
/* navigasi "pita sutra": deretan tautan di tengah dalam pita satin, garis cahaya menandai halaman aktif */
.nav .links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; padding: 5px; border-radius: 999px; font-size: 13px; color: var(--muted);
  background: linear-gradient(180deg, rgba(60,44,22,0.080), rgba(60,44,22,0.020)); border: 1px solid rgba(60,44,22,0.096); box-shadow: inset 0 1px 0 rgba(60,44,22,0.096), 0 10px 30px rgba(0,0,0,.35); overflow: hidden; }
.nav .links::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(60,44,22,0.080) 48%, transparent 66%); background-size: 260% 100%; animation: satin 9s ease-in-out infinite; pointer-events: none; }
@keyframes satin { 0%, 100% { background-position: 120% 0; } 50% { background-position: -20% 0; } }
.nav .links a { position: relative; z-index: 1; padding: 8px 16px; border-radius: 999px; transition: color .25s; }
.nav .links a:hover, .nav .links a[aria-current] { color: var(--ink); }
.nav .links .ind { position: absolute; z-index: 0; top: 5px; bottom: 5px; border-radius: 999px; background: rgba(60,44,22,0.072); border: 1px solid rgba(60,44,22,0.112); transition: left .45s var(--ease), width .45s var(--ease), opacity .3s; opacity: 0; }
.nav .links .ind::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, #c9a35a, transparent); box-shadow: 0 0 8px #c9a35a; }
.nav .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ca-chip { display: inline-flex; align-items: center; gap: 8px; font: 500 12px var(--mono); padding: 8px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line-2); white-space: nowrap; transition: border-color .2s; }
.ca-chip:hover { border-color: var(--violet-2); }
.ca-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 10px var(--violet); }
.ca-chip.live .dot { background: var(--good); box-shadow: 0 0 10px var(--good); }
.soc { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--line-2); transition: border-color .2s, background .2s; }
.soc:hover { border-color: var(--violet-2); background: var(--glass-2); }
.soc svg { width: 15px; height: 15px; fill: currentColor; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; background: var(--ink); color: var(--bg-2); font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .3s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(176,138,72,.25); }
.btn.ghost { background: var(--glass); color: var(--ink); border: 1px solid var(--line-2); }
.btn.ghost:hover { border-color: var(--violet-2); box-shadow: none; }
.menu-btn { display: none; width: 38px; height: 38px; border-radius: 50%; background: var(--glass); border: 1px solid var(--line-2); }
.menu-btn span { display: block; width: 14px; height: 1.5px; background: var(--ink); margin: 3px auto; }

/* ---------- komponen umum ---------- */
.eyebrow { font: 500 11.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.live-pill { display: inline-flex; align-items: center; gap: 9px; font: 500 12px var(--mono); padding: 8px 14px 8px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line-2); color: var(--ink-2); backdrop-filter: blur(10px); }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 12px var(--good); animation: pulse 2s infinite; }
.live-pill b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
@keyframes pulse { 50% { opacity: .35; } }
.h-sec { font-size: clamp(32px, 4vw, 58px); font-weight: 300; letter-spacing: -.035em; line-height: 1.04; }
.h-sec b { font-weight: 600; }
.lead { color: var(--muted); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.65; max-width: 560px; }
.glass { background: linear-gradient(170deg, rgba(255,253,249,.92), rgba(251,247,239,.78)); border: 1px solid rgba(60,44,22,.12); box-shadow: 0 1px 0 #fff inset, 0 30px 60px -42px rgba(60,44,22,.45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: var(--r); }
.tag-sample { font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.lvl { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.lvl { background: rgba(60,44,22,0.176); } /* netral */
.lvl.good { background: var(--good); box-shadow: 0 0 10px rgba(35,148,108,.6); }
.lvl.warn { background: var(--warn); box-shadow: 0 0 10px rgba(185,120,26,.5); }
.lvl.bad { background: var(--bad); box-shadow: 0 0 10px rgba(204,61,98,.6); }
.receipt { font: 500 11px var(--mono); color: var(--violet-2); display: inline-flex; gap: 5px; align-items: center; padding: 4px 8px; border-radius: 6px; background: rgba(176,138,72,.10); border: 1px solid rgba(176,138,72,.25); white-space: nowrap; transition: background .2s; }
.receipt:hover { background: rgba(176,138,72,.22); }

/* ---------- kotak cari ---------- */
.search { display: flex; gap: 8px; padding: 6px; border-radius: 16px; background: rgba(60,44,22,0.048); border: 1px solid var(--line-2); backdrop-filter: blur(12px); transition: border-color .25s, box-shadow .25s; }
.search:focus-within { border-color: rgba(176,138,72,.55); box-shadow: 0 0 0 4px rgba(176,138,72,.12); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font: 14px var(--mono); padding: 0 14px; color: var(--ink); }
.search input::placeholder { color: var(--faint); }
.search button { background: var(--ink); color: var(--bg-2); border-radius: 11px; padding: 13px 22px; font-weight: 600; font-size: 14px; }
.search .err { display: none; }

/* ---------- kartu CA: "segel" kaca berbingkai cincin ---------- */
.ca-card { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 16px; padding: 14px 14px 14px 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(176,138,72,.14), rgba(127,149,184,.06)); border: 1px solid rgba(176,138,72,.28); overflow: hidden; }
.ca-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120px 60px at 0% 0%, rgba(176,138,72,.25), transparent 70%); pointer-events: none; }
.ca-card .seal { grid-row: 1 / 3; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(176,138,72,.4); box-shadow: inset 0 0 14px rgba(176,138,72,.35); }
.ca-card .seal svg { width: 20px; height: 20px; }
.ca-card .k { font: 500 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ca-card .v { font: 500 14px var(--mono); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-card .acts { grid-row: 1 / 3; grid-column: 3; display: flex; gap: 6px; }
.ca-card .copy { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--line-2); }
.ca-card .copy svg { width: 15px; height: 15px; }
.ca-card .buy { padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 13px; border: 1px solid var(--violet-2); color: var(--gold); white-space: nowrap; }
.ca-card .buy[aria-disabled="true"] { opacity: .75; cursor: default; }
.ca-card.live .buy { background: var(--ink); color: var(--bg-2); border-color: var(--ink); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); margin-top: 120px; padding: 56px 0 40px; font-size: 13.5px; color: var(--muted); }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
footer h4 { font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
footer ul { list-style: none; display: grid; gap: 9px; }
footer a:hover { color: var(--ink); }
footer .fine { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12px; color: var(--faint); }
footer .about { max-width: 380px; line-height: 1.7; margin-top: 14px; }

/* ---------- muncul saat digulir ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js [data-reveal].in { opacity: 1; transform: none; }
html.js [data-reveal="2"] { transition-delay: .08s; } html.js [data-reveal="3"] { transition-delay: .16s; } html.js [data-reveal="4"] { transition-delay: .24s; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; z-index: 90; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg-2); font-weight: 600; font-size: 13px; transition: all .35s var(--ease); pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .nav .links, .nav .ca-chip { display: none; }
  .nav .wrap { gap: 12px; height: 64px; }
  .menu-btn { display: block; }
  .nav.open .links { display: grid; position: absolute; top: 64px; left: 0; right: 0; transform: none; border-radius: 0; padding: 18px var(--pad) 22px; gap: 14px; background: rgba(246,242,234,.96); border-bottom: 1px solid var(--line); margin: 0; font-size: 16px; }
  footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .nav .right .btn { display: none; }
  .ca-card { grid-template-columns: auto 1fr; }
  .ca-card .acts { grid-row: 3; grid-column: 1 / 3; margin-top: 10px; }
  .ca-card .buy { flex: 1; text-align: center; }
  footer .cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .sky .aur i { animation: none; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- wordmark berukir (hero & footer): lapisan buram + lapisan tajam yang dibuka garis baca ---------- */
@property --rx { syntax: "<percentage>"; inherits: true; initial-value: -20%; }
.wm { position: relative; width: 100%; user-select: none; pointer-events: none; }
.wm svg { display: block; width: 100%; height: auto; overflow: visible; }
.wm text { font-family: "Cinzel", serif; font-weight: 600; }
.wm .base { filter: blur(4px); opacity: .5; }
.wm .sharp { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(90deg, transparent calc(var(--rx) - 14%), #000 calc(var(--rx) - 4%), #000 calc(var(--rx) + 4%), transparent calc(var(--rx) + 14%)); mask-image: linear-gradient(90deg, transparent calc(var(--rx) - 14%), #000 calc(var(--rx) - 4%), #000 calc(var(--rx) + 4%), transparent calc(var(--rx) + 14%)); }
.wm .line { position: absolute; top: -6%; bottom: -6%; left: var(--rx); width: 1px; background: linear-gradient(180deg, transparent, #c9a35a 30%, #fff 50%, #c9a35a 70%, transparent); box-shadow: 0 0 14px 2px rgba(176,138,72,.55); }
.wm.run { animation: readline 7.5s cubic-bezier(.45,0,.25,1) infinite; }
@keyframes readline { 0% { --rx: -16%; } 70%, 100% { --rx: 116%; } }
footer .wm { margin: 10px 0 56px; opacity: .95; }
@media (prefers-reduced-motion: reduce) { .wm.run { animation: none; --rx: 50%; } }

/* ---------- cermin di tangan ALETHEIA (mirror.js) — dipakai di landing & layar membaca ---------- */
.mirror { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.mirror .arc-bg { fill: none; stroke: rgba(255,246,220,.18); stroke-width: 9; }
.mirror .arc { fill: none; stroke: url(#mg); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 0 100; opacity: .92; transition: stroke-dasharray 1.8s var(--ease); mix-blend-mode: screen; }
.mirror .bead { fill: none; stroke: #fffaf0; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1.6 98.4; animation: bead 6.5s linear infinite; mix-blend-mode: screen; }
@keyframes bead { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -100; } }
.mirror .m-inner { animation: innerglow 5.5s ease-in-out infinite; }
@keyframes innerglow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.mirror .m-mist { opacity: .32; }
.mirror .m-sheen { mix-blend-mode: screen; }
.mirror .m-score { font: 600 132px var(--font); fill: #fffaf0; letter-spacing: -4px; }
.mirror .m-verdict { font: 500 16px var(--mono); fill: #ecd29b; letter-spacing: 3px; text-transform: uppercase; }
.mirror .m-sym { font: 500 26px var(--mono); fill: rgba(255,246,228,.72); letter-spacing: 2px; }
@media (prefers-reduced-motion: reduce) { .mirror .bead, .mirror .m-inner { animation: none; } }

/* menu selalu di depan lapisan langit hero (hero naik ke belakang menu) */
header.nav { position: sticky; z-index: 40; }

/* ---------- Dev Alarm (dok pojok kanan bawah, semua halaman) ---------- */
.wdock { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: grid; justify-items: end; gap: 10px; }
.wd-btn { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--gold-3); box-shadow: 0 14px 34px -12px rgba(23,21,28,.55); transition: transform .25s var(--ease); }
.wd-btn:hover { transform: translateY(-2px); }
.wd-btn svg { width: 22px; height: 22px; }
.wd-n { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; font: 600 11px/20px var(--mono); background: var(--gold); color: #fff; display: none; }
.wdock.has .wd-n { display: block; }
.wdock.ring .wd-n { background: var(--bad); animation: pulse 1.6s infinite; }
.wdock.ring .wd-btn svg { animation: ring 1.8s ease-in-out infinite; transform-origin: 50% 20%; }
@keyframes ring { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-14deg); } }
.wd-panel { width: min(360px, calc(100vw - 36px)); padding: 16px; display: grid; gap: 12px; align-content: start; background: linear-gradient(170deg, #fffdf9, #fbf7ef); max-height: min(560px, calc(100vh - 110px)); overflow: auto; order: -1; }
.wd-top { display: flex; justify-content: space-between; gap: 10px; }
.wd-top p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.wd-x { font-size: 22px; line-height: 1; color: var(--faint); padding: 0 4px; }
.wd-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.wd-row b { font-weight: 600; font-size: 14px; } .wd-row small { display: block; font-size: 11px; color: var(--faint); }
.wd-row button { font-size: 12px; color: var(--muted); padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line-2); }
.wd-empty { font-size: 13px; color: var(--muted); line-height: 1.6; }
.wd-empty b { color: var(--ink); font-weight: 600; }
.wd-log { display: grid; gap: 6px; }
.wd-log .eyebrow { margin-bottom: 2px; }
.wd-ev { display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; align-items: center; font-size: 12.5px; padding: 7px 10px; border-radius: 10px; background: rgba(60,44,22,.04); }
.wd-ev i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.wd-ev.bad i { background: var(--bad); } .wd-ev.warn i { background: var(--warn); } .wd-ev.good i { background: var(--good); }
.wd-ev small { font-size: 11px; color: var(--faint); }
.wd-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.wd-foot label { display: flex; gap: 6px; align-items: center; }
.wd-perm { font-size: 12px; font-weight: 600; color: var(--violet-2); }
.wd-state { margin-left: auto; font-size: 11px; color: var(--faint); }
.wd-flash { width: min(340px, calc(100vw - 36px)); padding: 12px 14px; border-radius: 14px; background: var(--ink); color: var(--bg-2); font-size: 13px; display: flex; justify-content: space-between; gap: 10px; align-items: center; box-shadow: 0 18px 40px -16px rgba(23,21,28,.6); animation: rdIn .5s var(--ease); border-left: 3px solid var(--gold); order: -2; }
.wd-flash.bad { border-left-color: var(--bad); } .wd-flash.good { border-left-color: var(--good); }
.wd-flash b { font-weight: 600; } .wd-flash a { color: var(--gold-2); font-size: 12px; white-space: nowrap; }
.wd-flash.out { opacity: 0; transform: translateY(8px); transition: all .6s var(--ease); }
@keyframes rdIn { from { opacity: 0; transform: translateY(-10px); } }

.btn.sm { padding: 8px 14px; font-size: 12.5px; }
.btn.ghost.on { border-color: var(--gold); color: var(--gold); background: rgba(207,174,108,.14); }
