/* ==========================================================
   NiyatiOne – header / nav / mobile menu
   Dark-navy theme. Retune the whole header from :root only.
   ========================================================== */
:root {
    --bg: #0a1233;
    --bg-deep: #020521;
    --ink: #eaf0ff;
    --text: #b0c9ff;
    --muted: #8394c4;
    --line: rgba(176, 201, 255, .14);
    --accent: #00d4ff;
    --accent-2: #4f6bff;
    --accent-rgb: 0, 212, 255;
    --accent-2-rgb: 79, 107, 255;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden
}
img { max-width: 100%; height: auto; display: block }
a { color: inherit; text-decoration: none }
button { font: inherit; color: inherit }
::selection { background: var(--accent); color: var(--bg-deep) }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px }
html.menu-open { overflow: hidden }

/* ---------- Header shell ---------- */
.site-header {
    position: fixed;
    z-index: 60;
    left: 0; right: 0; top: 0;
    padding: calc(14px + env(safe-area-inset-top, 0px)) clamp(16px, 4vw, 56px) 0;
    transition: transform .6s var(--ease);
    pointer-events: none
}
.site-header.is-hidden { transform: translateY(-120%) }

.nav {
    pointer-events: auto;
    max-width: 1280px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 10px 10px 20px;
    border-radius: 999px;
    background: rgba(2, 5, 33, .62);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid var(--line);
    box-shadow: 0 1px rgba(255, 255, 255, .06) inset, 0 12px 36px rgba(0, 0, 0, .35)
}

.logo { display: inline-flex; align-items: flex-end; gap: 7px; flex-shrink: 0 }
.logo .logo-mark { height: 38px; width: auto; transition: transform .8s var(--ease) }
.logo .logo-word { height: 30px; width: auto; margin-bottom: 4px }
.logo:hover .logo-mark { transform: rotate(-24deg) }

/* ---------- Desktop links (scoped to top level only, so they no
   longer leak into the dropdown's own <a> elements) ---------- */
.nav-links {
    position: relative;
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0; padding: 0
}
.nav-links > li { position: relative; z-index: 1 }
.nav-links > li > a {
    position: relative;
    display: block;
    padding: 9px 16px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 15px;
    white-space: nowrap;
    color: var(--text);
    transition: color .3s
}
.nav-links > li > a:hover,
.nav-links > li > a:focus-visible,
.nav-links > li:focus-within > a,
.nav-links > li > a[aria-current=page] { color: #fff }

.nav-links > li > a[aria-current=page]:after {
    content: "";
    position: absolute;
    left: 50%; bottom: 3px;
    width: 5px; height: 5px;
    margin-left: -2.5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(var(--accent-rgb), .8)
}
.nav-links .has-drop > a { display: flex; align-items: center; gap: 4px }
.nav-links .caret { width: 14px; height: 14px; transition: transform .4s var(--ease) }
.has-drop:hover .caret, .has-drop:focus-within .caret { transform: rotate(180deg) }

/* sliding hover pill */
.nav-links .nav-pill {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(var(--accent-2-rgb), .30), rgba(var(--accent-rgb), .12));
    box-shadow: 0 0 0 1px rgba(176, 201, 255, .16) inset, 0 6px 18px -8px rgba(var(--accent-2-rgb), .6);
    z-index: 0;
    opacity: 0;
    transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s;
    pointer-events: none
}

/* ---------- CTA (replaces the obfuscated utility-class button) ---------- */
.nav-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-2), #0099dd 70%, var(--accent));
    box-shadow: 0 1px rgba(255, 255, 255, .25) inset, 0 10px 24px -10px rgba(var(--accent-2-rgb), .9);
    transition: filter .3s, box-shadow .3s
}
.nav-cta:hover { filter: brightness(1.12); box-shadow: 0 1px rgba(255, 255, 255, .3) inset, 0 14px 30px -10px rgba(var(--accent-rgb), .8) }

