/* Nav, footer, butang kembali ke atas dan 404: mengikut handoff/design/v5/Nav.dc.html dan Footer.dc.html. */
.nv a, .ft a { color: inherit; text-decoration: none; }
.nv a:focus-visible, .nv button:focus-visible, .ft a:focus-visible, .ft-top:focus-visible, .nf a:focus-visible { outline: 3px solid #0891B2; outline-offset: 3px; }

/* ---------- Nav ---------- */
.nv { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #0B1B3F; font-family: Inter, system-ui, sans-serif; border-bottom: 1px solid rgba(11,27,63,.12); }
.nv-bar { max-width: 1320px; margin: 0 auto; padding: 0 32px; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; min-height: 76px; }
.nv-brand { display: flex; align-items: center; gap: 12px; }
.nv-logo { display: flex; align-items: center; justify-content: center; height: 56px; padding: 0 12px; box-sizing: border-box; border-radius: 14px; background: #fff; flex: none; }
.nv-logo img { height: 40px; width: auto; max-width: none; display: block; }
.nv-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(43,228,138,.1); border: 1px solid rgba(43,228,138,.35); font: 600 11.5px 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .06em; color: #0F7B4A; }
.nv-led { width: 7px; height: 7px; border-radius: 50%; background: #0F7B4A; animation: fxpulse 2s ease-in-out infinite; flex: none; }
.ft-when .nv-led { width: 8px; height: 8px; }
@keyframes fxpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(43,228,138,.6); } 50% { box-shadow: 0 0 0 6px rgba(43,228,138,0); } }
.nv-links { flex: 1 1 360px; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; font-weight: 500; font-size: 15.5px; }
.nv-link { position: relative; display: inline-flex; align-items: center; min-height: 56px; border-bottom: 3px solid transparent; color: #55627F; transition: color .2s ease; }
.nv-link:hover { color: #043093; }
.nv-link[aria-current="page"] { color: #043093; border-bottom-color: #2F5BEA; }
.nv-spacer { display: none; }
.nv-lang { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.78); border: 1px solid rgba(11,27,63,.12); }
.nv-lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: 8px; font: 600 13px 'JetBrains Mono', ui-monospace, monospace; color: #55627F; background: transparent; }
.nv-lang a[aria-current="true"] { background: #0B1B3F; color: #fff; }
.nv-btn { flex: none; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 12px; background: linear-gradient(135deg, #2F5BEA, #7B4DF0); color: #fff !important; font-weight: 600; font-size: 15.5px; box-shadow: 0 6px 18px rgba(47,91,234,.3); transition: transform .15s ease, box-shadow .2s ease; }
.nv-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(61,123,255,.5); }
.nv-burger { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; border: 1px solid rgba(11,27,63,.2); background: #fff; color: #0B1B3F; cursor: pointer; flex: none; padding: 0; }
.nv-ico-open { display: none; }
.nv--open .nv-ico-open { display: inline; }
.nv--open .nv-ico-closed { display: none; }
.nv-mob { display: none; flex-direction: column; gap: 4px; padding: 8px 16px 20px; border-top: 1px solid rgba(11,27,63,.1); }
.nv-mlink { display: flex; align-items: center; min-height: 52px; padding: 0 14px; border-radius: 12px; font-weight: 600; font-size: 16.5px; color: #0B1B3F; }
.nv-mlink[aria-current="page"] { background: rgba(47,91,234,.1); color: #043093; }
.nv-btn--full { display: flex; min-height: 52px; margin-top: 10px; font-size: 16px; }
@media (max-width: 960px) {
  .nv-desk { display: none !important; }
  .nv-burger { display: inline-flex; }
  .nv-spacer { display: block; flex: 1 1 auto; }
  .nv-bar { flex-wrap: nowrap; padding: 0 16px; gap: 10px; min-height: 68px; }
  .nv-logo { height: 48px; padding: 0 8px; }
  .nv-logo img { height: 34px; }
  .nv--open .nv-mob, html:not(.js) .nv-mob { display: flex; }
}
@media (max-width: 380px) { .nv-lang a { min-width: 38px; } }

/* ---------- Footer ---------- */
.ft { position: relative; overflow: hidden; background: #E9EEFB; color: #55627F; font-family: Inter, system-ui, sans-serif; font-size: 15px; line-height: 1.6; width: 100%; border-top: 1px solid rgba(11,27,63,.12); margin-top: 4rem; }
.ft-circuit { position: absolute; inset: 0; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent); }
.ft-glow { position: absolute; left: 50%; top: -120px; width: 720px; height: 240px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(61,123,255,.18), transparent 70%); filter: blur(30px); pointer-events: none; }
.ft-main { position: relative; max-width: 1320px; margin: 0 auto; padding: 56px 32px 32px; box-sizing: border-box; display: flex; flex-wrap: wrap; gap: 36px 56px; justify-content: space-between; }
.ft-brand { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.ft-logo { align-self: flex-start; display: inline-flex; }
.ft-logo img { height: 64px; width: auto; display: block; }
.ft-org { margin: 0; max-width: 460px; }
.ft-when { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px; background: rgba(43,228,138,.08); border: 1px solid rgba(43,228,138,.35); font: 500 13px 'JetBrains Mono', ui-monospace, monospace; color: #0F7B4A; }
.ft-nav { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ft-nav-h { font: 600 13px 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; color: #0E7490; margin-bottom: 8px; }
.ft-fl { display: inline-flex; align-items: center; min-height: 44px; align-self: flex-start; transition: color .15s ease; }
.ft-fl:hover { color: #0E7490; }
.ft-fl--login { color: #043093; font-weight: 600; }
.ft-bottom { position: relative; border-top: 1px solid rgba(11,27,63,.12); }
.ft-bottom-in { max-width: 1320px; margin: 0 auto; padding: 16px 32px; box-sizing: border-box; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; font: 400 13px 'JetBrains Mono', ui-monospace, monospace; color: #55627F; }

/* Litar PCB: jejak statik, denyut cahaya perlahan, nod berdenyut */
@keyframes fttrace { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -100; } }
@keyframes ftnode { 0% { r: 4; opacity: .7; } 70%, 100% { r: 13; opacity: 0; } }
.ft-pulse { stroke-dasharray: 4 96; stroke-dashoffset: 0; opacity: .55; animation: fttrace 14s linear infinite; }
.ft-node { animation: ftnode 4.5s ease-out infinite; }
.ft-nd0 { animation-delay: 0s; } .ft-nd15 { animation-delay: -1.5s; } .ft-nd30 { animation-delay: -3s; }
.ft-p1 { animation-duration: 21s; animation-delay: -2s; } .ft-p2 { animation-duration: 11s; animation-delay: -7s; } .ft-p3 { animation-duration: 12s; animation-delay: -15s; } .ft-p4 { animation-duration: 22s; animation-delay: -14s; } .ft-p5 { animation-duration: 17s; animation-delay: -8s; } .ft-p6 { animation-duration: 17s; animation-delay: -15s; } .ft-p7 { animation-duration: 13s; animation-delay: -15s; } .ft-p8 { animation-duration: 13s; animation-delay: 0s; } .ft-p9 { animation-duration: 22s; animation-delay: -9s; } .ft-p10 { animation-duration: 22s; animation-delay: -4s; } .ft-p11 { animation-duration: 20s; animation-delay: -7s; } .ft-p12 { animation-duration: 16s; animation-delay: -10s; } .ft-p13 { animation-duration: 18s; animation-delay: -11s; } .ft-p14 { animation-duration: 20s; animation-delay: -2s; } .ft-p15 { animation-duration: 19s; animation-delay: -6s; } .ft-p16 { animation-duration: 17s; animation-delay: -5s; } .ft-p17 { animation-duration: 14s; animation-delay: -13s; }

/* Butang kembali ke atas terapung */
.ft-top { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: inline-flex; align-items: center; gap: 0; padding: 0; border: 0; background: transparent; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(24px) scale(.8); transition: opacity .3s ease, transform .35s cubic-bezier(.34,1.56,.64,1), visibility 0s linear .35s; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.ft-top.ft-on { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .35s cubic-bezier(.34,1.56,.64,1), visibility 0s; }
.ft-top-label { max-width: 0; overflow: hidden; white-space: nowrap; padding: 0; margin-right: 0; height: 40px; display: inline-flex; align-items: center; border-radius: 999px 0 0 999px; background: linear-gradient(135deg, #2F5BEA, #7B4DF0); color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; transition: max-width .3s ease, padding .3s ease, margin .3s ease; }
.ft-top:hover .ft-top-label, .ft-top:focus-visible .ft-top-label { max-width: 120px; padding: 0 24px 0 16px; margin-right: -22px; }
.ft-top-disc { position: relative; width: 58px; height: 58px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.96); box-shadow: 0 10px 30px rgba(47,91,234,.28), 0 0 0 1px rgba(11,27,63,.08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .25s ease, box-shadow .25s ease; }
.ft-top:hover .ft-top-disc { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(123,77,240,.4), 0 0 0 1px rgba(47,91,234,.3); }
.ft-top:active .ft-top-disc { transform: scale(.94); }
.ft-top svg.ft-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.ft-rocket { position: relative; z-index: 1; transition: transform .3s ease; }
.ft-top:hover .ft-rocket { animation: ftbob .9s ease-in-out infinite; }
.ft-flame { transform-origin: 12px 18px; opacity: 0; transition: opacity .2s ease; }
.ft-top:hover .ft-flame, .ft-top.ft-go .ft-flame { opacity: 1; animation: ftflame .18s ease-in-out infinite alternate; }
.ft-top.ft-go .ft-rocket { animation: ftlaunch .75s cubic-bezier(.5,0,.9,.4) forwards; }
@keyframes ftbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes ftflame { from { transform: scaleY(.8); } to { transform: scaleY(1.3); } }
@keyframes ftlaunch { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(-70px); opacity: 0; } }
.ft-top.ft-go .ft-top-disc { box-shadow: 0 0 0 8px rgba(123,77,240,.18), 0 10px 30px rgba(47,91,234,.3); }

/* ---------- 404 ---------- */
.nf { display: grid; place-items: center; min-height: 60vh; padding: 64px 24px; text-align: center; }
.nf-in { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.nf-code { margin: 0; font: 400 clamp(6rem, 22vw, 12rem)/1 'Bebas Neue', Impact, sans-serif; letter-spacing: .04em; color: transparent; -webkit-text-stroke: 2px #2F5BEA; }
.nf h1 { margin: 0; font: 700 clamp(1.6rem, 4vw, 2.4rem)/1.2 Sora, system-ui, sans-serif; color: #0B1B3F; }

@media (prefers-reduced-motion: reduce) {
  .nv-led, .ft-pulse, .ft-node { animation: none; }
  .ft-node { display: none; }
  .ft-pulse { opacity: 0; }
  .nv-btn { transition: none; }
  .nv-btn:hover { transform: none; }
  .ft-top, .ft-top.ft-on, .ft-top-label, .ft-top-disc, .ft-fl, .nv-link { transition: none !important; }
  .ft-top:hover .ft-rocket, .ft-top:hover .ft-flame, .ft-top.ft-go .ft-rocket, .ft-top.ft-go .ft-flame { animation: none !important; }
}

/* Pautan nav aktif mengikut bahagian (scrollspy) */
.nv-link[data-spy-on="true"] { color: #043093; border-bottom-color: #2F5BEA; }
.nv-link[data-spy-off="true"] { color: #55627F; border-bottom-color: transparent; }

/* Latar nav pepejal putih supaya kotak logo (JPEG putih) tidak nampak bersempadan */
.nv { background: #FFFFFF; }
