/* ==========================================================================
   Vuln-X landing page - 3D design, v2 (index.php ONLY)
   Scoped to body.landing-3d / .l3d-* so no other page is affected.
   Visual only: no text, link, form, route or PHP behaviour is touched.
   The hero object is built from CSS 3D layers (no WebGL, no dependencies, so
   there is no context-loss or loading failure to handle and it works with JS off).
   Existing entrance animations are reconciled here (see section 6), never stacked.
   ========================================================================== */

body.landing-3d {
    --l3d-ice: #7DD8FC;
    --l3d-cyan: #38BDF8;
    --l3d-deep: #0284C7;
    --l3d-edge: rgba(125, 216, 252, 0.20);
    --l3d-edge-soft: rgba(255, 255, 255, 0.07);
    --l3d-hi: inset 0 1px 0 rgba(255, 255, 255, 0.075);
    /* "sidewall": a solid lower edge reads as the slab's thickness */
    --l3d-side: 0 4px 0 #04070b;
    --l3d-contact: 0 14px 16px -10px rgba(0, 0, 0, 0.95), 0 26px 40px -22px rgba(0, 0, 0, 0.85);
    --l3d-panel: linear-gradient(180deg, #131c27 0%, #0d141c 100%);
    --l3d-s: 250px;                                   /* hero object width */
    --l3d-shape: polygon(50% 0%, 93% 24%, 93% 76%, 50% 100%, 7% 76%, 7% 24%);
}
@media (min-width: 768px)  { body.landing-3d { --l3d-s: 280px; } }
@media (min-width: 1200px) { body.landing-3d { --l3d-s: 330px; } }
@media (max-width: 400px)  { body.landing-3d { --l3d-s: 224px; } }

html:has(body.landing-3d) { scroll-padding-top: 90px; }
body.landing-3d section[id] { scroll-margin-top: 90px; }

/* ---------- 1. Scene: soft lighting + faint floor (fixed, decorative) ---------- */
.l3d-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; contain: layout paint; }
.l3d-bg .l3d-orb { position: absolute; border-radius: 50%; translate: calc(var(--l3d-mx, 0) * 12px) calc(var(--l3d-my, 0) * 12px); }
.l3d-bg .l3d-orb.o1 { width: min(70vw, 760px); height: min(70vw, 760px); top: -20vh; left: -16vw;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.13) 0%, rgba(56, 189, 248, 0.035) 44%, transparent 68%); }
.l3d-bg .l3d-orb.o2 { width: min(64vw, 680px); height: min(64vw, 680px); top: 34vh; right: -20vw;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.13) 0%, rgba(2, 132, 199, 0.035) 44%, transparent 68%);
    translate: calc(var(--l3d-mx, 0) * -14px) calc(var(--l3d-my, 0) * -10px); }
