/*
 * NubixEdu public landing page — "AI-powered school intelligence platform" redesign.
 * Loaded after style.css/bootstrap on the home page only (resources/views/home.blade.php), so it can freely
 * restyle the sections below without touching the shared home_page layout used by legal/contact pages.
 *
 * Palette: the school's own configurable colours stay in charge of the brand accent (--nx-primary, from the
 * existing theme_primary_color/theme_secondary_color settings already wired into home.blade.php), plus a fixed
 * "intelligence" accent (--nx-ai) used only to mark the AI-specific surfaces, so the AI layer reads as a distinct
 * capability rather than reskinning the whole brand.
 */
:root {
    --nx-primary: var(--primary-color, #22a06b);
    --nx-primary-dark: color-mix(in srgb, var(--nx-primary) 78%, black);
    --nx-primary-light: color-mix(in srgb, var(--nx-primary) 14%, white);
    --nx-secondary: var(--secondary-color, #215679);
    --nx-ai: #6d5bf6;
    --nx-ai-dark: #4c3bd6;
    --nx-ai-light: #eeecff;
    --nx-ink: #0f1729;
    --nx-body: #48526a;
    --nx-muted: #7c869c;
    --nx-line: #e7eaf3;
    --nx-surface: #ffffff;
    --nx-bg: #f6f8fc;
    --nx-bg-deep: #0b1120;
    --nx-radius: 22px;
    --nx-radius-sm: 14px;
    --nx-shadow-sm: 0 1px 2px rgba(15, 23, 41, .04), 0 2px 8px rgba(15, 23, 41, .04);
    --nx-shadow: 0 1px 2px rgba(15, 23, 41, .04), 0 20px 48px -20px rgba(15, 23, 41, .18);
    --nx-shadow-lg: 0 30px 80px -24px rgba(15, 23, 41, .32);
    --nx-container: 1240px;
    --nx-gradient-brand: linear-gradient(135deg, var(--nx-primary) 0%, color-mix(in srgb, var(--nx-primary) 55%, var(--nx-ai)) 100%);
    --nx-gradient-ai: linear-gradient(135deg, var(--nx-ai) 0%, #9b4dff 100%);
    --nx-gradient-dark: linear-gradient(160deg, #0b1120 0%, #141c33 55%, #1c1440 100%);
}

/* ==================================================================== base */
#nx {
    --tick: 0;
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--nx-ink);
    background: var(--nx-bg);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}
#nx * { box-sizing: border-box; }
#nx img { max-width: 100%; }
#nx a { text-decoration: none; }
#nx section { position: relative; }
#nx section[id], #nx [id] { scroll-margin-top: 96px; }
html { scroll-behavior: smooth; }
#nx .nx-container, #nx-footer-scope .nx-container { width: 100%; max-width: var(--nx-container); margin-inline: auto; padding-inline: 24px; }
#nx .nx-section { padding-block: clamp(56px, 8vw, 108px); }
#nx .nx-section-tight { padding-block: clamp(40px, 6vw, 72px); }
#nx .nx-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 16px; border-radius: 999px;
    background: var(--nx-primary-light); color: var(--nx-primary-dark);
    font-size: .82rem; font-weight: 700; letter-spacing: .02em;
}
#nx .nx-eyebrow.is-ai { background: var(--nx-ai-light); color: var(--nx-ai-dark); }
#nx .nx-eyebrow i { font-size: .78rem; }
#nx .nx-head { max-width: 720px; margin-bottom: 44px; }
#nx .nx-head.is-center { margin-inline: auto; text-align: center; }
#nx .nx-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; line-height: 1.18; letter-spacing: -.02em; margin: 14px 0 12px; color: var(--nx-ink); }
#nx .nx-head p { font-size: 1.06rem; line-height: 1.6; color: var(--nx-muted); margin: 0; }
#nx .nx-lead-strong { color: var(--nx-ink); font-weight: 600; }

/* reveal-on-scroll (public/assets/home_page/js/home-redesign.js toggles .in) */
#nx [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
#nx [data-reveal].in { opacity: 1; transform: none; }
#nx [data-reveal-group] > * { transition-delay: calc(min(var(--i, 0), 8) * 90ms); }
@media (prefers-reduced-motion: reduce) {
    #nx [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
    #nx * { animation: none !important; }
}

#nx .nx-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 15px 26px; border-radius: 14px; border: 0; cursor: pointer;
    font-size: .98rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
#nx .nx-btn:active { transform: scale(.97); }
#nx .nx-btn-primary { background: var(--nx-gradient-brand); color: #fff !important; box-shadow: 0 16px 32px -14px color-mix(in srgb, var(--nx-primary) 70%, transparent); }
#nx .nx-btn-primary:hover { filter: brightness(1.05); box-shadow: 0 20px 40px -14px color-mix(in srgb, var(--nx-primary) 75%, transparent); color: #fff !important; }
#nx .nx-btn-dark { background: var(--nx-ink); color: #fff !important; }
#nx .nx-btn-dark:hover { background: #000; color: #fff !important; }
#nx .nx-btn-ghost { background: #fff; color: var(--nx-ink) !important; border: 1.5px solid var(--nx-line); }
#nx .nx-btn-ghost:hover { border-color: var(--nx-primary); color: var(--nx-primary-dark) !important; }
#nx .nx-btn-white { background: #fff; color: var(--nx-ink) !important; }
#nx .nx-btn-white:hover { background: #f2f4fa; color: var(--nx-ink) !important; }
#nx .nx-btn-outline-light { background: transparent; color: #fff !important; border: 1.5px solid rgba(255, 255, 255, .38); }
#nx .nx-btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff !important; }
#nx .nx-btn-sm { padding: 10px 18px; font-size: .88rem; border-radius: 11px; }
#nx .nx-cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ==================================================================== nav */
#nx-nav {
    position: sticky; top: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center;
    padding: 18px 0;
    background: transparent;
    transition: background-color .25s ease, box-shadow .25s ease, padding .25s ease;
}
#nx-nav.is-stuck { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 0 var(--nx-line), 0 12px 30px -20px rgba(15, 23, 41, .25); padding: 12px 0; }
#nx-nav .nx-container { display: flex; align-items: center; gap: 28px; }
#nx-nav .nx-logo { display: flex; align-items: center; gap: 10px; flex: 0 1 auto; min-width: 0; max-width: 45%; overflow: hidden; }
#nx-nav .nx-logo img { height: 34px; width: auto; max-width: 100%; display: block; flex: none; }
#nx-nav .nx-links { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
#nx-nav .nx-links > li { list-style: none; position: relative; }
#nx-nav .nx-links > li > a, #nx-nav .nx-links > li > button {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 15px; border-radius: 10px; border: 0; background: none;
    font-size: .93rem; font-weight: 600; color: var(--nx-body) !important; cursor: pointer;
}
#nx-nav .nx-links > li > a:hover, #nx-nav .nx-links > li > button:hover { color: var(--nx-ink) !important; background: var(--nx-bg); }
#nx-nav .nx-drop {
    position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(6px);
    width: 300px; padding: 10px; border-radius: 16px; background: #fff; box-shadow: var(--nx-shadow-lg);
    border: 1px solid var(--nx-line);
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s ease, transform .15s ease;
}
#nx-nav .nx-links > li:hover .nx-drop, #nx-nav .nx-links > li.is-open .nx-drop { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
#nx-nav .nx-drop a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 11px; color: var(--nx-ink) !important; }
#nx-nav .nx-drop a:hover { background: var(--nx-bg); }
#nx-nav .nx-drop a i { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--nx-primary-light); color: var(--nx-primary-dark); font-size: .9rem; }
#nx-nav .nx-drop a b { display: block; font-size: .88rem; }
#nx-nav .nx-drop a span { display: block; font-size: .76rem; color: var(--nx-muted) !important; font-weight: 400; margin-top: 1px; }
#nx-nav .nx-actions { display: flex; align-items: center; gap: 10px; flex: none; }
#nx-nav .nx-burger { display: none; width: 42px; height: 42px; border-radius: 11px; border: 1.5px solid var(--nx-line); background: #fff; align-items: center; justify-content: center; font-size: 1.05rem; cursor: pointer; }

