/* ==========================================================================
   NEXARIN BY-RINS — Public Frontend Design System
   Dark Neo Blue + Glassmorphism. White is reserved for text.
   Shared by: Beranda, Review Produk, Premium Shop and all public pages.
   ========================================================================== */

:root {
    --nx-bg: #070D1C;
    --nx-navy-950: #0B1120;
    --nx-navy-900: #0F172A;
    --nx-blue-700: #1D4ED8;
    --nx-blue-600: #2563EB;
    --nx-blue-400: #60A5FA;
    --nx-blue-300: #93C5FD;
    --nx-glass: rgba(148, 178, 255, 0.055);
    --nx-glass-strong: rgba(120, 160, 255, 0.09);
    --nx-glass-line: rgba(186, 210, 255, 0.12);
    --nx-glass-line-strong: rgba(186, 210, 255, 0.22);
    --nx-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --nx-ease-io: cubic-bezier(0.76, 0, 0.24, 1);
    color-scheme: dark;
}

html { -webkit-text-size-adjust: 100%; background: var(--nx-bg); }
body { font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif; background: var(--nx-bg); color: #CBD5E1; }
.font-serif { font-family: 'Newsreader', 'Iowan Old Style', Georgia, serif; font-optical-sizing: auto; }

/* Hidden scrollbars (existing product decision) — scrolling preserved */
html::-webkit-scrollbar, body::-webkit-scrollbar, *::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; background: transparent !important; }
html, body { scrollbar-width: none !important; -ms-overflow-style: none !important; }

::selection { background: rgba(37, 99, 235, .55); color: #FFFFFF; }

:where(a, button, input, select, textarea, summary):focus-visible {
    outline: 2px solid var(--nx-blue-400);
    outline-offset: 2px;
    border-radius: 6px;
}

input, select, textarea { color-scheme: dark; }
select option { background: #0F172A; color: #FFFFFF; }

/* --------------------------------------------------------------------------
   Ambient background (fixed) — gives glass something to refract
   -------------------------------------------------------------------------- */
.nx-ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: var(--nx-bg); }
.nx-ambient::before {
    content: ''; position: absolute; inset: -20%;
    background:
        radial-gradient(38% 32% at 12% 8%, rgba(37, 99, 235, .30), transparent 70%),
        radial-gradient(34% 30% at 92% 18%, rgba(30, 58, 138, .55), transparent 72%),
        radial-gradient(40% 36% at 78% 92%, rgba(29, 78, 216, .22), transparent 70%),
        radial-gradient(30% 28% at 8% 78%, rgba(23, 37, 84, .70), transparent 70%);
    animation: nx-drift 28s ease-in-out infinite alternate;
}
.nx-ambient::after {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, rgba(148, 178, 255, .045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 178, 255, .045) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: linear-gradient(to bottom, #000, transparent 85%);
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
@keyframes nx-drift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-3%, 2%, 0) scale(1.06); }
}

/* --------------------------------------------------------------------------
   Glass surfaces
   -------------------------------------------------------------------------- */
.nx-glass {
    background: linear-gradient(160deg, rgba(148, 178, 255, .085) 0%, rgba(148, 178, 255, .025) 55%, rgba(148, 178, 255, .045) 100%);
    border-color: var(--nx-glass-line);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 20px 50px -30px rgba(0, 0, 0, .7);
}
.nx-glass-strong {
    background: linear-gradient(150deg, rgba(37, 99, 235, .22) 0%, rgba(15, 23, 42, .55) 60%, rgba(37, 99, 235, .10) 100%);
    border: 1px solid var(--nx-glass-line-strong);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 70px -36px rgba(0, 0, 0, .85);
}
.nx-glass-soft {
    background: rgba(148, 178, 255, .035);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.nx-glass-bar {
    background: rgba(7, 13, 28, .62);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
}
/* Edge light on glass when hovering */
.nx-glass, .nx-glass-strong { position: relative; }
.nx-sheen { position: relative; overflow: hidden; }
.nx-sheen::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
    background: linear-gradient(115deg, transparent 30%, rgba(147, 197, 253, .10) 48%, transparent 66%);
    transform: translateX(-120%); transition: transform 1.1s var(--nx-ease);
}
.nx-sheen:hover::after { transform: translateX(120%); }