/* ---------- Services dropdown ---------- */
.nav-drop {
    position: absolute;
    left: -10px;
    top: calc(100% + 14px);
    width: 700px;
    padding: 10px;
    border-radius: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 8px;
    background: var(--bg-deep);
    border: 1px solid var(--line);
    box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .7), 0 1px rgba(255, 255, 255, .06) inset;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(.97);
    transform-origin: 48px 0;
    transition: opacity .3s var(--ease), transform .45s var(--ease), visibility 0s .3s
}
.nav-drop:before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px }
.has-drop:hover .nav-drop,
.has-drop:focus-within .nav-drop {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .3s var(--ease), transform .55s var(--ease), visibility 0s
}

.nd-list { display: grid; gap: 2px; align-content: start }
.nd-item {
    --d: 0s;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 20px;
    gap: 12px;
    align-items: center;
    padding: 8px 10px 8px 8px;
    border-radius: 18px;
    color: var(--text);
    opacity: 0;
    transform: translateX(-8px);
    transition: background .25s, transform .5s var(--ease) var(--d), opacity .3s var(--d)
}
.has-drop:hover .nd-item, .has-drop:focus-within .nd-item {
    --d: calc(50ms + var(--i) * 45ms);
    opacity: 1; transform: none
}
.nd-item:hover, .nd-item.is-on {
    background: radial-gradient(circle at 20% 50%, rgba(var(--accent-2-rgb), .28), rgba(var(--accent-2-rgb), .08) 70%)
}

.nd-ico {
    width: 42px; height: 42px;
    border-radius: 14px;
    display: grid; place-items: center;
    color: var(--accent);
    background: var(--bg);
    box-shadow: inset 4px 4px 10px rgba(0, 0, 0, .5), inset -4px -4px 10px rgba(var(--accent-2-rgb), .14);
    transition: background .3s, color .3s, box-shadow .3s, transform .5s var(--ease)
}
.nd-ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.nd-item.is-on .nd-ico {
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    color: #fff;
    box-shadow: 0 10px 18px -8px rgba(var(--accent-rgb), .7);
    transform: scale(1.05) rotate(-4deg)
}

.nd-txt { display: grid; gap: 1px; font-weight: 600; font-size: 15px; line-height: 1.25; color: var(--ink) }
.nd-txt small { font-weight: 400; font-size: 12.5px; color: var(--muted) }
.nd-arr { width: 20px; height: 20px; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .4s var(--ease) }
.nd-arr svg { width: 100%; height: 100% }
.nd-item.is-on .nd-arr { opacity: 1; transform: none }

/* preview card */
.nd-preview {
    position: relative;
    border-radius: 22px;
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--ink);
    overflow: hidden;
    min-height: 236px;
    isolation: isolate;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .35s .12s, transform .55s var(--ease) .12s
}
.has-drop:hover .nd-preview, .has-drop:focus-within .nd-preview { opacity: 1; transform: none }
.nd-preview:before {
    content: "";
    position: absolute;
    left: -30%; right: -30%; top: -45%;
    height: 110%;
    background: radial-gradient(closest-side, rgba(var(--accent-2-rgb), .45), transparent);
    pointer-events: none; z-index: 0
}
.nd-fig {
    position: absolute; inset: 0; z-index: 1;
    padding: 16px 16px 14px;
    display: flex; flex-direction: column;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .3s, transform .5s var(--ease);
    pointer-events: none;
    color: var(--ink)
}
.nd-fig.was { transform: translateY(-12px) }
.nd-fig.on { opacity: 1; transform: none; pointer-events: auto; transition-delay: .06s }

.nd-cap { margin-top: auto; display: grid; gap: 3px; padding-right: 44px }
.nd-cap small { font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 11px; letter-spacing: .12em; color: var(--accent) }
.nd-cap b { font-weight: 700; font-size: 15px; line-height: 1.2; color: #fff }
.nd-cap span { font-size: 12px; color: rgba(234, 240, 255, .62) }

.nd-go {
    position: absolute; right: 14px; bottom: 14px;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--accent); color: var(--bg-deep);
    display: grid; place-items: center;
    transition: transform .5s var(--ease), background .3s, color .3s
}
.nd-go svg { width: 14px; height: 14px }
.nd-fig:hover .nd-go { transform: rotate(45deg); background: #fff; color: var(--bg) }

/* dropdown footer */
.nd-foot {
    grid-column: 1 / -1;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    margin-top: 2px;
    padding: 8px 4px 2px 6px;
    border-top: 1px solid var(--line)
}
.nd-foot a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 12px; border-radius: 999px;
    font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
    font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
    color: var(--accent);
    transition: background .25s, color .25s
}
.nd-foot a svg { width: 14px; height: 14px; transition: transform .4s var(--ease) }
.nd-foot a:hover { background: rgba(255, 255, 255, .08); color: #fff }
.nd-foot a:hover svg { transform: translate(2px, -2px) }
.nd-foot a.nd-talk {
    font-family: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 13.5px; font-weight: 600; letter-spacing: 0; text-transform: none;
    color: var(--text)
}
.nd-foot a.nd-talk:before {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .18)
}