/* mobile drawer */
#nx-mnav { position: fixed; inset: 0; z-index: 300; visibility: hidden; }
#nx-mnav .nx-scrim { position: absolute; inset: 0; background: rgba(10, 14, 26, .5); opacity: 0; transition: opacity .25s ease; }
#nx-mnav .nx-sheet { position: absolute; top: 0; right: 0; height: 100%; width: min(360px, 88vw); background: #fff; box-shadow: -20px 0 60px rgba(0, 0, 0, .22); padding: 20px; transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); overflow-y: auto; }
#nx-mnav.is-open { visibility: visible; }
#nx-mnav.is-open .nx-scrim { opacity: 1; }
#nx-mnav.is-open .nx-sheet { transform: none; }
#nx-mnav .nx-mhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
#nx-mnav .nx-mhead img { height: 30px; width: auto; max-width: 100%; flex: 0 1 auto; min-width: 0; object-fit: contain; }
#nx-mnav .nx-mclose { width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--nx-line); background: #fff; font-size: 1.1rem; }
#nx-mnav a.nx-mlink { display: block; padding: 13px 6px; border-bottom: 1px solid var(--nx-line); font-weight: 600; color: var(--nx-ink) !important; }
#nx-mnav .nx-mactions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
#nx-mnav .nx-msub { padding-left: 14px; }
#nx-mnav .nx-msub a { padding: 9px 6px; font-weight: 500; font-size: .92rem; color: var(--nx-body); border: 0; }
@media (max-width: 1080px) {
    #nx-nav .nx-links, #nx-nav .nx-actions .nx-btn-ghost { display: none; }
    #nx-nav .nx-burger { display: inline-flex; }
}