/* Primary button glow */
.nx-btn-primary { background: linear-gradient(180deg, #3B82F6 0%, #2563EB 55%, #1D4ED8 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 14px 34px -14px rgba(37, 99, 235, .9); }
.nx-btn-primary:hover { background: linear-gradient(180deg, #4F8FF7 0%, #2F6BF0 55%, #2152DE 100%); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.nx-header {
    background: rgba(7, 13, 28, .55);
    border-bottom: 1px solid var(--nx-glass-line);
    -webkit-backdrop-filter: saturate(170%) blur(18px);
    backdrop-filter: saturate(170%) blur(18px);
    transition: background-color .5s var(--nx-ease), border-color .5s var(--nx-ease), box-shadow .5s var(--nx-ease), transform .5s var(--nx-ease);
}
.nx-header[data-transparent="true"]:not(.is-scrolled) {
    background: transparent;
    border-bottom-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.nx-header.is-scrolled { box-shadow: 0 14px 40px -22px rgba(0, 0, 0, .9); }
.nx-header.is-hidden { transform: translateY(-100%); }

.nx-nav-link { position: relative; }
.nx-nav-link::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1.5px;
    background: var(--nx-blue-400); transform: scaleX(0); transform-origin: left;
    transition: transform .45s var(--nx-ease);
}
.nx-nav-link:hover::after, .nx-nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nx-drawer { visibility: hidden; opacity: 0; transition: opacity .4s var(--nx-ease), visibility 0s linear .4s; }
.nx-drawer.is-open { visibility: visible; opacity: 1; transition: opacity .4s var(--nx-ease); }
.nx-drawer-panel { transform: translateY(-12px); transition: transform .5s var(--nx-ease); }
.nx-drawer.is-open .nx-drawer-panel { transform: none; }

.nx-progress { transform-origin: left; transform: scaleX(0); }

/* --------------------------------------------------------------------------
   Page transition curtain
   -------------------------------------------------------------------------- */
.nx-curtain {
    position: fixed; inset: 0; z-index: 100; pointer-events: none;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(60% 50% at 50% 40%, rgba(37, 99, 235, .35), transparent 70%),
        linear-gradient(180deg, #0B1120 0%, #070D1C 100%);
    transform: translate3d(0, 100%, 0);
    visibility: hidden;
}
.nx-curtain::before {
    content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, .8), transparent);
}
.nx-curtain-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; opacity: 0; transform: translateY(14px); transition: opacity .45s var(--nx-ease), transform .6s var(--nx-ease); }
.nx-curtain-bar { width: 140px; height: 2px; border-radius: 2px; background: rgba(148, 178, 255, .15); overflow: hidden; }
.nx-curtain-bar > span { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, #2563EB, #93C5FD); animation: nx-load 1.1s var(--nx-ease-io) infinite; }
@keyframes nx-load { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }

/* Leaving: curtain rises from bottom and covers */
html.nx-leaving .nx-curtain { visibility: visible; transform: none; transition: transform .6s var(--nx-ease-io); pointer-events: auto; }
html.nx-leaving .nx-curtain-inner { opacity: 1; transform: none; transition-delay: .2s; }
html.nx-leaving main, html.nx-leaving footer { transform: translate3d(0, -40px, 0) scale(.985); opacity: .4; transition: transform .6s var(--nx-ease-io), opacity .6s var(--nx-ease-io); }

/* Entering: curtain starts covering, then lifts away */
html.nx-entering .nx-curtain { visibility: visible; transform: none; }
html.nx-entering .nx-curtain-inner { opacity: 1; transform: none; }
html.nx-entering.nx-entered .nx-curtain { transform: translate3d(0, -100%, 0); transition: transform .9s var(--nx-ease-io); }
html.nx-entering.nx-entered .nx-curtain-inner { opacity: 0; transform: translateY(-20px); transition: opacity .3s ease, transform .5s var(--nx-ease); }
html.nx-entering main { transform: translate3d(0, 60px, 0); opacity: 0; }
html.nx-entering.nx-entered main { transform: none; opacity: 1; transition: transform 1.1s var(--nx-ease) .15s, opacity .8s var(--nx-ease) .15s; }

/* --------------------------------------------------------------------------
   Scroll reveal (only active when JS adds .nx-js to <html>)
   -------------------------------------------------------------------------- */
.nx-js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity 1s var(--nx-ease), transform 1.1s var(--nx-ease), clip-path 1.2s var(--nx-ease), filter 1s var(--nx-ease);
    transition-delay: var(--nx-delay, 0ms);
}
.nx-js [data-reveal="fade"] { transform: none; }
.nx-js [data-reveal="left"] { transform: translate3d(-32px, 0, 0); }
.nx-js [data-reveal="right"] { transform: translate3d(32px, 0, 0); }
.nx-js [data-reveal="scale"] { transform: scale(.965); }
.nx-js [data-reveal="blur"] { transform: translate3d(0, 16px, 0); filter: blur(10px); }
.nx-js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); }
.nx-js [data-reveal].is-visible { opacity: 1; transform: none; clip-path: inset(0 0 0 0); filter: none; }

