/**
 * Landing page only — 3D spatial UI (scoped to .landing-3d)
 */
:root {
    --l3d-ink: #0a1628;
    --l3d-deep: #06101c;
    --l3d-teal: #0d7377;
    --l3d-teal-bright: #14a3a8;
    --l3d-copper: #c47245;
    --l3d-sand: #e8d5b5;
    --l3d-mist: rgba(232, 240, 248, 0.92);
    --l3d-glass: rgba(255, 255, 255, 0.08);
    --l3d-stroke: rgba(255, 255, 255, 0.14);
    --l3d-glow: rgba(20, 163, 168, 0.45);
    --l3d-font-display: "Syne", system-ui, sans-serif;
    --l3d-font-body: "Figtree", system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.landing-3d {
    margin: 0;
    min-height: 100vh;
    font-family: var(--l3d-font-body);
    color: var(--l3d-mist);
    background: var(--l3d-deep);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.landing-3d a {
    color: inherit;
    text-decoration: none;
}

/* —— Atmosphere —— */
.l3d-scene {
    position: relative;
    isolation: isolate;
}

.l3d-atmosphere {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 80% 60% at 15% 20%, rgba(13, 115, 119, 0.35), transparent 55%),
        radial-gradient(ellipse 70% 50% at 85% 10%, rgba(196, 114, 69, 0.18), transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(10, 40, 70, 0.9), transparent 60%),
        linear-gradient(165deg, #040a12 0%, #0a1628 45%, #061820 100%);
}

.l3d-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    transform: perspective(800px) rotateX(58deg) scale(1.8) translateY(-12%);
    transform-origin: center top;
    animation: l3d-grid-drift 28s linear infinite;
    pointer-events: none;
}

@keyframes l3d-grid-drift {
    from { background-position: 0 0, 0 0; }
    to { background-position: 0 64px, 64px 0; }
}

.l3d-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.55;
    animation: l3d-orb-float 12s ease-in-out infinite;
}

.l3d-orb--a {
    width: 340px;
    height: 340px;
    top: 8%;
    right: 8%;
    background: var(--l3d-glow);
}

.l3d-orb--b {
    width: 280px;
    height: 280px;
    bottom: 18%;
    left: 5%;
    background: rgba(196, 114, 69, 0.35);
    animation-delay: -4s;
}

.l3d-orb--c {
    width: 200px;
    height: 200px;
    top: 42%;
    left: 42%;
    background: rgba(20, 163, 168, 0.22);
    animation-delay: -7s;
    animation-duration: 16s;
}

/* Floating dust particles */
.l3d-dust {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.l3d-dust span {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(232, 240, 248, 0.55);
    box-shadow: 0 0 10px rgba(20, 163, 168, 0.55);
    animation: l3d-dust-drift 14s linear infinite;
    opacity: 0;
}

.l3d-dust span:nth-child(1) { left: 8%; top: 70%; animation-delay: 0s; animation-duration: 16s; }
.l3d-dust span:nth-child(2) { left: 18%; top: 80%; animation-delay: -2s; animation-duration: 18s; width: 2px; height: 2px; }
.l3d-dust span:nth-child(3) { left: 28%; top: 65%; animation-delay: -4s; animation-duration: 13s; }
.l3d-dust span:nth-child(4) { left: 42%; top: 85%; animation-delay: -1s; animation-duration: 20s; }
.l3d-dust span:nth-child(5) { left: 55%; top: 75%; animation-delay: -6s; animation-duration: 15s; width: 4px; height: 4px; }
.l3d-dust span:nth-child(6) { left: 68%; top: 68%; animation-delay: -3s; animation-duration: 17s; }
.l3d-dust span:nth-child(7) { left: 78%; top: 82%; animation-delay: -8s; animation-duration: 14s; }
.l3d-dust span:nth-child(8) { left: 88%; top: 72%; animation-delay: -5s; animation-duration: 19s; }
.l3d-dust span:nth-child(9) { left: 12%; top: 55%; animation-delay: -9s; animation-duration: 21s; width: 2px; height: 2px; }
.l3d-dust span:nth-child(10) { left: 72%; top: 48%; animation-delay: -7s; animation-duration: 12s; }

@keyframes l3d-dust-drift {
    0% { transform: translate3d(0, 40px, 0); opacity: 0; }
    15% { opacity: 0.7; }
    85% { opacity: 0.35; }
    100% { transform: translate3d(30px, -110vh, 0); opacity: 0; }
}

@keyframes l3d-orb-float {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(20px, -28px, 0) scale(1.08); }
}