.l3d-bg .l3d-floor { position: absolute; left: -60%; right: -60%; bottom: -8vh; height: 55vh;
    background-image: linear-gradient(rgba(125, 216, 252, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(125, 216, 252, 0.08) 1px, transparent 1px);
    background-size: 64px 64px; transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%;
    -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 76%); mask-image: linear-gradient(to top, #000 0%, transparent 76%); opacity: 0.4; }

/* Content above the scene. No `position` on the navbar (it may be sticky/fixed): z-index only. */
body.landing-3d > section, body.landing-3d > footer { position: relative; z-index: 1; }
body.landing-3d > nav.navbar { z-index: 30; }

body.landing-3d .hero-section { background: transparent; }

/* ---------- 2. Header: floating glass bar (position behaviour untouched) ---------- */
body.landing-3d .navbar {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 62%, rgba(0, 0, 0, 0) 100%) !important;
    border-bottom: 0; -webkit-backdrop-filter: none; backdrop-filter: none;
}
body.landing-3d .navbar > .container-fluid {
    max-width: 1320px; margin-inline: auto; padding: 0.6rem 1.1rem;
    border: 1px solid var(--l3d-edge-soft); border-top-color: rgba(255, 255, 255, 0.13); border-radius: 18px;
    background: linear-gradient(180deg, rgba(27, 36, 48, 0.9) 0%, rgba(9, 13, 19, 0.94) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 3px 0 rgba(2, 4, 7, 0.9), 0 18px 30px -14px rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
body.landing-3d .navbar-toggler { border-color: var(--l3d-edge-soft); box-shadow: var(--l3d-hi); }

/* ---------- 3. HERO: composed text + 3D security object ---------- */
body.landing-3d .hero-section { padding: 5rem 0 4.5rem; }
body.landing-3d .l3d-brand-label { display: flex; flex-direction: column; align-items: center; }
@media (min-width: 992px) {
    body.landing-3d .hero-section { text-align: left !important; padding: 4.5rem 0 5rem; }
    /* Two explicit rows. Row 1 = text group | logo housing, both centred on the row's centre line.
       Everything else is placed in its own later row, so nothing can push the logo down. */
    body.landing-3d .l3d-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); column-gap: clamp(2rem, 4vw, 4rem); align-items: center; }
    body.landing-3d .l3d-hero-grid > .l3d-hero-copy { grid-column: 1; grid-row: 1; align-self: center; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
    body.landing-3d .l3d-hero-grid > .hero-brand { grid-column: 2; grid-row: 1; align-self: center; justify-self: center; margin-bottom: 0;
        /* rows 1 and 3 size to the same height (the label), so the housing - not the label or rings - sits on the brand column's centre */
        display: grid; grid-template-rows: 1fr auto 1fr; justify-items: center; }
    body.landing-3d .l3d-hero-grid > .hero-brand > .l3d-stage { grid-row: 2; margin-bottom: 0; }
    body.landing-3d .l3d-hero-grid > .hero-brand > .l3d-brand-label { grid-row: 3; align-self: start; margin-top: 1.4rem; }
    body.landing-3d .l3d-hero-grid > .hero-tech-row { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
    body.landing-3d .l3d-hero-grid > .live-scan-container { grid-column: 1 / -1; grid-row: 3; justify-self: start; width: 100%; margin-left: 0; margin-right: 0; }
    body.landing-3d .l3d-hero-grid > .mt-3 { grid-column: 1 / -1; grid-row: 4; justify-self: start; }
    body.landing-3d .l3d-hero-copy .hero-desc { margin-left: 0 !important; margin-right: 0 !important; width: 100%; max-width: 40rem; }
    body.landing-3d .l3d-hero-copy .hero-cta { justify-content: flex-start !important; }
    body.landing-3d .l3d-hero-copy h1 { text-wrap: balance; }
}

/* the object: a hex "security housing", extruded in 20 slices, with the real logo on its face */
body.landing-3d .l3d-stage {
    position: relative; width: var(--l3d-s); height: calc(var(--l3d-s) * 1.12); margin: 0 auto 1.4rem;
    perspective: 1200px; perspective-origin: 50% 42%;
    animation: l3dStageIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s backwards;
}
@keyframes l3dStageIn { from { opacity: 0; scale: 0.94; } to { opacity: 1; scale: 1; } }
body.landing-3d .l3d-obj {
    position: absolute; inset: 0; transform-style: preserve-3d;
    transform: rotateX(calc(9deg + var(--l3d-py, 0) * -4deg)) rotateY(calc(-21deg + var(--l3d-px, 0) * 6deg));
    animation: l3dBob 8s ease-in-out 1s infinite alternate;
}
@keyframes l3dBob { from { translate: 0 0; } to { translate: 0 -7px; } }
body.landing-3d .l3d-layers { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }

body.landing-3d .l3d-slab, body.landing-3d .l3d-face, body.landing-3d .l3d-plate { position: absolute; inset: 0; clip-path: var(--l3d-shape); }
body.landing-3d .l3d-face  { transform: translateZ(2px);
    background: linear-gradient(135deg, #bdeeff 0%, #52b9e6 14%, #1c6a94 34%, #0b2a40 58%, #0a1f30 72%, #2a86b3 100%); }
body.landing-3d .l3d-plate { inset: 5.5%; transform: translateZ(3px);
    background: radial-gradient(120% 70% at 28% 0%, rgba(125, 216, 252, 0.18), transparent 55%), linear-gradient(160deg, #142230 0%, #0a1119 60%, #0d1824 100%); }
body.landing-3d .l3d-disc { position: absolute; left: 50%; top: 50%; width: 66%; aspect-ratio: 1; margin: 0; translate: -50% -50%; border-radius: 50%;
    transform: translateZ(6px);
    background: radial-gradient(circle at 50% 36%, #132232 0%, #080e15 72%);
    box-shadow: inset 0 0 0 2px rgba(125, 216, 252, 0.38), inset 0 8px 16px rgba(0, 0, 0, 0.85), 0 0 0 5px #0b141d, 0 0 0 6.5px rgba(125, 216, 252, 0.22); }
/* two structural arcs behind the housing, at different depths */
body.landing-3d .l3d-arc { position: absolute; left: 50%; top: 50%; border-radius: 50%;
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.4px)); }
body.landing-3d .l3d-arc.a1 { width: calc(var(--l3d-s) * 1.5); height: calc(var(--l3d-s) * 1.5); margin: calc(var(--l3d-s) * -0.75) 0 0 calc(var(--l3d-s) * -0.75);
    background: conic-gradient(transparent 0deg 24deg, rgba(125, 216, 252, 0.95) 24deg 84deg, transparent 84deg 262deg, rgba(56, 189, 248, 0.55) 262deg 318deg, transparent 318deg 360deg);
    transform: translateZ(-36px); }
body.landing-3d .l3d-arc.a2 { width: calc(var(--l3d-s) * 1.86); height: calc(var(--l3d-s) * 1.86); margin: calc(var(--l3d-s) * -0.93) 0 0 calc(var(--l3d-s) * -0.93); opacity: 0.65;
    background: conic-gradient(transparent 0deg 52deg, rgba(56, 189, 248, 0.85) 52deg 108deg, transparent 108deg 296deg, rgba(125, 216, 252, 0.75) 296deg 350deg, transparent 350deg 360deg);
    transform: translateZ(-78px); }
.l3d-slab.s1{transform:translateZ(-2.5px);background:hsl(203 60% 38.0%)}
.l3d-slab.s2{transform:translateZ(-5px);background:hsl(203 59% 36.7%)}
.l3d-slab.s3{transform:translateZ(-7.5px);background:hsl(203 58% 35.3%)}
.l3d-slab.s4{transform:translateZ(-10px);background:hsl(203 58% 34.0%)}
.l3d-slab.s5{transform:translateZ(-12.5px);background:hsl(203 57% 32.6%)}
.l3d-slab.s6{transform:translateZ(-15px);background:hsl(203 56% 31.3%)}
.l3d-slab.s7{transform:translateZ(-17.5px);background:hsl(203 55% 29.9%)}
.l3d-slab.s8{transform:translateZ(-20px);background:hsl(203 55% 28.6%)}
.l3d-slab.s9{transform:translateZ(-22.5px);background:hsl(203 54% 27.2%)}
.l3d-slab.s10{transform:translateZ(-25px);background:hsl(203 53% 25.9%)}
.l3d-slab.s11{transform:translateZ(-27.5px);background:hsl(203 52% 24.5%)}
.l3d-slab.s12{transform:translateZ(-30px);background:hsl(203 51% 23.2%)}
.l3d-slab.s13{transform:translateZ(-32.5px);background:hsl(203 51% 21.8%)}
.l3d-slab.s14{transform:translateZ(-35px);background:hsl(203 50% 20.5%)}
.l3d-slab.s15{transform:translateZ(-37.5px);background:hsl(203 49% 19.1%)}
.l3d-slab.s16{transform:translateZ(-40px);background:hsl(203 48% 17.8%)}
.l3d-slab.s17{transform:translateZ(-42.5px);background:hsl(203 47% 16.4%)}
.l3d-slab.s18{transform:translateZ(-45px);background:hsl(203 47% 15.1%)}
.l3d-slab.s19{transform:translateZ(-47.5px);background:hsl(203 46% 13.7%)}
.l3d-slab.s20{transform:translateZ(-50px);background:hsl(203 45% 12.4%)}
.l3d-slab.s21{transform:translateZ(-52.5px);background:hsl(203 44% 11.0%)}
.l3d-slab.s22{transform:translateZ(-55px);background:hsl(203 44% 9.7%)}
.l3d-slab.s23{transform:translateZ(-57.5px);background:hsl(203 43% 8.3%)}
.l3d-slab.s24{transform:translateZ(-60px);background:hsl(203 42% 7.0%)}

/* the real logo, unchanged, sits on the face */
body.landing-3d .l3d-obj .hero-emblem {
    position: absolute; left: 50%; top: 50%; width: calc(var(--l3d-s) * 0.4); height: auto; margin: 0; z-index: auto;
    translate: -50% -50% 14px;                       /* `translate` keeps the page's own transform animation intact */
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.65));
}
/* grounding: contact shadow + platform lines on the floor */
body.landing-3d .l3d-ground { position: absolute; left: 50%; bottom: -3%; width: 112%; height: 15%; translate: -50% 0; pointer-events: none;
    background: radial-gradient(closest-side, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 55%, transparent 100%); }
body.landing-3d .l3d-ground::after { content: ""; position: absolute; inset: 14% 8%; border-radius: 50%; border: 1px solid rgba(125, 216, 252, 0.3);
    box-shadow: 0 0 22px rgba(56, 189, 248, 0.22), inset 0 0 22px rgba(56, 189, 248, 0.12); }
body.landing-3d .hero-glow { top: calc(var(--l3d-s) * 0.56); width: calc(var(--l3d-s) * 1.9); height: calc(var(--l3d-s) * 1.9); transform: translate(-50%, -50%); }
body.landing-3d .l3d-paused .l3d-obj, body.landing-3d .l3d-paused.l3d-obj { animation-play-state: paused; }

body.landing-3d .hero-section h1 { text-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 32px rgba(0, 0, 0, 0.65); }
body.landing-3d .hero-wordmark { filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.55)); }
body.landing-3d :is(.owasp-badge, .ethical-badge) { box-shadow: var(--l3d-hi), 0 6px 14px -8px rgba(0, 0, 0, 0.8); background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)); }

/* ---------- 4. Section materials (each section gets its own treatment) ---------- */
body.landing-3d .l3d-band { background-color: transparent !important; position: relative;
    background-image: linear-gradient(180deg, rgba(2, 132, 199, 0.08) 0%, rgba(8, 20, 33, 0.35) 50%, rgba(2, 132, 199, 0.065) 100%) !important;
    box-shadow: inset 0 1px 0 rgba(125, 216, 252, 0.09), inset 0 -1px 0 rgba(0, 0, 0, 0.65), inset 0 28px 44px -32px rgba(0, 0, 0, 0.8), inset 0 -28px 44px -32px rgba(0, 0, 0, 0.8); }
body.landing-3d .l3d-band-steps { background-image:
    linear-gradient(rgba(125, 216, 252, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(125, 216, 252, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(2, 132, 199, 0.08) 0%, rgba(8, 20, 33, 0.35) 50%, rgba(2, 132, 199, 0.065) 100%) !important;
    background-size: 44px 44px, 44px 44px, auto !important; }

/* FEATURES: technical panels - solid sidewall, hairline top edge, corner tick */
body.landing-3d .feature-card { background: var(--l3d-panel); border: 1px solid rgba(125, 216, 252, 0.09); border-top-color: rgba(125, 216, 252, 0.26); border-radius: 10px;
    box-shadow: var(--l3d-hi), var(--l3d-side), var(--l3d-contact); }
body.landing-3d .feature-card::after { content: ""; position: absolute; top: 10px; right: 10px; width: 11px; height: 11px; border-top: 1px solid rgba(125, 216, 252, 0.5); border-right: 1px solid rgba(125, 216, 252, 0.5); pointer-events: none; }
body.landing-3d .feature-icon { filter: drop-shadow(0 4px 8px rgba(56, 189, 248, 0.3)); }

/* WORKFLOW: connected progression */
body.landing-3d .how-it-works-step { background: var(--l3d-panel); border-top-color: var(--l3d-edge-soft); border-right-color: var(--l3d-edge-soft); border-bottom-color: var(--l3d-edge-soft);
    box-shadow: var(--l3d-hi), var(--l3d-side), var(--l3d-contact); }
body.landing-3d :is(.step-number, .step-icon) { box-shadow: var(--l3d-hi), 0 8px 16px -8px rgba(0, 0, 0, 0.8); }
@media (min-width: 768px) {
    body.landing-3d .l3d-steps > [class*="col-"] { position: relative; }
    body.landing-3d .l3d-steps > [class*="col-"]:not(:last-child)::after { content: ""; position: absolute; top: 3.1rem; left: calc(100% - 0.75rem); width: 1.5rem; height: 2px; z-index: 2; pointer-events: none;
        background: linear-gradient(90deg, rgba(56, 189, 248, 0.9), rgba(56, 189, 248, 0.25)); box-shadow: 0 0 10px rgba(56, 189, 248, 0.5); }
}

/* CONSOLE: terminal and scan preview framed as device surfaces */
body.landing-3d :is(.terminal-preview, .live-scan-container) { position: relative; isolation: isolate; border-radius: 14px; border: 1px solid var(--l3d-edge);
    background: linear-gradient(180deg, #0b1118 0%, #05080c 100%);
    box-shadow: var(--l3d-hi), 0 0 0 1px rgba(0, 0, 0, 0.7), var(--l3d-side), 0 24px 40px -18px rgba(0, 0, 0, 0.9), 0 0 50px -22px rgba(56, 189, 248, 0.35); }
body.landing-3d .terminal-preview { padding-top: 3rem; }
body.landing-3d .terminal-preview::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2.1rem; border-radius: 14px 14px 0 0; pointer-events: none;
    background: radial-gradient(circle at 1.15rem 50%, #ef6a6a 0 4px, transparent 4.5px), radial-gradient(circle at 2.15rem 50%, #e6b450 0 4px, transparent 4.5px), radial-gradient(circle at 3.15rem 50%, #58c785 0 4px, transparent 4.5px),
        linear-gradient(180deg, #1a2430, #0f1620);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06); }

/* SCREENSHOTS: dimensional presentation frames */
body.landing-3d .ui-preview { perspective: 1500px; }
body.landing-3d .ui-preview img { padding: 8px; border: 1px solid rgba(125, 216, 252, 0.22); border-radius: 16px;
    background: linear-gradient(145deg, #2b3b4d 0%, #0d151e 55%, #1a2634 100%);
    rotate: 0 1 0 -4deg; transform-origin: 50% 50%; transform: none;
    box-shadow: var(--l3d-hi), 0 6px 0 #04070b, 0 34px 50px -24px rgba(0, 0, 0, 0.9), 0 0 60px -26px rgba(56, 189, 248, 0.4);
    transition: rotate 0.35s ease, box-shadow 0.35s ease; }
body.landing-3d .ui-preview:hover img { rotate: 0 1 0 0deg; transform: none; }

/* PRICING: easy comparison, refined emphasis on the highlighted plan */
body.landing-3d .pricing-card { background: linear-gradient(180deg, #151f2b 0%, #0c131b 100%); border: 1px solid rgba(125, 216, 252, 0.10); border-top-color: rgba(125, 216, 252, 0.3); border-radius: 16px;
    box-shadow: var(--l3d-hi), var(--l3d-side), var(--l3d-contact); }
body.landing-3d .pricing-card.popular { border-color: rgba(56, 189, 248, 0.75); border-top-color: var(--l3d-ice);
    background: linear-gradient(180deg, #16293a 0%, #0c1824 100%);
    box-shadow: var(--l3d-hi), 0 5px 0 #031019, 0 30px 50px -22px rgba(0, 0, 0, 0.9), 0 0 56px -12px rgba(56, 189, 248, 0.45); }
body.landing-3d .pricing-card.popular::after { content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 2px; pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--l3d-ice), transparent); box-shadow: 0 0 14px rgba(125, 216, 252, 0.8); }
@media (min-width: 992px) { body.landing-3d .pricing-card.popular { translate: 0 -10px; } body.landing-3d .pricing-card.popular:hover { translate: 0 -16px; } }

/* AUDIENCE + QUOTES: softer, lighter material (no sidewall) */
body.landing-3d :is(.testimonial-card, .quote-block, .disclaimer-box) { background: linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.018) 60%, rgba(2, 132, 199, 0.045) 100%);
    box-shadow: var(--l3d-hi), 0 12px 24px -14px rgba(0, 0, 0, 0.85); }
body.landing-3d :is(.testimonial-card, .disclaimer-box) { border-color: var(--l3d-edge-soft); border-radius: 16px; }
body.landing-3d .quote-block { border-top-color: var(--l3d-edge-soft); border-right-color: var(--l3d-edge-soft); border-bottom-color: var(--l3d-edge-soft); }
body.landing-3d .stat-item { min-width: 9rem; padding: 1rem 1.5rem; border: 1px solid var(--l3d-edge-soft); border-radius: 12px; background: var(--l3d-panel); box-shadow: var(--l3d-hi), 0 3px 0 #04070b, 0 14px 18px -12px rgba(0, 0, 0, 0.9); }

/* FAQ: calm rows, clear expanded state */
body.landing-3d .accordion-item { background: rgba(255, 255, 255, 0.025) !important; border: 1px solid var(--l3d-edge-soft) !important; border-radius: 12px !important; box-shadow: var(--l3d-hi); transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
body.landing-3d .accordion-item:has(.accordion-button:not(.collapsed)) { background: rgba(56, 189, 248, 0.06) !important; border-color: rgba(56, 189, 248, 0.32) !important;
    box-shadow: var(--l3d-hi), inset 3px 0 0 var(--l3d-cyan), 0 18px 30px -20px rgba(0, 0, 0, 0.9); }

/* FORM FIELDS: pressed-in */
body.landing-3d .newsletter-box { background: var(--l3d-panel); border-color: var(--l3d-edge-soft); border-radius: 16px; box-shadow: var(--l3d-hi), var(--l3d-side), var(--l3d-contact); }
body.landing-3d .newsletter-box .form-control { box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.65), 0 1px 0 rgba(255, 255, 255, 0.05); }
body.landing-3d .newsletter-box .form-control:focus { box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.65), 0 0 0 3px rgba(125, 216, 252, 0.35); }

body.landing-3d .pre-footer { background: linear-gradient(180deg, rgba(5, 5, 5, 0.5) 0%, rgba(9, 14, 20, 0.88) 100%); box-shadow: inset 0 1px 0 rgba(125, 216, 252, 0.1); }
body.landing-3d .section-header { text-shadow: 0 10px 26px rgba(0, 0, 0, 0.55); }
body.landing-3d .section-header::after { box-shadow: 0 0 14px rgba(56, 189, 248, 0.6); }

/* FOOTER: grounded finish - a floor plane fades in along its top edge */
body.landing-3d .footer-main { isolation: isolate; overflow: hidden; background: linear-gradient(180deg, #0b1118 0%, #05080c 100%);
    border-top: 1px solid rgba(125, 216, 252, 0.14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 -30px 60px -30px rgba(0, 0, 0, 0.9); }
body.landing-3d .footer-main::before { content: ""; position: absolute; left: -20%; right: -20%; top: 0; height: 170px; z-index: -1; pointer-events: none;
    background-image: linear-gradient(rgba(125, 216, 252, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(125, 216, 252, 0.07) 1px, transparent 1px); background-size: 56px 56px;
    transform: perspective(260px) rotateX(-52deg); transform-origin: 50% 0; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); mask-image: linear-gradient(to bottom, #000, transparent 85%); }
body.landing-3d .footer-col .social-links a { box-shadow: var(--l3d-hi), 0 3px 0 #04070b, 0 8px 12px -8px rgba(0, 0, 0, 0.85); transition: translate 0.2s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease; }
body.landing-3d .footer-col .social-links a:hover { transform: none; translate: 0 -3px; }

/* ---------- 5. Cards: shared mechanics (tilt composed through custom properties) ---------- */
body.landing-3d :is(.feature-card, .pricing-card, .testimonial-card, .how-it-works-step, .quote-block, .newsletter-box) { position: relative; isolation: isolate; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.landing-3d :is(.feature-card, .pricing-card, .testimonial-card):hover { transform: none; translate: 0 -5px; }
body.landing-3d .how-it-works-step:hover { transform: none; translate: 6px 0; }
body.landing-3d .quote-block:hover { transform: none; translate: 4px -2px; }
body.landing-3d :is(.feature-card, .pricing-card, .testimonial-card)[data-l3d-tilt] {
    transform: perspective(900px) rotateX(var(--l3d-rx, 0deg)) rotateY(var(--l3d-ry, 0deg)); }
body.landing-3d :is(.feature-card, .pricing-card, .testimonial-card):hover { border-color: rgba(56, 189, 248, 0.4); }
body.landing-3d .feature-card:hover { box-shadow: var(--l3d-hi), var(--l3d-side), 0 22px 34px -14px rgba(0, 0, 0, 0.95), 0 0 40px -12px rgba(56, 189, 248, 0.32); }

/* ---------- 6. Motion: reconcile existing entrances (no stacking) ---------- */
/* The page's own CSS entrance animations ran on load for cards that were still off-screen,
   and held a `transform` that blocked hover/tilt. They are replaced by ONE scroll-triggered
   reveal (landing-3d.js). Without JS, or with reduced motion, everything is simply visible. */
body.landing-3d :is(.feature-card, .pricing-card, .testimonial-card, .how-it-works-step, .ui-preview img) { animation: none; }
body.landing-3d :is(.feature-card, .pricing-card, .testimonial-card) {
    transition: transform 0.2s ease-out, translate 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.6s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
body.landing-3d :is(.how-it-works-step, .quote-block) { transition: translate 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.6s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease; }
body.landing-3d .l3d-done:is(.feature-card, .pricing-card, .testimonial-card) { transition: transform 0.2s ease-out, translate 0.25s ease, opacity 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
body.landing-3d .l3d-done:is(.how-it-works-step, .quote-block) { transition: translate 0.25s ease, opacity 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease; }
html.l3d-js body.landing-3d .l3d-pending { opacity: 0; translate: 0 20px; transition-delay: 0s; }
html.l3d-js body.landing-3d .ui-preview img.l3d-pending { translate: 0 20px; }

/* ---------- 7. Buttons ---------- */
body.landing-3d .btn-primary { background: linear-gradient(180deg, #38BDF8 0%, #0284C7 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), inset 0 -2px 0 rgba(1, 60, 96, 0.42), 0 1px 1px rgba(0, 0, 0, 0.4), 0 10px 22px -8px rgba(2, 132, 199, 0.75);
    translate: 0 0; transition: translate 0.18s ease, box-shadow 0.25s ease, filter 0.25s ease; }
body.landing-3d .btn-primary:hover { background: linear-gradient(180deg, #5CCBFA 0%, #0A8FD6 100%); translate: 0 -2px; filter: brightness(1.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -2px 0 rgba(1, 60, 96, 0.42), 0 1px 1px rgba(0, 0, 0, 0.4), 0 16px 28px -8px rgba(56, 189, 248, 0.65); }
body.landing-3d .btn-primary:active { translate: 0 1px; filter: brightness(0.96); box-shadow: inset 0 2px 5px rgba(0, 40, 70, 0.5), 0 4px 10px -6px rgba(2, 132, 199, 0.6); }
body.landing-3d :is(.btn-outline-light, .btn-outline-primary) { background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0));
    box-shadow: var(--l3d-hi), 0 3px 0 rgba(2, 4, 7, 0.85), 0 10px 16px -10px rgba(0, 0, 0, 0.9); translate: 0 0;
    transition: translate 0.18s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease; }
body.landing-3d :is(.btn-outline-light, .btn-outline-primary):hover { translate: 0 -2px; box-shadow: var(--l3d-hi), 0 3px 0 rgba(2, 4, 7, 0.85), 0 14px 24px -10px rgba(0, 0, 0, 0.95), 0 0 24px -8px rgba(56, 189, 248, 0.4); }
body.landing-3d :is(.btn-outline-light, .btn-outline-primary):active { translate: 0 1px; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5); }
body.landing-3d :is(.pricing-card .btn, .navbar-toggler) { min-height: 44px; }
body.landing-3d .btn:focus-visible { box-shadow: 0 0 0 3px rgba(125, 216, 252, 0.5); }

/* ---------- 8. Narrow screens ---------- */
@media (max-width: 767.98px) {
    .l3d-bg .l3d-floor { display: none; }
    body.landing-3d .navbar > .container-fluid { border-radius: 14px; padding: 0.5rem 0.85rem; }
    body.landing-3d .pricing-card.popular { translate: none; }
    body.landing-3d .hero-section { padding: 3.5rem 0 3rem; }
    body.landing-3d .ui-preview img { rotate: none; }
    body.landing-3d .l3d-arc.a2 { display: none; }
}

/* keep every ring fully inside its column on mid-size screens */
@media (max-width: 1199.98px) {
    body.landing-3d .l3d-arc.a2 { display: none; }
    body.landing-3d .l3d-arc.a1 { width: calc(var(--l3d-s) * 1.3); height: calc(var(--l3d-s) * 1.3); margin: calc(var(--l3d-s) * -0.65) 0 0 calc(var(--l3d-s) * -0.65); }
}

/* ---------- 9. Reduced motion: static composition, depth intact ---------- */
@media (prefers-reduced-motion: reduce) {
    body.landing-3d .l3d-stage, body.landing-3d .l3d-obj { animation: none !important; }
    body.landing-3d .l3d-obj { transform: rotateX(9deg) rotateY(-21deg) !important; translate: none; }
    body.landing-3d .l3d-obj .hero-emblem { animation: none !important; opacity: 1 !important; }
    html.l3d-js body.landing-3d .l3d-pending { opacity: 1 !important; translate: none !important; }
    body.landing-3d :is(.feature-card, .pricing-card, .testimonial-card, .how-it-works-step, .quote-block):hover,
    body.landing-3d :is(.btn-primary, .btn-outline-light, .btn-outline-primary):hover { translate: none; }
    body.landing-3d .pricing-card.popular, body.landing-3d .pricing-card.popular:hover { translate: none; }
    .l3d-bg .l3d-orb { translate: none !important; }
    body.landing-3d [data-l3d-tilt] { transform: none !important; }
    body.landing-3d *, body.landing-3d *::before, body.landing-3d *::after { animation: none !important; transition-duration: 0.01ms !important; }
    body.landing-3d :is(.hero-wordmark, .hero-subbrand, .scan-line) { opacity: 1 !important; transform: none !important; }
}