.nx-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.nx-line > span { display: inline-block; }
.nx-js .nx-line > span { transform: translate3d(0, 105%, 0); transition: transform 1.2s var(--nx-ease); transition-delay: var(--nx-delay, 0ms); }
.nx-js .is-loaded .nx-line > span { transform: none; }
.nx-js [data-intro] { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity 1s var(--nx-ease), transform 1s var(--nx-ease); transition-delay: var(--nx-delay, 0ms); }
.nx-js .is-loaded [data-intro] { opacity: 1; transform: none; }
/* Phones: the hero entrance runs in CSS from the first paint instead of waiting
   for JS + fonts (that wait made the hero text the slow LCP on mobile). It starts
   at opacity .01, not 0, so the browser already counts the text as painted. */
@media (max-width: 767px) {
    .nx-js [data-intro], .nx-js .nx-line > span {
        opacity: 1;
        transform: none;
        transition: none;
        animation: nx-intro-up .9s var(--nx-ease) both;
        animation-delay: var(--nx-delay, 0ms);
    }
}
@keyframes nx-intro-up {
    from { opacity: .01; transform: translate3d(0, 14px, 0); }
    to { opacity: 1; transform: none; }
}

/* Typewriter headline (see nexarin.js). Hidden chars keep their width, so nothing shifts. */
.nx-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.nx-type-ch.is-off { visibility: hidden; }

/* Hero headline: each line stays on one row; on narrow screens the size scales with
   the viewport (longest line ≈ 10.2em wide; 11 leaves room for the italic overhang) and never exceeds the original sizes. */
h1.nx-hero-title .nx-line { white-space: nowrap; }
h1.nx-hero-title { font-size: min(2.75rem, calc((100vw - 3rem) / 11)); }
@media (min-width: 640px) { h1.nx-hero-title { font-size: min(3.75rem, calc((100vw - 3rem) / 11)); } }
@media (min-width: 768px) { h1.nx-hero-title { font-size: min(4.5rem, calc((100vw - 3rem) / 11)); } }
@media (min-width: 1024px) { h1.nx-hero-title { font-size: min(5.6rem, calc((100vw - 3rem) / 11)); } }

.nx-js [data-reveal="rule"] { opacity: 1; transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--nx-ease); }
.nx-js [data-reveal="rule"].is-visible { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
    .nx-js [data-reveal], .nx-js .nx-line > span, .nx-js [data-intro] { opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; transition: none !important; animation: none !important; }
    .nx-ambient::before { animation: none; }
    .nx-curtain { display: none !important; }
    html.nx-entering main, html.nx-leaving main, html.nx-leaving footer { transform: none !important; opacity: 1 !important; }
}