/* —— Nav —— */
.l3d-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1.25rem, 4vw, 3rem);
    background: linear-gradient(180deg, rgba(4, 10, 18, 0.85), transparent);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.l3d-ready .l3d-nav {
    opacity: 1;
    transform: translateY(0);
}

.l3d-nav__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: "Times New Roman", Times, serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.l3d-nav__brand .l3d-brand-name em,
.l3d-brand em {
    font-style: italic;
    font-weight: inherit;
    color: #f5c518;
    -webkit-text-fill-color: #f5c518;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    filter: drop-shadow(0 0 10px rgba(245, 197, 24, 0.35));
}

.l3d-nav__brand .l3d-brand-i,
.l3d-brand .l3d-brand-i,
.l3d-typewriter__text .l3d-brand-i {
    display: inline-block;
    font-size: 1.35em;
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.04em;
    vertical-align: -0.06em;
}

.l3d-nav__brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}

.l3d-nav__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* —— Buttons —— */
.l3d-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    font-family: var(--l3d-font-body);
    font-weight: 600;
    font-size: 0.92rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    transform-style: preserve-3d;
}

.l3d-btn:hover {
    transform: translateY(-2px) translateZ(8px);
}

.l3d-btn--primary {
    background: linear-gradient(135deg, var(--l3d-teal-bright), var(--l3d-teal));
    color: #fff;
    box-shadow:
        0 12px 28px rgba(13, 115, 119, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.l3d-btn--shine::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
    transform: translateX(-120%);
    animation: l3d-shine 4.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes l3d-shine {
    0%, 55% { transform: translateX(-120%); }
    75%, 100% { transform: translateX(120%); }
}

.l3d-btn--primary:hover {
    box-shadow: 0 16px 36px rgba(13, 115, 119, 0.55);
}

.l3d-btn--ghost {
    background: var(--l3d-glass);
    border-color: var(--l3d-stroke);
    color: #fff;
    backdrop-filter: blur(12px);
}

.l3d-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.14);
}

.l3d-btn--lg {
    padding: 0.95rem 1.75rem;
    font-size: 1.02rem;
}

.l3d-btn--sm {
    padding: 0.45rem 0.95rem;
    font-size: 0.82rem;
}

/* —— Hero —— */
.l3d-hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    align-items: center;
    padding: clamp(5.5rem, 12vh, 7rem) clamp(1.25rem, 4vw, 3rem) 3rem;
    perspective: 1400px;
    position: relative;
}

.l3d-hero__stage {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 960px) {
    .l3d-hero__stage {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 3rem;
    }
}

.l3d-hero__copy {
    position: relative;
    z-index: 2;
}

.l3d-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.85rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--l3d-sand);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--l3d-stroke);
}

.l3d-rise-item {
    opacity: 0;
    transform: translateY(28px);
}

.l3d-ready .l3d-rise-item {
    animation: l3d-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--i, 0) * 0.1s + 0.05s);
}

