@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root { color-scheme: dark; --ink:#f4f4eb; --muted:#a4b2b4; --mint:#a6e5c5; --gold:#e3c78c; --line:rgba(208,237,223,.17); --page:#0e242c; }
* { box-sizing:border-box; }
html { min-height:100%; scroll-behavior:smooth; }
body { margin:0; min-height:100vh; background:#050e15; color:var(--ink); font-family:'DM Sans',sans-serif; }
.container { position:relative; min-height:100vh; overflow:hidden; isolation:isolate; background:radial-gradient(ellipse at 72% 54%,#0f3236 0%,#0b2129 26%,#07151e 52%,#050e15 80%); }
.container::before { content:""; position:absolute; inset:0; z-index:-1; opacity:.5; background:linear-gradient(115deg,transparent 30%,rgba(119,218,174,.05) 50%,transparent 67%),radial-gradient(ellipse at 78% 100%,rgba(61,184,137,.18),transparent 42%),radial-gradient(ellipse at 10% 0%,rgba(227,199,140,.06),transparent 40%); }
.container::after { content:""; position:fixed; inset:0; z-index:-1; pointer-events:none; background:radial-gradient(ellipse at center,transparent 55%,rgba(2,7,11,.65)); }
.earth-canvas { position:fixed; inset:0; width:100%; height:100%; z-index:-2; }
.ambient-grid { position:absolute; inset:0; z-index:-1; opacity:.12; background-image:linear-gradient(rgba(180,226,210,.13) 1px,transparent 1px),linear-gradient(90deg,rgba(180,226,210,.13) 1px,transparent 1px); background-size:76px 76px; mask-image:linear-gradient(90deg,transparent 15%,black 60%,transparent); }
.scanline { position:fixed; left:0; right:0; height:120px; top:-120px; z-index:-1; pointer-events:none; background:linear-gradient(transparent,rgba(140,240,200,.035),transparent); animation:scan 9s linear infinite; }

.hud { position:absolute; z-index:2; top:28px; right:clamp(36px,6vw,88px); display:flex; align-items:center; gap:14px; padding:9px 16px; color:#9fbab4; font-size:9px; letter-spacing:.2em; border:1px solid rgba(166,229,197,.14); border-radius:999px; background:rgba(8,24,30,.45); backdrop-filter:blur(8px); }
.hud span { display:flex; align-items:center; gap:8px; }
.hud-sep { width:1px; height:12px; background:rgba(166,229,197,.25); }
#hud-clock { font-variant-numeric:tabular-nums; color:var(--mint); }

.landing { min-height:100vh; max-width:1320px; padding:clamp(36px,6vw,88px); margin:auto; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; position:relative; }
.eyebrow { color:#a5d8c4; font-size:10px; letter-spacing:.23em; font-weight:600; }
.landing > .eyebrow { display:flex; align-items:center; gap:12px; }
.status-dot { display:inline-block; width:6px; height:6px; background:#8de2b8; border-radius:50%; box-shadow:0 0 12px #8de2b8; animation:pulse 2.4s ease-in-out infinite; }
h1 { margin:26px 0 12px; font:500 clamp(58px,10vw,126px)/.92 Manrope,sans-serif; letter-spacing:-.075em; background:linear-gradient(100deg,#f4f4eb 0%,#f4f4eb 40%,#ffffff 48%,#f4f4eb 56%) 0 0/250% 100%; -webkit-background-clip:text; background-clip:text; color:transparent; animation:sheen 7s ease-in-out infinite; }
h1 span { background:linear-gradient(100deg,var(--mint),#d6f7e6 50%,var(--mint)); -webkit-background-clip:text; background-clip:text; color:transparent; font-weight:300; }
.intro { color:#b7c4c4; max-width:440px; font-size:clamp(14px,1.4vw,17px); line-height:1.8; font-weight:300; }
.open-portal { display:inline-flex; align-items:center; gap:15px; margin-top:30px; color:var(--ink); text-decoration:none; font-size:12px; letter-spacing:.12em; text-transform:uppercase; transition:color .25s; }
.open-icon { position:relative; width:42px; height:42px; display:grid; place-items:center; color:#08171a; font-size:18px; background:var(--mint); border-radius:50%; transition:transform .3s,box-shadow .3s; }
.open-icon::after { content:""; position:absolute; inset:-6px; border:1px solid rgba(166,229,197,.45); border-radius:50%; animation:ring 2.6s ease-out infinite; }
.open-portal:hover { color:var(--mint); }
.open-portal:hover .open-icon { transform:translate(3px,-3px); box-shadow:0 0 30px rgba(166,229,197,.4); }
.line { width:54px; height:1px; background:rgba(207,239,223,.35); }
.landing-foot { position:absolute; bottom:30px; left:clamp(36px,6vw,88px); right:clamp(36px,6vw,88px); display:flex; justify-content:space-between; color:#748b8d; font-size:9px; letter-spacing:.18em; }

/* ---------- Menu: buku yang terbuka ---------- */
.popover { display:none; position:fixed; inset:0; z-index:5; padding:clamp(14px,4vw,56px); align-items:center; justify-content:center; background:radial-gradient(ellipse at center,rgba(3,11,16,.25),rgba(2,8,12,.7)); backdrop-filter:blur(3px); }
.popover:target { display:flex; animation:veilIn .5s ease both; }
.book { position:relative; width:min(1100px,100%); height:min(680px,86vh); perspective:2600px; animation:bookTravel 1.95s cubic-bezier(.65,.05,.25,1) both; }
.book::before { content:""; position:absolute; left:50%; top:-4%; bottom:-4%; width:2px; z-index:5; transform:translateX(-1px); pointer-events:none; background:linear-gradient(transparent,rgba(166,229,197,.9),rgba(243,208,138,.8),transparent); filter:blur(1px); box-shadow:0 0 24px 4px rgba(120,240,190,.35); opacity:0; animation:spineFlash 1.3s ease 1.45s both; }
.close { position:absolute; z-index:6; right:22px; top:18px; color:#a9c3bb; text-decoration:none; font-size:27px; line-height:1; transition:transform .2s,color .2s; animation:fadeIn .4s ease 1.6s both; }
.close:hover { color:#fff; transform:rotate(90deg); }

.book-right, .cover-face { border:1px solid rgba(209,239,223,.2); }
.book-right { position:relative; margin-left:50%; width:50%; height:100%; display:flex; flex-direction:column; padding:clamp(44px,6vw,72px) clamp(26px,5vw,64px) 28px; border-left:none; border-radius:0 6px 6px 0; background:linear-gradient(120deg,rgba(16,41,48,.98),rgba(9,25,34,.99)); box-shadow:30px 36px 90px rgba(0,0,0,.55),0 0 80px rgba(73,200,153,.06); }
.book-right::before { content:""; position:absolute; inset:0 auto 0 0; width:56px; pointer-events:none; background:linear-gradient(90deg,rgba(0,0,0,.45),transparent); }
.book-right::after { content:""; position:absolute; top:5px; bottom:5px; right:-6px; width:6px; border-radius:0 3px 3px 0; background:repeating-linear-gradient(90deg,#16343b 0 1px,#0a1d24 1px 2px); }

.cover { position:absolute; z-index:3; top:0; bottom:0; left:50%; width:50%; transform-origin:left center; transform-style:preserve-3d; animation:coverOpen 1.35s cubic-bezier(.62,.04,.24,1) .55s both; }
.cover-face { position:absolute; inset:0; overflow:hidden; backface-visibility:hidden; -webkit-backface-visibility:hidden; }
.cover-front { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; border-radius:0 6px 6px 0; background:radial-gradient(ellipse at 50% 38%,rgba(70,180,150,.16),transparent 55%),linear-gradient(90deg,#03090d 0,#0a1c24 7%,#0d2730 50%,#091820); box-shadow:inset 6px 0 14px rgba(0,0,0,.6); }
.cover-front::before { content:""; position:absolute; inset:0; background:linear-gradient(115deg,transparent 35%,rgba(255,240,205,.11) 48%,transparent 60%) -100% 0/250% 100% no-repeat; animation:foil 1.1s ease .1s both; }
.cover-front::after { content:""; position:absolute; inset:0; background:#000; opacity:0; animation:shadeOut 1.35s ease-in .55s both; }
.cover-frame { position:absolute; inset:22px 22px 22px 34px; border:1px solid rgba(227,199,140,.38); border-radius:2px; }
.cover-frame::before { content:""; position:absolute; inset:6px; border:1px solid rgba(227,199,140,.14); }
.cover-emblem { width:clamp(92px,13vw,132px); fill:none; stroke:var(--gold); stroke-width:.9; opacity:.92; filter:drop-shadow(0 0 10px rgba(227,199,140,.35)); }
.cover-emblem .orb { stroke:var(--mint); stroke-dasharray:3 4; }
.cover-emblem .sat { fill:var(--mint); stroke:none; }
.cover-kicker { margin:22px 0 10px; color:var(--gold); font-size:9px; letter-spacing:.42em; }
.cover-title { margin:0; font:300 clamp(30px,4.2vw,50px)/1 Manrope,sans-serif; letter-spacing:.2em; color:#f1ead8; }
.cover-title span { color:var(--gold); font-weight:600; }
.cover-sub { margin:16px 0 0; padding-top:14px; border-top:1px solid rgba(227,199,140,.3); color:#9fbab4; font-size:9px; letter-spacing:.38em; }
.cover-hint { position:absolute; bottom:44px; color:#6f8a87; font-size:9px; letter-spacing:.24em; }

.book-left { padding:clamp(32px,5vw,66px); transform:rotateY(180deg); border-right:none; border-radius:6px 0 0 6px; background:radial-gradient(ellipse at 15% 90%,rgba(58,164,128,.23),transparent 48%),linear-gradient(150deg,#102b32,#0b1a23 76%); box-shadow:-30px 36px 90px rgba(0,0,0,.5); }
.book-left::before { content:""; position:absolute; inset:0 0 0 auto; width:56px; pointer-events:none; background:linear-gradient(270deg,rgba(0,0,0,.45),transparent); }
.book-left::after { content:""; position:absolute; width:430px; height:430px; left:-250px; bottom:-205px; border:1px solid rgba(159,232,201,.22); border-radius:50%; box-shadow:0 0 0 26px rgba(159,232,201,.025),0 0 0 58px rgba(159,232,201,.025),0 0 0 95px rgba(159,232,201,.02); }
.book-left > * { animation:fadeIn .6s ease 1.5s both; }
.book-mark { position:relative; z-index:1; font:700 21px Manrope,sans-serif; letter-spacing:-.07em; }
.book-mark span { color:var(--mint); }
.book-left .eyebrow { margin-top:clamp(50px,10vh,110px); font-size:9px; }
.book-left h2 { position:relative; z-index:1; margin:18px 0; font:400 clamp(32px,4vw,51px)/1.12 Manrope,sans-serif; letter-spacing:-.065em; }
.book-left h2 em { color:var(--mint); font-style:normal; }
.book-note { position:relative; z-index:1; max-width:280px; color:#9cb1b3; font-size:13px; line-height:1.8; font-weight:300; }
.book-orbit { position:absolute; width:180px; height:180px; right:12%; bottom:18%; border:1px solid rgba(143,231,195,.24); border-radius:50%; }
.book-left > .book-orbit { animation:fadeIn .6s ease 1.5s both, spin 28s linear 2s infinite; }
.book-orbit::before,.book-orbit::after { content:""; position:absolute; inset:18px -20px; border:1px solid rgba(143,231,195,.2); border-radius:50%; transform:rotate(55deg); }
.book-orbit::after { transform:rotate(-55deg); }
.book-orbit i { position:absolute; width:9px; height:9px; top:28px; right:32px; border-radius:50%; background:#a2e8c4; box-shadow:0 0 20px #8af0c5; }
.book-orbit b { position:absolute; width:5px; height:5px; left:26px; bottom:37px; border-radius:50%; background:#82c7e4; box-shadow:0 0 13px #82c7e4; }
.page-number { position:absolute; bottom:29px; left:clamp(32px,5vw,66px); color:#799394; font-size:9px; letter-spacing:.2em; }

.leaf { position:absolute; z-index:4; top:6px; bottom:6px; left:50%; width:calc(50% - 6px); transform-origin:left center; border-radius:0 4px 4px 0; background:linear-gradient(90deg,#08171d,#143039 40%,#10272f); border:1px solid rgba(209,239,223,.1); box-shadow:inset 0 0 40px rgba(120,240,190,.05); opacity:0; animation:leafFlip 1s cubic-bezier(.55,.05,.3,1) 1.12s both; }
.leaf-two { animation-delay:1.28s; }

.menu-heading { display:flex; justify-content:space-between; align-items:center; padding-bottom:20px; border-bottom:1px solid var(--line); }
.menu-count { color:#6f888a; font-size:10px; letter-spacing:.16em; }
.nav-list { list-style:none; margin:14px 0 24px; padding:0; }
.nav-list li { opacity:0; transform:translateY(14px); animation:riseIn .5s ease forwards; }
.nav-list li:nth-child(1) { animation-delay:1.55s; }.nav-list li:nth-child(2) { animation-delay:1.62s; }.nav-list li:nth-child(3) { animation-delay:1.69s; }.nav-list li:nth-child(4) { animation-delay:1.76s; }.nav-list li:nth-child(5) { animation-delay:1.83s; }.nav-list li:nth-child(6) { animation-delay:1.90s; }.nav-list li:nth-child(7) { animation-delay:1.97s; }
.nav-list a { position:relative; min-height:clamp(45px,7vh,61px); display:grid; grid-template-columns:38px 1fr 24px; align-items:center; gap:10px; color:#dce8e3; text-decoration:none; border-bottom:1px solid rgba(208,237,223,.1); font-size:clamp(13px,1.25vw,16px); transition:padding .25s,color .25s,border-color .25s; }
.nav-list a::after { content:""; position:absolute; left:0; right:100%; bottom:-1px; height:1px; background:linear-gradient(90deg,var(--mint),var(--gold)); box-shadow:0 0 10px rgba(166,229,197,.6); transition:right .45s cubic-bezier(.2,.7,.2,1); }
.nav-list a:hover { padding-left:9px; color:var(--mint); }
.nav-list a:hover::after { right:0; }
.item-no { color:#6e8a8c; font-size:9px; letter-spacing:.12em; }
.arrow { justify-self:end; color:#789291; font-size:15px; transition:transform .25s,color .25s; }
.nav-list a:hover .arrow { color:var(--mint); transform:translate(3px,-3px); }
.right-foot { display:flex; justify-content:space-between; margin-top:auto; padding-top:16px; border-top:1px solid var(--line); color:#71898a; font-size:8px; letter-spacing:.14em; }

/* Menutup buku */
.popover.closing { animation:veilOut 1.15s ease both; }
.closing .book { animation:bookAway 1.15s cubic-bezier(.5,0,.3,1) both; }
.closing .cover { animation:coverClose .8s cubic-bezier(.55,.05,.35,1) both; }
.closing .cover-front::after { animation:shadeIn .8s ease-out both; }
.closing .leaf, .closing .book::before, .closing .close { display:none; }

@keyframes veilIn { from { opacity:0; } to { opacity:1; } }
@keyframes veilOut { 0%,60% { opacity:1; } to { opacity:0; } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes bookTravel { 0% { opacity:0; transform:translateX(-25%) translateY(24px) scale(.88); } 24% { opacity:1; transform:translateX(-25%) scale(.95); } 34% { transform:translateX(-25%) scale(.95); } 100% { opacity:1; transform:none; } }
@keyframes bookAway { 0% { transform:none; } 62% { opacity:1; transform:translateX(-25%) scale(.95); } 100% { opacity:0; transform:translateX(-25%) translateY(24px) scale(.88); } }
@keyframes coverOpen { from { transform:rotateY(0); } to { transform:rotateY(-180deg); } }
@keyframes coverClose { from { transform:rotateY(-180deg); } to { transform:rotateY(0); } }
@keyframes shadeOut { 0% { opacity:0; } 100% { opacity:.75; } }
@keyframes shadeIn { 0% { opacity:.75; } 100% { opacity:0; } }
@keyframes foil { to { background-position:150% 0; } }
@keyframes leafFlip { 0% { opacity:0; transform:rotateY(-8deg); } 10% { opacity:1; } 80% { opacity:1; transform:rotateY(-170deg); } 100% { opacity:0; transform:rotateY(-180deg); } }
@keyframes spineFlash { 0% { opacity:0; } 30% { opacity:1; } 100% { opacity:0; } }
@keyframes riseIn { to { opacity:1; transform:translateY(0); } }
@keyframes scan { to { transform:translateY(calc(100vh + 240px)); } }
@keyframes pulse { 50% { opacity:.35; box-shadow:0 0 4px #8de2b8; } }
@keyframes ring { 0% { transform:scale(.85); opacity:.9; } 100% { transform:scale(1.5); opacity:0; } }
@keyframes sheen { 0%,55% { background-position:100% 0; } 100% { background-position:-50% 0; } }
@keyframes spin { to { transform:rotate(360deg); } }
@keyframes unfold { from { opacity:0; transform:rotateX(-75deg) translateY(30px); } to { opacity:1; transform:none; } }

@media (max-width:700px) {
  .hud { top:18px; right:18px; padding:7px 12px; }
  .landing { justify-content:flex-end; padding-bottom:120px; }
  .landing-foot { bottom:22px; }
  .popover { padding:10px; align-items:stretch; overflow:auto; perspective:1400px; }
  .book { height:auto; margin:auto; perspective:none; display:flex; flex-direction:column-reverse; transform-origin:top center; animation:unfold .9s cubic-bezier(.2,.75,.25,1) both; }
  .book::before, .leaf, .cover-front { display:none; }
  .close { animation-delay:.5s; }
  .cover { position:relative; left:0; width:100%; transform:none; animation:none; }
  .cover-face { position:relative; }
  .book-left { transform:none; min-height:245px; padding:25px 28px; border:1px solid rgba(209,239,223,.2); border-bottom:none; border-radius:6px 6px 0 0; }
  .book-left::before { display:none; }
  .book-left > * { animation-delay:.4s; }
  .book-left .eyebrow { margin-top:35px; }
  .book-left h2 { font-size:34px; margin:10px 0; }
  .book-note { max-width:220px; font-size:11px; }
  .book-orbit { width:120px; height:120px; right:8%; bottom:17%; }
  .book-orbit::before,.book-orbit::after { inset:13px -12px; }
  .page-number { bottom:15px; left:28px; }
  .book-right { margin:0; width:100%; height:auto; padding:24px 28px 20px; border-left:1px solid rgba(209,239,223,.2); border-top:none; border-radius:0 0 6px 6px; }
  .book-right::before, .book-right::after { display:none; }
  .nav-list { margin:8px 0 20px; }
  .nav-list li:nth-child(n) { animation-delay:calc(.45s + var(--i,0) * .06s); }
  .nav-list a { min-height:44px; }
  .close { right:15px; top:13px; }
  .closing .book { animation:unfold .6s ease reverse both; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; animation-delay:0s!important; animation-iteration-count:1!important; transition-duration:.01ms!important; } }