/* --------------------------------------------------------------------------
   Details
   -------------------------------------------------------------------------- */
.nx-grid-bg {
    background-image:
        linear-gradient(to right, rgba(148, 178, 255, .06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 178, 255, .06) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.nx-noise::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .04; mix-blend-mode: overlay; z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.nx-hairline { height: 1px; background: linear-gradient(90deg, transparent, rgba(147, 197, 253, .35), transparent); }

.nx-cover { position: relative; overflow: hidden; isolation: isolate; }
.nx-cover-art { transition: transform 1.2s var(--nx-ease); }
.group:hover .nx-cover-art { transform: scale(1.045); }
.nx-cover-lines { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 1px, transparent 1px 14px); }

.nx-headline-link { background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .6s var(--nx-ease), color .3s; }
.group:hover .nx-headline-link, .nx-headline-link:hover { background-size: 100% 1px; }

.nx-arrow { transition: transform .45s var(--nx-ease); }
.group:hover .nx-arrow { transform: translateX(3px); }
.group:hover .nx-arrow-diag { transform: translate(2px, -2px); }

.nx-lift { transition: transform .6s var(--nx-ease), box-shadow .6s var(--nx-ease), border-color .4s; }
.nx-lift:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(96, 165, 250, .18); }

.nx-faq summary { list-style: none; cursor: pointer; }
.nx-faq summary::-webkit-details-marker { display: none; }
.nx-faq .nx-faq-icon { transition: transform .5s var(--nx-ease); }
.nx-faq[open] .nx-faq-icon { transform: rotate(45deg); }

.nx-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nx-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* --------------------------------------------------------------------------
   Editorial prose (dark)
   -------------------------------------------------------------------------- */