@keyframes l3d-rise {
    from {
        opacity: 0;
        transform: translateY(28px) translateZ(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

.l3d-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: rgba(220, 230, 240, 0.55);
    animation: l3d-cue-bob 2.4s ease-in-out infinite;
    z-index: 5;
}

.l3d-scroll-cue i {
    font-size: 1.1rem;
}

@keyframes l3d-cue-bob {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.55; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

.l3d-brand {
    font-family: "Times New Roman", Times, serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 7vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    background: linear-gradient(120deg, #fff 20%, var(--l3d-sand) 55%, var(--l3d-teal-bright) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
}

.l3d-typewriter {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    min-height: 1.15em;
}

.l3d-typewriter__text {
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.l3d-typewriter__caret {
    display: inline-block;
    width: 0.08em;
    height: 0.85em;
    margin-left: 0.08em;
    background: #f5c518;
    border-radius: 1px;
    box-shadow: 0 0 12px rgba(245, 197, 24, 0.55);
    vertical-align: baseline;
    animation: l3d-caret-blink 0.9s steps(1) infinite;
}

.l3d-typewriter.is-done .l3d-typewriter__caret {
    opacity: 0.35;
}

@keyframes l3d-caret-blink {
    0%, 45% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .l3d-typewriter__caret {
        display: none;
    }
}

.l3d-headline {
    font-family: var(--l3d-font-display);
    font-weight: 600;
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    letter-spacing: -0.02em;
    margin: 0 0 0.65rem;
    color: rgba(255, 255, 255, 0.92);
}

.l3d-lead {
    margin: 0 0 1.75rem;
    max-width: 34rem;
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(220, 230, 240, 0.72);
}

.l3d-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* —— 3D Visual —— */
.l3d-visual {
    position: relative;
    height: clamp(280px, 42vw, 420px);
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    overflow: visible;
    animation: l3d-rise 1.1s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.l3d-world {
    position: relative;
    width: min(100%, 420px);
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateX(18deg) rotateY(-28deg);
    transition: transform 0.15s ease-out;
    will-change: transform;
    overflow: visible;
}

.l3d-plane {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-style: preserve-3d;
    border-radius: 1.25rem;
    border: 1px solid var(--l3d-stroke);
    /* No backdrop-filter: it hides icons inside preserve-3d in Chromium */
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(12, 28, 42, 0.9));
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    backface-visibility: visible;
}

.l3d-plane--base {
    width: 280px;
    height: 180px;
    margin: -90px 0 0 -140px;
    transform: translateZ(0) rotateX(72deg);
    background:
        linear-gradient(180deg, rgba(13, 115, 119, 0.25), rgba(10, 22, 40, 0.6)),
        linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent);
    animation: l3d-pulse-glow 5s ease-in-out infinite;
}

.l3d-plane--mid {
    width: 220px;
    height: 140px;
    margin: -120px 0 0 -110px;
    transform: translateZ(70px) rotateX(8deg);
    display: grid;
    place-items: center;
    gap: 0.35rem;
    padding: 1rem;
    text-align: center;
}

.l3d-plane--mid strong {
    font-family: var(--l3d-font-display);
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.l3d-plane--mid span {
    font-size: 0.78rem;
    opacity: 0.7;
}

/* —— Logo 3D Nexus (hero right) —— */
.l3d-visual--logo {
    height: clamp(340px, 52vw, 560px);
    cursor: grab;
    touch-action: none;
    user-select: none;
    perspective: 1600px;
    transform: translateZ(0);
}

.l3d-visual--logo.is-dragging {
    cursor: grabbing;
}

.l3d-world.l3d-world--logo,
.l3d-nexus {
    position: relative;
    width: min(100%, 520px);
    height: min(100%, 520px);
    max-height: 520px;
    aspect-ratio: 1 / 1;
    transform-style: preserve-3d;
    will-change: transform;
    overflow: visible;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.l3d-nexus__aura {
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 45%, rgba(20, 163, 168, 0.45), transparent 58%),
        radial-gradient(circle at 30% 70%, rgba(255, 209, 102, 0.12), transparent 45%);
    filter: blur(22px);
    transform: translateZ(-60px);
    pointer-events: none;
    animation: l3d-nexus-pulse 4.5s ease-in-out infinite;
}

.l3d-nexus__ring {
    position: absolute;
    left: 50%;
    top: 48%;
    border-radius: 50%;
    border: 1px solid rgba(20, 163, 168, 0.45);
    pointer-events: none;
    transform-style: preserve-3d;
}

.l3d-nexus__ring--a {
    width: 92%;
    height: 92%;
    margin: -46% 0 0 -46%;
    transform: rotateX(72deg) translateZ(-8px);
    border-color: rgba(20, 163, 168, 0.5);
    box-shadow: 0 0 40px rgba(20, 163, 168, 0.2);
    animation: l3d-nexus-spin 24s linear infinite;
}

.l3d-nexus__ring--b {
    width: 78%;
    height: 78%;
    margin: -39% 0 0 -39%;
    transform: rotateX(68deg) rotateZ(28deg) translateZ(12px);
    border-color: rgba(255, 209, 102, 0.35);
    border-style: dashed;
    animation: l3d-nexus-spin 18s linear infinite reverse;
}

.l3d-nexus__ring--c {
    width: 108%;
    height: 108%;
    margin: -54% 0 0 -54%;
    transform: rotateX(74deg) translateZ(-22px);
    border-color: rgba(255, 255, 255, 0.12);
    opacity: 0.7;
    animation: l3d-nexus-spin 32s linear infinite;
}

.l3d-nexus__pedestal {
    position: absolute;
    left: 50%;
    top: 56%;
    width: 52%;
    height: 52%;
    margin: -26% 0 0 -26%;
    border-radius: 50%;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(20, 163, 168, 0.35), rgba(6, 16, 28, 0.05) 55%, transparent 72%);
    border: 1px solid rgba(20, 163, 168, 0.28);
    box-shadow:
        0 0 50px rgba(20, 163, 168, 0.25),
        inset 0 0 30px rgba(20, 163, 168, 0.12);
    transform: rotateX(82deg) translateZ(-18px);
    pointer-events: none;
}

.l3d-nexus__orbit {
    position: absolute;
    left: 50%;
    top: 46%;
    width: 88%;
    height: 88%;
    margin: -44% 0 0 -44%;
    transform-style: preserve-3d;
    pointer-events: none;
}

.l3d-nexus__orbit--a { transform: rotateX(74deg) translateZ(28px); animation: l3d-nexus-spin 14s linear infinite; }
.l3d-nexus__orbit--b { transform: rotateX(70deg) rotateZ(90deg) translateZ(36px); animation: l3d-nexus-spin 17s linear infinite reverse; }
.l3d-nexus__orbit--c { transform: rotateX(76deg) rotateZ(180deg) translateZ(20px); animation: l3d-nexus-spin 20s linear infinite; }
.l3d-nexus__orbit--d { transform: rotateX(72deg) rotateZ(270deg) translateZ(32px); animation: l3d-nexus-spin 16s linear infinite reverse; }

.l3d-nexus__sat {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2.15rem;
    height: 2.15rem;
    margin-left: -1.075rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(145deg, rgba(20, 163, 168, 0.95), rgba(10, 52, 64, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.35),
        0 0 20px rgba(20, 163, 168, 0.45);
    transform: translateY(-50%) translateZ(8px);
}

.l3d-nexus__orbit--b .l3d-nexus__sat {
    background: linear-gradient(145deg, rgba(196, 114, 69, 0.95), rgba(80, 40, 20, 0.95));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(196, 114, 69, 0.4);
}

.l3d-nexus__core {
    position: absolute;
    left: 50%;
    top: 44%;
    width: 58%;
    aspect-ratio: 1 / 1;
    margin: -29% 0 0 -29%;
    transform-style: preserve-3d;
    transform: translateZ(52px);
    z-index: 5;
}

.l3d-nexus__core-beam {
    position: absolute;
    left: 50%;
    bottom: -18%;
    width: 42%;
    height: 55%;
    margin-left: -21%;
    background: linear-gradient(180deg, rgba(20, 163, 168, 0.35), transparent);
    filter: blur(10px);
    transform: rotateX(-12deg) translateZ(-20px);
    pointer-events: none;
    opacity: 0.75;
}

.l3d-nexus__core-glass {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0.65rem;
    border-radius: 2rem;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.18) 0%, rgba(20, 163, 168, 0.06) 45%, rgba(6, 16, 28, 0.55) 100%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 0 80px rgba(20, 163, 168, 0.28);
    transform-style: preserve-3d;
    overflow: hidden;
}

.l3d-nexus__core-glass::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.22) 0%, transparent 42%, transparent 70%, rgba(255, 209, 102, 0.08) 100%);
    pointer-events: none;
    z-index: 2;
}

.l3d-nexus__core-shine {
    position: absolute;
    inset: -4%;
    border-radius: 2.2rem;
    border: 1px solid rgba(20, 163, 168, 0.4);
    pointer-events: none;
    animation: l3d-nexus-shine 3s ease-out infinite;
    z-index: 0;
}

.l3d-nexus__particles span {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 209, 102, 0.85);
    box-shadow: 0 0 12px rgba(255, 209, 102, 0.6);
    animation: l3d-nexus-float 5s ease-in-out infinite;
}