/* ---------- Dropdown mini-mockups ---------- */
.nd-mock { position: relative; display: block; height: 124px; margin: 0 0 14px }
.nd-mock i, .nd-mock b, .nd-mock em, .nd-mock u { display: block; position: absolute }

.m-erp .sb { left: 0; top: 0; bottom: 0; width: 22px; border-radius: 8px; background: rgba(255, 255, 255, .09); padding: 8px 6px; display: grid; align-content: start; gap: 7px }
.m-erp .sb b { position: static; width: 10px; height: 10px; border-radius: 3px; background: rgba(255, 255, 255, .22) }
.m-erp .sb b:first-child { background: var(--accent) }
.m-erp .k { top: 0; width: calc((100% - 42px) / 3); height: 40px; border-radius: 8px; background: rgba(255, 255, 255, .10) }
.m-erp .k:nth-of-type(2) { left: 30px }
.m-erp .k:nth-of-type(3) { left: calc(36px + (100% - 42px) / 3) }
.m-erp .k:nth-of-type(4) { right: 0 }
.m-erp .k b { left: 8px; top: 9px; width: 42%; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .30) }
.m-erp .k em { left: 8px; bottom: 9px; width: 58%; height: 8px; border-radius: 3px; background: var(--accent) }
.m-erp .k:nth-of-type(3) em { width: 40%; background: #7c8cff }
.m-erp .bars { inset: 48px 0 0 30px; border-radius: 8px; background: rgba(255, 255, 255, .08); display: flex; align-items: flex-end; gap: 6px; padding: 10px }
.m-erp .bars b { position: static; flex: 1; height: calc(var(--h) * 100%); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--accent), rgba(var(--accent-2-rgb), .45)); transform-origin: bottom }

.m-platform .cal { left: 0; right: 0; top: 0; height: 44px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px }
.m-platform .cal b { position: static; height: 20px; border-radius: 6px; background: rgba(255, 255, 255, .10) }
.m-platform .cal b.sel { background: var(--accent) }
.m-platform .slot { left: 0; right: 0; top: 54px; height: 22px; border-radius: 8px; background: rgba(255, 255, 255, .10) }
.m-platform .slot:nth-of-type(3) { top: 82px }
.m-platform .slot b { left: 10px; top: 8px; width: 38%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .35) }
.m-platform .slot em { right: 7px; top: 5px; width: 44px; height: 12px; border-radius: 999px; background: rgba(var(--accent-rgb), .35) }
.m-platform .slot:nth-of-type(2) em { background: var(--accent) }
.m-platform .nm-go { left: 0; right: 0; bottom: 0; height: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--accent), rgba(var(--accent-2-rgb), .4)) }

.m-mobile .ph { left: 50%; top: 2px; width: 60px; height: 122px; margin-left: -56px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); overflow: hidden }
.m-mobile .ph2 { margin-left: 0; transform: rotate(7deg) scale(.92); transform-origin: bottom left; opacity: .6 }
.m-mobile .ph .hd { left: 0; right: 0; top: 0; height: 28px; background: linear-gradient(135deg, var(--accent-2), var(--accent)) }
.m-mobile .ph .ln { left: 8px; right: 8px; top: 38px; height: 8px; border-radius: 3px; background: rgba(255, 255, 255, .2) }
.m-mobile .ph .ln:nth-of-type(3) { top: 52px }
.m-mobile .ph .ln.s { top: 66px; width: 55%; right: auto }
.m-mobile .ph .tb { left: 8px; right: 8px; bottom: 7px; height: 12px; border-radius: 999px; background: rgba(var(--accent-rgb), .4) }