.nx-prose { color: #CBD5E1; font-size: 1.125rem; line-height: 1.8; }
.nx-prose.is-serif { font-family: 'Newsreader', Georgia, serif; font-size: 1.25rem; line-height: 1.75; color: #D7E0EC; }
.nx-prose > * + * { margin-top: 1.25em; }
.nx-prose h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.6rem; line-height: 1.3; font-weight: 800; letter-spacing: -.02em; color: #FFFFFF; margin-top: 2.2em; }
.nx-prose h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.25rem; line-height: 1.4; font-weight: 700; letter-spacing: -.01em; color: #FFFFFF; margin-top: 1.8em; }
.nx-prose h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.05rem; font-weight: 700; color: #FFFFFF; margin-top: 1.6em; }
.nx-prose a { color: var(--nx-blue-300); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(147, 197, 253, .45); }
.nx-prose a:hover { color: #FFFFFF; text-decoration-color: #FFFFFF; }
.nx-prose strong { color: #FFFFFF; font-weight: 700; }
.nx-prose ul, .nx-prose ol { padding-left: 1.4em; }
.nx-prose ul { list-style: disc; }
.nx-prose ol { list-style: decimal; }
.nx-prose li + li { margin-top: .4em; }
.nx-prose li::marker { color: var(--nx-blue-400); }
.nx-prose blockquote { border-left: 2px solid var(--nx-blue-400); padding: .2em 0 .2em 1.2em; font-style: italic; color: #FFFFFF; }
.nx-prose hr { border: 0; border-top: 1px solid var(--nx-glass-line); margin: 2.5em 0; }
.nx-prose code { font-size: .85em; background: rgba(148, 178, 255, .08); border: 1px solid var(--nx-glass-line); padding: .1em .35em; border-radius: 6px; color: #DBEAFE; }
.nx-prose pre { background: rgba(7, 13, 28, .7); border: 1px solid var(--nx-glass-line); color: #E2E8F0; padding: 1.1em 1.3em; border-radius: 14px; overflow-x: auto; font-size: .85rem; line-height: 1.65; }
.nx-prose pre code { background: transparent; border: 0; padding: 0; }
.nx-prose img { border-radius: 14px; width: 100%; height: auto; }
.nx-prose figure figcaption { font-family: 'Plus Jakarta Sans', sans-serif; font-size: .8rem; color: #94A3B8; margin-top: .6em; }
.nx-prose table { width: 100%; border-collapse: collapse; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .95rem; }
.nx-prose th, .nx-prose td { border-bottom: 1px solid var(--nx-glass-line); padding: .7em .8em; text-align: left; vertical-align: top; }
.nx-prose th { font-weight: 700; color: #FFFFFF; background: rgba(148, 178, 255, .06); }
.nx-prose .nx-dropcap::first-letter { float: left; font-family: 'Newsreader', Georgia, serif; font-size: 4.1em; line-height: .82; font-weight: 600; padding: .06em .12em 0 0; color: var(--nx-blue-300); }

/* ---------- Shiny CTA (ported from the ShinyButton React component) ----------
   Rotating conic border + dot pattern + inner shimmer; hover widens the shine.
   Padding / size come from the Tailwind classes on each button. Inner content
   must sit in .nx-shiny-label (gets the hover glow). */
@property --nx-gradient-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --nx-gradient-angle-offset { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --nx-gradient-percent { syntax: "<percentage>"; initial-value: 5%; inherits: false; }
@property --nx-gradient-shine { syntax: "<color>"; initial-value: white; inherits: false; }

.nx-shiny {
    --shiny-bg: #03060F;
    --shiny-bg-subtle: #1A2440;
    --shiny-highlight: #2563EB;
    --shiny-highlight-subtle: #8DB4FF;
    --shiny-animation: nx-gradient-angle linear infinite;
    --shiny-duration: 3s;
    --shiny-shadow-size: 2px;
    --shiny-transition: 800ms cubic-bezier(0.25, 1, 0.5, 1);

    isolation: isolate;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    outline-offset: 4px;
    color: #fff;
    border: 1px solid transparent;
    border-radius: 360px;
    background:
        linear-gradient(var(--shiny-bg), var(--shiny-bg)) padding-box,
        conic-gradient(
            from calc(var(--nx-gradient-angle) - var(--nx-gradient-angle-offset)),
            transparent,
            var(--shiny-highlight) var(--nx-gradient-percent),
            var(--nx-gradient-shine) calc(var(--nx-gradient-percent) * 2),
            var(--shiny-highlight) calc(var(--nx-gradient-percent) * 3),
            transparent calc(var(--nx-gradient-percent) * 4)
        ) border-box;
    box-shadow: inset 0 0 0 1px var(--shiny-bg-subtle), 0 14px 34px -18px rgba(37, 99, 235, .75);
    transition: var(--shiny-transition);
    transition-property: --nx-gradient-angle-offset, --nx-gradient-percent, --nx-gradient-shine;
}
.nx-shiny::before,
.nx-shiny::after,
.nx-shiny .nx-shiny-label::before {
    content: "";
    pointer-events: none;
    position: absolute;
    inset-inline-start: 50%;
    inset-block-start: 50%;
    translate: -50% -50%;
    z-index: -1;
}
.nx-shiny:active { translate: 0 1px; }

/* Dots pattern */
.nx-shiny::before {
    --size: calc(100% - var(--shiny-shadow-size) * 3);
    --position: 2px;
    --space: calc(var(--position) * 2);
    width: var(--size);
    height: var(--size);
    background: radial-gradient(circle at var(--position) var(--position), white calc(var(--position) / 4), transparent 0) padding-box;
    background-size: var(--space) var(--space);
    background-repeat: space;
    mask-image: conic-gradient(from calc(var(--nx-gradient-angle) + 45deg), black, transparent 10% 90%, black);
    border-radius: inherit;
    opacity: .4;
}

/* Inner shimmer */
.nx-shiny::after {
    --shiny-animation: nx-shimmer linear infinite;
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(-50deg, transparent, var(--shiny-highlight), transparent);
    mask-image: radial-gradient(circle at bottom, transparent 40%, black);
    opacity: .6;
}

.nx-shiny .nx-shiny-label { position: relative; z-index: 1; display: inline-flex; align-items: center; }
.nx-shiny .nx-shiny-label::before {
    --size: calc(100% + 1rem);
    width: var(--size);
    height: var(--size);
    box-shadow: inset 0 -1ex 2rem 4px var(--shiny-highlight);
    opacity: 0;
    transition: opacity var(--shiny-transition);
    animation: calc(var(--shiny-duration) * 1.5) nx-breathe linear infinite;
}

.nx-shiny,
.nx-shiny::before,
.nx-shiny::after {
    animation: var(--shiny-animation) var(--shiny-duration), var(--shiny-animation) calc(var(--shiny-duration) / 0.4) reverse paused;
    animation-composition: add;
}
.nx-shiny:is(:hover, :focus-visible) {
    --nx-gradient-percent: 20%;
    --nx-gradient-angle-offset: 95deg;
    --nx-gradient-shine: var(--shiny-highlight-subtle);
}
.nx-shiny:is(:hover, :focus-visible),
.nx-shiny:is(:hover, :focus-visible)::before,
.nx-shiny:is(:hover, :focus-visible)::after { animation-play-state: running; }
.nx-shiny:is(:hover, :focus-visible) .nx-shiny-label::before { opacity: 1; }

@keyframes nx-gradient-angle { to { --nx-gradient-angle: 360deg; } }
@keyframes nx-shimmer { to { rotate: 360deg; } }
@keyframes nx-breathe { from, to { scale: 1; } 50% { scale: 1.2; } }

@media (prefers-reduced-motion: reduce) {
    .nx-shiny, .nx-shiny::before, .nx-shiny::after, .nx-shiny .nx-shiny-label::before { animation: none; }
}

/* ---------- Portal Informasi masthead: faint Indonesia map background ---------- */
/* Masthead height follows the map ratio (1800x723) so the archipelago spans edge to edge uncropped. */
.nx-map-hero {
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-top: 68px; /* under the transparent fixed header */
    min-height: calc(68px + clamp(340px, 40.2vw, 720px));
    background: #0B1120;
    color: #fff;
}
/* First page: full screen like the Beranda hero. */
.nx-map-hero.is-full { min-height: 100vh; min-height: 100svh; }
/* Beranda backdrop: radial blue gradient + faint grid + soft glow. */
.nx-map-hero__backdrop { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.nx-map-hero__gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 80% at 50% 0%, #1E3A8A 0%, #132054 32%, #0F172A 62%, #0B1120 100%);
}
.nx-map-hero__grid { position: absolute; inset: 0; }
.nx-map-hero__glow {
    position: absolute;
    top: 18%;
    left: 0;
    right: 0;
    margin-inline: auto; /* centered without transform: data-parallax writes transform */
    width: 70vw;
    max-width: 980px;
    height: 420px;
    border-radius: 9999px;
    background: rgba(37, 99, 235, .2);
    filter: blur(130px);
}
.nx-map-hero__cue {
    align-self: center;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 28px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #94A3B8;
    transition: color .2s ease;
}
.nx-map-hero__cue:hover { color: #fff; }
.nx-map-hero__cue svg { animation: nx-cue-bob 1.8s ease-in-out infinite; }
@keyframes nx-cue-bob { 50% { transform: translateY(5px); } }
#berita { scroll-margin-top: 68px; }
.nx-map-hero__datebar { position: relative; z-index: 1; }
.nx-map-hero__main { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; width: 100%; }
.nx-map-hero__body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.nx-map-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.nx-map-hero__bg img {
    /* Full width, left edge to right edge, whole archipelago (no side fade, no crop). */
    width: 100%;
    max-width: none;
    height: auto;
    opacity: .06;
    user-select: none;
    animation: nx-map-breathe 12s ease-in-out infinite alternate;
}
@keyframes nx-map-breathe {
    from { opacity: .05; }
    to { opacity: .07; }
}
@media (max-width: 640px) {
    .nx-map-hero__bg img { animation: none; opacity: .1; }
}
@media (prefers-reduced-motion: reduce) {
    .nx-map-hero__bg img, .nx-map-hero__cue svg { animation: none; }
}
