/* ==========================================================================
   WebVerse page UI: spiral banner carousel + futuristic feature cards
   (loaded after webverse.css)
   ========================================================================== */

/* ---------- Spiral 3D carousel ---------- */
.u3d-carousel-section {
    background: radial-gradient(90% 60% at 50% 55%, rgba(108, 92, 231, .16), transparent 70%), #000;
    padding: 96px 0 28px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}
.mobile-click-prompt { text-align: center; color: #a08cf7; font-size: .85rem; margin: -1.2rem 0 1.6rem; }

.carousel-3d-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 460px;
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
}
.carousel-3d-container.is-dragging { cursor: grabbing; }
.carousel-3d-container:focus-visible { box-shadow: 0 0 0 2px rgba(155, 92, 246, .6); border-radius: 16px; }

#carousel-3d {
    position: absolute; left: 50%; top: 0;
    width: 0; height: 0;
    transform-style: preserve-3d;
    will-change: transform;
}
.carousel-3d-card {
    position: absolute; left: 0; top: 0;
    width: 0; height: 0;
    transform-style: preserve-3d;
    --b: 1;
}

/* ---- real-estate centrepiece: site-plan turntable + tower cluster ---- */
.sp-floor {
    position: absolute; left: 0; top: 0;
    border-radius: 50%;
    pointer-events: none;
    background:
        radial-gradient(circle, rgba(155, 92, 246, .34) 0, rgba(155, 92, 246, .10) 52%, transparent 71%),
        repeating-radial-gradient(circle, transparent 0 46px, rgba(200, 170, 255, .20) 46px 47px),
        repeating-conic-gradient(from 0deg, rgba(200, 170, 255, .20) 0 .5deg, transparent .5deg 15deg);
    border: 1px solid rgba(200, 170, 255, .38);
    box-shadow: 0 0 80px rgba(124, 92, 255, .35), inset 0 0 60px rgba(232, 108, 240, .18);
    -webkit-mask-image: radial-gradient(circle, #000 62%, transparent 71%);
    mask-image: radial-gradient(circle, #000 62%, transparent 71%);
}
.sp-logo { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; pointer-events: none; }
.sp-sway { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; animation: spSway 9s ease-in-out infinite; }
.sp-hash, .sp-word { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; }
.sp-layer {
    position: absolute;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-size: contain; mask-size: contain;
    -webkit-mask-position: center; mask-position: center;
}
.sp-layer.is-front { background: linear-gradient(155deg, #b69bff 0%, #8f6bff 45%, #f08bff 100%); }
.sp-glow {
    position: absolute; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(155, 92, 246, .55), rgba(232, 108, 240, .16) 55%, transparent 72%);
    transform: translateZ(-60px);
    animation: spGlow 5s ease-in-out infinite;
}
@keyframes spSway { 0%, 100% { transform: rotateY(-16deg); } 50% { transform: rotateY(16deg); } }
@keyframes spGlow { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.carousel-3d-card a {
    position: absolute; left: 0; top: 0; width: 0; height: 0;
    display: block;
    transform-style: preserve-3d;
    -webkit-user-drag: none;
    -webkit-tap-highlight-color: transparent;
}
.sp-strips { transform-style: preserve-3d; }
.sp-strip {
    position: absolute;
    display: block;
    background-repeat: no-repeat;
    filter: brightness(var(--b));
    transition: filter .35s ease;
    pointer-events: auto;
}
.carousel-3d-card.is-front .sp-strip { box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
.carousel-3d-card:hover.is-front .sp-strip { filter: brightness(1.12) saturate(1.1); }

.carousel-3d-card .card-content {
    position: absolute; left: 0; top: 0;
    padding: 10px 14px;
    text-align: center;
    background: rgba(8, 6, 24, .55);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    pointer-events: none;
    transition: opacity .35s ease;
}
.carousel-3d-card:not(.is-front) .card-content { opacity: 0; }
.carousel-3d-card .builder-name { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #cbbcff; }
.carousel-3d-card .card-content h3 { margin: 2px 0 0; font-size: 1.05rem; font-weight: 600; color: #fff; }

.carousel-3d-nav {
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    display: flex; gap: 18px; z-index: 300;
}
.carousel-3d-nav-button {
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff; cursor: pointer;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .22);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.carousel-3d-nav-button:hover { background: rgba(155, 92, 246, .35); box-shadow: 0 0 24px rgba(155, 92, 246, .5); transform: scale(1.06); }

@media (max-width: 768px) {
    .u3d-carousel-section { padding: 56px 0 70px; }
    .carousel-3d-nav { width: 100%; bottom: auto; top: 46%; transform: translateY(-50%); left: 0; justify-content: space-between; padding: 0 6px; gap: 0; pointer-events: none; }
    .carousel-3d-nav-button { width: 40px; height: 40px; font-size: 1.2rem; pointer-events: auto; background: rgba(8, 6, 24, .6); }
    .carousel-3d-card .card-content h3 { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
    .sp-strip, .carousel-3d-nav-button { transition: none; }
    .sp-sway, .sp-glow { animation: none; }
}

/* ---------- Futuristic feature cards ---------- */
.webverse-platform-section {
    background:
        radial-gradient(60% 40% at 15% 0%, rgba(108, 92, 231, .22), transparent 70%),
        radial-gradient(50% 40% at 90% 100%, rgba(232, 108, 240, .16), transparent 70%),
        #05030f;
}
.features-grid { gap: 28px; }

.feature-card-webverse {
    position: relative;
    display: flex; flex-direction: column;
    padding: 18px 18px 22px;
    border-radius: 26px;
    border: 1px solid transparent;
    background:
        linear-gradient(165deg, rgba(26, 20, 60, .88), rgba(10, 8, 28, .92)) padding-box,
        linear-gradient(140deg, rgba(155, 92, 246, .55), rgba(255, 255, 255, .06) 38%, rgba(232, 108, 240, .45)) border-box;
    box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .9);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    overflow: hidden;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}
.feature-card-webverse::before {
    content: ''; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 80%;
    background: radial-gradient(closest-side, rgba(155, 92, 246, .28), transparent);
    opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
.feature-card-webverse:hover { background: linear-gradient(165deg, rgba(30, 22, 70, .92), rgba(12, 9, 32, .95)) padding-box, linear-gradient(140deg, rgba(185, 130, 255, .9), rgba(255, 255, 255, .1) 40%, rgba(232, 108, 240, .8)) border-box; transform: translateY(-8px); box-shadow: 0 36px 80px -26px rgba(124, 92, 255, .55); }
.feature-card-webverse:hover::before { opacity: 1; }
.feature-card-webverse:hover h3 { color: #fff; }
.feature-card-webverse:hover p { color: #d6d0f2; }

/* media first, then text */
.feature-card-webverse .card-image { order: -1; height: auto; aspect-ratio: 16 / 10; border-radius: 18px; margin-bottom: 18px; background: #0b0820; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 40px -22px rgba(124, 92, 255, .6); }
.feature-card-webverse .card-image img,
.feature-card-webverse .card-image video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.feature-card-webverse .card-image:hover img,
.feature-card-webverse .card-image:hover video { transform: scale(1.05); }
.feature-card-webverse .card-image.card-map { height: auto; }
.feature-card-webverse .card-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: invert(.92) hue-rotate(200deg) saturate(.8) brightness(.95); }
.feature-card-webverse .card-video::after {
    content: 'LIVE'; position: absolute; top: 12px; left: 12px;
    font-size: .65rem; letter-spacing: .16em; font-weight: 700; color: #fff;
    padding: 4px 10px 4px 22px; border-radius: 999px;
    background: rgba(8, 6, 24, .6); border: 1px solid rgba(255, 255, 255, .2);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    pointer-events: none;
}
.feature-card-webverse .card-video::before {
    content: ''; position: absolute; top: 21px; left: 22px; width: 7px; height: 7px; border-radius: 50%;
    background: #ff5d8f; box-shadow: 0 0 10px #ff5d8f; z-index: 1; animation: wvPulse 1.6s ease-in-out infinite;
}
@keyframes wvPulse { 50% { opacity: .35; transform: scale(.8); } }

.feature-card-webverse .card-header { gap: .8rem; margin-bottom: .6rem; padding: 0 4px; }
.feature-card-webverse .card-number {
    width: 34px; height: 34px; border-radius: 12px; font-size: .9rem; color: #fff;
    background: linear-gradient(135deg, #7c5cff, #e86cf0);
    box-shadow: 0 8px 20px -6px rgba(155, 92, 246, .8);
}
.feature-card-webverse:hover .card-number { background: linear-gradient(135deg, #9b7bff, #ff8be8); color: #fff; }
.feature-card-webverse h3 { font-family: 'Poppins', sans-serif; font-size: 1.25rem; font-weight: 600; letter-spacing: .01em; color: #f4f2ff; }
.feature-card-webverse p { margin: 0 4px; color: #a9a6c4; font-size: .95rem; line-height: 1.65; }

@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr; gap: 22px; }
    .feature-card-webverse { padding: 14px 14px 18px; border-radius: 22px; }
    .feature-card-webverse:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .feature-card-webverse, .feature-card-webverse .card-image img, .feature-card-webverse .card-image video { transition: none; }
    .feature-card-webverse .card-video::before { animation: none; }
}

/* compact heading block so the whole banner fits the first screen */
.u3d-carousel-section .section-title { font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.2; margin: 0 auto .35rem; max-width: 1100px; }
.u3d-carousel-section .section-subtitle { margin: 0 auto .35rem; font-size: 1rem; }
.mobile-click-prompt { margin: 0 0 .4rem; font-size: .8rem; }
.u3d-carousel-section .seo-support-text { margin: 10px auto 0; font-size: .9rem; max-width: 860px; }
@media (max-width: 768px) { .u3d-carousel-section { padding: 84px 0 36px; } .u3d-carousel-section .section-title { font-size: 1.35rem; } }

/* ---- glass heading panel ---- */
.sp-head {
    display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
    max-width: min(1120px, 94vw);
    margin: 0 auto 6px;
    padding: 16px 34px 14px;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 18px 50px -22px rgba(124, 92, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .18);
    -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
}
.sp-head .section-title { margin: 0; font-size: clamp(1.35rem, 2.1vw, 1.9rem); letter-spacing: .005em; }
.sp-head .sp-sub { margin: 0; font-size: .95rem; color: #c9c4e6; letter-spacing: .02em; }
.sp-head .sp-hint {
    display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 0;
    padding: 5px 14px; border-radius: 999px; font-size: .74rem; letter-spacing: .06em; color: #d9ccff;
    background: rgba(155, 92, 246, .16); border: 1px solid rgba(190, 160, 255, .3);
}
.sp-dot { width: 6px; height: 6px; border-radius: 50%; background: #e86cf0; box-shadow: 0 0 10px #e86cf0; animation: wvPulse 1.8s ease-in-out infinite; }
.u3d-carousel-section { text-align: center; }
@media (max-width: 768px) { .sp-head { padding: 12px 16px; border-radius: 18px; } .sp-head .section-title { font-size: 1.15rem; } .sp-head .sp-hint { font-size: .68rem; } }

/* light beam: ties the logo to the turntable */
.sp-beam {
    position: absolute;
    background: linear-gradient(to top, rgba(155, 92, 246, .0), rgba(155, 92, 246, .22) 60%, rgba(232, 108, 240, .0));
    clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
    transform: translateZ(-30px);
    pointer-events: none;
}

/* smaller, glassier project label */
.carousel-3d-card .card-content {
    padding: 6px 10px; border-radius: 12px;
    background: rgba(12, 9, 34, .34);
    border: 1px solid rgba(255, 255, 255, .22);
    -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4);
    box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.carousel-3d-card .builder-name { font-size: .58rem; letter-spacing: .14em; }
.carousel-3d-card .card-content h3 { font-size: .85rem; margin-top: 1px; }

.carousel-3d-card .card-content { white-space: nowrap; }

/* ---- v3: heading is glassy TEXT (no box); smaller label ---- */
.sp-head { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; margin: 0 auto 4px; gap: 4px; border-radius: 0; }
.sp-head .section-title {
    background: linear-gradient(180deg, #ffffff 0%, #e4dcff 50%, #b3a4ff 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
    filter: drop-shadow(0 2px 16px rgba(155, 92, 246, .45));
    font-weight: 600; letter-spacing: .01em;
}
.sp-head .sp-sub { color: rgba(228, 222, 255, .78); font-weight: 300; letter-spacing: .08em; font-size: .9rem; }
.sp-head .sp-hint { background: none; border: 0; padding: 0; margin-top: 2px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #b7a6ff; }
.carousel-3d-card .card-content { padding: .45em .8em .5em; border-radius: .9em; line-height: 1.15; }
.carousel-3d-card .builder-name { font-size: .62em; letter-spacing: .14em; }
.carousel-3d-card .card-content h3 { font-size: 1em; margin: .12em 0 0; font-weight: 600; }

/* logo is revealed by motion only (opacity driven by --lo from JS) */
.sp-layer, .sp-glow { opacity: var(--lo, 0); }
.sp-glow { animation: none; }

/* ---- v6: per-project bevelled frame (accent colour sampled from each image) + no outer ring ---- */
.carousel-3d-card { --ac1: #a79ed6; --ac2: #a79ed6; }
.carousel-3d-card.is-front { --ac1: #d2cbf3; --ac2: #d2cbf3; }
.carousel-3d-card.carousel-3d-card .sp-strip { box-shadow: inset 0 2px 0 var(--ac1), inset 0 3px 0 rgba(0, 0, 0, .22), inset 0 -2px 0 var(--ac2), inset 0 -3px 0 rgba(0, 0, 0, .22); }
.carousel-3d-card.carousel-3d-card .sp-strip.is-first { box-shadow: inset 2px 0 0 var(--ac1), inset 3px 0 0 rgba(0, 0, 0, .22), inset 0 2px 0 var(--ac1), inset 0 3px 0 rgba(0, 0, 0, .22), inset 0 -2px 0 var(--ac2), inset 0 -3px 0 rgba(0, 0, 0, .22); }
.carousel-3d-card.carousel-3d-card .sp-strip.is-last  { box-shadow: inset -2px 0 0 var(--ac2), inset -3px 0 0 rgba(0, 0, 0, .22), inset 0 2px 0 var(--ac1), inset 0 3px 0 rgba(0, 0, 0, .22), inset 0 -2px 0 var(--ac2), inset 0 -3px 0 rgba(0, 0, 0, .22); }
.carousel-3d-card .builder-name { color: #cbbcff; }
.carousel-3d-card:hover.is-front .sp-strip { filter: brightness(1.06); }

.carousel-3d-card.is-front.is-front .sp-strip { filter: brightness(1.04); }

/* ---- v7: all-device behaviour ---- */
.carousel-3d-container { -webkit-tap-highlight-color: transparent; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.carousel-3d-card a { -webkit-touch-callout: none; }
.sp-strip { transition: none; }
@media (max-width: 768px) { .sp-head .sp-sub { font-size: .8rem; letter-spacing: .04em; } .sp-head .sp-hint { font-size: .62rem; letter-spacing: .1em; text-align: center; } }

/* ---- v8: lighter label (no backdrop blur inside the 3D scene), room below the carousel ---- */
.carousel-3d-card .card-content { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(12, 9, 34, .62); }
.u3d-carousel-section { padding-bottom: 96px; }
@media (max-width: 768px) { .u3d-carousel-section { padding-bottom: 64px; } }

/* ---- v9: no unstyled flash; the finished carousel fades in once ---- */
.carousel-3d-container { height: 360px; opacity: 0; transition: opacity .8s ease; }
.carousel-3d-container.sp-ready { opacity: 1; }
.carousel-3d-card img { display: none; }
@media (max-width: 768px) { .carousel-3d-container { height: 300px; } }
@media (prefers-reduced-motion: reduce) { .carousel-3d-container { transition: none; } }