.l3d-nexus__particles span:nth-child(1) { left: 12%; top: 22%; animation-delay: 0s; }
.l3d-nexus__particles span:nth-child(2) { left: 82%; top: 28%; animation-delay: -1.2s; background: rgba(20, 163, 168, 0.9); box-shadow: 0 0 12px rgba(20, 163, 168, 0.6); }
.l3d-nexus__particles span:nth-child(3) { left: 18%; top: 72%; animation-delay: -2.4s; }
.l3d-nexus__particles span:nth-child(4) { left: 78%; top: 68%; animation-delay: -0.8s; }
.l3d-nexus__particles span:nth-child(5) { left: 48%; top: 10%; animation-delay: -1.8s; width: 4px; height: 4px; }
.l3d-nexus__particles span:nth-child(6) { left: 52%; top: 88%; animation-delay: -3s; background: rgba(20, 163, 168, 0.9); }

@keyframes l3d-nexus-spin {
    to { transform: rotateX(72deg) rotateZ(360deg) translateZ(-8px); }
}

.l3d-nexus__ring--b { animation-name: l3d-nexus-spin-b; }
@keyframes l3d-nexus-spin-b {
    to { transform: rotateX(68deg) rotateZ(388deg) translateZ(12px); }
}

.l3d-nexus__ring--c { animation-name: l3d-nexus-spin-c; }
@keyframes l3d-nexus-spin-c {
    to { transform: rotateX(74deg) rotateZ(360deg) translateZ(-22px); }
}

