/* ==========================================================================
   ShikshaPilot.in — Home page "Modern Motion" layer
   --------------------------------------------------------------------------
   Scope   : body.ss-home ONLY (Views/Home/Index.cshtml). No other page loads this.
   Loaded  : AFTER home.css (via @section styles in Index.cshtml).
   Approach: additive only. Existing classes are restyled, nothing is removed.
   Motion  : transform / opacity only, CSS-first, honours prefers-reduced-motion.
   Rollback: delete the <link>/<script> lines at the end of Index.cshtml
             (markup blocks are all prefixed "ss-mx-").
   ========================================================================== */

@property --mxp {
    syntax: '<number>';
    inherits: false;
    initial-value: 0;
}

@media screen {

    body.ss-home {
        --mx-top: 38px;
    }

    /* ------------------------------------------------------------------
       Keyframes
       ------------------------------------------------------------------ */
    @keyframes mx-float {
        0%, 100% { transform: translate3d(0, 0, 0); }
        50% { transform: translate3d(0, -12px, 0); }
    }

    @keyframes mx-bob {
        0%, 100% { transform: translate3d(0, 0, 0); }
        50% { transform: translate3d(0, -9px, 0); }
    }

    @keyframes mx-drift {
        0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
        50% { transform: translate3d(26px, -22px, 0) scale(1.07); }
    }

    @keyframes mx-spin {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }

    @keyframes mx-shimmer {
        0% { background-position: 0% 50%; }
        100% { background-position: 220% 50%; }
    }

    @keyframes mx-grow {
        from { transform: scaleY(0); }
        to { transform: scaleY(1); }
    }

    @keyframes mx-ring {
        to { --mxp: 92; }
    }

    @keyframes mx-shine {
        0% { transform: translateX(-140%) skewX(-20deg); }
        55%, 100% { transform: translateX(420%) skewX(-20deg); }
    }

    @keyframes mx-glow {
        0%, 100% { box-shadow: 0 4px 20px rgba(245, 158, 11, .30); }
        50% { box-shadow: 0 8px 34px rgba(245, 158, 11, .62); }
    }

    @keyframes mx-fly {
        0%, 100% { transform: translate(0, 0) rotate(0deg); }
        50% { transform: translate(3px, -3px) rotate(-8deg); }
    }

    @keyframes mx-rise {
        from { opacity: 0; transform: translate3d(0, 22px, 0); }
        to { opacity: 1; transform: none; }
    }

    @keyframes mx-wave {
        0%, 100% { transform: translate3d(0, 0, 0); }
        50% { transform: translate3d(-3%, 0, 0); }
    }

    @keyframes mx-prog {
        from { transform: scaleX(0); }
        to { transform: scaleX(1); }
    }

    /* ------------------------------------------------------------------
       Scroll progress bar (CSS scroll-timeline; hidden where unsupported)
       ------------------------------------------------------------------ */
    body.ss-home .ss-mx-progress {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        z-index: 2100;
        pointer-events: none;
        transform-origin: 0 50%;
        background: linear-gradient(90deg, #f59e0b, #ec4899, #6366f1, #0ea5e9);
    }

    @supports (animation-timeline: scroll()) {
        body.ss-home .ss-mx-progress {
            display: block;
            transform: scaleX(0);
            animation: mx-prog linear both;
            animation-timeline: scroll(root block);
        }
    }

    /* ------------------------------------------------------------------
       Top info bar
       ------------------------------------------------------------------ */
    body.ss-home .ss-mx-topbar {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: var(--mx-top);
        z-index: 6;
        overflow: hidden;
        background: linear-gradient(90deg, #0a2a5e 0%, #0b3d91 48%, #1d4ed8 100%);
        color: #e6efff;
        font-size: .82rem;
        font-weight: 600;
    }

    body.ss-home .ss-mx-topbar-in {
        max-width: 1560px;
        height: 100%;
        margin: 0 auto;
        padding: 0 2rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        white-space: nowrap;
    }

    body.ss-home .ss-mx-topbar a {
        color: #e6efff;
        text-decoration: none;
    }

    body.ss-home .ss-mx-topbar a:hover {
        color: #fff;
        text-decoration: underline;
    }

    body.ss-home .ss-mx-topbar .fas,
    body.ss-home .ss-mx-topbar .far {
        margin-right: .45rem;
        color: #fbbf24;
    }

    body.ss-home .ss-mx-tb-r {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    body.ss-home .ss-mx-sep {
        display: inline-block;
        width: 1px;
        height: 14px;
        background: rgba(255, 255, 255, .35);
    }

    /* The fixed navbar sits just under the info bar, then docks to the top on scroll */
    body.ss-home .ss-navbar {
        top: var(--mx-top);
    }

    body.ss-home .ss-navbar.scrolled {
        top: 0;
    }

    /* ------------------------------------------------------------------
       Navbar polish
       ------------------------------------------------------------------ */
    body.ss-home .ss-navbar .navbar-brand {
        display: flex;
        align-items: center;
    }

    body.ss-home .ss-nav-link.active {
        background: linear-gradient(135deg, #2563eb, #4f46e5);
        color: #fff !important;
        box-shadow: 0 8px 18px -8px rgba(37, 99, 235, .75);
    }

    body.ss-home .ss-nav-cta {
        background: linear-gradient(135deg, #fb923c, #f59e0b);
        color: #fff !important;
        border: 0;
        font-weight: 700;
        box-shadow: 0 10px 22px -10px rgba(245, 158, 11, .85);
    }

    body.ss-home .ss-nav-cta:hover {
        background: linear-gradient(135deg, #f59e0b, #ea580c);
    }

    @media (min-width: 1400px) {
        body.ss-home .ss-navbar > .container {
            max-width: 1500px;
        }

        body.ss-home .ss-navbar .navbar-brand::after {
            content: "ShikshaPilot.in";
            margin-left: .65rem;
            font-size: 1.45rem;
            font-weight: 800;
            letter-spacing: -.6px;
            background: linear-gradient(90deg, #1d4ed8, #4f46e5);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            -webkit-text-fill-color: transparent;
        }
    }

    /* ------------------------------------------------------------------
       Hero: background, decor, layout
       ------------------------------------------------------------------ */
    body.ss-home .ss-hero {
        padding-top: calc(var(--mx-top) + 96px);
        padding-bottom: 6.5rem;
    }

    body.ss-home.ss-theme-digital-india .ss-hero {
        background:
            radial-gradient(ellipse 50% 46% at 78% 8%, rgba(99, 102, 241, .22), transparent 62%),
            radial-gradient(ellipse 44% 40% at 4% 14%, rgba(56, 189, 248, .26), transparent 60%),
            radial-gradient(ellipse 40% 36% at 92% 96%, rgba(236, 72, 153, .15), transparent 60%),
            radial-gradient(ellipse 36% 32% at 8% 100%, rgba(251, 146, 60, .22), transparent 60%),
            linear-gradient(170deg, #eaf3ff 0%, #f3f0ff 48%, #fff4ec 100%);
    }

    body.ss-home .ss-mx-decor {
        position: absolute;
        inset: 0;
        z-index: 0;
        overflow: hidden;
        pointer-events: none;
    }

    body.ss-home .ss-mx-blob {
        position: absolute;
        border-radius: 50%;
        background: radial-gradient(circle at 35% 35%, var(--c), transparent 68%);
        animation: mx-drift 14s ease-in-out infinite;
        will-change: transform;
    }

    body.ss-home .ss-mx-blob.b1 { --c: rgba(99, 102, 241, .34); width: 520px; height: 520px; top: -130px; left: 30%; }
    body.ss-home .ss-mx-blob.b2 { --c: rgba(56, 189, 248, .34); width: 420px; height: 420px; bottom: -150px; left: -90px; animation-delay: -4s; }
    body.ss-home .ss-mx-blob.b3 { --c: rgba(244, 114, 182, .26); width: 380px; height: 380px; top: 32%; right: -110px; animation-delay: -8s; }

    body.ss-home .ss-mx-orb {
        position: absolute;
        font-size: 2.6rem;
        color: rgba(79, 70, 229, .15);
        animation: mx-spin 26s linear infinite;
    }

    body.ss-home .ss-mx-orb.o1 { top: 24%; left: 2.5%; }
    body.ss-home .ss-mx-orb.o2 { top: 16%; left: 47%; color: rgba(14, 165, 233, .17); animation-duration: 34s; animation-direction: reverse; }
    body.ss-home .ss-mx-orb.o3 { bottom: 22%; left: 40%; color: rgba(245, 158, 11, .2); animation-duration: 30s; }
    body.ss-home .ss-mx-orb.o4 { top: 13%; right: 3%; color: rgba(236, 72, 153, .16); animation-duration: 38s; animation-direction: reverse; }

    body.ss-home .ss-mx-wave {
        position: absolute;
        left: -10%;
        bottom: -1px;
        width: 120%;
        height: 96px;
        animation: mx-wave 12s ease-in-out infinite;
    }

    body.ss-home .ss-mx-wave.w2 {
        animation-duration: 17s;
        animation-direction: reverse;
    }

    body.ss-home .ss-hero > .container {
        position: relative;
        z-index: 2;
    }

    @media (min-width: 1200px) {
        body.ss-home .ss-hero > .container {
            max-width: 1560px;
            padding-left: 2rem;
            padding-right: 2rem;
        }

        body.ss-home .ss-hero > .container > .row {
            display: grid;
            grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr) minmax(0, .84fr);
            gap: 1.25rem;
            margin-left: 0;
            margin-right: 0;
            align-items: center;
        }

        body.ss-home .ss-hero > .container > .row > [class*="col-"],
        body.ss-home .ss-hero > .container > .row > .ss-mx-devices {
            flex: none;
            width: auto;
            max-width: none;
            padding-left: 0;
            padding-right: 0;
        }
    }

    @media (max-width: 1199.98px) {
        body.ss-home .ss-hero > .container > .row {
            display: grid;
            grid-template-columns: minmax(0, 1fr);
            gap: 1.75rem;
            margin-left: 0;
            margin-right: 0;
        }

        body.ss-home .ss-hero > .container > .row > [class*="col-"],
        body.ss-home .ss-hero > .container > .row > .ss-mx-devices {
            flex: none;
            width: 100%;
            max-width: 100%;
            padding-left: 0;
            padding-right: 0;
        }

        body.ss-home .ss-hero .ss-hero-content { order: 1; }
        body.ss-home .ss-hero .ss-hero-image { order: 2; }
        body.ss-home .ss-hero .ss-mx-devices { order: 3; }

        body.ss-home .ss-hero-enquiry {
            margin-left: auto;
            margin-right: auto;
        }
    }

    /* ------------------------------------------------------------------
       Hero typography & chips
       ------------------------------------------------------------------ */
    body.ss-home .ss-hero h1 .highlight {
        background: linear-gradient(100deg, #1d4ed8 0%, #4f46e5 35%, #0ea5e9 65%, #1d4ed8 100%);
        background-size: 220% 100%;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
        animation: mx-shimmer 7s linear infinite;
    }

    body.ss-home .ss-hero h1 .brand-tld {
        background: linear-gradient(135deg, #f59e0b, #ea580c);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
    }

    body.ss-home .ss-hero-subtitle {
        color: #334155;
    }

    body.ss-home .ss-hero-keywords .ss-keyword {
        padding: .34rem .9rem .34rem .38rem;
        border: 1px solid rgba(79, 70, 229, .08);
        font-weight: 700;
    }

    body.ss-home .ss-hero-keywords .ss-keyword i {
        flex: none;
        width: 1.65rem;
        height: 1.65rem;
        display: inline-grid;
        place-items: center;
        border-radius: 50%;
        font-size: .72rem;
        color: #fff;
        opacity: 1;
        transition: transform .25s ease;
    }

    body.ss-home .ss-hero-keywords .ss-keyword:nth-child(6n + 1) i { background: linear-gradient(135deg, #6366f1, #4f46e5); }
    body.ss-home .ss-hero-keywords .ss-keyword:nth-child(6n + 2) i { background: linear-gradient(135deg, #10b981, #059669); }
    body.ss-home .ss-hero-keywords .ss-keyword:nth-child(6n + 3) i { background: linear-gradient(135deg, #f59e0b, #ea580c); }
    body.ss-home .ss-hero-keywords .ss-keyword:nth-child(6n + 4) i { background: linear-gradient(135deg, #ec4899, #db2777); }
    body.ss-home .ss-hero-keywords .ss-keyword:nth-child(6n + 5) i { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
    body.ss-home .ss-hero-keywords .ss-keyword:nth-child(6n) i { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

    body.ss-home .ss-hero-keywords .ss-keyword:hover i {
        transform: rotate(-12deg) scale(1.14);
    }

    body.ss-home .ss-hero-btns .ss-btn-primary {
        animation: mx-glow 2.8s ease-in-out infinite;
    }

    body.ss-home .ss-trust-item i {
        color: #10b981;
    }

    /* ------------------------------------------------------------------
       Enquiry card
       ------------------------------------------------------------------ */
    body.ss-home .ss-hero-enquiry .ss-lead-form-panel {
        border-radius: 26px;
        background: rgba(255, 255, 255, .97);
        border: 1px solid rgba(79, 70, 229, .12);
        box-shadow: 0 34px 70px -24px rgba(37, 99, 235, .38), 0 0 0 6px rgba(255, 255, 255, .55);
    }

    body.ss-home .ss-hero-enquiry .ss-lead-form-panel::before {
        border-radius: 26px 26px 0 0;
    }

    body.ss-home .ss-hero-enquiry .ss-lead-form-header h2 {
        display: flex;
        align-items: center;
        gap: .55rem;
        color: #0f2744;
        font-weight: 800;
    }

    body.ss-home .ss-hero-enquiry .ss-lead-form-header h2::before {
        content: "\f1d8";
        font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
        font-weight: 900;
        font-size: 1.15rem;
        color: #2563eb;
        display: inline-block;
        animation: mx-fly 3.4s ease-in-out infinite;
    }

    body.ss-home .ss-hero-enquiry .ss-field label {
        font-weight: 700;
        color: #1e293b;
    }

    body.ss-home .ss-hero-enquiry .ss-field label span {
        color: #e11d48;
    }

    body.ss-home .ss-hero-enquiry .ss-field .form-control {
        background-color: #f4f7fd;
        border: 1px solid #dbe5f5;
        border-radius: 12px;
        padding: .6rem .8rem .6rem 2.55rem;
        background-repeat: no-repeat;
        background-position: .85rem center;
        background-size: 1.05rem;
        transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
    }

    body.ss-home .ss-hero-enquiry .ss-field .form-control:focus {
        background-color: #fff;
        border-color: #4f46e5;
        box-shadow: 0 0 0 4px rgba(79, 70, 229, .15);
    }

    body.ss-home .ss-hero-enquiry #FullName {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 4-6 8-6s8 2 8 6'/%3E%3C/svg%3E");
    }

    body.ss-home .ss-hero-enquiry #MobileNo {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
    }

    body.ss-home .ss-hero-enquiry #EmailID {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
    }

    body.ss-home .ss-hero-enquiry #InstituteName {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21V10l7-5 7 5v11M9 21v-6h6v6'/%3E%3C/svg%3E");
    }

    body.ss-home .ss-hero-enquiry #Message {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z'/%3E%3C/svg%3E");
        background-position: .85rem .8rem;
        min-height: 5.5rem;
    }

    body.ss-home .ss-hero-enquiry .ss-lead-submit {
        position: relative;
        overflow: hidden;
        padding: .85rem 1rem;
        border-radius: 14px;
        font-size: 1.02rem;
        font-weight: 800;
        color: #fff;
        background: linear-gradient(135deg, #1d4ed8, #2563eb 50%, #4f46e5);
        box-shadow: 0 16px 30px -14px rgba(37, 99, 235, .8);
    }

    body.ss-home .ss-hero-enquiry .ss-lead-submit::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 34%;
        height: 100%;
        background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
        transform: translateX(-140%) skewX(-20deg);
        animation: mx-shine 4s ease-in-out infinite;
        pointer-events: none;
    }

    /* ------------------------------------------------------------------
       Device mockup (laptop + phone) — decorative, aria-hidden in markup
       Every size is in em, driven by --w, so it scales as one unit.
       ------------------------------------------------------------------ */
    body.ss-home .ss-mx-devices {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    body.ss-home .ss-mx-stage {
        --w: clamp(330px, 34vw, 540px);
        --mx: 0;
        --my: 0;
        position: relative;
        width: var(--w);
        height: calc(var(--w) * .8);
        font-size: calc(var(--w) / 40);
    }

    @media (max-width: 1199.98px) {
        body.ss-home .ss-mx-stage {
            --w: min(92vw, 560px);
        }
    }

    body.ss-home .ss-mx-lap {
        position: absolute;
        left: 0;
        top: 7%;
        width: 86%;
        animation: mx-float 7s ease-in-out infinite;
    }

    body.ss-home .ss-mx-lap-tilt {
        transform: perspective(1400px) rotateY(calc(9deg + var(--mx) * 3deg)) rotateX(calc(2deg + var(--my) * -2deg));
        transform-origin: 70% 50%;
        transition: transform .25s ease-out;
    }

    body.ss-home .ss-mx-bezel {
        padding: .7em .7em .5em;
        border-radius: 1em 1em .4em .4em;
        background: linear-gradient(160deg, #16294d, #0a1730);
        box-shadow: 0 2.4em 4em -1.4em rgba(15, 39, 68, .55);
    }

    body.ss-home .ss-mx-screen {
        display: grid;
        grid-template-columns: 7em minmax(0, 1fr);
        height: 19em;
        overflow: hidden;
        border-radius: .45em;
        background: #f2f6fd;
    }

    body.ss-home .ss-mx-side {
        padding: .9em .6em;
        background: linear-gradient(180deg, #0d2a63, #12408f);
        color: #cfe0ff;
    }

    body.ss-home .ss-mx-side b {
        display: block;
        margin-bottom: .8em;
        font-size: .9em;
        color: #fff;
        letter-spacing: .01em;
    }

    body.ss-home .ss-mx-side span {
        display: block;
        margin-bottom: .15em;
        padding: .45em .6em;
        border-radius: .55em;
        font-size: .74em;
        font-weight: 600;
        white-space: nowrap;
    }

    body.ss-home .ss-mx-side span.on {
        background: rgba(255, 255, 255, .18);
        color: #fff;
    }

    body.ss-home .ss-mx-main {
        padding: .8em .9em;
        min-width: 0;
    }

    body.ss-home .ss-mx-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: .7em;
    }

    body.ss-home .ss-mx-title b {
        font-size: .95em;
        color: #0f2744;
    }

    body.ss-home .ss-mx-title em {
        padding: .2em .7em;
        border-radius: 99px;
        background: #e0e7ff;
        color: #3730a3;
        font-size: .6em;
        font-style: normal;
        font-weight: 800;
    }

    body.ss-home .ss-mx-kpis {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .55em;
        margin-bottom: .7em;
    }

    body.ss-home .ss-mx-k {
        display: flex;
        align-items: center;
        gap: .55em;
        padding: .55em .6em;
        border-radius: .7em;
        background: #fff;
        box-shadow: 0 .2em .6em rgba(15, 39, 68, .07);
    }

    body.ss-home .ss-mx-k > i {
        flex: none;
        width: 1.7em;
        height: 1.7em;
        display: grid;
        place-items: center;
        border-radius: .55em;
        color: #fff;
        font-size: .8em;
    }

    body.ss-home .ss-mx-k.k1 > i { background: linear-gradient(135deg, #6366f1, #4f46e5); }
    body.ss-home .ss-mx-k.k2 > i { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
    body.ss-home .ss-mx-k.k3 > i { background: linear-gradient(135deg, #10b981, #059669); }
    body.ss-home .ss-mx-k.k4 > i { background: linear-gradient(135deg, #f59e0b, #ea580c); }

    body.ss-home .ss-mx-k b {
        display: block;
        font-size: 1.02em;
        line-height: 1.1;
        color: #0f2744;
        white-space: nowrap;
    }

    body.ss-home .ss-mx-k small {
        display: block;
        font-size: .6em;
        color: #64748b;
        font-weight: 600;
    }

    body.ss-home .ss-mx-charts {
        display: grid;
        grid-template-columns: 1.5fr 1fr;
        gap: .55em;
    }

    body.ss-home .ss-mx-card {
        padding: .55em .65em;
        border-radius: .7em;
        background: #fff;
        box-shadow: 0 .2em .6em rgba(15, 39, 68, .07);
    }

    body.ss-home .ss-mx-card > small {
        display: block;
        font-size: .6em;
        font-weight: 800;
        color: #64748b;
    }

    body.ss-home .ss-mx-bars {
        display: flex;
        align-items: flex-end;
        gap: .35em;
        height: 4.2em;
        margin-top: .5em;
    }

    body.ss-home .ss-mx-bars i {
        flex: 1;
        height: var(--h);
        border-radius: .25em .25em 0 0;
        background: linear-gradient(180deg, #60a5fa, #2563eb);
        transform-origin: bottom;
        animation: mx-grow .9s cubic-bezier(.2, .8, .2, 1) both;
        animation-delay: calc(var(--i) * 80ms + .5s);
    }

    body.ss-home .ss-mx-ringwrap {
        display: grid;
        place-items: center;
        margin-top: .35em;
    }

    body.ss-home .ss-mx-ring {
        --mxp: 0;
        position: relative;
        width: 4.4em;
        height: 4.4em;
        display: grid;
        place-items: center;
        border-radius: 50%;
        background: conic-gradient(#10b981 calc(var(--mxp) * 1%), #e2e8f0 0);
        animation: mx-ring 1.5s .7s cubic-bezier(.2, .8, .2, 1) forwards;
    }

    body.ss-home .ss-mx-ring::before {
        content: "";
        position: absolute;
        inset: .55em;
        border-radius: 50%;
        background: #fff;
    }

    body.ss-home .ss-mx-ring b {
        position: relative;
        font-size: .85em;
        color: #0f2744;
    }

    body.ss-home .ss-mx-base {
        position: relative;
        height: .9em;
        margin: 0 -4%;
        border-radius: 0 0 1.4em 1.4em;
        background: linear-gradient(180deg, #dfe5f1, #aab4c8);
        box-shadow: 0 1.2em 2em -.8em rgba(15, 39, 68, .45);
    }

    body.ss-home .ss-mx-base::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 0;
        width: 14%;
        height: .35em;
        transform: translateX(-50%);
        border-radius: 0 0 .5em .5em;
        background: #b8c1d3;
    }

    body.ss-home .ss-mx-ph {
        position: absolute;
        right: 0;
        bottom: 0;
        z-index: 3;
        width: 27%;
        animation: mx-float 6s ease-in-out -2s infinite;
    }

    body.ss-home .ss-mx-ph-tilt {
        transform: perspective(1000px) rotateY(calc(-8deg + var(--mx) * -3deg)) rotateX(calc(var(--my) * 2deg));
        transition: transform .25s ease-out;
    }

    body.ss-home .ss-mx-phone {
        overflow: hidden;
        border: .5em solid #0f172a;
        border-radius: 1.9em;
        background: #fff;
        box-shadow: 0 2em 3.6em -1em rgba(15, 39, 68, .6);
    }

    body.ss-home .ss-mx-notch {
        width: 30%;
        height: .5em;
        margin: 0 auto;
        border-radius: 0 0 .5em .5em;
        background: #0f172a;
    }

    body.ss-home .ss-mx-ph-head {
        padding: .6em .5em .75em;
        text-align: center;
        color: #fff;
        background: linear-gradient(135deg, #1d4ed8, #4f46e5);
    }

    body.ss-home .ss-mx-ph-head i {
        display: block;
        font-size: 1.1em;
    }

    body.ss-home .ss-mx-ph-head b {
        display: block;
        margin-top: .25em;
        font-size: .68em;
        letter-spacing: .02em;
    }

    body.ss-home .ss-mx-tiles {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .5em;
        padding: .6em;
    }

    body.ss-home .ss-mx-tiles span {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: .35em;
        padding: .55em .2em;
        border-radius: .7em;
        background: #f4f7fd;
        font-size: .6em;
        font-weight: 800;
        color: #334155;
    }

    body.ss-home .ss-mx-tiles span i {
        width: 2.2em;
        height: 2.2em;
        display: grid;
        place-items: center;
        border-radius: .7em;
        color: #fff;
        font-size: 1.1em;
    }

    body.ss-home .ss-mx-tiles span:nth-child(1) i { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
    body.ss-home .ss-mx-tiles span:nth-child(2) i { background: linear-gradient(135deg, #f59e0b, #ea580c); }
    body.ss-home .ss-mx-tiles span:nth-child(3) i { background: linear-gradient(135deg, #10b981, #059669); }
    body.ss-home .ss-mx-tiles span:nth-child(4) i { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
    body.ss-home .ss-mx-tiles span:nth-child(5) i { background: linear-gradient(135deg, #f43f5e, #e11d48); }
    body.ss-home .ss-mx-tiles span:nth-child(6) i { background: linear-gradient(135deg, #6366f1, #4338ca); }

    body.ss-home .ss-mx-chip {
        position: absolute;
        z-index: 4;
        display: inline-flex;
        align-items: center;
        gap: .5em;
        padding: .4em .85em .4em .45em;
        border-radius: 99px;
        background: #fff;
        font-size: .82em;
        font-weight: 800;
        color: #0f2744;
        white-space: nowrap;
        box-shadow: 0 .8em 1.8em -.6em rgba(15, 39, 68, .38);
        animation: mx-bob 5s ease-in-out infinite;
    }

    body.ss-home .ss-mx-chip i {
        width: 1.9em;
        height: 1.9em;
        display: grid;
        place-items: center;
        border-radius: 50%;
        color: #fff;
        font-size: .85em;
    }

    body.ss-home .ss-mx-chip.c1 { left: -3%; top: 0; }
    body.ss-home .ss-mx-chip.c1 i { background: linear-gradient(135deg, #10b981, #059669); }
    body.ss-home .ss-mx-chip.c2 { right: 6%; top: -3%; animation-delay: -1.2s; }
    body.ss-home .ss-mx-chip.c2 i { background: linear-gradient(135deg, #6366f1, #4f46e5); }
    body.ss-home .ss-mx-chip.c3 { left: -4%; bottom: 8%; animation-delay: -2.4s; }
    body.ss-home .ss-mx-chip.c3 i { background: linear-gradient(135deg, #f59e0b, #ea580c); }
    body.ss-home .ss-mx-chip.c4 { right: -2%; top: 20%; animation-delay: -3.4s; }
    body.ss-home .ss-mx-chip.c4 i { background: linear-gradient(135deg, #ec4899, #db2777); }

    /* ------------------------------------------------------------------
       Feature strip under the hero
       ------------------------------------------------------------------ */
    body.ss-home .ss-mx-strip {
        position: relative;
        z-index: 5;
        margin-top: -52px;
        padding: 0 0 .75rem;
    }

    body.ss-home .ss-mx-strip-grid {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        padding: 1rem .5rem;
        border: 1px solid rgba(79, 70, 229, .08);
        border-radius: 26px;
        background: #fff;
        box-shadow: 0 26px 60px -24px rgba(37, 99, 235, .38);
        animation: mx-rise .8s cubic-bezier(.2, .7, .2, 1) .35s backwards;
    }

    body.ss-home .ss-mx-it {
        position: relative;
        display: flex;
        align-items: center;
        gap: .85rem;
        padding: .6rem 1.1rem;
    }

    body.ss-home .ss-mx-it + .ss-mx-it::before {
        content: "";
        position: absolute;
        left: 0;
        top: 18%;
        bottom: 18%;
        width: 1px;
        background: linear-gradient(transparent, #dbe3f3, transparent);
    }

    body.ss-home .ss-mx-it > i {
        flex: none;
        width: 3rem;
        height: 3rem;
        display: grid;
        place-items: center;
        border-radius: 16px;
        color: #fff;
        font-size: 1.2rem;
        box-shadow: 0 12px 20px -10px rgba(15, 39, 68, .5);
        transition: transform .3s ease;
    }

    body.ss-home .ss-mx-it:nth-child(1) > i { background: linear-gradient(135deg, #2563eb, #4f46e5); }
    body.ss-home .ss-mx-it:nth-child(2) > i { background: linear-gradient(135deg, #10b981, #059669); }
    body.ss-home .ss-mx-it:nth-child(3) > i { background: linear-gradient(135deg, #f43f5e, #e11d48); }
    body.ss-home .ss-mx-it:nth-child(4) > i { background: linear-gradient(135deg, #22c55e, #16a34a); }
    body.ss-home .ss-mx-it:nth-child(5) > i { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

    body.ss-home .ss-mx-it:hover > i {
        transform: translateY(-3px) rotate(-6deg);
    }

    body.ss-home .ss-mx-it b {
        display: block;
        font-size: 1rem;
        font-weight: 800;
        line-height: 1.2;
        color: #0f2744;
    }

    body.ss-home .ss-mx-it span {
        display: block;
        font-size: .82rem;
        line-height: 1.35;
        color: #64748b;
    }

    /* ------------------------------------------------------------------
       Rest of the page: headings, cards, motion
       ------------------------------------------------------------------ */
    body.ss-home :is(.ss-fresh, .ss-download-hub, #modules, .ss-security-section, .ss-qr-section, .ss-pricing-section, .ss-institutes-showcase, .ss-distributors-showcase) .ss-section-title h2 {
        background: linear-gradient(90deg, #0f2744 0%, #1d4ed8 55%, #7c3aed 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
    }

    body.ss-home :is(.ss-fresh, .ss-download-hub, #modules, .ss-security-section, .ss-qr-section, .ss-pricing-section, .ss-institutes-showcase, .ss-distributors-showcase) .ss-section-title h2::after {
        content: "";
        display: block;
        width: 64px;
        height: 4px;
        margin: .7rem auto 0;
        border-radius: 4px;
        background: linear-gradient(90deg, #f59e0b, #ec4899, #6366f1);
    }

    body.ss-home .ss-fresh-card::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
        transform: translateX(-120%);
        transition: transform .8s ease;
        pointer-events: none;
    }

    body.ss-home .ss-fresh-card:hover::after {
        transform: translateX(120%);
    }

    body.ss-home :is(.ss-why-card, .ss-sec-card, .ss-qr-card) {
        transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
    }

    body.ss-home :is(.ss-sec-card, .ss-qr-card):hover {
        transform: translateY(-6px);
        border-color: rgba(37, 99, 235, .3);
        box-shadow: 0 22px 44px -18px rgba(37, 99, 235, .35);
    }

    body.ss-home :is(.ss-sec-card, .ss-qr-card) > i,
    body.ss-home .ss-why-icon {
        transition: transform .3s ease;
    }

    body.ss-home :is(.ss-sec-card, .ss-qr-card):hover > i,
    body.ss-home .ss-why-card:hover .ss-why-icon {
        transform: scale(1.1) rotate(-6deg);
    }

    /* Scroll-driven reveal for extra blocks (same technique home.css already uses) */
    @supports (animation-timeline: view()) {
        body.ss-home :is(.ss-section-title, .ss-why-card, .ss-why-highlight, .ss-download-panel, .ss-sec-card, .ss-qr-card, .ss-feature-card) {
            animation: mx-rise linear backwards;
            animation-range: entry 0% entry 45%;
            animation-timeline: view();
        }
    }

    /* ------------------------------------------------------------------
       Responsive
       ------------------------------------------------------------------ */
    @media (max-width: 1199.98px) {
        body.ss-home .ss-mx-strip-grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        body.ss-home .ss-mx-it:nth-child(3n + 1)::before {
            display: none;
        }
    }

    @media (max-width: 991.98px) {
        body.ss-home .ss-hero {
            padding-top: calc(var(--mx-top) + 92px);
        }

        body.ss-home .ss-mx-topbar-in {
            padding: 0 1rem;
        }

        body.ss-home .ss-mx-strip-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        body.ss-home .ss-mx-it::before {
            display: none;
        }
    }

    @media (max-width: 767.98px) {
        body.ss-home {
            --mx-top: 34px;
        }

        body.ss-home .ss-mx-topbar {
            font-size: .76rem;
        }

        body.ss-home .ss-mx-tb-r .ss-mx-opt {
            display: none;
        }
    }

    @media (max-width: 575.98px) {
        body.ss-home .ss-mx-tb-l {
            display: none;
        }

        body.ss-home .ss-mx-topbar-in {
            justify-content: center;
        }

        body.ss-home .ss-mx-strip {
            margin-top: -36px;
        }

        body.ss-home .ss-mx-strip-grid {
            grid-template-columns: minmax(0, 1fr);
            border-radius: 20px;
        }

        body.ss-home .ss-mx-orb {
            display: none;
        }
    }

    /* ------------------------------------------------------------------
       Reduced motion: everything static, final states visible
       ------------------------------------------------------------------ */
    @media (prefers-reduced-motion: reduce) {
        body.ss-home :is(.ss-mx-lap, .ss-mx-ph, .ss-mx-chip, .ss-mx-blob, .ss-mx-orb, .ss-mx-wave, .ss-mx-progress, .ss-mx-strip-grid, .ss-mx-ring),
        body.ss-home .ss-mx-bars i,
        body.ss-home .ss-hero h1 .highlight,
        body.ss-home .ss-hero-btns .ss-btn-primary,
        body.ss-home .ss-hero-enquiry .ss-lead-form-header h2::before,
        body.ss-home .ss-hero-enquiry .ss-lead-submit::after,
        body.ss-home :is(.ss-section-title, .ss-why-card, .ss-why-highlight, .ss-download-panel, .ss-sec-card, .ss-qr-card, .ss-feature-card) {
            animation: none !important;
        }

        body.ss-home .ss-mx-ring {
            --mxp: 92;
        }

        body.ss-home :is(.ss-mx-lap-tilt, .ss-mx-ph-tilt, .ss-mx-it > i),
        body.ss-home .ss-fresh-card::after {
            transition: none !important;
        }
    }
}
