
.hero.hero3d {
    --hero-bg: #ffffff;
    --hero-text: #171329;
    --hero-purple: #7c3aed;
    --hero-lavender: #a78bfa;
    --hero-light: #f5f0ff;
    --hero-muted: #716b83;
    --hero3d-header-h: 72px;
    --hero3d-ease: cubic-bezier(0.16, 1, 0.3, 1);

    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: calc(100vh - var(--hero3d-header-h));
    height: calc(100svh - var(--hero3d-header-h));
    min-height: 640px;
    padding: 0 !important;
    color: var(--hero-text);
    background:
        radial-gradient(58% 72% at 76% 44%, rgba(167, 139, 250, 0.24), transparent 70%),
        radial-gradient(38% 48% at 6% 6%, rgba(124, 58, 237, 0.10), transparent 70%),
        radial-gradient(34% 44% at 96% 100%, rgba(124, 58, 237, 0.13), transparent 70%),
        linear-gradient(180deg, #ffffff 0%, #faf8ff 100%) !important;
}

.hero.hero3d .hero-canvas {
    opacity: 0.38;
    z-index: 0;
}

.hero3d-aurora {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero3d-aurora span {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}

.hero3d-aurora span:nth-child(1) {
    width: 46vw;
    height: 46vw;
    right: -8vw;
    top: -14vw;
    background: radial-gradient(closest-side, rgba(167, 139, 250, 0.30), transparent);
    animation: hero3d-drift 18s ease-in-out infinite alternate;
}

.hero3d-aurora span:nth-child(2) {
    width: 34vw;
    height: 34vw;
    left: -10vw;
    bottom: -16vw;
    background: radial-gradient(closest-side, rgba(124, 58, 237, 0.16), transparent);
    animation: hero3d-drift 22s ease-in-out -6s infinite alternate-reverse;
}

@keyframes hero3d-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(-3vw, 2vw, 0) scale(1.12); }
}

.hero.hero3d .hero-container {
    position: static;
    z-index: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    height: 100%;
    max-width: 1360px;
}

.hero.hero3d .hero3d-left {
    position: relative;
    z-index: 5;
    flex: 0 0 min(47%, 620px);
    width: auto !important;
    display: grid;
    align-items: center;
}

.hero3d-intro,
.hero3d-project {
    grid-area: 1 / 1;
}

.hero3d-intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(0.55rem, 1.5vh, 1.1rem);
}

.hero3d-intro > * {
    margin: 0 !important;
    animation: hero3d-rise 0.9s var(--hero3d-ease) both;
}

.hero3d-intro > *:nth-child(1) { animation-delay: 0.05s; }
.hero3d-intro > *:nth-child(2) { animation-delay: 0.14s; }
.hero3d-intro > *:nth-child(3) { animation-delay: 0.23s; }
.hero3d-intro > *:nth-child(4) { animation-delay: 0.32s; }
.hero3d-intro > *:nth-child(5) { animation-delay: 0.41s; }
.hero3d-intro > *:nth-child(6) { animation-delay: 0.50s; }