.l3d-nexus__orbit--a { animation-name: l3d-nexus-orbit-a; }
@keyframes l3d-nexus-orbit-a {
    to { transform: rotateX(74deg) rotateZ(360deg) translateZ(28px); }
}

.l3d-nexus__orbit--b { animation-name: l3d-nexus-orbit-b; }
@keyframes l3d-nexus-orbit-b {
    to { transform: rotateX(70deg) rotateZ(450deg) translateZ(36px); }
}

.l3d-nexus__orbit--c { animation-name: l3d-nexus-orbit-c; }
@keyframes l3d-nexus-orbit-c {
    to { transform: rotateX(76deg) rotateZ(540deg) translateZ(20px); }
}

.l3d-nexus__orbit--d { animation-name: l3d-nexus-orbit-d; }
@keyframes l3d-nexus-orbit-d {
    to { transform: rotateX(72deg) rotateZ(630deg) translateZ(32px); }
}

@keyframes l3d-nexus-pulse {
    0%, 100% { opacity: 0.75; transform: translateZ(-60px) scale(0.96); }
    50% { opacity: 1; transform: translateZ(-60px) scale(1.04); }
}

@keyframes l3d-nexus-shine {
    0% { transform: scale(0.94); opacity: 0.85; }
    100% { transform: scale(1.12); opacity: 0; }
}