/* ==================================================================== hero */
.nx-hero { padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(48px, 7vw, 96px); overflow: clip; }
.nx-hero .nx-hero-bg { position: absolute; inset: -10% -10% auto -10%; height: 780px; z-index: 0; background: radial-gradient(60% 60% at 18% 20%, color-mix(in srgb, var(--nx-primary) 20%, transparent), transparent 70%), radial-gradient(50% 55% at 88% 8%, color-mix(in srgb, var(--nx-ai) 18%, transparent), transparent 70%); pointer-events: none; }
.nx-hero .nx-container { position: relative; z-index: 1; }
.nx-hero .nx-hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.nx-hero .nx-hero-copy h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; margin: 18px 0 20px; color: var(--nx-ink); }
.nx-hero .nx-hero-copy h1 .nx-grad { background: var(--nx-gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nx-hero .nx-hero-copy > p { font-size: 1.14rem; line-height: 1.65; color: var(--nx-body); max-width: 56ch; margin-bottom: 30px; }
.nx-hero .nx-hero-trust { display: flex; flex-wrap: wrap; gap: 22px 30px; margin-top: 34px; }
.nx-hero .nx-hero-trust .nx-stat b { display: block; font-size: 1.7rem; font-weight: 800; color: var(--nx-ink); letter-spacing: -.02em; }
.nx-hero .nx-hero-trust .nx-stat span { font-size: .82rem; color: var(--nx-muted); font-weight: 600; }

/* animated product mockup */
.nx-hero .nx-mock-stage { position: relative; min-width: 0; }
#nx-mock {
    min-width: 0;
    position: relative; border-radius: 24px; padding: 18px;
    background: var(--nx-gradient-dark); box-shadow: var(--nx-shadow-lg);
    transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
}
#nx-mock .nx-mock-bar { display: flex; align-items: center; gap: 8px; padding: 2px 8px 14px; }
#nx-mock .nx-mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
#nx-mock .nx-mock-bar span { margin-inline: auto; font-size: .74rem; color: rgba(255, 255, 255, .45); font-weight: 600; }
#nx-mock .nx-mock-body { background: #fff; border-radius: 16px; padding: 20px; display: grid; gap: 14px; min-width: 0; }
#nx-mock .nx-mock-top { display: flex; align-items: center; justify-content: space-between; }
#nx-mock .nx-mock-top b { font-size: .98rem; }
#nx-mock .nx-mock-top .nx-pill { font-size: .68rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--nx-ai-light); color: var(--nx-ai-dark); display: inline-flex; align-items: center; gap: 5px; }
.nx-mock-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.nx-mock-kpis .k { border: 1px solid var(--nx-line); border-radius: 13px; padding: 11px 12px; }
.nx-mock-kpis .k span { display: block; font-size: .68rem; color: var(--nx-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.nx-mock-kpis .k b { font-size: 1.14rem; font-weight: 800; }
.nx-mock-kpis .k em { font-style: normal; font-size: .72rem; font-weight: 700; }
.nx-mock-kpis .k em.up { color: #16a34a; }
.nx-mock-kpis .k em.down { color: #dc2626; }
.nx-mock-chart { border: 1px solid var(--nx-line); border-radius: 13px; padding: 14px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: 14px; align-items: center; min-width: 0; }
.nx-mock-chart .cap { font-size: .7rem; color: var(--nx-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 8px; }
.nx-mock-insight { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 13px; background: var(--nx-ai-light); }
.nx-mock-insight i { width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--nx-gradient-ai); color: #fff; display: grid; place-items: center; font-size: .82rem; }
.nx-mock-insight b { display: block; font-size: .82rem; color: var(--nx-ai-dark); }
.nx-mock-insight span { font-size: .78rem; color: #453a86; }
#nx-mock .nx-mock-notif { position: absolute; z-index: 2; display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 14px; background: #fff; box-shadow: var(--nx-shadow); font-size: .78rem; font-weight: 700; color: var(--nx-ink); animation: nxFloat 5s ease-in-out infinite; }
#nx-mock .nx-mock-notif i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: .78rem; }
#nx-mock .nx-notif-1 { top: -22px; right: -18px; animation-delay: .2s; }
#nx-mock .nx-notif-1 i { background: #16a34a; }
#nx-mock .nx-notif-2 { bottom: 42px; left: -30px; animation-delay: 1.4s; }
#nx-mock .nx-notif-2 i { background: var(--nx-ai); }
@keyframes nxFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (max-width: 640px) { #nx-mock .nx-mock-notif { display: none; } }

/* mini bar chart (CSS only) */
.nx-bars { display: flex; align-items: flex-end; gap: 6px; height: 74px; }
.nx-bars i { flex: 1; border-radius: 5px 5px 2px 2px; background: var(--nx-line); transform-origin: bottom; transform: scaleY(0); transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.nx-bars i.hi { background: var(--nx-gradient-brand); }
.in .nx-bars i, [data-reveal].in .nx-bars i { transform: scaleY(1); }

/* mini donut ring */
.nx-ring { position: relative; width: 74px; height: 74px; margin-inline: auto; }
.nx-ring svg { transform: rotate(-90deg); }
.nx-ring circle { fill: none; stroke-width: 9; }
.nx-ring .track { stroke: var(--nx-line); }
.nx-ring .val { stroke: var(--nx-primary); stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset 1.1s cubic-bezier(.2, .8, .2, 1); }
.in .nx-ring .val, [data-reveal].in .nx-ring .val { stroke-dashoffset: var(--off, 60); }
.nx-ring .lbl { position: absolute; inset: 0; display: grid; place-items: center; font-size: .92rem; font-weight: 800; }

/* mini line/sparkline */
.nx-spark { width: 100%; height: 56px; }
.nx-spark path.line { fill: none; stroke: var(--nx-primary); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.3s ease; }
.nx-spark path.area { fill: url(#nxSparkFill); opacity: 0; transition: opacity 1s ease .3s; }
.in .nx-spark path.line, [data-reveal].in .nx-spark path.line { stroke-dashoffset: 0; }
.in .nx-spark path.area, [data-reveal].in .nx-spark path.area { opacity: 1; }

/* ==================================================================== value / trust grid */
#nx-value .nx-value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
#nx-value .nx-value-card { padding: 26px 24px; border-radius: var(--nx-radius); background: var(--nx-surface); border: 1px solid var(--nx-line); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
#nx-value .nx-value-card:hover { transform: translateY(-4px); box-shadow: var(--nx-shadow); border-color: transparent; }
#nx-value .nx-value-card i.nx-ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--nx-gradient-brand); color: #fff; font-size: 1.2rem; margin-bottom: 16px; }
#nx-value .nx-value-card:nth-child(3n-1) i.nx-ic, #nx-value .nx-value-card:nth-child(6) i.nx-ic { background: var(--nx-gradient-ai); }
#nx-value .nx-value-card h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 8px; }
#nx-value .nx-value-card p { font-size: .92rem; color: var(--nx-muted); margin: 0; line-height: 1.55; }

/* ==================================================================== ecosystem */
#nx-ecosystem { background: var(--nx-surface); }
.nx-eco-wrap { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 40px; align-items: start; }
.nx-eco-list { display: grid; gap: 8px; }
.nx-eco-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 15px; border: 1px solid transparent; background: transparent; cursor: pointer; text-align: left; width: 100%; }
.nx-eco-item i.nx-ic { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--nx-bg); color: var(--nx-body); font-size: 1rem; transition: all .2s ease; }
.nx-eco-item b { display: block; font-size: .95rem; }
.nx-eco-item span { display: block; font-size: .8rem; color: var(--nx-muted); }
.nx-eco-item[aria-selected="true"] { background: var(--nx-bg); border-color: var(--nx-line); }
.nx-eco-item[aria-selected="true"] i.nx-ic { background: var(--nx-gradient-brand); color: #fff; }
.nx-eco-item:hover { background: var(--nx-bg); }
.nx-eco-panel-stage { position: relative; min-height: 420px; }
.nx-eco-panel { display: none; border-radius: var(--nx-radius); border: 1px solid var(--nx-line); background: var(--nx-bg); padding: clamp(18px, 3vw, 30px); }
.nx-eco-panel.is-active { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); gap: 24px; align-items: center; animation: nxFadeUp .45s ease both; }
@keyframes nxFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.nx-eco-panel h3 { font-size: 1.3rem; font-weight: 800; margin: 0 0 10px; }
.nx-eco-panel p { color: var(--nx-body); font-size: .96rem; line-height: 1.6; margin: 0 0 16px; }
.nx-eco-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.nx-eco-panel ul li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--nx-ink); }
.nx-eco-panel ul li i { color: var(--nx-primary); margin-top: 3px; font-size: .82rem; }
.nx-eco-visual { background: #fff; border-radius: 16px; border: 1px solid var(--nx-line); padding: 18px; box-shadow: var(--nx-shadow-sm); }
.nx-eco-visual .cap { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--nx-muted); margin-bottom: 10px; }
.nx-eco-rows { display: grid; gap: 9px; }
.nx-eco-rows .r { display: flex; align-items: center; gap: 10px; font-size: .84rem; }
.nx-eco-rows .r .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--nx-primary); flex: none; }
.nx-eco-rows .r b { margin-left: auto; }
@media (max-width: 900px) {
    .nx-eco-wrap { grid-template-columns: 1fr; }
    .nx-eco-list { grid-template-columns: repeat(2, 1fr); }
    .nx-eco-panel.is-active { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .nx-eco-list { grid-template-columns: 1fr; } }

/* legacy CMS "feature sections" (School Admin > Web Settings) restyled to match */
.nx-cms-section { padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--nx-line); }
.nx-cms-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 40px; align-items: center; }
.nx-cms-grid.is-rev { direction: rtl; }
.nx-cms-grid.is-rev > * { direction: ltr; }
.nx-cms-tabs { display: grid; gap: 6px; }
.nx-cms-tab { padding: 16px 18px; border-radius: 15px; cursor: pointer; border: 1px solid transparent; }
.nx-cms-tab.active { background: var(--nx-surface); border-color: var(--nx-line); box-shadow: var(--nx-shadow-sm); }
.nx-cms-tab span:first-child { display: block; font-weight: 700; margin-bottom: 4px; }
.nx-cms-tab span:last-child { display: block; font-size: .88rem; color: var(--nx-muted); }
.nx-cms-media { border-radius: var(--nx-radius); overflow: hidden; box-shadow: var(--nx-shadow); border: 1px solid var(--nx-line); background: #fff; }
.nx-cms-media .content { display: none; }
.nx-cms-media .content.active { display: block; animation: nxFadeUp .4s ease both; }
.nx-cms-media img { width: 100%; display: block; }
@media (max-width: 900px) { .nx-cms-grid, .nx-cms-grid.is-rev { grid-template-columns: 1fr; direction: ltr; } }

/* ==================================================================== AI intelligence layer */
#ai { background: var(--nx-gradient-dark); color: #fff; }
#ai .nx-head p { color: rgba(255, 255, 255, .68); }
#ai .nx-head h2 { color: #fff; }
.nx-ai-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.nx-ai-card {
    grid-column: span 2;
    padding: 22px; border-radius: 20px;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(6px);
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.nx-ai-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); }
.nx-ai-card.is-wide { grid-column: span 4; }
.nx-ai-card.is-small { grid-column: span 2; }
@media (min-width: 901px) {
    .nx-ai-grid { grid-auto-flow: dense; }
    .nx-ai-card.is-narrow { grid-column: span 1; }
}
.nx-ai-card .top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.nx-ai-card .top i { width: 34px; height: 34px; border-radius: 10px; background: var(--nx-gradient-ai); display: grid; place-items: center; font-size: .92rem; }
.nx-ai-card .top b { font-size: .92rem; font-weight: 700; }
.nx-ai-card .top .tag { margin-left: auto; font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.nx-ai-card .tag.warn { background: rgba(251, 191, 36, .18); color: #fcd34d; }
.nx-ai-card .tag.ok { background: rgba(74, 222, 128, .18); color: #86efac; }
.nx-ai-card .tag.info { background: rgba(147, 197, 253, .18); color: #bfdbfe; }
.nx-ai-card p.note { font-size: .86rem; color: rgba(255, 255, 255, .72); line-height: 1.5; margin: 0; }
.nx-ai-card .stat { font-size: 1.9rem; font-weight: 800; }
.nx-ai-card .risk-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px dashed rgba(255, 255, 255, .14); font-size: .84rem; }
.nx-ai-card .risk-row:first-of-type { border-top: 0; }
.nx-ai-card .risk-row .name { display: flex; align-items: center; gap: 8px; }
.nx-ai-card .risk-row .avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--nx-gradient-ai); display: grid; place-items: center; font-size: .64rem; font-weight: 700; }
.nx-ai-card .risk-row .flag { font-size: .72rem; font-weight: 700; color: #fca5a5; }
.nx-ai-card .bars-mini { display: flex; align-items: flex-end; gap: 5px; height: 46px; margin-top: 10px; }
.nx-ai-card .bars-mini i { flex: 1; border-radius: 4px 4px 1px 1px; background: rgba(255, 255, 255, .16); transform-origin: bottom; transform: scaleY(0); transition: transform 1s ease; }
.nx-ai-card .bars-mini i.hi { background: var(--nx-gradient-ai); }
[data-reveal].in .bars-mini i { transform: scaleY(1); }
.nx-ai-card .recommend { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; }
.nx-ai-card .recommend i { color: #86efac; margin-top: 3px; }

/* ==================================================================== split feature story sections (report card / progress / finance / CBT) */
.nx-story { }
.nx-story-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
.nx-story-grid.is-rev .nx-story-copy { order: 2; }
.nx-story-copy ul { list-style: none; margin: 20px 0 28px; padding: 0; display: grid; gap: 12px; }
.nx-story-copy ul li { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; color: var(--nx-body); }
.nx-story-copy ul li i { width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--nx-primary-light); color: var(--nx-primary-dark); display: grid; place-items: center; font-size: .74rem; }
@media (max-width: 900px) { .nx-story-grid, .nx-story-grid.is-rev { grid-template-columns: 1fr; } .nx-story-grid.is-rev .nx-story-copy { order: 0; } }

/* report card mockup */
.nx-report-mock { display: grid; gap: 14px; }
.nx-raw-table { background: #fff; border: 1px solid var(--nx-line); border-radius: 16px; padding: 16px; box-shadow: var(--nx-shadow-sm); font-size: .78rem; }
.nx-raw-table .cap { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--nx-muted); margin-bottom: 8px; }
.nx-raw-table table { width: 100%; border-collapse: collapse; }
.nx-raw-table td, .nx-raw-table th { padding: 6px 4px; border-bottom: 1px solid var(--nx-line); text-align: left; }
.nx-raw-table th { color: var(--nx-muted); font-weight: 700; font-size: .7rem; text-transform: uppercase; }
.nx-arrow-down { display: flex; align-items: center; justify-content: center; color: var(--nx-primary); font-size: 1.2rem; }
.nx-card-final { background: #fff; border-radius: 18px; border: 1px solid var(--nx-line); box-shadow: var(--nx-shadow); padding: 20px; }
.nx-card-final .hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.nx-card-final .hd b { font-size: .95rem; }
.nx-card-final .hd span { font-size: .72rem; color: var(--nx-muted); font-weight: 700; }
.nx-card-final .grade-ring { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.nx-card-final .grade-ring .big { font-size: 2.2rem; font-weight: 800; color: var(--nx-primary-dark); }
.nx-card-final .ai-note { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: var(--nx-ai-light); font-size: .82rem; color: #453a86; }
.nx-card-final .ai-note i { color: var(--nx-ai-dark); margin-top: 2px; }

/* finance / attendance intelligence */
.nx-fin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nx-fin-card { background: #fff; border: 1px solid var(--nx-line); border-radius: 16px; padding: 16px; box-shadow: var(--nx-shadow-sm); }
.nx-fin-card .cap { font-size: .7rem; font-weight: 700; color: var(--nx-muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 8px; }
.nx-fin-card .big { font-size: 1.35rem; font-weight: 800; }
.nx-fin-card .sub { font-size: .78rem; color: var(--nx-muted); }
@media (max-width: 480px) { .nx-fin-grid { grid-template-columns: 1fr; } }

/* CBT mockup */
.nx-cbt-mock { background: var(--nx-gradient-dark); border-radius: 20px; padding: 16px; box-shadow: var(--nx-shadow-lg); color: #fff; }
.nx-cbt-shell { background: #fff; color: var(--nx-ink); border-radius: 14px; padding: 16px; }
.nx-cbt-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: .82rem; font-weight: 700; }
.nx-cbt-top .timer { background: #fee2e2; color: #b91c1c; padding: 5px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.nx-cbt-q { font-size: .9rem; font-weight: 600; margin-bottom: 12px; }
.nx-cbt-opts { display: grid; gap: 8px; margin-bottom: 14px; }
.nx-cbt-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; border: 1.5px solid var(--nx-line); font-size: .84rem; }
.nx-cbt-opt .radio { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--nx-line); flex: none; }
.nx-cbt-opt.chosen { border-color: var(--nx-primary); background: var(--nx-primary-light); }
.nx-cbt-opt.chosen .radio { border-color: var(--nx-primary); background: var(--nx-primary); box-shadow: inset 0 0 0 3px #fff; }
.nx-cbt-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.nx-cbt-nav i { width: 26px; height: 26px; border-radius: 8px; background: var(--nx-bg); display: grid; place-items: center; font-size: .7rem; font-weight: 700; font-style: normal; color: var(--nx-muted); }
.nx-cbt-nav i.done { background: var(--nx-primary); color: #fff; }
.nx-cbt-nav i.cur { outline: 2px solid var(--nx-primary); color: var(--nx-ink); }
.nx-cbt-analytics { display: flex; gap: 10px; margin-top: 14px; }
.nx-cbt-analytics .box { flex: 1; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: 12px; text-align: center; }
.nx-cbt-analytics .box b { display: block; font-size: 1.1rem; }
.nx-cbt-analytics .box span { font-size: .68rem; color: rgba(255, 255, 255, .6); font-weight: 700; text-transform: uppercase; }

/* ==================================================================== roles */
#roles .nx-role-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
#nx-role-panels{padding: 0;}
.nx-role-tab { padding: 11px 20px; border-radius: 999px; border: 1.5px solid var(--nx-line); background: #fff; font-weight: 700; font-size: .88rem; color: var(--nx-body); cursor: pointer; }
.nx-role-tab[aria-selected="true"] { background: var(--nx-ink); border-color: var(--nx-ink); color: #fff; }
.nx-role-panel { display: none; }
.nx-role-panel.is-active { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 36px; align-items: center; animation: nxFadeUp .4s ease both; }
.nx-role-panel h3 { font-size: 1.4rem; font-weight: 800; margin: 0 0 10px; }
.nx-role-panel > div:first-child > p { color: var(--nx-body); margin-bottom: 18px; }
.nx-role-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.nx-role-panel ul li { display: flex; gap: 10px; font-size: .93rem; }
.nx-role-panel ul li i { color: var(--nx-primary); margin-top: 3px; }
.nx-role-visual { background: #fff; border: 1px solid var(--nx-line); border-radius: var(--nx-radius); box-shadow: var(--nx-shadow); padding: 20px; }
.nx-role-visual .cap { font-size: .7rem; font-weight: 700; color: var(--nx-muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 10px; }
@media (max-width: 900px) { .nx-role-panel.is-active { grid-template-columns: 1fr; } }

/* ==================================================================== why us */
.nx-why-sec { background: var(--nx-surface); }
.nx-why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 28px; }
.nx-why-item { display: flex; gap: 14px; }
.nx-why-item i { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--nx-primary-light); color: var(--nx-primary-dark); display: grid; place-items: center; font-size: 1rem; }
.nx-why-item b { display: block; font-size: .98rem; margin-bottom: 3px; }
.nx-why-item span { font-size: .87rem; color: var(--nx-muted); }
@media (max-width: 900px) { .nx-why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .nx-why-grid { grid-template-columns: 1fr; } }

/* workflow */
#nx-flow .nx-flow-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: nxflow; }
.nx-flow-step { position: relative; background: var(--nx-surface); border: 1px solid var(--nx-line); border-radius: 18px; padding: 22px 16px; text-align: center; counter-increment: nxflow; }
.nx-flow-step::before { content: counter(nxflow); position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--nx-gradient-brand); color: #fff; font-weight: 800; font-size: .82rem; display: grid; place-items: center; box-shadow: var(--nx-shadow-sm); }
.nx-flow-step i.nx-fic { display: block; font-size: 1.4rem; color: var(--nx-primary-dark); margin: 10px 0 12px; }
.nx-flow-step b { display: block; font-size: .94rem; margin-bottom: 6px; }
.nx-flow-step span { font-size: .8rem; color: var(--nx-muted); line-height: 1.4; }
.nx-flow-arrow { display: none; }
@media (min-width: 901px) {
    #nx-flow .nx-flow-row { position: relative; }
    #nx-flow .nx-flow-row::after { content: ""; position: absolute; top: 0; left: 5%; right: 5%; height: 2px; background: repeating-linear-gradient(90deg, var(--nx-line) 0 8px, transparent 8px 14px); z-index: -1; }
}
@media (max-width: 900px) { #nx-flow .nx-flow-row { grid-template-columns: 1fr; gap: 26px; } }

/* ==================================================================== pricing (restyle of the existing owl-carousel markup) */
.nx-pricing-wrap { background: var(--nx-bg); }
.nx-pricing-wrap .sectionTitle { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.nx-pricing-wrap .swiperWrapper .commonSlider { max-width: 1080px; margin-inline: auto; }
.nx-pricing-wrap .pricingBox { background: #fff !important; border: 1px solid var(--nx-line); border-radius: var(--nx-radius) !important; box-shadow: var(--nx-shadow-sm); padding: 30px 26px !important; height: 100%; }
.nx-pricing-wrap .pricingBox.premium, .nx-pricing-wrap .pricingBox:has(.badge.postpaid) { box-shadow: var(--nx-shadow); }
.nx-pricing-wrap .pricingBox .badge { border-radius: 999px !important; font-weight: 700 !important; }
.nx-pricing-wrap .pricingBox .badge.postpaid { background: var(--nx-primary-light) !important; color: var(--nx-primary-dark) !important; }
.nx-pricing-wrap .pricingBox .badge.prepaid { background: var(--nx-ai-light) !important; color: var(--nx-ai-dark) !important; }
.nx-pricing-wrap .pricingBox .title { font-size: 1.15rem !important; font-weight: 800 !important; }
.nx-pricing-wrap .pricingBox .listWrapper span { font-size: .88rem !important; }
/* the template's own .pricingBtn floats the button below the card via position:relative + a large negative
   `bottom`, and colours its text to match the (originally white) button background — both invisible once the
   card is a normal rounded box and the button fill is our brand gradient. Put it back in normal flow. */
.nx-pricing-wrap .pricingBox { display: flex; flex-direction: column; }
.nx-pricing-wrap .pricingBox .startUpWrapper { display: flex; flex-direction: column; flex: 1; }
.nx-pricing-wrap .pricingBox .listWrapper { flex: 1; }
.nx-pricing-wrap .pricingBtn,
.nx-pricing-wrap .pricingBox:hover .pricingBtn,
.nx-pricing-wrap .premium .pricingBtn {
    position: static !important;
    bottom: auto !important;
    inset: auto !important;
    background: var(--nx-gradient-brand) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 13px !important;
    font-weight: 700 !important;
    margin-top: 20px !important;
    box-shadow: 0 14px 28px -14px color-mix(in srgb, var(--nx-primary) 70%, transparent);
}
.nx-pricing-wrap .pricingBtn:hover { filter: brightness(1.06); color: #fff !important; }
.nx-pricing-wrap .owl-dots .owl-dot span { background: var(--nx-line) !important; }
.nx-pricing-wrap .owl-dots .owl-dot.active span { background: var(--nx-primary) !important; }
#nx-pricing-note { text-align: center; margin-top: 26px; color: var(--nx-muted); font-size: .92rem; }
#nx-pricing-note a { font-weight: 700; }

/* ==================================================================== trusted-by (real counters + real school logos) */
#nx-trusted .nx-trusted-head { text-align: center; margin-bottom: 30px; }
#nx-trusted .nx-trusted-stats { display: flex; justify-content: center; gap: 44px; flex-wrap: wrap; margin-bottom: 30px; }
#nx-trusted .nx-trusted-stats .nx-stat { text-align: center; }
#nx-trusted .nx-trusted-stats .nx-stat b { display: block; font-size: 2.2rem; font-weight: 800; color: var(--nx-ink); }
#nx-trusted .nx-trusted-stats .nx-stat span { font-size: .82rem; color: var(--nx-muted); font-weight: 600; }
#nx-trusted .owl-carousel .item .card { border: 1px solid var(--nx-line) !important; border-radius: 16px !important; box-shadow: none !important; }

/* ==================================================================== FAQ restyle */
.nx-faq-wrap .accordion-item { border: 1px solid var(--nx-line) !important; border-radius: 16px !important; margin-bottom: 12px; overflow: hidden; }
.nx-faq-wrap .accordion-button { font-weight: 700 !important; background: #fff !important; }
.nx-faq-wrap .accordion-button:not(.collapsed) { color: var(--nx-primary-dark) !important; background: var(--nx-primary-light) !important; box-shadow: none !important; }
.nx-faq-wrap .accordion-body { color: var(--nx-body); }

/* ==================================================================== final CTA */
#nx-final-cta { background: var(--nx-gradient-dark); color: #fff; text-align: center; }
#nx-final-cta .nx-container { max-width: 860px; }
#nx-final-cta h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; line-height: 1.15; margin: 0 0 16px; letter-spacing: -.02em; }
#nx-final-cta p { color: rgba(255, 255, 255, .72); font-size: 1.06rem; margin: 0 0 30px; }
#nx-final-cta .nx-cta-row { justify-content: center; }

/* ==================================================================== footer */
#nx-footer { background: var(--nx-bg-deep); color: rgba(255, 255, 255, .78); padding-top: clamp(48px, 6vw, 76px); }
#nx-footer a { color: rgba(255, 255, 255, .78) !important; }
#nx-footer a:hover { color: #fff !important; }
#nx-footer .nx-f-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, .85fr)); gap: 28px; padding-bottom: 40px; }
#nx-footer .nx-f-brand img { height: 32px; width: auto; max-width: 100%; margin-bottom: 16px; }
#nx-footer .nx-f-brand p { font-size: .9rem; color: rgba(255, 255, 255, .55); max-width: 30ch; line-height: 1.55; margin-bottom: 18px; }
#nx-footer .nx-f-social { display: flex; gap: 10px; }
#nx-footer .nx-f-social a { width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
#nx-footer .nx-f-social a:hover { background: var(--nx-primary); }
#nx-footer .nx-f-col b { display: block; color: #fff; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 16px; }
#nx-footer .nx-f-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
#nx-footer .nx-f-col ul a { font-size: .89rem; color: rgba(255, 255, 255, .78) !important; }
#nx-footer .nx-f-apps { display: grid; gap: 8px; }
#nx-footer .nx-f-apps a { display: flex; align-items: center; gap: 8px; font-size: .82rem; background: rgba(255, 255, 255, .06); padding: 8px 10px; border-radius: 10px; }
#nx-footer .nx-f-apps a i { color: var(--nx-primary); }
#nx-footer .nx-f-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0 26px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; font-size: .82rem; color: rgba(255, 255, 255, .5); }
#nx-footer .nx-f-bottom .nx-legal { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 992px) { #nx-footer .nx-f-top { grid-template-columns: repeat(2, 1fr); } #nx-footer .nx-f-brand { grid-column: span 2; } }
@media (max-width: 560px) { #nx-footer .nx-f-top { grid-template-columns: 1fr; } #nx-footer .nx-f-brand { grid-column: span 1; } }

/* ==================================================================== responsive helpers */
@media (max-width: 1080px) {
    .nx-hero .nx-hero-grid { grid-template-columns: 1fr; }
    .nx-hero .nx-mock-stage { max-width: 560px; margin-inline: auto; }
    #nx-mock { transform: none; }
    #nx-value .nx-value-grid { grid-template-columns: repeat(2, 1fr); }
    .nx-ai-grid { grid-template-columns: repeat(2, 1fr); }
    .nx-ai-card, .nx-ai-card.is-narrow { grid-column: span 1 !important; }
    .nx-ai-card.is-wide { grid-column: span 2 !important; }
    .nx-fin-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .nx-mock-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nx-mock-chart { grid-template-columns: minmax(0, 1fr); }
    #nx-mock { padding: 12px; }
    .nx-mock-body { padding: 14px; gap: 10px; }
    .nx-eco-visual, .nx-role-visual { padding: 14px; }
    .nx-cbt-shell { padding: 12px; }
}
@media (max-width: 720px) {
    #nx-value .nx-value-grid { grid-template-columns: 1fr; }
    .nx-ai-grid { grid-template-columns: 1fr; }
    .nx-ai-card, .nx-ai-card.is-wide, .nx-ai-card.is-narrow { grid-column: span 1 !important; }
    #nx-footer .nx-f-bottom { justify-content: center; text-align: center; }
}

/* ==================================================================== motion & micro-interactions
   Hover/press feedback on every interactive surface, plus a little ambient movement so the page feels alive
   rather than static. Nothing here fires on load except the two continuous ambient loops (hero blobs, the
   "AI Live" dot) - everything else is hover/focus/press only. All of it is already disabled site-wide under
   prefers-reduced-motion (see the base rules above). */

/* buttons: lift on hover, in addition to each variant's own colour hover */
#nx .nx-btn { transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease, filter .2s ease; }
#nx .nx-btn:hover { transform: translateY(-2px); }
#nx .nx-btn:active { transform: translateY(0) scale(.97); }
#nx .nx-btn-primary { position: relative; overflow: hidden; }
#nx .nx-btn-primary::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, .35) 40%, transparent 60%);
    transform: translateX(-120%); transition: transform .55s ease;
}
#nx .nx-btn-primary:hover::after { transform: translateX(120%); }
#nx .pricingBtn { position: relative; overflow: hidden; transition: transform .15s ease, filter .2s ease, box-shadow .2s ease !important; }
#nx .pricingBtn:hover { transform: translateY(-2px); }

/* nav: underline grows in on hover, logo nudges, dropdown rows shift + icon pops */
#nx-nav .nx-logo { transition: transform .2s ease; }
#nx-nav .nx-logo:hover { transform: scale(1.04); }
#nx-nav .nx-links > li > a, #nx-nav .nx-links > li > button { position: relative; }
#nx-nav .nx-links > li > a::after, #nx-nav .nx-links > li > button::after {
    content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px; height: 2px; border-radius: 2px;
    background: var(--nx-gradient-brand); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
#nx-nav .nx-links > li > a:hover::after, #nx-nav .nx-links > li > button:hover::after { transform: scaleX(1); }
#nx-nav .nx-drop a { transition: background-color .15s ease, transform .15s ease; }
#nx-nav .nx-drop a:hover { transform: translateX(3px); }
#nx-nav .nx-drop a:hover i { transform: scale(1.1); }

/* eyebrow "AI Live" dot: a soft continuous pulse (looping, but tiny and quiet - not distracting) */
@keyframes nxDotPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, .55); } 70% { box-shadow: 0 0 0 6px rgba(139, 92, 246, 0); } }
#nx-mock .nx-pill i { border-radius: 50%; animation: nxDotPulse 2.2s ease-out infinite; }

/* hero decorative glow: a slow, ambient drift so the page doesn't feel like a static image */
@keyframes nxDrift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(18px, -14px) scale(1.04); } }
.nx-hero .nx-hero-bg { animation: nxDrift 16s ease-in-out infinite; }

/* value / why cards: icon reacts with the card */
#nx-value .nx-value-card i.nx-ic { transition: transform .25s ease; }
#nx-value .nx-value-card:hover i.nx-ic { transform: scale(1.1) rotate(-4deg); }
.nx-why-item { transition: transform .2s ease; }
.nx-why-item:hover { transform: translateY(-3px); }
.nx-why-item i { transition: transform .25s ease, background-color .2s ease; }
.nx-why-item:hover i { transform: scale(1.08); background: var(--nx-primary); color: #fff; }

/* ecosystem list rows + visual panel */
.nx-eco-item { transition: background-color .18s ease, transform .18s ease; }
.nx-eco-item:hover { transform: translateX(3px); }
.nx-eco-item:hover i.nx-ic { transform: scale(1.08); }
.nx-eco-visual { transition: box-shadow .25s ease, transform .25s ease; }
.nx-eco-panel.is-active .nx-eco-visual:hover { transform: translateY(-3px); box-shadow: var(--nx-shadow); }

/* AI intelligence cards already lift; give the icon tile and risk rows a nudge too */
.nx-ai-card .top i { transition: transform .25s ease; }
.nx-ai-card:hover .top i { transform: scale(1.1) rotate(-5deg); }
.nx-ai-card .risk-row { transition: transform .15s ease; }
.nx-ai-card .risk-row:hover { transform: translateX(3px); }

/* finance/attendance stat cards, workflow steps, CMS tabs, role tabs, pricing cards, preview panels */
.nx-fin-card, .nx-flow-step, .nx-cms-tab, .nx-card-final, .nx-raw-table, .nx-role-visual, .nx-cbt-mock {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.nx-fin-card:hover, .nx-flow-step:hover { transform: translateY(-4px); box-shadow: var(--nx-shadow); }
.nx-cms-tab:hover { transform: translateX(3px); }
.nx-role-tab { transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease; }
.nx-role-tab:hover { transform: translateY(-2px); border-color: var(--nx-primary); color: var(--nx-primary-dark); }
.nx-role-tab[aria-selected="true"]:hover { color: #fff; }
.nx-pricing-wrap .pricingBox { transition: transform .25s ease, box-shadow .25s ease; }
.nx-pricing-wrap .pricingBox:hover { transform: translateY(-6px); box-shadow: var(--nx-shadow); }

/* CBT option rows react like a real exam UI */
.nx-cbt-opt { transition: transform .15s ease, border-color .15s ease, background-color .15s ease; }
.nx-cbt-opt:hover { transform: translateX(3px); border-color: var(--nx-primary); }
.nx-cbt-nav i { transition: transform .15s ease; }
.nx-cbt-nav i:hover { transform: scale(1.15); }

/* footer: social + app links lift, brand columns nudge on hover */
#nx-footer .nx-f-social a { transition: transform .18s ease, background-color .18s ease; }
#nx-footer .nx-f-social a:hover { transform: translateY(-3px); }
#nx-footer .nx-f-apps a { transition: transform .18s ease, background-color .18s ease; }
#nx-footer .nx-f-apps a:hover { transform: translateX(3px); background: rgba(255, 255, 255, .12); }
#nx-footer .nx-f-col ul a { display: inline-block; transition: transform .15s ease, color .15s ease; }
#nx-footer .nx-f-col ul a:hover { transform: translateX(3px); }

/* trusted-by school cards */
#nx-trusted .owl-carousel .item .card { transition: transform .2s ease, box-shadow .2s ease !important; }
#nx-trusted .owl-carousel .item .card:hover { transform: translateY(-4px); box-shadow: var(--nx-shadow) !important; }
