/* =====================================================================
   Hishabee — public home page, Soft UI 3D skin
   Layered over index.css and scoped to .hb-page.hb-neu. Same "Ledger &
   Jade" palette: porcelain sections become a raised/pressed neumorphic
   paper, the pine-ink bands (hero, AI, CTA) become a raised ink surface.
   Remove the hb-neu class from Index.cshtml to get the flat look back.
   ===================================================================== */
.hb-page.hb-neu {
    /* porcelain (light) surface */
    --hn-bg: #efede6;
    --hn-bg-2: #f6f5f0;
    --hn-hi: rgba(255, 255, 255, .95);
    --hn-lo: rgba(150, 140, 112, .38);
    --hn-raise-sm: 5px 5px 12px var(--hn-lo), -5px -5px 12px var(--hn-hi);
    --hn-raise: 10px 10px 24px var(--hn-lo), -10px -10px 24px var(--hn-hi);
    --hn-raise-lg: 18px 18px 40px rgba(150, 140, 112, .42), -14px -14px 34px var(--hn-hi);
    --hn-press-sm: inset 3px 3px 7px var(--hn-lo), inset -3px -3px 7px var(--hn-hi);
    --hn-press: inset 6px 6px 14px var(--hn-lo), inset -6px -6px 14px var(--hn-hi);
    /* pine-ink (dark) surface */
    --hn-ink: #15302a;
    --hn-ink-hi: rgba(54, 92, 82, .55);
    --hn-ink-lo: rgba(4, 12, 10, .62);
    --hn-ink-raise-sm: 5px 5px 12px var(--hn-ink-lo), -4px -4px 10px var(--hn-ink-hi);
    --hn-ink-raise: 12px 12px 28px var(--hn-ink-lo), -8px -8px 22px var(--hn-ink-hi);
    --hn-ink-press-sm: inset 3px 3px 7px var(--hn-ink-lo), inset -3px -3px 7px var(--hn-ink-hi);
    --hn-ink-press: inset 6px 6px 14px var(--hn-ink-lo), inset -5px -5px 12px var(--hn-ink-hi);
    --hn-brass-fill: linear-gradient(145deg, #d8bc7e, var(--hb-brass) 45%, var(--hb-brass-deep));
}

/* the whole page sits on the porcelain surface (the theme's .main is white) */
body:has(.hb-page.hb-neu) .main,
body:has(.hb-page.hb-neu) { background: #efede6; }
.hb-page.hb-neu .hb-cta,
.hb-page.hb-neu .hb-ledgerline,
.hb-page.hb-neu .hb-langband { background: var(--hn-bg); }

/* ---------- buttons: brass pill + raised ink key, both press in ---------- */
.hb-neu .hb-btn {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    isolation: isolate;
}
.hb-neu .hb-btn-brass {
    background: var(--hn-brass-fill);
    box-shadow: var(--hn-ink-raise-sm), 0 12px 28px -12px rgba(190, 157, 90, .8), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.hb-neu .hb-btn-brass:hover { box-shadow: var(--hn-ink-raise-sm), 0 18px 34px -12px rgba(190, 157, 90, .95), inset 0 1px 0 rgba(255, 255, 255, .5); }
.hb-neu .hb-btn-ghost {
    border: 1px solid rgba(255, 255, 255, .06);
    background: var(--hn-ink);
    box-shadow: var(--hn-ink-raise-sm);
}
.hb-neu .hb-btn-ghost:hover { background: #1a3832; border-color: rgba(190, 157, 90, .35); }
.hb-neu .hb-btn:active {
    transform: translateY(1px) scale(.985);
    box-shadow: var(--hn-ink-press-sm) !important;
}
/* press ripple (index.neu.js) */
.hb-neu .hb-ripple {
    position: absolute; z-index: -1;
    width: 14px; height: 14px; margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    pointer-events: none;
    animation: hnRipple .7s ease-out forwards;
}
@keyframes hnRipple { to { transform: scale(22); opacity: 0; } }

/* ---------- HERO: floating raised shapes + tilting diorama ---------- */
.hb-neu .hb-hero { perspective: 1400px; }
.hb-neu .hb-hero-copy,
.hb-neu .hb-hero-visual { position: relative; z-index: 1; }

.hb-neu .hb-eyebrow-mark,
.hb-neu .hb-step-no {
    background: var(--hn-brass-fill);
    box-shadow: 4px 4px 10px rgba(0, 0, 0, .3), -3px -3px 8px rgba(255, 255, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.hb-neu .hb-eyebrow-mark { animation: hnCoin 6s ease-in-out infinite; }
@keyframes hnCoin {
    0%, 70%, 100% { transform: rotateY(0); }
    80% { transform: rotateY(180deg); }
    90% { transform: rotateY(360deg); }
}

.hn-shape {
    position: absolute; z-index: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, #1c3a33, #112621);
    box-shadow: var(--hn-ink-raise);
    pointer-events: none;
    transition: transform .25s ease-out;
}
.hn-shape::after { content: ""; position: absolute; inset: 22%; border-radius: inherit; box-shadow: var(--hn-ink-press-sm); }
.hn-shape--a { width: 150px; height: 150px; top: 8%; left: -40px; animation: hnFloat 11s ease-in-out infinite; }
.hn-shape--b { width: 70px; height: 70px; bottom: 12%; left: 41%; border-radius: 22px; animation: hnFloat 9s ease-in-out -3s infinite; }
.hn-shape--c { width: 110px; height: 110px; top: 6%; right: 4%; animation: hnFloat 13s ease-in-out -6s infinite; }
.hn-shape--d { width: 34px; height: 34px; bottom: 26%; right: 46%; background: var(--hn-brass-fill); box-shadow: 4px 4px 10px rgba(0, 0, 0, .35), -3px -3px 8px rgba(255, 255, 255, .1); animation: hnFloat 7s ease-in-out -1s infinite; }
.hn-shape--d::after { display: none; }
.hn-shape > i { display: block; width: 100%; height: 100%; }
@keyframes hnFloat {
    0%, 100% { translate: 0 0; rotate: 0deg; }
    50% { translate: 0 -16px; rotate: 8deg; }
}

/* diorama: raised porcelain screen on the ink, tilted in 3D by the pointer */
.hb-neu .hb-hero-slider {
    transform-style: preserve-3d;
    transform: rotateX(var(--rx, 4deg)) rotateY(var(--ry, -8deg));
    transition: transform .4s cubic-bezier(.22, .61, .36, 1);
}
.hb-neu .hb-shot {
    border-radius: 22px;
    background: var(--hn-bg-2);
    box-shadow: 0 0 0 8px #18342d, 0 0 0 9px rgba(255, 255, 255, .06), 22px 30px 60px -18px rgba(0, 0, 0, .7), -10px -10px 30px rgba(54, 92, 82, .35);
}
.hb-neu .hb-shot-bar { background: transparent; }
.hb-neu .hb-kpi {
    border: 0 !important;
    border-radius: 14px;
    background: var(--hn-bg);
    box-shadow: var(--hn-press-sm);
}
.hb-neu .hb-chart-line,
.hb-neu .hb-chart-donut,
.hb-neu .hb-weekwrap,
.hb-neu .hb-bcol {
    border-radius: 14px;
    background: var(--hn-bg);
    box-shadow: var(--hn-raise-sm);
    border-color: transparent !important;
}
.hb-neu .hb-bcard,
.hb-neu .hb-payrow {
    border-color: transparent !important;
    border-radius: 11px;
    background: var(--hn-bg-2);
    box-shadow: 3px 3px 7px var(--hn-lo), -3px -3px 7px var(--hn-hi);
}
.hb-neu .hb-bcard.live { box-shadow: 3px 3px 7px var(--hn-lo), -3px -3px 7px var(--hn-hi), 0 0 0 2px rgba(31, 138, 99, .35); }
.hb-neu .hb-chart-line path:first-child {
    stroke-dasharray: 320;
    stroke-dashoffset: 320;
    animation: hnDraw 2.2s .4s cubic-bezier(.22, .61, .36, 1) forwards;
}
@keyframes hnDraw { to { stroke-dashoffset: 0; } }
.hb-neu .hb-weekbars i { transform-origin: bottom; animation: hnGrow 1s cubic-bezier(.22, .61, .36, 1) backwards; }
.hb-neu .hb-weekbars i:nth-child(2) { animation-delay: .08s; }
.hb-neu .hb-weekbars i:nth-child(3) { animation-delay: .16s; }
.hb-neu .hb-weekbars i:nth-child(4) { animation-delay: .24s; }
.hb-neu .hb-weekbars i:nth-child(5) { animation-delay: .32s; }
.hb-neu .hb-weekbars i:nth-child(6) { animation-delay: .40s; }
@keyframes hnGrow { from { transform: scaleY(0); } }

/* AI chat: raised ink card that floats in front of the screen */
.hb-neu .hb-ai-chat {
    border: 1px solid rgba(190, 157, 90, .28);
    border-radius: 20px;
    background: linear-gradient(150deg, #1a3731, #11251f);
    box-shadow: var(--hn-ink-raise), 0 30px 60px -24px rgba(0, 0, 0, .7);
}
.hb-neu .hb-hero-visual .hb-ai-chat:not(.center) { transform: translateZ(60px) rotate(-1.2deg); }
.hb-neu .hb-msg { box-shadow: 3px 3px 8px rgba(0, 0, 0, .28), -2px -2px 6px rgba(255, 255, 255, .05); }

/* module mosaic slide: raised ink keys */
.hb-neu .hb-tile {
    border: 1px solid rgba(255, 255, 255, .05) !important;
    border-radius: 16px;
    background: var(--hn-ink);
    box-shadow: var(--hn-ink-raise-sm);
}

/* slider controls: raised round keys + dots in a pressed track */
.hb-neu .hb-slider-arrow {
    width: 42px; height: 42px;
    border: 0;
    background: var(--hn-ink);
    box-shadow: var(--hn-ink-raise-sm);
    color: var(--hb-brass);
    transition: transform .2s ease, box-shadow .2s ease;
}
.hb-neu .hb-slider-arrow:hover { background: var(--hn-ink); transform: translateY(-2px); }
.hb-neu .hb-slider-arrow:active { transform: none; box-shadow: var(--hn-ink-press-sm); }
.hb-neu .hb-slider-dots {
    padding: 9px 14px;
    border-radius: 20px;
    background: #10231e;
    box-shadow: var(--hn-ink-press-sm);
}
.hb-neu .hb-slider-dots button { background: rgba(255, 255, 255, .22); }
.hb-neu .hb-slider-dots button.on { background: var(--hn-brass-fill); box-shadow: 0 0 10px rgba(190, 157, 90, .6); }

/* ---------- LEDGER LINE: raised stat keys in a pressed rail ---------- */
.hb-neu .hb-ledgerline { border-top: 0; border-bottom: 0; padding: 26px 0; }
.hb-neu .hb-ledger-row {
    padding: 14px;
    border-radius: 24px;
    background: var(--hn-bg);
    box-shadow: var(--hn-press);
    gap: 14px;
}
.hb-neu .hb-ledger-row span {
    flex: 1 1 160px;
    padding: 14px 18px;
    border-radius: 16px;
    background: var(--hn-bg);
    box-shadow: var(--hn-raise-sm);
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}
.hb-neu .hb-ledger-row span:hover { transform: translateY(-3px); box-shadow: var(--hn-raise); }
.hb-neu .hb-ledger-row b { font-family: var(--hb-display); font-size: 24px; }

/* ---------- MODULES: raised paper cards, icon in a pressed well ---------- */
.hb-neu .hb-modules { gap: 26px; perspective: 1200px; }
.hb-neu .hb-module,
.hb-neu .hb-step {
    border: 0;
    border-radius: 22px;
    background: var(--hn-bg);
    box-shadow: var(--hn-raise);
    transform-style: preserve-3d;
    transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s ease;
}
.hb-neu .hb-module:hover,
.hb-neu .hb-step:hover {
    transform: translateY(-6px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    box-shadow: var(--hn-raise-lg);
}
.hb-neu .hb-module::before { top: 18px; bottom: 18px; box-shadow: 0 0 10px rgba(190, 157, 90, .6); }
.hb-neu .hb-module-ico {
    width: 52px; height: 52px;
    border-radius: 16px;
    background: var(--hn-bg) !important;
    box-shadow: var(--hn-press-sm);
    font-size: 19px;
    transition: transform .35s ease, box-shadow .35s ease;
}
.hb-neu .hb-module:hover .hb-module-ico { transform: translateZ(30px) scale(1.06); box-shadow: var(--hn-raise-sm); }
.hb-neu .hb-module h3,
.hb-neu .hb-module p { transform: translateZ(14px); }
.hb-neu .hb-ai-flag { background: var(--hn-brass-fill); box-shadow: 3px 3px 8px var(--hn-lo), -2px -2px 6px var(--hn-hi), inset 0 1px 0 rgba(255, 255, 255, .5); }

/* ---------- AI BAND: raised ink chat + LED bullets ---------- */
.hb-neu .hb-aiband { position: relative; overflow: hidden; }
.hb-neu .hb-ai-chat.big { padding: 20px 20px; }
.hb-neu .hb-ai-demo { perspective: 1200px; }
.hb-neu .hb-ai-demo .hb-ai-chat { transform: rotateY(-8deg) rotateX(3deg); transition: transform .5s ease; }
.hb-neu .hb-ai-demo:hover .hb-ai-chat { transform: none; }

/* ---------- STEPS: pressed rail joins raised cards ---------- */
.hb-neu .hb-steps { position: relative; gap: 26px; }
.hb-neu .hb-steps::before {
    content: "";
    position: absolute; left: 6%; right: 6%; top: 46px;
    height: 12px; border-radius: 12px;
    background: var(--hn-bg);
    box-shadow: var(--hn-press-sm);
}
.hb-neu .hb-step { z-index: 1; }
.hb-neu .hb-step-no { width: 46px; height: 46px; font-size: 20px; box-shadow: var(--hn-raise-sm), inset 0 1px 0 rgba(255, 255, 255, .55); }
.hb-neu .hb-steps.in .hb-step-no { animation: hnPop .6s cubic-bezier(.34, 1.56, .64, 1) backwards; }
.hb-neu .hb-steps.in .hb-step:nth-child(2) .hb-step-no { animation-delay: .25s; }
.hb-neu .hb-steps.in .hb-step:nth-child(3) .hb-step-no { animation-delay: .45s; }
@keyframes hnPop { from { transform: scale(.3) rotate(-30deg); opacity: 0; } }

/* ---------- LANGUAGES: raised keys that press in ---------- */
.hb-neu .hb-langband { border: 0; }
.hb-neu .hb-lang-pills { gap: 18px; }
.hb-neu .hb-lang-pill {
    border: 0;
    border-radius: 18px;
    padding: 12px 28px;
    background: var(--hn-bg);
    box-shadow: var(--hn-raise-sm);
    cursor: default;
    transition: transform .2s ease, box-shadow .2s ease, color .2s ease;
}
.hb-neu .hb-lang-pill:hover { transform: translateY(-3px); box-shadow: var(--hn-raise); color: var(--hb-brass-deep); }
.hb-neu .hb-lang-pill:active { transform: none; box-shadow: var(--hn-press-sm); }

/* ---------- CTA: raised ink slab on the paper, with its own shapes ---------- */
.hb-neu .hb-cta-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(190, 157, 90, .25);
    border-radius: 30px;
    box-shadow: var(--hn-raise-lg), inset 0 1px 0 rgba(255, 255, 255, .06);
    transform-style: preserve-3d;
}
/* tilt only once revealed, so it doesn't fight the scroll-reveal transform */
.hb-page.hb-neu .hb-cta-card.hb-reveal.in {
    transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .4s cubic-bezier(.22, .61, .36, 1), opacity .7s ease;
}
.hb-neu .hb-cta-card > * { position: relative; z-index: 1; }
.hb-neu .hb-cta-card > .hn-shape { position: absolute; z-index: 0; }
.hb-neu .hb-cta-card .hn-shape--a { top: -40px; left: -40px; }
.hb-neu .hb-cta-card .hn-shape--c { top: auto; bottom: -30px; right: -20px; }

/* ---------- motion / small screens ---------- */
@media (max-width: 991px) {
    .hb-neu .hb-hero-slider { transform: none; }
    .hn-shape--b, .hn-shape--d { display: none; }
    .hb-neu .hb-steps::before { display: none; }
}
@media (max-width: 575px) {
    .hb-neu .hb-ledger-row span { flex-basis: 40%; padding: 12px; }
    .hb-neu .hb-modules { gap: 18px; }
    .hn-shape--a { width: 90px; height: 90px; }
}
@media (prefers-reduced-motion: reduce) {
    .hn-shape, .hb-neu .hb-eyebrow-mark, .hb-neu .hb-weekbars i { animation: none !important; }
    .hb-neu .hb-chart-line path:first-child { animation: none; stroke-dashoffset: 0; }
    .hb-neu .hb-hero-slider, .hb-neu .hb-cta-card { transform: none !important; }
}