@keyframes l3d-nexus-float {
    0%, 100% { transform: translateY(0) translateZ(40px); opacity: 0.5; }
    50% { transform: translateY(-14px) translateZ(55px); opacity: 1; }
}

.l3d-video--source {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.l3d-logo-canvas {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    background: transparent !important;
    filter: drop-shadow(0 12px 28px rgba(20, 163, 168, 0.35));
    image-rendering: auto;
}

.l3d-plane--float {
    width: 120px;
    height: 88px;
    margin: -44px 0 0 -60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #f2f7fb;
    z-index: 3;
}

.l3d-plane--float i,
.l3d-plane--float .bi {
    display: block;
    font-size: 1.55rem;
    line-height: 1;
    color: var(--l3d-teal-bright);
    font-style: normal;
    -webkit-font-smoothing: antialiased;
}

.l3d-plane--f1 {
    transform: translate3d(-130px, -40px, 130px) rotateY(12deg);
    animation: l3d-float-f1 4.5s ease-in-out infinite;
}

.l3d-plane--f2 {
    transform: translate3d(120px, -70px, 160px) rotateY(-10deg);
    animation: l3d-float-f2 4.5s ease-in-out infinite;
    animation-delay: -1.5s;
    border-color: rgba(196, 114, 69, 0.35);
}

.l3d-plane--f2 i,
.l3d-plane--f2 .bi {
    color: var(--l3d-copper);
}

.l3d-plane--f3 {
    transform: translate3d(40px, 70px, 200px) rotateY(6deg);
    animation: l3d-float-f3 4.5s ease-in-out infinite;
    animation-delay: -2.8s;
}

.l3d-plane--f3 i,
.l3d-plane--f3 .bi {
    color: #e8d5b5;
}

.l3d-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 300px;
    height: 300px;
    margin: -150px 0 0 -150px;
    border: 1px solid rgba(20, 163, 168, 0.35);
    border-radius: 50%;
    transform: rotateX(70deg) translateZ(-20px);
    box-shadow: 0 0 40px rgba(20, 163, 168, 0.15);
    animation: l3d-spin 22s linear infinite;
}

.l3d-ring--inner {
    width: 210px;
    height: 210px;
    margin: -105px 0 0 -105px;
    border-color: rgba(232, 213, 181, 0.28);
    animation: l3d-spin 16s linear infinite reverse;
    box-shadow: 0 0 24px rgba(232, 213, 181, 0.08);
}

.l3d-ring::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px dashed rgba(232, 213, 181, 0.25);
    border-radius: 50%;
    animation: l3d-spin 14s linear infinite reverse;
}

.l3d-orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 260px;
    height: 260px;
    margin: -130px 0 0 -130px;
    transform: rotateX(68deg) translateZ(40px);
    transform-style: preserve-3d;
    animation: l3d-orbit-spin 18s linear infinite;
    pointer-events: none;
}

.l3d-orbit__dot {
    position: absolute;
    top: 0;
    left: 50%;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    border-radius: 50%;
    background: var(--l3d-teal-bright);
    box-shadow: 0 0 16px var(--l3d-glow);
}

.l3d-orbit__dot--2 {
    top: auto;
    bottom: 18%;
    left: 8%;
    width: 7px;
    height: 7px;
    background: var(--l3d-copper);
    box-shadow: 0 0 14px rgba(196, 114, 69, 0.55);
}

.l3d-orbit__dot--3 {
    top: 40%;
    left: auto;
    right: 0;
    width: 6px;
    height: 6px;
    background: var(--l3d-sand);
    box-shadow: 0 0 12px rgba(232, 213, 181, 0.45);
}