.m-web .bar { left: 0; right: 0; top: 0; height: 16px; border-radius: 8px 8px 0 0; background: rgba(255, 255, 255, .13); display: flex; gap: 4px; align-items: center; padding: 0 9px }
.m-web .bar b { position: static; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .35) }
.m-web .bar b:first-child { background: var(--accent) }
.m-web .hero { inset: 16px 0 0; border-radius: 0 0 8px 8px; background: rgba(255, 255, 255, .07); overflow: hidden }
.m-web .hero .t { left: 14px; top: 18px; width: 46%; height: 10px; border-radius: 4px; background: rgba(255, 255, 255, .55) }
.m-web .hero .t.s { top: 33px; width: 34% }
.m-web .hero .p { left: 14px; top: 54px; width: 42%; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .22) }
.m-web .hero .p.s { top: 63px; width: 30% }
.m-web .hero .nm-bt { left: 14px; top: 78px; width: 44px; height: 14px; border-radius: 999px; background: var(--accent) }
.m-web .hero .blob { right: -16px; bottom: -26px; width: 104px; height: 104px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(var(--accent-rgb), .75), rgba(var(--accent-2-rgb), .25) 58%, transparent 70%) }

@media (prefers-reduced-motion: no-preference) {
    .nd-fig.on .m-erp .bars b { animation: ndRise .8s var(--ease) both }
    .nd-fig.on .m-erp .k, .nd-fig.on .m-platform .slot, .nd-fig.on .m-platform .nm-go, .nd-fig.on .m-web .hero > * { animation: ndIn .6s var(--ease) both }
    .nd-fig.on .m-platform .cal b.sel { animation: ndPing 1.1s var(--ease) .35s both }
    .nd-fig.on .m-mobile .ph { animation: ndLift .7s var(--ease) both }
    .nd-fig.on .m-mobile .ph2 { animation-delay: .1s }
    .nd-fig.on .m-web .hero .blob { animation: ndBlob .9s var(--ease) .1s both }
    .nd-fig.on .nd-mock > :nth-child(2), .nd-fig.on .m-erp .bars b:nth-child(2), .nd-fig.on .m-web .hero > :nth-child(2) { animation-delay: .07s }
    .nd-fig.on .nd-mock > :nth-child(3), .nd-fig.on .m-erp .bars b:nth-child(3), .nd-fig.on .m-web .hero > :nth-child(3) { animation-delay: .14s }
    .nd-fig.on .nd-mock > :nth-child(4), .nd-fig.on .m-erp .bars b:nth-child(4), .nd-fig.on .m-web .hero > :nth-child(4) { animation-delay: .21s }
    .nd-fig.on .m-erp .bars b:nth-child(5), .nd-fig.on .m-web .hero > :nth-child(5) { animation-delay: .28s }
    .nd-fig.on .m-erp .bars b:nth-child(6) { animation-delay: .35s }
}
@keyframes ndRise { 0% { transform: scaleY(0) } }
@keyframes ndIn { 0% { opacity: 0; translate: -10px 0 } }
@keyframes ndLift { 0% { opacity: 0; translate: 0 16px } }
@keyframes ndPing { 0% { box-shadow: 0 0 rgba(var(--accent-rgb), .7) } to { box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0) } }
@keyframes ndBlob { 0% { opacity: 0; scale: .4 } }

/* ---------- Language switcher ---------- */
.lang-sw { position: relative; flex: none }
.ls-btn {
    all: unset; box-sizing: border-box; cursor: pointer;
    display: inline-flex; align-items: center; gap: 7px;
    height: 42px; padding: 0 12px; border-radius: 999px;
    font-family: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-weight: 600; font-size: 14px;
    color: var(--text);
    transition: background .3s, color .3s
}
.ls-btn svg { width: 17px; height: 17px }
.ls-btn i { width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .3s var(--ease) }
.ls-btn:hover, .lang-sw.open .ls-btn, .lang-sw:focus-within .ls-btn { background: rgba(255, 255, 255, .08); color: #fff }
.ls-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }

.ls-menu {
    position: absolute; right: 0; top: calc(100% + 10px);
    min-width: 180px; padding: 8px;
    display: grid; gap: 2px;
    border-radius: 18px;
    background: rgba(2, 5, 33, .96);
    border: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
    opacity: 0; visibility: hidden;
    transform: translateY(-6px) scale(.98); transform-origin: top right;
    transition: opacity .25s, transform .35s var(--ease), visibility 0s .35s;
    z-index: 50
}
.ls-menu:before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px }
.lang-sw:hover .ls-menu, .lang-sw.open .ls-menu, .lang-sw:focus-within .ls-menu {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .25s, transform .35s var(--ease), visibility 0s
}
.lang-sw:hover .ls-btn i, .lang-sw.open .ls-btn i { transform: rotate(-135deg) translateY(-2px) }
.ls-menu a {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 12px; border-radius: 12px;
    font-size: 14.5px; font-weight: 600; color: var(--text);
    transition: background .2s, color .2s
}
.ls-menu a:hover { background: rgba(var(--accent-2-rgb), .22); color: #fff }
.ls-menu a[aria-current]:after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .18) }

/* ---------- Burger ---------- */
.burger { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .08); cursor: pointer; position: relative }
.burger span { position: absolute; left: 15px; right: 15px; height: 2px; background: #fff; border-radius: 2px; transition: transform .5s var(--ease), top .5s var(--ease) }
.burger span:nth-child(1) { top: 19px }
.burger span:nth-child(2) { top: 27px }
.menu-open .burger span:nth-child(1) { top: 23px; transform: rotate(45deg) }
.menu-open .burger span:nth-child(2) { top: 23px; transform: rotate(-45deg) }

/* ---------- Mobile menu ---------- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: var(--bg-deep);
    color: var(--ink);
    clip-path: circle(0% at calc(100% - 44px) 44px);
    transition: clip-path .9s var(--ease), visibility 0s .9s;
    display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
    padding: calc(110px + env(safe-area-inset-top, 0px)) clamp(16px, 4vw, 56px) calc(32px + env(safe-area-inset-bottom, 0px));
    visibility: hidden;
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch
}
.mobile-menu:before {
    content: ""; position: absolute; inset: auto -20% -30% -20%; height: 60%;
    background: radial-gradient(closest-side, rgba(var(--accent-2-rgb), .35), transparent);
    pointer-events: none
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; transition: clip-path .9s var(--ease), visibility 0s }
.mobile-menu ul { position: relative; list-style: none; margin: 0; padding: 0 }
.mobile-menu li { overflow: hidden; border-bottom: 1px solid var(--line) }
.mobile-menu a.mm-link {
    display: flex; align-items: baseline; gap: 14px;
    padding: 12px 0;
    font-family: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
    font-weight: 700; font-size: clamp(30px, 8.4vw, 48px);
    letter-spacing: -.04em; line-height: 1.1;
    transform: translateY(110%);
    transition: transform .8s var(--ease)
}
.mobile-menu a.mm-link small { font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 12px; color: var(--accent); letter-spacing: .1em; font-weight: 400 }
.menu-open .mobile-menu a.mm-link { transform: none }
.menu-open .mobile-menu li:nth-child(2) a { transition-delay: .06s }
.menu-open .mobile-menu li:nth-child(3) a { transition-delay: .12s }
.menu-open .mobile-menu li:nth-child(4) a { transition-delay: .18s }
.menu-open .mobile-menu li:nth-child(5) a { transition-delay: .24s }
.menu-open .mobile-menu li:nth-child(6) a { transition-delay: .30s }
.menu-open .mobile-menu li:nth-child(7) a { transition-delay: .36s }

.mobile-menu .mm-sub { display: flex; flex-wrap: wrap; gap: 10px 8px; padding: 2px 0 18px 32px; opacity: 0; transition: opacity .6s var(--ease) .3s }
.menu-open .mobile-menu .mm-sub { opacity: 1 }
.mobile-menu .mm-sub a { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--text); transition: background .25s, color .25s }
.mobile-menu .mm-sub a:hover, .mobile-menu .mm-sub a:active { background: rgba(var(--accent-2-rgb), .25); color: #fff }

.mobile-menu .mm-foot { position: relative; display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px }
.mobile-menu .mm-foot a { color: var(--ink) }
.mm-cta { justify-content: center; width: 100% }
.mobile-menu .mm-foot a.mm-cta { color: #fff }

.lang-sw--m { display: flex; gap: 8px; margin: 18px 0 6px }
.mobile-menu .lang-sw--m { margin-top: auto; position: relative }
.lang-sw--m a { flex: 1; text-align: center; padding: 12px 8px; border-radius: 14px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; color: inherit }
.lang-sw--m a[aria-current] { background: linear-gradient(135deg, var(--accent-2), var(--accent)); box-shadow: none; color: #fff }

.foot-social { display: flex; gap: 10px; margin-top: 8px }
.foot-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; transition: transform .35s var(--ease), box-shadow .35s }
.foot-social svg { width: 20px; height: 20px; fill: currentColor }
.foot-social .fs-wa { background: #25d366; box-shadow: 0 8px 18px -8px rgba(37, 211, 102, .8) }
.foot-social .fs-fb { background: #1877f2; box-shadow: 0 8px 18px -8px rgba(24, 119, 242, .8) }
.foot-social a:hover { color: #fff; transform: translateY(-3px) }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    body { font-size: 16px }
    .nav-links, .nav-cta, .nav .lang-sw { display: none }
    .burger { display: block }
}
@media (min-width: 901px) and (max-width: 1180px) {
    .nav { gap: 10px }
    .nav-links { gap: 0 }
    .nav-links > li > a { padding: 9px 10px; font-size: 14px }
    .nav-cta { padding: 10px 16px; font-size: 14px }
    .site-header .logo-word { width: 92px; height: auto }
    .nav-drop { width: 620px; grid-template-columns: minmax(0, 1fr) 224px }
    .nd-item { gap: 10px }
    .nd-txt { font-size: 14px }
    .nav .ls-btn { padding: 0 9px; gap: 5px }
    .nav .ls-btn i { display: none }
}
@media (min-width: 901px) and (max-width: 1000px) {
    .nav-links > li > a { padding: 9px 7px; font-size: 13.5px }
    .nav .ls-btn span { display: none }
}
/* Bahasa Melayu labels are longer: switch to burger earlier */
html[lang^=ms] .nav-links > li > a { padding-inline: 12px }
@media (min-width: 901px) and (max-width: 1320px) {
    html[lang^=ms] .nav-links { display: none }
    html[lang^=ms] .burger { display: block }
    html[lang^=ms] .nav { justify-content: flex-start }
    html[lang^=ms] .nav .lang-sw { margin-left: auto }
}

@media (prefers-reduced-motion: reduce) {
    .site-header, .nav-links .nav-pill, .nav-drop, .nd-item, .nd-preview, .nd-fig, .mobile-menu, .mobile-menu a.mm-link, .mm-sub { transition-duration: .01s !important; transition-delay: 0s !important }
}

/* ==========================================================
   Resources dropdown (plain link list, two columns, no preview card)
   ========================================================== */
.nav-drop.nav-drop--list {
    width: 480px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 6px;
    padding: 10px;
    align-content: start
}
.rs-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 14.5px;
    line-height: 1.25;
    color: var(--text);
    opacity: 0;
    transform: translateX(-8px);
    transition: background .25s, color .25s,
                transform .5s var(--ease) calc(40ms + var(--i, 0) * 25ms),
                opacity .3s calc(40ms + var(--i, 0) * 25ms)
}
.rs-link svg {
    flex: none;
    width: 14px; height: 14px;
    color: var(--accent);
    opacity: 0;
    transform: translate(-4px, 4px);
    transition: opacity .25s, transform .4s var(--ease)
}
.has-drop:hover .rs-link,
.has-drop:focus-within .rs-link { opacity: 1; transform: none }
.rs-link:hover,
.rs-link:focus-visible {
    color: #fff;
    background: radial-gradient(circle at 20% 50%, rgba(var(--accent-2-rgb), .28), rgba(var(--accent-2-rgb), .08) 70%)
}
.rs-link:hover svg,
.rs-link:focus-visible svg { opacity: 1; transform: none }
.rs-link[aria-current] { color: #fff }

@media (min-width: 901px) and (max-width: 1180px) {
    .nav-drop.nav-drop--list { width: 440px; grid-template-columns: repeat(2, minmax(0, 1fr)) }
}

/* mobile menu: 8th row delay (Resources added) */
.menu-open .mobile-menu li:nth-child(8) a { transition-delay: .42s }