@keyframes hero3d-rise {
    from { opacity: 0; transform: translate3d(0, 22px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

.hero.hero3d .limited-badge {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(124, 58, 237, 0.18);
    box-shadow: 0 8px 24px -10px rgba(124, 58, 237, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.4rem 1.1rem;
}

.hero.hero3d .limited-text {
    color: var(--hero-text);
    font-size: 0.8rem;
}

.hero.hero3d .limited-number {
    background: linear-gradient(135deg, var(--hero-purple), var(--hero-lavender)) !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

.hero.hero3d .swipe-text-container {
    width: 100%;
    min-height: 0 !important;
    transition: height 0.5s var(--hero3d-ease, ease);
}

.hero.hero3d h1 {
    font-size: clamp(2.6rem, 4.3vw, 4.35rem) !important;
    font-weight: 800;
    line-height: 1.04 !important;
    letter-spacing: -0.045em;
    color: var(--hero-text);
    margin: 0 !important;
}

.hero.hero3d .highlight-gradient {
    background: linear-gradient(115deg, #6d28d9 0%, var(--hero-purple) 38%, var(--hero-lavender) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero.hero3d .hero-subhead {
    font-size: clamp(1.02rem, 1.45vw, 1.35rem) !important;
    font-weight: 500;
    line-height: 1.4 !important;
    color: var(--hero-muted);
    max-width: 34em;
}

.hero.hero3d .hero-benefits {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero.hero3d .benefit-item {
    margin: 0;
    padding: 0.38rem 0.95rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a3a7d;
    background: rgba(124, 58, 237, 0.07);
    border: 1px solid rgba(124, 58, 237, 0.14);
    border-radius: 100px;
}

.hero.hero3d .hero-strong-sentence {
    font-size: 1.1rem !important;
    font-weight: 600;
    padding: 0.15rem 0 0.15rem 1rem !important;
    color: var(--hero-text);
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
}

.hero.hero3d .hero-strong-sentence::before {
    background: linear-gradient(180deg, var(--hero-purple), var(--hero-lavender));
}

.hero.hero3d .quote-mark {
    background: linear-gradient(135deg, var(--hero-purple), var(--hero-lavender));
    -webkit-background-clip: text;
    background-clip: text;
}

.hero3d-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero3d-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.65rem;
    border-radius: 100px;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.35s var(--hero3d-ease), box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.hero3d-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #6d28d9, var(--hero-purple) 45%, #9d6bff);
    box-shadow: 0 14px 30px -10px rgba(124, 58, 237, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.hero3d-btn--ghost {
    color: var(--hero-text);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(124, 58, 237, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@media (hover: hover) {
    .hero3d-btn--primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 20px 38px -10px rgba(124, 58, 237, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

    .hero3d-btn--ghost:hover {
        transform: translateY(-3px);
        border-color: var(--hero-purple);
        background: #fff;
    }
}

.hero3d-btn:focus-visible,
.hero3d-nav-btn:focus-visible,
.hero.hero3d .hero-dot:focus-visible {
    outline: 3px solid rgba(124, 58, 237, 0.55);
    outline-offset: 3px;
}

.hero3d-project {
    visibility: hidden;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    pointer-events: none;
}

.hero3d-kicker {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hero-muted);
}

.hero3d-kicker b {
    color: var(--hero-purple);
}

.hero3d-project-title {
    margin: 0;
    font-size: clamp(2.3rem, 3.7vw, 3.7rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.045em;
    color: var(--hero-text);
    background: linear-gradient(115deg, var(--hero-text) 30%, var(--hero-purple) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero3d-project-desc {
    margin: 0;
    max-width: 30em;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 1.55;
    color: var(--hero-muted);
}

.hero3d-project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero3d-project-meta li {
    padding: 0.38rem 0.95rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: #4a3a7d;
    background: rgba(124, 58, 237, 0.07);
    border: 1px solid rgba(124, 58, 237, 0.16);
    border-radius: 100px;
}

.hero3d-project .hero3d-cta-row,
.hero3d-project-desc,
.hero3d-project-meta {
    transition: opacity 0.45s ease, transform 0.45s var(--hero3d-ease);
}

.hero3d-project.is-swapping .hero3d-project-title,
.hero3d-project.is-swapping .hero3d-project-desc,
.hero3d-project.is-swapping .hero3d-project-meta {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
}

.hero3d-stage {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.hero3d-stage canvas {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.9s ease;
}

.hero3d--ready .hero3d-stage canvas {
    opacity: 1;
}

.hero3d-loader {
    position: absolute;
    left: 67%;
    top: 46%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hero-muted);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero3d--ready .hero3d-loader,
.hero3d--fallback .hero3d-loader {
    opacity: 0;
    visibility: hidden;
}

.hero3d-loader-laptop {
    position: relative;
    width: min(34vw, 380px);
    aspect-ratio: 16 / 11;
}

.hero3d-loader-laptop i {
    position: absolute;
    left: 50%;
    border: 1px solid rgba(124, 58, 237, 0.25);
    background: linear-gradient(110deg, rgba(245, 240, 255, 0.9) 30%, rgba(255, 255, 255, 1) 50%, rgba(245, 240, 255, 0.9) 70%);
    background-size: 220% 100%;
    animation: hero3d-shimmer 1.5s linear infinite;
}

.hero3d-loader-laptop i:nth-child(1) {
    top: 0;
    width: 78%;
    height: 78%;
    border-radius: 12px 12px 4px 4px;
    transform: translateX(-50%);
}

.hero3d-loader-laptop i:nth-child(2) {
    bottom: 0;
    width: 100%;
    height: 8%;
    border-radius: 4px 4px 16px 16px;
    transform: translateX(-50%);
}

@keyframes hero3d-shimmer {
    from { background-position: 120% 0; }
    to   { background-position: -120% 0; }
}

.hero.hero3d .hero3d-right {
    position: static;
    flex: 1 1 auto;
    width: auto !important;
    display: block;
    perspective: none;
    pointer-events: none;
}

.hero.hero3d .hero-mockup-showcase {
    position: static;
    max-width: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.hero3d-controls {
    position: absolute;
    left: 0;
    bottom: clamp(1rem, 2.6vh, 1.8rem);
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    pointer-events: auto;
    transform: translate3d(67vw, 0, 0) translateX(-50%);
    will-change: transform;
    opacity: 0;
    transition: opacity 0.8s ease 0.5s;
}

.hero3d--ready .hero3d-controls,
.hero3d--fallback .hero3d-controls {
    opacity: 1;
}

.hero3d-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.hero.hero3d .hero-mockup-tag {
    font-size: 0.8rem;
    color: #5b21b6;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(124, 58, 237, 0.22);
    padding: 0.32rem 0.85rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero3d-url {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.32rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--hero-text);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(124, 58, 237, 0.14);
    border-radius: 100px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero3d-pager {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.4rem 0.5rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(124, 58, 237, 0.16);
    border-radius: 100px;
    box-shadow: 0 14px 30px -14px rgba(124, 58, 237, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero3d-nav-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--hero-purple);
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.18);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s var(--hero3d-ease), background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) {
    .hero3d-nav-btn:hover {
        color: #fff;
        background: var(--hero-purple);
        box-shadow: 0 0 22px rgba(124, 58, 237, 0.5);
        transform: scale(1.08);
    }
}

.hero3d-nav-btn:active {
    transform: scale(0.94);
}

.hero.hero3d .hero-mockup-dots {
    gap: 0.55rem;
}

.hero.hero3d .hero-dot {
    width: 10px;
    height: 10px;
    border: 2px solid rgba(124, 58, 237, 0.35);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, width 0.3s var(--hero3d-ease);
}

.hero.hero3d .hero-dot.active {
    width: 26px;
    border-radius: 10px;
    transform: none;
    background: linear-gradient(90deg, var(--hero-purple), var(--hero-lavender));
    border-color: var(--hero-purple);
}

.hero3d-device {
    display: none;
    width: min(100%, 640px);
    margin: 0 auto 1.1rem;
}

.hero3d-device-lid {
    position: relative;
    padding: 10px 10px 12px;
    background: #08080c;
    border: 1px solid #cdc9dc;
    border-radius: 16px 16px 4px 4px;
    box-shadow: 0 40px 70px -28px rgba(76, 29, 149, 0.5), inset 0 0 0 1px #2a2a33;
}

.hero3d-device-lid::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 50%;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    border-radius: 50%;
    background: #2b2b35;
}

.hero3d-device .hero-mockup-viewport {
    border-radius: 6px;
}

.hero3d-device-base {
    height: 14px;
    margin: 0 -5%;
    border-radius: 0 0 22px 22px;
    background: linear-gradient(180deg, #ececf1 0%, #b7b8c3 100%);
    box-shadow: 0 18px 30px -14px rgba(76, 29, 149, 0.45), inset 0 1px 0 #fff;
}

.hero3d--fallback .hero3d-device {
    display: block;
}

.hero3d--fallback .hero3d-stage {
    display: none;
}

.hero3d--fallback .hero3d-project {
    display: none;
}

.hero3d--fallback .hero3d-right {
    pointer-events: auto;
}

.hero3d--fallback .hero3d-controls {
    position: static;
    transform: none !important;
    bottom: auto;
}

.hero3d-scrollcue {
    position: absolute;
    left: max(2rem, calc((100vw - 1360px) / 2 + 2rem));
    bottom: 1.8rem;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--hero-muted);
    pointer-events: none;
}

.hero3d-scrollcue i {
    position: relative;
    display: block;
    width: 46px;
    height: 2px;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(124, 58, 237, 0.18);
}

.hero3d-scrollcue i::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--hero-purple);
    transform: translateX(-100%);
    animation: hero3d-cue 2s var(--hero3d-ease) infinite;
}

@keyframes hero3d-cue {
    0%   { transform: translateX(-100%); }
    60%  { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

.hero3d-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 7;
    height: 3px;
    background: rgba(124, 58, 237, 0.08);
    pointer-events: none;
}

.hero3d-progress i {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--hero-purple), var(--hero-lavender));
    transform: scaleX(0);
    transform-origin: left center;
}

@media (min-width: 993px) and (max-height: 780px) {
    .hero.hero3d .hero-strong-sentence {
        display: none;
    }
}

@media (max-width: 992px) {
    .hero.hero3d {
        display: block;
        height: auto;
        min-height: 0;
        padding: 1.6rem 0 2.4rem !important;
    }

    .hero.hero3d .hero-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0.4rem !important;
        height: auto;
        padding: 0 1.25rem;
    }

    .hero.hero3d .hero3d-left {
        flex: none;
        width: 100% !important;
        display: block;
    }

    .hero3d-project {
        display: none;
    }

    .hero.hero3d h1 {
        font-size: clamp(2.05rem, 8.2vw, 3.2rem) !important;
    }

    .hero.hero3d .swipe-text-container {
        min-height: 0 !important;
    }

    .hero.hero3d .hero-subhead {
        font-size: 1.05rem !important;
    }

    .hero3d-stage {
        position: relative;
        inset: auto;
        width: 100%;
        height: clamp(250px, 64vw, 440px);
        margin-top: 0.4rem;
    }

    .hero3d-loader {
        left: 50%;
        top: 50%;
    }

    .hero3d-loader-laptop {
        width: min(70vw, 320px);
    }

    .hero.hero3d .hero3d-right {
        width: 100% !important;
        pointer-events: auto;
    }

    .hero3d-controls {
        position: static;
        transform: none !important;
        will-change: auto;
        opacity: 1;
    }

    .hero3d-scrollcue,
    .hero3d-progress {
        display: none;
    }

    .hero.hero3d .hero-canvas {
        opacity: 0.28;
    }

    .hero3d-aurora span {
        animation: none;
    }

    .hero3d-device {
        margin-top: 1rem;
    }
}

@media (max-width: 520px) {
    .hero.hero3d .benefit-item {
        font-size: 0.82rem;
        padding: 0.32rem 0.8rem;
    }

    .hero3d-cta-row {
        width: 100%;
    }

    .hero3d-cta-row .hero3d-btn {
        flex: 1 1 100%;
    }

    .hero.hero3d .hero-strong-sentence {
        font-size: 0.98rem !important;
    }
}

[data-theme="dark"] .hero.hero3d {
    --hero-bg: #0d0a1a;
    --hero-text: #f4f1ff;
    --hero-muted: #b3abc9;
    background:
        radial-gradient(58% 72% at 76% 44%, rgba(124, 58, 237, 0.30), transparent 70%),
        radial-gradient(38% 48% at 6% 6%, rgba(167, 139, 250, 0.10), transparent 70%),
        linear-gradient(180deg, #0d0a1a 0%, #130f26 100%) !important;
}

[data-theme="dark"] .hero.hero3d h1,
[data-theme="dark"] .hero.hero3d .hero-subhead,
[data-theme="dark"] .hero.hero3d .hero-strong-sentence {
    color: var(--hero-text) !important;
}

[data-theme="dark"] .hero.hero3d .hero-subhead {
    color: var(--hero-muted) !important;
}

[data-theme="dark"] .hero.hero3d .benefit-item,
[data-theme="dark"] .hero3d-project-meta li {
    color: #ddd6fe !important;
    background: rgba(167, 139, 250, 0.1);
    border-color: rgba(167, 139, 250, 0.22);
}

[data-theme="dark"] .hero.hero3d .limited-badge,
[data-theme="dark"] .hero3d-pager,
[data-theme="dark"] .hero3d-url,
[data-theme="dark"] .hero.hero3d .hero-mockup-tag,
[data-theme="dark"] .hero3d-btn--ghost {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(167, 139, 250, 0.25) !important;
    color: var(--hero-text);
}

[data-theme="dark"] .hero.hero3d .limited-text {
    color: var(--hero-text) !important;
}

[data-theme="dark"] .hero3d-project-title {
    background: linear-gradient(115deg, #fff 30%, var(--hero-lavender) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="dark"] .hero3d-loader-laptop i {
    background: linear-gradient(110deg, rgba(40, 32, 70, 0.9) 30%, rgba(70, 58, 120, 1) 50%, rgba(40, 32, 70, 0.9) 70%);
    background-size: 220% 100%;
}

@media (prefers-reduced-motion: reduce) {
    .hero3d-aurora span,
    .hero3d-intro > *,
    .hero3d-scrollcue i::after,
    .hero3d-loader-laptop i {
        animation: none !important;
    }

    .hero3d-stage canvas,
    .hero3d-controls,
    .hero3d-loader {
        transition-duration: 0.01s !important;
        transition-delay: 0s !important;
    }
}

body:has(> .hero3d), body:has(.hero.hero3d) {
    overflow-x: clip;
}

.hero.hero3d .hero3d-controls {
    display: none !important;
}

.hero.hero3d .hero3d-scrollcue {
    display: none !important;
}

.hero3d.hero3d--zoom .hero3d-controls {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.hero3d-project.hero3d-story {
    max-width: min(30vw, 470px);
}

.hero3d-story .hero3d-project-title {
    font-size: clamp(1.9rem, 2.9vw, 3rem);
}

.hero3d-story .hero3d-project-desc {
    max-width: none;
    font-size: clamp(0.95rem, 1.15vw, 1.1rem);
}

.hero3d-story .hero3d-project-desc strong {
    color: var(--hero-text);
    font-weight: 700;
}

#hero3dDash,
#hero3dEdit {
    max-width: min(38vw, 600px);
    padding: 1.4rem 1.6rem 1.5rem;
    margin-left: -0.4rem;
    border-radius: 30px;
    background:
        radial-gradient(120% 90% at 8% 0%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 55%),
        radial-gradient(90% 70% at 100% 100%, rgba(167, 139, 250, 0.22) 0%, rgba(167, 139, 250, 0) 60%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.58));
    -webkit-backdrop-filter: blur(22px) saturate(180%) brightness(1.04);
    backdrop-filter: blur(22px) saturate(180%) brightness(1.04);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 26px 60px -26px rgba(60, 30, 140, 0.5),
        0 4px 18px rgba(60, 30, 140, 0.10),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1.5px 0 rgba(124, 58, 237, 0.12),
        inset 10px 10px 24px -12px rgba(255, 255, 255, 0.85),
        inset -10px -10px 24px -14px rgba(124, 58, 237, 0.22);
}

[data-theme="dark"] #hero3dDash,
[data-theme="dark"] #hero3dEdit {
    background: rgba(20, 14, 40, 0.78);
    border-color: rgba(167, 139, 250, 0.28);
}

@media (min-width: 993px) {
    .hero.hero3d::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 68%;
        z-index: 3;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.8s ease;
        background: linear-gradient(90deg, rgba(245, 240, 255, 0.28) 0%, rgba(245, 240, 255, 0.10) 55%, rgba(245, 240, 255, 0) 100%);
        -webkit-backdrop-filter: blur(1px);
        backdrop-filter: blur(1px);
        -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 25%, transparent 100%);
        mask-image: linear-gradient(90deg, #000 0%, #000 25%, transparent 100%);
    }

    .hero.hero3d.hero3d--edit::after {
        opacity: 1;
    }

    [data-theme="dark"] .hero.hero3d::after {
        background: linear-gradient(90deg, rgba(14, 10, 30, 0.45) 0%, rgba(14, 10, 30, 0.18) 55%, rgba(14, 10, 30, 0) 100%);
    }
}

.hero3d-project-meta li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.hero3d-project-meta .hero3d-ico {
    flex: none;
    width: 1.05em;
    height: 1.05em;
    color: #7c3aed;
}

[data-theme="dark"] .hero3d-project-meta .hero3d-ico {
    color: #c4b5fd;
}

.hero3d-codebg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.4s ease;
    background:
        radial-gradient(55% 70% at 76% 42%, rgba(250, 204, 21, 0.20), transparent 68%),
        radial-gradient(60% 80% at 18% 92%, rgba(124, 58, 237, 0.50), transparent 70%),
        radial-gradient(50% 60% at 100% 0%, rgba(59, 130, 246, 0.35), transparent 70%),
        linear-gradient(135deg, #050818 0%, #0a1140 48%, #1a0f46 100%);
}

.hero3d-codebg canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.hero.hero3d.hero3d--code .hero3d-codebg {
    opacity: 1;
}

#hero3dCode {
    max-width: min(38vw, 600px);
    padding: 1.4rem 1.6rem 1.5rem;
    margin-left: -0.4rem;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(18, 14, 56, 0.66), rgba(34, 18, 78, 0.52));
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(167, 139, 250, 0.35);
    box-shadow: 0 26px 60px -26px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 0 0 1px rgba(124, 58, 237, 0.12);
}

#hero3dCode .hero3d-kicker {
    color: #c4b5fd;
}

#hero3dCode .hero3d-kicker b {
    color: #facc15;
}

#hero3dCode .hero3d-project-title {
    background: linear-gradient(115deg, #ffffff 35%, #fde047 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#hero3dCode .hero3d-project-desc {
    color: #cbd5ff;
}

#hero3dCode .hero3d-project-desc strong {
    color: #ffffff;
}

#hero3dCode .hero3d-project-meta li {
    color: #e0e7ff;
    background: rgba(167, 139, 250, 0.14);
    border-color: rgba(167, 139, 250, 0.32);
}

#hero3dCode .hero3d-project-meta .hero3d-ico {
    color: #facc15;
}

#hero3dCode .hero3d-cta-row,
#hero3dCode .hero3d-cta-row a {
    pointer-events: auto;
}

#hero3dCode .hero3d-btn--ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
}