@keyframes l3d-orbit-spin {
    to { transform: rotateX(68deg) translateZ(40px) rotateZ(360deg); }
}

@keyframes l3d-float-f1 {
    0%, 100% { transform: translate3d(-130px, -40px, 130px) rotateY(12deg); }
    50% { transform: translate3d(-130px, -54px, 130px) rotateY(12deg); }
}

@keyframes l3d-float-f2 {
    0%, 100% { transform: translate3d(120px, -70px, 160px) rotateY(-10deg); }
    50% { transform: translate3d(120px, -84px, 160px) rotateY(-10deg); }
}

@keyframes l3d-float-f3 {
    0%, 100% { transform: translate3d(40px, 70px, 200px) rotateY(6deg); }
    50% { transform: translate3d(40px, 56px, 200px) rotateY(6deg); }
}

@keyframes l3d-float-f4 {
    0%, 100% { transform: translate3d(-90px, 55px, 170px) rotateY(-8deg); }
    50% { transform: translate3d(-90px, 42px, 170px) rotateY(-8deg); }
}

.l3d-plane--f4 {
    transform: translate3d(-90px, 55px, 170px) rotateY(-8deg);
    animation: l3d-float-f4 4.8s ease-in-out infinite;
    animation-delay: -1s;
    border-color: rgba(196, 122, 44, 0.35);
}

.l3d-plane--f4 i,
.l3d-plane--f4 .bi {
    color: #c47a2c;
}

@keyframes l3d-spin {
    to { transform: rotateX(70deg) translateZ(-20px) rotateZ(360deg); }
}

@keyframes l3d-pulse-glow {
    0%, 100% { box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(13, 115, 119, 0.15); }
    50% { box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 55px rgba(20, 163, 168, 0.35); }
}

.l3d-core {
    position: absolute;
    left: 50%;
    top: 42%;
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
    border-radius: 22px;
    background: linear-gradient(145deg, #1a9ea3, #0a4a4e);
    transform: translateZ(110px) rotateX(-8deg) rotateY(18deg);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(20, 163, 168, 0.4);
    display: grid;
    place-items: center;
    animation: l3d-core-bob 5s ease-in-out infinite;
}

.l3d-core img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: brightness(1.1);
    position: relative;
    z-index: 1;
}

.l3d-core__pulse {
    position: absolute;
    inset: -10px;
    border-radius: 28px;
    border: 1px solid rgba(20, 163, 168, 0.45);
    animation: l3d-core-pulse 2.8s ease-out infinite;
    pointer-events: none;
}

@keyframes l3d-core-bob {
    0%, 100% { transform: translateZ(110px) rotateX(-8deg) rotateY(18deg) translateY(0); }
    50% { transform: translateZ(110px) rotateX(-8deg) rotateY(18deg) translateY(-10px); }
}

@keyframes l3d-core-pulse {
    0% { transform: scale(0.85); opacity: 0.7; }
    100% { transform: scale(1.45); opacity: 0; }
}

/* —— Modules —— */
.l3d-modules {
    position: relative;
    padding: 2rem clamp(1.25rem, 4vw, 3rem) 5rem;
    max-width: 1180px;
    margin: 0 auto;
}

.l3d-modules__head {
    margin-bottom: 2rem;
    max-width: 36rem;
}

.l3d-modules__head h2 {
    font-family: var(--l3d-font-display);
    font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    letter-spacing: -0.03em;
    margin: 0 0 0.5rem;
}

.l3d-modules__head p {
    margin: 0;
    color: rgba(220, 230, 240, 0.65);
    line-height: 1.5;
}

.l3d-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.15rem;
    perspective: 1000px;
}

.l3d-mod {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.35rem 1.25rem 1.25rem;
    border-radius: 1.35rem;
    border: 1px solid var(--l3d-stroke);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    transform-style: preserve-3d;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    overflow: visible;
    will-change: transform;
}

