/* =====================================================================
   SilkCodeWorks — AI Digital Homepage
   Scope: .sc-ai-home (Views/Default/Index.cshtml)
   ===================================================================== */

.sc-ai-home {
    --sx-ink: #060a1f;
    --sx-ink-2: #0b1233;
    --sx-ink-3: #121c48;
    --sx-text: #0e1736;
    --sx-muted: #5b6788;
    --sx-line: #dfe6f7;
    --sx-blue: #3b82f6;
    --sx-indigo: #6366f1;
    --sx-violet: #8b5cf6;
    --sx-cyan: #22d3ee;
    --sx-pink: #ec4899;
    --sx-green: #10b981;
    --sx-amber: #f59e0b;
    --sx-grad: linear-gradient(100deg, #22d3ee 0%, #3b82f6 38%, #8b5cf6 72%, #ec4899 100%);
    --sx-grad-btn: linear-gradient(100deg, #2563eb 0%, #6d5cf6 60%, #a855f7 100%);
    --sx-radius: 22px;
    --sx-font: "Plus Jakarta Sans", "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
    --sx-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 0 0 36px;
    font-family: var(--sx-font);
    color: var(--sx-text);
    background:
        radial-gradient(900px 500px at 100% 40%, rgba(139, 92, 246, .07), transparent 60%),
        radial-gradient(800px 500px at 0% 70%, rgba(34, 211, 238, .07), transparent 60%),
        #f5f7ff;
}

.sc-ai-home h1, .sc-ai-home h2, .sc-ai-home h3,
.sc-ai-home h4, .sc-ai-home h5 { font-family: var(--sx-font); }

.sx-gradient-text {
    background: var(--sx-grad);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: sx-shine 8s linear infinite;
}

@keyframes sx-shine { to { background-position: 200% center; } }

/* ---------- Buttons / pills ---------- */
.sx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.1px;
    text-decoration: none !important;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
    white-space: nowrap;
}
.sx-btn:hover { transform: translateY(-2px); }
.sx-btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }

.sx-btn-primary {
    color: #fff !important;
    background: var(--sx-grad-btn);
    box-shadow: 0 14px 34px rgba(99, 102, 241, .38), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.sx-btn-primary:hover { box-shadow: 0 20px 44px rgba(99, 102, 241, .5), inset 0 1px 0 rgba(255, 255, 255, .25); }

.sx-btn-ghost {
    color: #e6ebff !important;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.sx-btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }

.sx-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 15px 8px 12px;
    border-radius: 999px;
    color: #c7d2fe;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .2px;
    background: rgba(99, 102, 241, .14);
    border: 1px solid rgba(129, 140, 248, .35);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .06), 0 10px 30px rgba(59, 130, 246, .15);
}
.sx-pill i { color: var(--sx-cyan); }
.sx-pill-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--sx-green);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, .7);
    animation: sx-pulse 2s infinite;
}
.sx-pill-light { color: #dbe4ff; }

@keyframes sx-pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .65); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* =====================================================================
   HERO
   ===================================================================== */
.sx-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 96px;
    color: #e8ecff;
    background:
        radial-gradient(1000px 600px at 85% -10%, rgba(99, 102, 241, .35), transparent 60%),
        radial-gradient(800px 500px at -10% 110%, rgba(34, 211, 238, .22), transparent 60%),
        linear-gradient(180deg, var(--sx-ink) 0%, var(--sx-ink-2) 100%);
}

.sx-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .7; }

.sx-hero-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(148, 163, 255, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 255, .08) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
}

.sx-orb { position: absolute; z-index: 0; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.sx-orb-a { width: 420px; height: 420px; right: 8%; top: -120px; background: #6366f1; animation: sx-float 14s ease-in-out infinite; }
.sx-orb-b { width: 340px; height: 340px; left: -80px; bottom: -120px; background: #06b6d4; animation: sx-float 18s ease-in-out infinite reverse; }
.sx-orb-c { width: 260px; height: 260px; left: 45%; top: 40%; background: #c026d3; opacity: .25; animation: sx-float 20s ease-in-out infinite; }

@keyframes sx-float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 26px); }
}

.sx-hero .container-fluid { position: relative; z-index: 2; }
.sx-hero-row { row-gap: 56px; }

.sx-hero-copy h1 {
    margin: 22px 0 18px;
    color: #fff;
    font-size: clamp(36px, 4.4vw, 64px);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -2px;
}
.sx-hero-copy h1 .sx-gradient-text { display: inline; }

.sx-lead {
    max-width: 580px;
    margin: 0 0 30px;
    color: #a9b4d8;
    font-size: 17px;
    line-height: 1.65;
    font-weight: 500;
}

/* Prompt box */
.sx-prompt {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 620px;
    padding: 8px 8px 8px 10px;
    border-radius: 18px;
    background: rgba(14, 22, 60, .72);
    border: 1px solid rgba(129, 140, 248, .3);
    box-shadow: 0 20px 60px rgba(3, 6, 25, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: border-color .25s ease, box-shadow .25s ease;
}
.sx-prompt::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: 19px;
    padding: 1px;
    background: var(--sx-grad);
    background-size: 200% auto;
    animation: sx-shine 6s linear infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: .55;
}
.sx-prompt:focus-within { box-shadow: 0 0 0 4px rgba(99, 102, 241, .25), 0 20px 60px rgba(3, 6, 25, .55); }
.sx-prompt:focus-within::before { opacity: 1; }

.sx-prompt-icon {
    flex: 0 0 44px;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 12px;
    color: #fff;
    background: var(--sx-grad-btn);
    box-shadow: 0 8px 20px rgba(99, 102, 241, .45);
}
.sx-prompt input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-family: var(--sx-font);
    font-size: 16px;
    font-weight: 600;
}
.sx-prompt input::placeholder { color: #7f8bb5; }
.sx-prompt-btn {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; gap: 9px;
    height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    color: #0b1233;
    background: #fff;
    font-family: var(--sx-font);
    font-size: 14.5px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}
.sx-prompt-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(255, 255, 255, .22); }