.hero3d-final {
    display: none;
}

@media (min-width: 993px) {
    .hero3d-final {
        position: absolute;
        left: 50%;
        bottom: 5%;
        z-index: 8;
        display: flex;
        gap: 1rem;
        transform: translateX(-50%);
        visibility: hidden;
        opacity: 0;
    }

    .hero3d--fallback .hero3d-final {
        display: none;
    }

    .hero3d-final .hero3d-btn--ghost {
        color: #171329;
        background: rgba(255, 255, 255, 0.92);
        border-color: rgba(124, 58, 237, 0.30);
    }
}
.hero3d-steps,
.hero3d-swipehint {
    display: none;
}

@keyframes hero3d-nudge {
    0%, 100% { transform: translateY(0); opacity: 0.55; }
    50% { transform: translateY(-5px); opacity: 1; }
}

@media (max-width: 992px) {
    .hero.hero3d.hero3d--mfilm {
        display: block;
        height: calc(100vh - var(--hero3d-header-h));
        height: calc(100svh - var(--hero3d-header-h));
        min-height: 0;
        padding: 0 !important;
        overflow: hidden;
        touch-action: pan-y;
    }

    .hero.hero3d.hero3d--mfilm .hero-container {
        display: block !important;
        position: static;
        height: 100%;
        max-width: none;
        padding: 0 !important;
    }

    .hero.hero3d.hero3d--mfilm .hero3d-left {
        position: absolute;
        inset: 0;
        z-index: 5;
        width: 100% !important;
        display: grid;
        grid-template-rows: minmax(0, 1fr);
        box-sizing: border-box;
        padding: 0 1.1rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
        pointer-events: none;
    }

    .hero.hero3d.hero3d--mfilm .hero3d-left > * {
        pointer-events: auto;
    }

    .hero.hero3d.hero3d--mfilm .hero3d-intro,
    .hero.hero3d.hero3d--mfilm .hero3d-project {
        grid-area: 1 / 1;
    }

    .hero.hero3d.hero3d--mfilm .hero3d-project {
        align-self: end;
    }

    .hero.hero3d.hero3d--mfilm .hero3d-intro {
        align-self: start;
        gap: 0.5rem;
        margin-top: 0.9rem;
    }

    .hero.hero3d.hero3d--mfilm h1 {
        font-size: clamp(1.9rem, 8vw, 2.6rem) !important;
    }

    .hero.hero3d.hero3d--mfilm .hero-subhead {
        font-size: 1rem !important;
    }

    .hero.hero3d.hero3d--mfilm .hero-benefits {
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.3rem 0.35rem;
        margin: 0;
    }

    .hero.hero3d.hero3d--mfilm .benefit-item {
        margin: 0;
        padding: 0.22rem 0.6rem;
        font-size: 0.72rem;
        line-height: 1.25;
        white-space: nowrap;
        border-radius: 99px;
    }

    .hero.hero3d.hero3d--mfilm .hero-strong-sentence {
        margin: 0 !important;
        font-size: 1.05rem !important;
    }

    .hero.hero3d.hero3d--mfilm .hero3d-cta-row {
        flex-wrap: nowrap;
        gap: 0.6rem;
        width: 100%;
    }

    .hero.hero3d.hero3d--mfilm .hero3d-cta-row .hero3d-btn {
        flex: 1 1 0;
        padding: 0.62rem 0.4rem;
        font-size: 0.84rem;
        white-space: nowrap;
    }

    .hero.hero3d.hero3d--mfilm .hero3d-project {
        display: flex;
        max-width: none;
        gap: 0.55rem;
    }

    .hero.hero3d.hero3d--mfilm #hero3dProject,
    .hero.hero3d.hero3d--mfilm #hero3dDash,
    .hero.hero3d.hero3d--mfilm #hero3dEdit,
    .hero.hero3d.hero3d--mfilm #hero3dCode {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 1rem 1.1rem 1.1rem;
        border-radius: 24px;
        box-sizing: border-box;
    }

    .hero.hero3d.hero3d--mfilm #hero3dProject {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.62));
        border: 1px solid rgba(255, 255, 255, 0.7);
        -webkit-backdrop-filter: blur(18px) saturate(170%);
        backdrop-filter: blur(18px) saturate(170%);
        box-shadow: 0 20px 44px -22px rgba(60, 30, 140, 0.45);
    }

    [data-theme="dark"] .hero.hero3d.hero3d--mfilm #hero3dProject {
        background: rgba(20, 14, 40, 0.78);
        border-color: rgba(167, 139, 250, 0.28);
    }

    .hero.hero3d.hero3d--mfilm .hero3d-kicker {
        font-size: 0.7rem;
    }

    .hero.hero3d.hero3d--mfilm .hero3d-story .hero3d-project-title {
        font-size: clamp(1.35rem, 6.2vw, 1.75rem);
        line-height: 1.1;
    }

    .hero.hero3d.hero3d--mfilm .hero3d-story .hero3d-project-desc {
        font-size: 0.88rem;
        line-height: 1.42;
    }

    .hero.hero3d.hero3d--mfilm .hero3d-project-meta,
    .hero.hero3d.hero3d--mfilm #hero3dProject .hero3d-cta-row,
    .hero.hero3d.hero3d--mfilm #hero3dDash .hero3d-cta-row,
    .hero.hero3d.hero3d--mfilm #hero3dEdit .hero3d-cta-row {
        display: none;
    }

    .hero.hero3d.hero3d--mfilm #hero3dCode .hero3d-cta-row {
        display: flex;
    }

    .hero.hero3d.hero3d--mfilm .hero3d-stage {
        position: absolute;
        inset: 0;
        width: auto;
        height: auto;
        margin: 0;
        z-index: 2;
    }

    .hero.hero3d.hero3d--mfilm .hero3d-loader {
        top: 30%;
    }

    .hero.hero3d.hero3d--mfilm .hero3d-final {
        position: absolute;
        left: 50%;
        bottom: calc(1.6rem + env(safe-area-inset-bottom, 0px));
        z-index: 8;
        display: flex;
        gap: 0.6rem;
        width: calc(100% - 2.2rem);
        transform: translateX(-50%);
        visibility: hidden;
        opacity: 0;
    }

    .hero.hero3d.hero3d--mfilm .hero3d-final .hero3d-btn {
        flex: 1 1 0;
        padding: 0.85rem 0.5rem;
        font-size: 0.92rem;
        white-space: nowrap;
    }

    .hero.hero3d.hero3d--mfilm .hero3d-final .hero3d-btn--ghost {
        color: #171329;
        background: rgba(255, 255, 255, 0.92);
        border-color: rgba(124, 58, 237, 0.3);
    }

    .hero.hero3d.hero3d--mfilm .hero3d-steps {
        display: flex;
        flex-direction: column;
        gap: 7px;
        position: absolute;
        right: 9px;
        top: 50%;
        z-index: 7;
        transform: translateY(-50%);
        pointer-events: none;
    }

    .hero3d-steps i {
        display: block;
        width: 5px;
        height: 5px;
        border-radius: 99px;
        background: rgba(124, 58, 237, 0.28);
        transition: height 0.35s var(--hero3d-ease), background 0.35s ease;
    }

    .hero3d-steps i.on {
        height: 20px;
        background: var(--hero-purple);
    }

    .hero3d-steps.dark i {
        background: rgba(255, 255, 255, 0.3);
    }

    .hero3d-steps.dark i.on {
        background: #facc15;
    }

    .hero.hero3d.hero3d--mfilm .hero3d-swipehint {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        position: absolute;
        left: 50%;
        bottom: calc(0.45rem + env(safe-area-inset-bottom, 0px));
        z-index: 7;
        transform: translateX(-50%);
        font-size: 0.66rem;
        font-weight: 700;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--hero-muted);
        pointer-events: none;
        transition: opacity 0.4s ease;
    }

    .hero3d-swipehint svg {
        width: 15px;
        height: 15px;
        animation: hero3d-nudge 1.6s ease-in-out infinite;
    }

    .hero3d-swipehint.gone {
        opacity: 0;
    }
}