.l3d-reveal {
    opacity: 0;
    transform: translateY(36px) rotateX(8deg);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--l3d-delay, 0s);
}

.l3d-reveal.is-in {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

.l3d-mod.l3d-reveal.is-in {
    transition: transform 0.18s ease-out, box-shadow 0.35s ease, border-color 0.35s ease;
    transition-delay: 0s;
}

.l3d-mod::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.06));
    pointer-events: none;
}

.l3d-mod:hover {
    transform: translateY(-8px) rotateX(4deg) rotateY(-3deg) translateZ(12px);
    box-shadow: 0 28px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(20, 163, 168, 0.4);
}

.l3d-mod.is-soon {
    opacity: 0.55;
    pointer-events: none;
}

.l3d-mod__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    color: #fff !important;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.l3d-mod__icon i,
.l3d-mod__icon .bi {
    display: block;
    line-height: 1;
    font-size: 1.35rem;
    color: #fff !important;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
}

.l3d-mod h3 {
    font-family: var(--l3d-font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
}

.l3d-mod p {
    margin: 0;
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(220, 230, 240, 0.62);
}

.l3d-mod__badge {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(20, 163, 168, 0.2);
    color: #7ee0e4;
    border: 1px solid rgba(20, 163, 168, 0.35);
}

.l3d-mod__badge--soon {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.55);
    border-color: rgba(255, 255, 255, 0.12);
}

/* —— Footer —— */
.l3d-footer {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 1.5rem clamp(1rem, 4vw, 3rem) calc(2.5rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1.5rem;
    font-size: 0.85rem;
    line-height: 1.45;
    color: rgba(220, 230, 240, 0.5);
    overflow-x: hidden;
}

.l3d-footer__copy,
.l3d-footer__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    min-width: 0;
    max-width: 100%;
}

.l3d-footer__copy {
    flex: 1 1 auto;
}

.l3d-footer__links {
    flex: 0 1 auto;
}

.l3d-footer__sep {
    opacity: 0.55;
}

.l3d-footer a {
    color: rgba(232, 213, 181, 0.85);
    text-decoration: none;
}

.l3d-footer a:hover {
    color: #fff;
}

@media (max-width: 900px) {
    .l3d-footer {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 0.85rem;
    }

    .l3d-footer__copy,
    .l3d-footer__links {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: 0.4rem;
    }

    .l3d-footer__sep {
        display: none;
    }
}

@media (max-width: 720px) {
    .l3d-visual--logo {
        height: min(62vw, 360px);
    }

    .l3d-world.l3d-world--logo,
    .l3d-nexus {
        width: min(100%, 300px);
        height: min(100%, 300px);
    }

    .l3d-nexus__sat {
        width: 1.75rem;
        height: 1.75rem;
        margin-left: -0.875rem;
        font-size: 0.8rem;
    }

    .l3d-nexus__core-glass {
        padding: 0.45rem;
        border-radius: 1.5rem;
    }

    .l3d-scroll-cue {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .l3d-grid,
    .l3d-orb,
    .l3d-ring,
    .l3d-orbit,
    .l3d-dust span,
    .l3d-plane--float,
    .l3d-plane--base,
    .l3d-core,
    .l3d-core__pulse,
    .l3d-nexus__ring,
    .l3d-nexus__orbit,
    .l3d-nexus__aura,
    .l3d-nexus__core-shine,
    .l3d-nexus__particles span,
    .l3d-world--logo,
    .l3d-rise-item,
    .l3d-visual,
    .l3d-visual--logo,
    .l3d-scroll-cue,
    .l3d-btn--shine::after {
        animation: none !important;
    }

    .l3d-rise-item,
    .l3d-nav,
    .l3d-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .l3d-world {
        transition: none;
    }

    .l3d-world--logo {
        animation: none !important;
    }
}