.sx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 34px; max-width: 640px; }
.sx-chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 13px;
    border-radius: 999px;
    color: #c9d2f3 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    transition: all .2s ease;
}
.sx-chip i { color: #8ea2ff; font-size: 12px; }
.sx-chip:hover { color: #fff !important; background: rgba(99, 102, 241, .22); border-color: rgba(129, 140, 248, .55); }

.sx-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.sx-trust {
    display: flex; flex-wrap: wrap; gap: 10px 22px;
    margin: 34px 0 0; padding: 0; list-style: none;
}
.sx-trust li { display: inline-flex; align-items: center; gap: 8px; color: #93a0c8; font-size: 13.5px; font-weight: 600; }
.sx-trust i { color: var(--sx-green); }

/* AI console visual */
.sx-hero-visual { position: relative; min-height: 470px; display: flex; align-items: center; justify-content: center; }

.sx-console {
    position: relative;
    z-index: 2;
    width: min(520px, 100%);
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(20, 29, 72, .92), rgba(10, 16, 45, .95));
    border: 1px solid rgba(129, 140, 248, .28);
    box-shadow: 0 40px 100px rgba(2, 4, 20, .7), 0 0 0 1px rgba(255, 255, 255, .03), 0 0 80px rgba(99, 102, 241, .25);
    transform: perspective(1400px) rotateY(-8deg) rotateX(4deg);
    transition: transform .6s ease;
    animation: sx-rise .9s cubic-bezier(.2, .8, .2, 1) both;
}
.sx-hero-visual:hover .sx-console { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }

@keyframes sx-rise {
    from { opacity: 0; transform: perspective(1400px) rotateY(-8deg) rotateX(4deg) translateY(40px); }
}

.sx-console-bar {
    display: flex; align-items: center; gap: 7px;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    background: rgba(255, 255, 255, .02);
}
.sx-dot { width: 11px; height: 11px; border-radius: 50%; }
.sx-dot.r { background: #ff5f57; } .sx-dot.y { background: #febc2e; } .sx-dot.g { background: #28c840; }
.sx-console-title { margin-left: 10px; color: #c7d2fe; font-family: var(--sx-mono); font-size: 12.5px; font-weight: 500; }
.sx-console-title i { color: var(--sx-cyan); margin-right: 6px; }
.sx-console-live {
    margin-left: auto;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 9px; border-radius: 999px;
    color: #6ee7b7; font-family: var(--sx-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 1px;
    background: rgba(16, 185, 129, .12); border: 1px solid rgba(16, 185, 129, .3);
}
.sx-console-live span { width: 6px; height: 6px; border-radius: 50%; background: #10b981; animation: sx-pulse 2s infinite; }

.sx-console-body { padding: 22px 20px 10px; display: grid; gap: 16px; }

.sx-msg { display: flex; align-items: flex-start; gap: 11px; }
.sx-msg p { margin: 0; }
.sx-avatar {
    flex: 0 0 34px; width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 11px;
    color: #c7d2fe; font-size: 13px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
}
.sx-avatar-ai { color: #fff; background: var(--sx-grad-btn); border: 0; box-shadow: 0 8px 22px rgba(99, 102, 241, .45); }

.sx-msg-user { justify-content: flex-end; flex-direction: row-reverse; animation: sx-in .5s .5s both; }
.sx-msg-user p {
    max-width: 82%;
    padding: 12px 15px;
    border-radius: 15px 4px 15px 15px;
    color: #fff;
    font-size: 14px; line-height: 1.5; font-weight: 600;
    background: linear-gradient(120deg, #2563eb, #4f46e5);
    box-shadow: 0 10px 24px rgba(37, 99, 235, .3);
}

.sx-msg-ai { animation: sx-in .5s 1s both; }
.sx-ai-bubble {
    flex: 1 1 auto;
    padding: 14px 15px;
    border-radius: 4px 15px 15px 15px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .08);
}
.sx-ai-text { color: #dbe2ff; font-size: 13.5px; font-weight: 600; margin-bottom: 12px !important; animation: sx-in .4s 2.2s both; }

.sx-typing { display: flex; gap: 5px; height: 0; overflow: hidden; animation: sx-typing-box 2.2s 1s both; }
.sx-typing span { width: 7px; height: 7px; border-radius: 50%; background: #8ea2ff; animation: sx-blink 1s infinite; }
.sx-typing span:nth-child(2) { animation-delay: .15s; }
.sx-typing span:nth-child(3) { animation-delay: .3s; }

@keyframes sx-typing-box {
    0% { height: 16px; margin-bottom: 0; }
    90% { height: 16px; opacity: 1; }
    100% { height: 0; opacity: 0; }
}
@keyframes sx-blink { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes sx-in { from { opacity: 0; transform: translateY(10px); } }

.sx-match {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 11px;
    margin-top: 8px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .06);
    animation: sx-in .45s both;
}
.sx-match:nth-of-type(1) { animation-delay: 2.5s; border-color: rgba(34, 211, 238, .3); background: rgba(34, 211, 238, .06); }
.sx-match:nth-of-type(2) { animation-delay: 2.7s; }
.sx-match:nth-of-type(3) { animation-delay: 2.9s; }
.sx-match-icon { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #fff; font-size: 13px; }
.sx-match-icon.c1 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.sx-match-icon.c2 { background: linear-gradient(135deg, #6366f1, #a855f7); }
.sx-match-icon.c3 { background: linear-gradient(135deg, #ec4899, #f97316); }
.sx-match-info { flex: 1 1 auto; min-width: 0; }
.sx-match-info strong { display: block; color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.sx-match b { color: #67e8f9; font-family: var(--sx-mono); font-size: 13px; }
.sx-bar { display: block; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.sx-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--sx-grad); animation: sx-bar 1.2s 2.8s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes sx-bar { from { width: 0; } }

.sx-console-foot {
    display: flex; align-items: center; gap: 4px;
    margin: 6px 20px 18px;
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(0, 0, 0, .28);
    border: 1px solid rgba(255, 255, 255, .06);
    font-family: var(--sx-mono);
}
.sx-code { color: #a5b4fc; font-size: 12.5px; }
.sx-code em { color: #fbbf24; font-style: normal; }
.sx-cursor { width: 8px; height: 15px; background: #67e8f9; animation: sx-caret 1s steps(1) infinite; }
@keyframes sx-caret { 50% { opacity: 0; } }

.sx-float {
    position: absolute;
    z-index: 3;
    display: flex; align-items: center; gap: 11px;
    padding: 12px 15px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 20px 50px rgba(2, 6, 30, .45);
    color: var(--sx-text);
    animation: sx-bob 6s ease-in-out infinite;
}
.sx-float strong { display: block; font-size: 14px; font-weight: 800; line-height: 1.2; }
.sx-float small { display: block; color: var(--sx-muted); font-size: 11.5px; font-weight: 600; }
.sx-float-icon { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #f59e0b, #f97316); }
.sx-float-icon.sx-green { background: linear-gradient(135deg, #10b981, #059669); }
.sx-float-a { left: -18px; top: -6px; }
.sx-float-b { right: -14px; bottom: 96px; animation-delay: -2s; }
.sx-float-c { left: 0; bottom: -18px; animation-delay: -4s; }
.sx-spark { width: 74px; height: 28px; }
.sx-spark polyline { fill: none; stroke: #6366f1; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 200; animation: sx-draw 2s 1.2s ease forwards; }
@keyframes sx-draw { to { stroke-dashoffset: 0; } }
@keyframes sx-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* =====================================================================
   MARQUEE
   ===================================================================== */
.sx-marquee {
    position: relative;
    z-index: 3;
    overflow: hidden;
    padding: 16px 0;
    background: #0b1233;
    border-top: 1px solid rgba(129, 140, 248, .18);
    border-bottom: 1px solid rgba(129, 140, 248, .18);
}
.sx-marquee::before,
.sx-marquee::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}
.sx-marquee::before { left: 0; background: linear-gradient(90deg, #0b1233, rgba(11, 18, 51, 0)); }
.sx-marquee::after { right: 0; background: linear-gradient(270deg, #0b1233, rgba(11, 18, 51, 0)); }
.sx-marquee-track { display: flex; width: max-content; gap: 46px; animation: sx-marquee 38s linear infinite; }
.sx-marquee:hover .sx-marquee-track { animation-play-state: paused; }
.sx-marquee-item { display: inline-flex; align-items: center; gap: 10px; color: #c3cbef; font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.sx-marquee-item i {
    width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px;
    color: #67e8f9; font-size: 13px;
    background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .25);
}
@keyframes sx-marquee { to { transform: translateX(-50%); } }

/* =====================================================================
   SECTIONS
   ===================================================================== */
.sx-section { position: relative; z-index: 1; padding-top: 64px; }

.sx-head { margin-bottom: 26px; }
.sx-head-center { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; margin-bottom: 40px; }
.sx-head h2 {
    margin: 12px 0 0;
    color: var(--sx-text);
    font-size: clamp(26px, 2.6vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.1px;
}
.sx-head p { margin: 14px 0 0; color: var(--sx-muted); font-size: 16px; line-height: 1.6; font-weight: 500; }

.sx-kicker,
.sc-ai-home .ms-compact-eyebrow,
.sc-ai-home .ms-smart-eyebrow,
.sc-ai-home .ms-section-kicker,
.sc-ai-home .ms-brand-eyebrow {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    width: max-content;
    padding: 7px 13px !important;
    border-radius: 999px !important;
    color: #4f46e5 !important;
    background: linear-gradient(100deg, rgba(34, 211, 238, .12), rgba(99, 102, 241, .14)) !important;
    border: 1px solid rgba(99, 102, 241, .2);
    font-family: var(--sx-mono);
    font-size: 11.5px !important;
    font-weight: 700 !important;
    letter-spacing: 1.2px !important;
}

/* ---------- Process ---------- */
.sx-process { padding-top: 80px; }
.sx-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.sx-steps::before {
    content: "";
    position: absolute;
    top: 62px; left: 12%; right: 12%;
    height: 2px;
    background: repeating-linear-gradient(90deg, #a5b4fc 0 8px, transparent 8px 16px);
    opacity: .6;
}
.sx-step {
    position: relative;
    padding: 30px 24px 26px;
    border-radius: var(--sx-radius);
    background: #fff;
    border: 1px solid var(--sx-line);
    box-shadow: 0 14px 40px rgba(30, 41, 99, .06);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.sx-step:hover { transform: translateY(-6px); border-color: #c7d2fe; box-shadow: 0 24px 60px rgba(79, 70, 229, .14); }
.sx-step-no { position: absolute; top: 20px; right: 22px; color: #cbd3ee; font-family: var(--sx-mono); font-size: 26px; font-weight: 700; }
.sx-step-icon {
    position: relative;
    width: 64px; height: 64px;
    display: grid; place-items: center;
    margin-bottom: 20px;
    border-radius: 18px;
    color: #fff; font-size: 24px;
    background: var(--sx-grad-btn);
    box-shadow: 0 14px 30px rgba(99, 102, 241, .35);
}
.sx-step:nth-child(1) .sx-step-icon { background: linear-gradient(135deg, #06b6d4, #3b82f6); box-shadow: 0 14px 30px rgba(6, 182, 212, .35); }
.sx-step:nth-child(2) .sx-step-icon { background: linear-gradient(135deg, #6366f1, #a855f7); }
.sx-step:nth-child(3) .sx-step-icon { background: linear-gradient(135deg, #ec4899, #f43f5e); box-shadow: 0 14px 30px rgba(236, 72, 153, .3); }
.sx-step:nth-child(4) .sx-step-icon { background: linear-gradient(135deg, #10b981, #14b8a6); box-shadow: 0 14px 30px rgba(16, 185, 129, .3); }
.sx-step h3 { margin: 0 0 8px; color: var(--sx-text); font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.sx-step p { margin: 0; color: var(--sx-muted); font-size: 14.5px; line-height: 1.6; font-weight: 500; }

/* ---------- CTA ---------- */
.sx-cta-wrap { position: relative; z-index: 1; padding-top: 70px; }
.sx-cta {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
    gap: 30px;
    padding: 56px 56px;
    border-radius: 32px;
    color: #e6ebff;
    background:
        radial-gradient(600px 400px at 90% 10%, rgba(139, 92, 246, .45), transparent 60%),
        radial-gradient(500px 360px at 0% 100%, rgba(34, 211, 238, .25), transparent 60%),
        linear-gradient(135deg, #070b24, #111a4a);
    box-shadow: 0 40px 90px rgba(17, 24, 74, .35);
}
.sx-cta-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 255, .07) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
    mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.sx-cta-copy { position: relative; z-index: 2; }
.sx-cta h2 { margin: 18px 0 14px; color: #fff; font-size: clamp(26px, 2.8vw, 42px); font-weight: 800; line-height: 1.15; letter-spacing: -1.1px; }
.sx-cta p { max-width: 560px; margin: 0 0 28px; color: #a9b4d8; font-size: 16px; line-height: 1.65; font-weight: 500; }

.sx-cta-visual { position: relative; z-index: 2; display: grid; place-items: center; min-height: 280px; }
.sx-core { position: relative; width: 260px; height: 260px; }
.sx-core-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(165, 180, 252, .25); }
.sx-core-ring.r1 { animation: sx-spin 22s linear infinite; border-style: dashed; }
.sx-core-ring.r2 { inset: 40px; border-color: rgba(34, 211, 238, .35); animation: sx-spin 16s linear infinite reverse; }
.sx-core-ring.r3 { inset: 80px; border-color: rgba(236, 72, 153, .3); }
.sx-core-center {
    position: absolute; inset: 92px;
    display: grid; place-items: center;
    border-radius: 50%;
    color: #fff; font-size: 30px;
    background: var(--sx-grad-btn);
    box-shadow: 0 0 0 10px rgba(99, 102, 241, .15), 0 0 60px rgba(139, 92, 246, .8);
    animation: sx-glow 3s ease-in-out infinite;
}
@keyframes sx-glow { 50% { box-shadow: 0 0 0 16px rgba(99, 102, 241, .08), 0 0 90px rgba(139, 92, 246, 1); } }
@keyframes sx-spin { to { transform: rotate(360deg); } }
.sx-core-node {
    position: absolute;
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: 14px;
    color: #fff; font-size: 17px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: sx-bob 5s ease-in-out infinite;
}
.sx-core-node.n1 { top: -6px; left: 50%; margin-left: -23px; color: #67e8f9; }
.sx-core-node.n2 { right: -6px; top: 50%; margin-top: -23px; color: #c4b5fd; animation-delay: -1.2s; }
.sx-core-node.n3 { bottom: -6px; left: 50%; margin-left: -23px; color: #f9a8d4; animation-delay: -2.4s; }
.sx-core-node.n4 { left: -6px; top: 50%; margin-top: -23px; color: #6ee7b7; animation-delay: -3.6s; }

/* =====================================================================
   EXISTING COMPONENT RE-SKIN
   ===================================================================== */

/* Carousel + special offers */
.sc-ai-home .ms-home-hero-wrapper { --ms-hero-height: 470px; margin-bottom: 0 !important; }
.sc-ai-home .ms-pro-hero-carousel {
    border-radius: 26px;
    border: 1px solid #d9e1f7;
    box-shadow: 0 24px 60px rgba(30, 41, 99, .14);
}
.sc-ai-home .ms-pro-hero-content {
    background: rgba(8, 13, 40, .72);
    border: 1px solid rgba(165, 180, 252, .25);
    box-shadow: 0 24px 50px rgba(2, 6, 30, .35);
}
.sc-ai-home .ms-pro-hero-content h1 { color: #fff; font-weight: 800; letter-spacing: -1.2px; }
.sc-ai-home .ms-pro-hero-content p { color: #c3cbef; font-weight: 500; }
.sc-ai-home .ms-pro-line { background: var(--sx-grad); box-shadow: 0 6px 18px rgba(99, 102, 241, .5); }
.sc-ai-home .ms-pro-hero-btn,
.sc-ai-home .ms-product-cart-btn {
    color: #fff !important;
    background: var(--sx-grad-btn) !important;
    box-shadow: 0 12px 28px rgba(99, 102, 241, .35) !important;
    border-radius: 13px;
}
.sc-ai-home .ms-pro-hero-indicators li.active { background: var(--sx-cyan); }
.sc-ai-home .ms-pro-hero-arrow { color: var(--sx-indigo); }
.sc-ai-home .ms-pro-offer-card {
    border-radius: 22px !important;
    border: 1px solid #d9e1f7 !important;
    box-shadow: 0 18px 44px rgba(30, 41, 99, .1) !important;
}

/* Feature cards */
.sc-ai-home .ms-feature-ribbon-section { padding-top: 40px; padding-bottom: 0; }
.sc-ai-home .ms-feature-3d-card {
    border-radius: 20px;
    border: 1px solid var(--sx-line);
    background: #fff;
    box-shadow: 0 12px 34px rgba(30, 41, 99, .06);
}
.sc-ai-home .ms-feature-3d-card:hover { border-color: #c7d2fe; box-shadow: 0 22px 50px rgba(79, 70, 229, .14); }
.sc-ai-home .ms-feature-card-glow { background: radial-gradient(circle, rgba(99, 102, 241, .18), transparent 68%); }
.sc-ai-home .ms-feature-3d-icon {
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    box-shadow: 0 12px 24px rgba(59, 130, 246, .3);
}
.sc-ai-home .ms-feature-3d-card:nth-child(4n+2) .ms-feature-3d-icon { background: linear-gradient(135deg, #6366f1, #a855f7); box-shadow: 0 12px 24px rgba(139, 92, 246, .3); }
.sc-ai-home .ms-feature-3d-card:nth-child(4n+3) .ms-feature-3d-icon { background: linear-gradient(135deg, #ec4899, #f97316); box-shadow: 0 12px 24px rgba(236, 72, 153, .3); }
.sc-ai-home .ms-feature-3d-card:nth-child(4n+4) .ms-feature-3d-icon { background: linear-gradient(135deg, #10b981, #14b8a6); box-shadow: 0 12px 24px rgba(16, 185, 129, .3); }
.sc-ai-home .ms-feature-3d-text h5 { color: var(--sx-text); font-weight: 800; }
.sc-ai-home .ms-feature-3d-text p { color: var(--sx-muted); font-weight: 500; }
.sc-ai-home .sc-ai-feature-card {
    border-color: rgba(129, 140, 248, .35);
    background: linear-gradient(135deg, #0b1233, #1e1b4b);
}
.sc-ai-home .sc-ai-feature-card .ms-feature-3d-icon { background: var(--sx-grad-btn) !important; }
.sc-ai-home .sc-ai-feature-card h5 { color: #fff; }
.sc-ai-home .sc-ai-feature-card p { color: #a9b4d8; }
.sc-ai-home .sc-ai-feature-label { color: #67e8f9; }
.sc-ai-home .sc-ai-feature-action { background: #fff; color: #0b1233; }

/* Categories */
.sc-ai-home .ms-category-compact-section { padding-top: 76px; }
.sc-ai-home .ms-compact-title-row h2,
.sc-ai-home .ms-smart-section-head h2,
.sc-ai-home .ms-section-header-compact h3 {
    color: var(--sx-text);
    font-size: clamp(24px, 2.2vw, 34px);
    font-weight: 800;
    letter-spacing: -.9px;
}
.sc-ai-home .ms-compact-title-row p { color: var(--sx-muted); font-weight: 500; }
.sc-ai-home .ms-compact-all-btn,
.sc-ai-home .ms-smart-view-all,
.sc-ai-home .ms-section-mini-link {
    border-radius: 12px !important;
    border: 1px solid #d3dbf5 !important;
    background: #fff !important;
    color: #4338ca !important;
    font-weight: 700 !important;
}
.sc-ai-home .ms-compact-all-btn:hover,
.sc-ai-home .ms-smart-view-all:hover,
.sc-ai-home .ms-section-mini-link:hover { border-color: #818cf8 !important; box-shadow: 0 10px 26px rgba(99, 102, 241, .18) !important; }
.sc-ai-home .ms-mini-card-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.sc-ai-home .ms-mini-square-card {
    width: auto;
    height: 186px;
    border-radius: 20px;
    border: 1px solid var(--sx-line);
    box-shadow: 0 12px 30px rgba(30, 41, 99, .06);
}
.sc-ai-home .ms-mini-square-card:hover { border-color: #a5b4fc; box-shadow: 0 22px 46px rgba(79, 70, 229, .15); }
.sc-ai-home .ms-mini-image { height: 108px; background: linear-gradient(160deg, #eef2ff, #f0fdff); }
.sc-ai-home .ms-mini-content h5 { color: var(--sx-text); font-weight: 800; font-size: 14.5px; }
.sc-ai-home .ms-mini-content span { color: var(--sx-muted); font-weight: 600; }
.sc-ai-home .ms-mini-arrow { background: var(--sx-grad-btn); color: #fff; box-shadow: 0 8px 18px rgba(99, 102, 241, .35); }

/* Products */
.sc-ai-home .ms-smart-products-section { padding-top: 64px; }
.sc-ai-home .ms-smart-product-card {
    border-radius: 22px !important;
    border: 1px solid var(--sx-line) !important;
    background: #fff !important;
    box-shadow: 0 14px 36px rgba(30, 41, 99, .07) !important;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.sc-ai-home .ms-smart-product-card:hover {
    transform: translateY(-6px);
    border-color: #a5b4fc !important;
    box-shadow: 0 26px 60px rgba(79, 70, 229, .16) !important;
}
.sc-ai-home .ms-product-image-wrap { background: linear-gradient(160deg, #eef2ff 0%, #f5f3ff 50%, #ecfeff 100%) !important; }
.sc-ai-home .ms-product-name { color: var(--sx-text) !important; font-weight: 800 !important; }
.sc-ai-home .ms-product-price-row strong {
    background: var(--sx-grad-btn);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800 !important;
}
.sc-ai-home .ms-product-badge {
    color: #fff !important;
    background: linear-gradient(100deg, #f43f5e, #f97316) !important;
    box-shadow: 0 8px 18px rgba(244, 63, 94, .3) !important;
}
.sc-ai-home .ms-product-login-btn {
    color: #4338ca !important;
    background: #eef2ff !important;
    border: 1px solid #c7d2fe !important;
    border-radius: 13px !important;
}
.sc-ai-home .ms-product-login-btn:hover { color: #fff !important; background: var(--sx-grad-btn) !important; }
.sc-ai-home .ms-action-icon { border-radius: 13px !important; }

/* Campaigns */
.sc-ai-home .ms-campaign-center { padding-top: 64px; }
.sc-ai-home .ms-campaign-banner {
    border-radius: 24px !important;
    border: 0 !important;
    box-shadow: 0 24px 54px rgba(30, 41, 99, .18) !important;
}
.sc-ai-home .ms-campaign-banner.violet { background: linear-gradient(120deg, #1e1b4b, #6d28d9) !important; }
.sc-ai-home .ms-campaign-banner.cyan { background: linear-gradient(120deg, #082f49, #0e7490) !important; }
.sc-ai-home .ms-campaign-banner .ms-campaign-copy span,
.sc-ai-home .ms-campaign-banner .ms-campaign-copy h4 { color: #fff !important; }
.sc-ai-home .ms-campaign-banner .ms-campaign-copy a { color: #0b1233 !important; background: #fff !important; }

/* Brands */
.sc-ai-home .ms-brand-clean-section { padding-top: 64px; }
.sc-ai-home .ms-brand-title-icon { background: var(--sx-grad-btn) !important; color: #fff !important; }
.sc-ai-home .ms-brand-clean-item {
    border-radius: 18px !important;
    border: 1px solid var(--sx-line) !important;
    filter: grayscale(.35);
    transition: filter .25s ease, transform .25s ease, box-shadow .25s ease;
}
.sc-ai-home .ms-brand-clean-item:hover { filter: none; transform: translateY(-4px); box-shadow: 0 16px 36px rgba(79, 70, 229, .14) !important; }

/* Scroll reveal */
.sx-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.sx-reveal.is-visible { opacity: 1; transform: none; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1199.98px) {
    .sx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sx-steps::before { display: none; }
    .sx-float-b { right: 0; }
}

@media (max-width: 991.98px) {
    .sx-hero { padding: 56px 0 64px; }
    .sx-hero-visual { min-height: 440px; }
    .sx-console { transform: none; }
    .sx-hero-visual:hover .sx-console { transform: none; }
    .sx-cta { grid-template-columns: 1fr; padding: 40px 30px; }
    .sx-cta-visual { display: none; }
    .sc-ai-home .ms-home-hero-wrapper { --ms-hero-height: 390px; }
}

@media (max-width: 767.98px) {
    .sx-hero-copy h1 { letter-spacing: -1.2px; }
    .sx-lead { font-size: 15.5px; }
    .sx-prompt { flex-wrap: wrap; padding: 8px; }
    .sx-prompt-icon { display: none; }
    .sx-prompt input[type="text"] { flex-basis: 100%; padding: 0 8px; }
    .sx-prompt-btn { width: 100%; justify-content: center; }
    .sx-hero-actions .sx-btn { flex: 1 1 100%; }
    .sx-float { display: none; }
    .sx-hero-visual { min-height: 0; }
    .sx-steps { grid-template-columns: 1fr; }
    .sx-section, .sx-process { padding-top: 48px; }
    .sx-cta { padding: 32px 22px; border-radius: 24px; }
    .sc-ai-home .ms-home-hero-wrapper { --ms-hero-height: 330px; }
    .sc-ai-home .ms-mini-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    .sc-ai-home *, .sc-ai-home *::before, .sc-ai-home *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .sx-reveal { opacity: 1; transform: none; }
    .sx-hero-canvas { display: none; }
}

/* =====================================================================
   HOMEPAGE CHROME (header accents, hide redundant strips)
   ===================================================================== */
body:has(.sc-ai-home) .ms-ai-breadcrumb-wrapper,
body:has(.sc-ai-home) .csr-top-cta { display: none !important; }

body:has(.sc-ai-home) .ms-register-link {
    color: #fff !important;
    border-color: transparent !important;
    background: linear-gradient(100deg, #2563eb 0%, #6d5cf6 60%, #a855f7 100%) !important;
    box-shadow: 0 10px 24px rgba(99, 102, 241, .32) !important;
}
body:has(.sc-ai-home) .ms-register-link i { color: #fff !important; }

.sc-ai-home .ms-smart-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 20px !important; }
.sc-ai-home .ms-product-login-btn i { color: inherit !important; }
@media (max-width: 1199.98px) { .sc-ai-home .ms-smart-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 991.98px) { .sc-ai-home .ms-smart-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 479.98px) { .sc-ai-home .ms-smart-product-grid { grid-template-columns: 1fr !important; } }

/* =====================================================================
   HERO SLIDER — AI showcase (split layout: content panel + media)
   ===================================================================== */
.sx-slider {
    position: relative;
    width: 100%;
    height: var(--ms-hero-height, 470px);
    overflow: hidden;
    border-radius: 26px;
    background:
        radial-gradient(520px 320px at 0% 100%, rgba(34, 211, 238, .22), transparent 60%),
        radial-gradient(600px 360px at 40% 0%, rgba(139, 92, 246, .35), transparent 60%),
        linear-gradient(135deg, #060a1f 0%, #0b1233 55%, #141a52 100%);
    border: 1px solid rgba(129, 140, 248, .25);
    box-shadow: 0 30px 70px rgba(11, 18, 51, .28), inset 0 1px 0 rgba(255, 255, 255, .05);
    isolation: isolate;
}
.sx-slider::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    z-index: 6;
    background: var(--sx-grad);
    opacity: .75;
}
.sx-slider-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(148, 163, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 255, .07) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 55%);
    mask-image: linear-gradient(90deg, #000 0%, transparent 55%);
    pointer-events: none;
}

.sx-slider-inner,
.sx-slide { height: 100%; }
.sx-slide { position: relative; }

/* Media fills the right side and fades into the content panel */
.sx-slide-media {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 60%;
    z-index: 1;
    overflow: hidden;
    background: #0b1233;
}
.sx-slide-media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg, #0b1233 0%, rgba(11, 18, 51, .72) 18%, rgba(11, 18, 51, .12) 48%, rgba(11, 18, 51, 0) 70%),
        linear-gradient(0deg, rgba(6, 10, 31, .55) 0%, rgba(6, 10, 31, 0) 35%);
    pointer-events: none;
}
.sx-slide-image {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1.06);
    transition: transform 7s ease-out;
}
.sx-slide.active .sx-slide-image { transform: scale(1); }
.sx-slide-iframe { transform: none !important; }

/* A slow scanning line gives the media an "AI is analyzing" feel */
.sx-slide-scan {
    position: absolute;
    left: 0; right: 0;
    top: -30%;
    height: 30%;
    z-index: 3;
    background: linear-gradient(180deg, rgba(103, 232, 249, 0), rgba(103, 232, 249, .16) 85%, rgba(103, 232, 249, .55) 100%);
    mix-blend-mode: screen;
    pointer-events: none;
    animation: sx-scan 5.5s cubic-bezier(.5, 0, .5, 1) infinite;
}
@keyframes sx-scan { 0% { top: -30%; } 60%, 100% { top: 110%; } }

.sx-slide-content {
    position: absolute;
    z-index: 4;
    top: 0; bottom: 0; left: 0;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 34px 84px 44px;
    color: #e8ecff;
}
.sx-slide.active .sx-slide-content > * { animation: sx-slide-in .7s cubic-bezier(.2, .8, .2, 1) both; }
.sx-slide.active .sx-slide-content > *:nth-child(2) { animation-delay: .08s; }
.sx-slide.active .sx-slide-content > *:nth-child(3) { animation-delay: .16s; }
.sx-slide.active .sx-slide-content > *:nth-child(4) { animation-delay: .24s; }
@keyframes sx-slide-in { from { opacity: 0; transform: translateY(16px); } }

.sx-slide-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.sx-slide-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #c7d2fe;
    font-size: 12px; font-weight: 700;
    background: rgba(99, 102, 241, .16);
    border: 1px solid rgba(129, 140, 248, .35);
}
.sx-slide-badge i { color: var(--sx-cyan); }
.sx-slide-count { color: #7f8bb5; font-family: var(--sx-mono); font-size: 12px; font-weight: 700; letter-spacing: 1px; }

.sx-slide-title {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(24px, 2.25vw, 38px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -1px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sx-slide-text {
    margin: 0 0 24px;
    max-width: 460px;
    color: #a9b4d8;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sx-slide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.sx-slide-btn {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    color: #fff !important;
    font-size: 15px; font-weight: 800;
    text-decoration: none !important;
    background: var(--sx-grad-btn);
    box-shadow: 0 14px 32px rgba(99, 102, 241, .45), inset 0 1px 0 rgba(255, 255, 255, .22);
    transition: transform .2s ease, box-shadow .2s ease;
}
.sx-slide-btn:hover { transform: translateY(-2px); box-shadow: 0 20px 42px rgba(99, 102, 241, .55); }
.sx-slide-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: #c7d2fe !important;
    font-size: 14px; font-weight: 700;
    text-decoration: none !important;
    transition: color .2s ease;
}
.sx-slide-link i { color: var(--sx-cyan); }
.sx-slide-link:hover { color: #fff !important; }

/* Bottom control rail: segmented progress + arrows */
.sx-slider-controls {
    position: absolute;
    z-index: 7;
    left: 44px; right: 28px; bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    pointer-events: none;
}
.sx-slider-dots {
    position: static !important;
    display: flex !important;
    gap: 8px;
    margin: 0 !important;
    padding: 0;
    list-style: none;
    pointer-events: auto;
}
.sx-slider-dots li {
    position: relative;
    flex: 0 0 auto !important;
    width: 34px !important;
    height: 4px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18) !important;
    opacity: 1 !important;
    overflow: hidden;
    cursor: pointer;
    text-indent: 0 !important;
    transition: width .3s ease;
}
.sx-slider-dots li.active { width: 64px !important; }
.sx-slider-dots li span {
    position: absolute;
    inset: 0;
    width: 0;
    border-radius: inherit;
    background: var(--sx-grad);
}
.sx-slider-dots li.active span { animation: sx-progress var(--sx-slide-interval, 6500ms) linear forwards; }
@keyframes sx-progress { to { width: 100%; } }

.sx-slider-arrows { display: flex; gap: 10px; pointer-events: auto; }
.sx-slider-arrow {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 14px;
    color: #fff !important;
    text-decoration: none !important;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background .2s ease, transform .2s ease;
}
.sx-slider-arrow:hover { background: var(--sx-grad-btn); transform: translateY(-2px); border-color: transparent; }

@media (max-width: 1199.98px) {
    .sx-slide-content { width: 56%; padding-left: 32px; }
    .sx-slider-controls { left: 32px; }
}

@media (max-width: 767.98px) {
    .sc-ai-home .ms-home-hero-wrapper { --ms-hero-height: auto; }
    .sx-slider { height: auto; }
    .sx-slider-inner, .sx-slide { height: auto; }
    .sx-slide-media { position: relative; width: 100%; height: 210px; }
    .sx-slide-media::before { background: linear-gradient(0deg, #0b1233 0%, rgba(11, 18, 51, 0) 60%); }
    .sx-slide-content { position: relative; width: 100%; padding: 6px 22px 78px; }
    .sx-slide-title { font-size: 26px; }
    .sx-slider-controls { left: 22px; right: 18px; bottom: 18px; }
    .sx-slider-grid { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .sx-slide-scan { display: none; }
    .sx-slide-image { transition: none; transform: none; }
}

/* =====================================================================
   SECTION TOOLS — live AI status chip next to "View all"
   ===================================================================== */
.sx-section-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.sx-ai-status {
    display: inline-flex; align-items: center; gap: 8px;
    height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    color: #3730a3;
    font-size: 12.5px; font-weight: 700;
    background: linear-gradient(100deg, rgba(34, 211, 238, .10), rgba(99, 102, 241, .12));
    border: 1px solid rgba(99, 102, 241, .22);
    white-space: nowrap;
}
.sx-ai-status i { color: #6366f1; }
.sx-ai-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sx-green); animation: sx-pulse 2s infinite; }

/* =====================================================================
   TRENDING COLLECTIONS — image-forward AI collection tiles
   ===================================================================== */
.sc-ai-home .ms-category-mini-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 18px !important;
}
.sc-ai-home .ms-mini-square-card.sx-collection {
    width: auto !important;
    height: auto !important;
    min-height: 0;
    padding: 8px;
    border-radius: 22px !important;
    background: #fff !important;
    border: 1px solid var(--sx-line) !important;
    box-shadow: 0 12px 32px rgba(30, 41, 99, .06) !important;
    overflow: hidden;
}
.sc-ai-home .sx-collection::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--sx-grad);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.sc-ai-home .sx-collection:hover { transform: translateY(-6px) !important; box-shadow: 0 26px 56px rgba(79, 70, 229, .18) !important; }
.sc-ai-home .sx-collection:hover::before { opacity: 1; }

.sc-ai-home .sx-collection .ms-mini-image {
    position: relative;
    height: 150px !important;
    border-radius: 16px;
    overflow: hidden;
    background:
        radial-gradient(260px 140px at 80% 0%, rgba(139, 92, 246, .22), transparent 70%),
        radial-gradient(220px 120px at 0% 100%, rgba(34, 211, 238, .20), transparent 70%),
        linear-gradient(160deg, #eef2ff, #f5f3ff 55%, #ecfeff) !important;
}
.sc-ai-home .sx-collection .ms-mini-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, .08) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}
.sc-ai-home .sx-collection .ms-mini-image img {
    position: relative;
    z-index: 1;
    padding: 16px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 12px 18px rgba(30, 41, 99, .18));
    transition: transform .45s cubic-bezier(.2, .8, .2, 1) !important;
}
.sc-ai-home .sx-collection:hover .ms-mini-image img { transform: scale(1.07) translateY(-2px) !important; }
.sx-collection-index {
    position: absolute;
    z-index: 2;
    top: 10px; left: 10px;
    padding: 3px 8px;
    border-radius: 8px;
    color: #4338ca;
    font-family: var(--sx-mono);
    font-size: 11px; font-weight: 700;
    background: rgba(255, 255, 255, .85);
    border: 1px solid rgba(99, 102, 241, .18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.sc-ai-home .sx-collection .ms-mini-content { padding: 14px 52px 8px 8px !important; min-height: 0 !important; }
.sc-ai-home .sx-collection .ms-mini-content h5 {
    margin: 0 0 6px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}
.sx-collection-meta { display: inline-flex; align-items: center; gap: 6px; color: var(--sx-muted) !important; font-size: 12.5px !important; font-weight: 600 !important; }
.sx-collection-meta i { color: #8b5cf6; font-size: 11px; }
.sc-ai-home .sx-collection .ms-mini-arrow {
    right: 14px !important;
    bottom: 14px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 12px !important;
    font-size: 13px;
    transition: transform .25s ease;
}
.sc-ai-home .sx-collection:hover .ms-mini-arrow { transform: translateX(3px); }

/* =====================================================================
   SELECTED FOR YOU — AI recommendation cards
   ===================================================================== */
.sc-ai-home .ms-smart-products-section .ms-smart-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)) !important;
    gap: 22px !important;
}
@media (min-width: 1500px) {
    .sc-ai-home .ms-smart-products-section .ms-smart-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

.sc-ai-home .ms-smart-products-section .ms-smart-product-card {
    position: relative;
    display: flex !important;
    flex-direction: column;
    padding: 10px !important;
    border-radius: 24px !important;
    overflow: hidden;
}
.sc-ai-home .ms-smart-products-section .ms-smart-product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--sx-grad);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
    z-index: 3;
}
.sc-ai-home .ms-smart-products-section .ms-smart-product-card:hover::before { opacity: 1; }

.sc-ai-home .ms-smart-products-section .ms-product-image-wrap {
    position: relative;
    display: block;
    height: auto !important;
    aspect-ratio: 16 / 10;
    margin: 0 !important;
    border-radius: 18px !important;
    overflow: hidden;
    background:
        radial-gradient(300px 160px at 85% 0%, rgba(139, 92, 246, .25), transparent 70%),
        radial-gradient(260px 140px at 0% 100%, rgba(34, 211, 238, .22), transparent 70%),
        linear-gradient(160deg, #eef2ff, #f5f3ff 55%, #ecfeff) !important;
}
.sc-ai-home .ms-smart-products-section .ms-product-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, .07) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}
.sc-ai-home .ms-smart-products-section .ms-product-image-wrap img {
    position: relative;
    z-index: 1;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    padding: 18px 22px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 16px 24px rgba(30, 41, 99, .22));
    transition: transform .5s cubic-bezier(.2, .8, .2, 1) !important;
}
.sc-ai-home .ms-smart-products-section .ms-smart-product-card:hover .ms-product-image-wrap img { transform: scale(1.06) translateY(-3px) !important; }

.sc-ai-home .ms-smart-products-section .ms-product-badge {
    top: 20px !important;
    left: 20px !important;
    z-index: 4;
    gap: 6px;
    padding: 6px 10px !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    background: rgba(11, 18, 51, .82) !important;
    border: 1px solid rgba(129, 140, 248, .4) !important;
    box-shadow: 0 8px 18px rgba(11, 18, 51, .25) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.sc-ai-home .ms-smart-products-section .ms-product-badge i { color: var(--sx-cyan) !important; }
.sc-ai-home .ms-smart-products-section .ms-product-fav {
    top: 20px !important;
    right: 20px !important;
    z-index: 4;
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, .92) !important;
    border: 1px solid var(--sx-line) !important;
}

.sc-ai-home .ms-smart-products-section .ms-product-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 16px 8px 6px !important;
}
.sc-ai-home .ms-smart-products-section .ms-product-name {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    margin-bottom: 6px !important;
    font-size: 16px !important;
    line-height: 1.3 !important;
    letter-spacing: -.2px;
}
.sx-card-desc {
    margin: 0 0 14px;
    color: var(--sx-muted);
    font-size: 13px;
    line-height: 1.55;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sc-ai-home .ms-smart-products-section .ms-product-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: auto;
    margin-bottom: 6px !important;
}
.sc-ai-home .ms-smart-products-section .ms-product-price-row strong { font-size: 22px !important; letter-spacing: -.5px; }
.sc-ai-home .ms-smart-products-section .ms-product-price-row del { font-size: 13px !important; color: #9aa4c3 !important; }
.sc-ai-home .ms-smart-products-section .ms-product-rating { margin-bottom: 14px !important; }

.sc-ai-home .ms-smart-products-section .ms-product-actions {
    display: flex !important;
    gap: 8px !important;
    padding-top: 14px;
    border-top: 1px dashed var(--sx-line);
}
.sc-ai-home .ms-smart-products-section .ms-product-cart-btn,
.sc-ai-home .ms-smart-products-section .ms-product-login-btn {
    flex: 1 1 auto;
    justify-content: center;
    height: 44px !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    border-radius: 13px !important;
}
.sc-ai-home .ms-smart-products-section .ms-action-icon {
    flex: 0 0 44px;
    width: 44px !important;
    height: 44px !important;
    border-radius: 13px !important;
    color: #4338ca !important;
    background: #eef2ff !important;
    border: 1px solid #e0e7ff !important;
}
.sc-ai-home .ms-smart-products-section .ms-action-icon:hover { color: #fff !important; background: var(--sx-grad-btn) !important; }

@media (max-width: 767.98px) {
    .sx-section-tools { justify-content: flex-start; }
    .sx-ai-status { height: 36px; font-size: 12px; }
    .sc-ai-home .ms-category-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
    .sc-ai-home .sx-collection .ms-mini-image { height: 120px !important; }
    .sc-ai-home .ms-smart-products-section .ms-smart-product-grid { grid-template-columns: 1fr !important; }
}

/* Card media sizing: the legacy wrapper padding doubled up with the image padding */
.sc-ai-home .ms-smart-products-section .ms-product-image-wrap { padding: 0 !important; }
.sc-ai-home .ms-smart-products-section .ms-product-image-wrap img { padding: 14px 18px !important; }

/* Collections: 8 across on wide screens, 4 + 4 on laptops, 2 per row on phones */
.sc-ai-home .ms-category-mini-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
@media (min-width: 1600px) {
    .sc-ai-home .ms-category-mini-grid { grid-template-columns: repeat(8, minmax(0, 1fr)) !important; }
}
@media (max-width: 767.98px) {
    .sc-ai-home .ms-category-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