@media (max-width: 992px) and (prefers-reduced-motion: reduce) {
    .hero3d-swipehint svg {
        animation: none;
    }
}

@media (max-width: 992px) and (max-height: 720px) {
    .hero.hero3d.hero3d--mfilm .hero-benefits,
    .hero.hero3d.hero3d--mfilm .hero-strong-sentence {
        display: none !important;
    }
}

@media (max-width: 992px) {
    .hero.hero3d.hero3d--mfilm .hero3d-intro {
        gap: 0;
    }

    .hero.hero3d.hero3d--mfilm .swipe-text-container,
    .hero.hero3d.hero3d--mfilm h1 {
        margin: 0 !important;
    }

    .hero.hero3d.hero3d--mfilm .hero-subhead {
        margin: 0.3rem 0 0 !important;
    }

    .hero.hero3d.hero3d--mfilm .hero-benefits {
        margin: 1.1rem 0 0 !important;
    }

    .hero.hero3d.hero3d--mfilm .hero3d-intro .hero3d-cta-row {
        margin: 1.1rem 0 0 !important;
    }

    .hero.hero3d.hero3d--mfilm .hero-strong-sentence {
        margin: 1.1rem 0 0 !important;
    }
}

@media (max-width: 992px) {
    .hero.hero3d.hero3d--mfilm,
    .hero.hero3d.hero3d--mfilm * {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    .hero.hero3d.hero3d--mfilm .hero-canvas {
        display: none;
    }

    .hero.hero3d.hero3d--mfilm #hero3dProject,
    .hero.hero3d.hero3d--mfilm #hero3dDash,
    .hero.hero3d.hero3d--mfilm #hero3dEdit {
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 14px 30px -18px rgba(60, 30, 140, 0.45);
    }

    [data-theme="dark"] .hero.hero3d.hero3d--mfilm #hero3dProject,
    [data-theme="dark"] .hero.hero3d.hero3d--mfilm #hero3dDash,
    [data-theme="dark"] .hero.hero3d.hero3d--mfilm #hero3dEdit {
        background: rgba(22, 16, 44, 0.95);
    }

    .hero.hero3d.hero3d--mfilm #hero3dCode {
        background: rgba(18, 14, 56, 0.9);
        box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.7);
    }

    .hero.hero3d.hero3d--mfilm .hero3d-btn--ghost {
        background: rgba(255, 255, 255, 0.95);
    }
}

html.bk-navfx #globalNavbar #mainNav,
html.bk-navfx #globalNavbar #navRight {
    transition: opacity 0.45s ease 0.3s, visibility 0s linear 0s;
}

html.bk-navfx #globalNavbar .logo {
    transition: transform 0.75s cubic-bezier(0.22, 0.8, 0.2, 1);
}

html.bk-navfx #globalNavbar .logo-text {
    transition: opacity 0.45s ease 0.3s;
}

html.bk-navfilm #globalNavbar #mainNav,
html.bk-navfilm #globalNavbar #navRight {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

html.bk-navfilm #globalNavbar .logo {
    transform: translateX(var(--bk-logo-shift, 0px));
    pointer-events: none;
}

html.bk-navfilm #globalNavbar .logo:hover {
    transform: translateX(var(--bk-logo-shift, 0px));
}

html.bk-navfilm #globalNavbar .logo-text {
    opacity: 0;
    transition: opacity 0.25s ease;
}

@media (max-width: 992px) {
    html .header,
    html #globalNavbar {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        background: rgba(255, 255, 255, 0.97) !important;
    }

    html[data-theme="dark"] .header,
    html[data-theme="dark"] #globalNavbar {
        background: rgba(9, 13, 22, 0.97) !important;
    }
}

@media (max-width: 992px) {
    html #globalNavbar #mobileMenuBtn {
        position: static !important;
        z-index: auto !important;
        transition: none !important;
        transform: none !important;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        -webkit-user-select: none;
        user-select: none;
    }

    html #globalNavbar #mobileMenuBtn.active {
        position: relative !important;
        z-index: 1001 !important;
    }

    html #globalNavbar #mobileMenuBtn svg {
        display: block;
        pointer-events: none;
    }
}

@media (hover: none) {
    html #globalNavbar #mobileMenuBtn:hover {
        background: transparent !important;
    }
}