/* ═══════════════════════════════════════════════════════
   mosaic Landing Page — Design System
   ═══════════════════════════════════════════════════════ */

/* ─── Mosaic Landing Visualization ─── */
.mosaic-landing-viz {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.ml-ambient-lighting {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.ml-glow {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: screen;
    pointer-events: none;
}

.ml-glow-1 {
    top: 33%;
    left: 25%;
    width: 40rem;
    height: 40rem;
    background: rgba(234, 88, 12, 0.3);
    filter: blur(160px);
    opacity: 0.5;
    animation: ml-pulse-glow 10s infinite;
    transition: background 1s ease-in-out;
}

.ml-glow-2 {
    bottom: 0;
    right: 25%;
    width: 35rem;
    height: 35rem;
    background: rgba(99, 102, 241, 0.4);
    filter: blur(140px);
    animation: ml-pulse-glow 12s infinite reverse;
}

@keyframes ml-pulse-glow {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.ml-perspective-container {
    perspective: 2500px;
    transform-style: preserve-3d;
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 650px;
    padding: 0 1rem;
    z-index: 10;
}

.ml-scene-wrapper {
    animation: ml-scene-pan 18s ease-in-out infinite;
    transform-style: preserve-3d;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes ml-scene-pan {

    0%,
    100% {
        transform: rotateY(-4deg) rotateX(2deg) translateY(0px);
    }

    50% {
        transform: rotateY(4deg) rotateX(-1deg) translateY(-15px);
    }
}

.ml-panel {
    position: absolute;
    border-radius: 1rem;
    background: rgba(15, 17, 26, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    overflow: hidden;
    opacity: 0.8;
    transition: opacity 0.5s;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

.ml-panel:hover {
    opacity: 1;
}

.ml-panel-left {
    left: 50%;
    top: 50%;
    width: 460px;
    height: 520px;
    margin-left: -230px;
    margin-top: -260px;
    transform: translateX(-120%) translateZ(-350px) rotateY(20deg) rotateX(4deg);
    animation: ml-float-ambient 8s ease-in-out infinite;
    display: flex;
    flex-direction: column;
}

.ml-panel-right {
    left: 50%;
    top: 50%;
    width: 400px;
    height: 480px;
    margin-left: -200px;
    margin-top: -240px;
    transform: translateX(120%) translateZ(-250px) rotateY(-18deg) rotateX(2deg);
    animation: ml-float-ambient-delayed 10s ease-in-out infinite;
    animation-delay: -2s;
    display: flex;
    flex-direction: column;
}

.ml-panel-center {
    left: 50%;
    top: 50%;
    width: 900px;
    height: 580px;
    margin-left: -450px;
    margin-top: -290px;
    transform: translateZ(100px) rotateY(0deg) rotateX(0deg);
    animation: ml-float-ambient-center 9s ease-in-out infinite;
    animation-delay: -4s;
    display: flex;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.8);
}

@keyframes ml-float-ambient {

    0%,
    100% {
        transform: translateX(-120%) translateZ(-350px) rotateY(20deg) rotateX(4deg) translateY(0px);
    }

    50% {
        transform: translateX(-120%) translateZ(-350px) rotateY(20deg) rotateX(4deg) translateY(-10px);
    }
}

@keyframes ml-float-ambient-delayed {

    0%,
    100% {
        transform: translateX(120%) translateZ(-250px) rotateY(-18deg) rotateX(2deg) translateY(0px);
    }

    50% {
        transform: translateX(120%) translateZ(-250px) rotateY(-18deg) rotateX(2deg) translateY(-12px);
    }
}

@keyframes ml-float-ambient-center {

    0%,
    100% {
        transform: translateZ(100px) rotateY(0deg) rotateX(0deg) translateY(0px);
    }

    50% {
        transform: translateZ(100px) rotateY(0deg) rotateX(0deg) translateY(-10px);
    }
}

.ml-panel-header {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
}

.ml-panel-filters {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ml-panel-grid {
    flex: 1;
    padding: 1.25rem;
    overflow: hidden;
}

.ml-panel-integrations {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ml-sidebar {
    width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(11, 12, 16, 0.6);
    padding: 1.25rem;
    position: relative;
    z-index: 20;
}

.ml-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.ml-sidebar-libraries {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.ml-sidebar-profile {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ml-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
    overflow: hidden;
    background: rgba(19, 21, 31, 0.8);
}

.ml-hero-banner {
    position: relative;
    height: 340px;
    width: 100%;
    background: linear-gradient(to bottom right, rgba(234, 88, 12, 0.5), rgba(127, 29, 29, 0.8));
    display: flex;
    align-items: flex-end;
    padding: 2.5rem;
    transition: background 1s ease-in-out;
}

.ml-poster {
    width: 160px;
    height: 240px;
    border-radius: 0.75rem;
    background: rgba(32, 34, 48, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    transform: translateY(-1rem);
    transition: box-shadow 1s ease-in-out;
}

.ml-lower-content {
    flex: 1;
    padding: 1.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow: hidden;
    position: relative;
}

/* Responsive adjustments - handled by JavaScript for smooth scaling */

/* ─── Tokens ─── */
:root {
    --bg: #08080f;
    --bg-card: rgba(255 255 255 / .04);
    --bg-glass: rgba(255 255 255 / .06);
    --border: rgba(255 255 255 / .08);

    --text: #e2e8f0;
    --text-dim: #94a3b8;
    --text-bright: #f8fafc;

    --primary: #818cf8;
    --primary-dim: rgba(129 140 248 / .15);
    --secondary: #f472b6;
    --secondary-dim: rgba(244 114 182 / .15);
    --magic: #a78bfa;
    --magic-dim: rgba(167 139 250 / .15);

    --radius: 18px;
    --radius-sm: 12px;
    --radius-xs: 8px;

    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;

    --container: 1200px;
    --gap: clamp(2rem, 4vw, 4rem);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    scroll-snap-type: y mandatory;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ─── Utilities ─── */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.text-magic {
    color: var(--magic) !important;
}

.icon-sm {
    width: 18px;
    height: 18px;
}

.grad-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--magic));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 3rem) !important;
    line-height: 1.15;
    color: var(--text-bright);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

/* ─── Ambient Background ─── */
.ambient-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .2;
    will-change: transform, opacity;
    pointer-events: none;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -10%;
    left: -8%;
    animation: drift 20s ease-in-out infinite alternate;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: 10%;
    right: -5%;
    animation: drift 25s ease-in-out infinite alternate-reverse;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--magic);
    top: 50%;
    left: 40%;
    animation: drift 22s ease-in-out infinite alternate;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(60px, -40px) scale(1.15);
    }
}

/* ─── Glass ─── */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

/* ═══════════════════════════════  NAVBAR  ═══════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: background .35s, border-color .35s, backdrop-filter .35s;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.navbar.scrolled {
    background: rgba(8 8 15 / .8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--primary), var(--magic));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-cta {
    font-size: .85rem;
    font-weight: 600;
    padding: .55rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: background .25s, border-color .25s;
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--bg-glass);
    border-color: var(--primary);
}

/* Language Selector */
.lang-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s;
    white-space: nowrap;
}

.lang-btn:hover {
    background: var(--bg-glass);
    border-color: var(--primary);
}

.lang-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}

.lang-selector.open .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 140px;
    background: rgba(15, 17, 26, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 101;
}

.lang-selector.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    background: transparent;
    border: none;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: background 0.15s;
}

.lang-option:hover {
    background: var(--bg-glass);
    color: var(--text-bright);
}

.lang-option.active {
    background: var(--primary-dim);
    color: var(--primary);
}

/* ═══════════════════════════════  BUTTONS  ═══════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .95rem;
    padding: .75rem 1.75rem;
    border-radius: 100px;
    transition: transform .2s, box-shadow .3s;
    cursor: pointer;
    border: none;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--magic));
    color: #fff;
    box-shadow: 0 4px 20px rgba(129 140 248 / .35);
}

.btn-primary:hover {
    box-shadow: 0 8px 32px rgba(129 140 248 / .5);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

/* ═══════════════════════════════  HERO  ═══════ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7rem 0 3rem;
    text-align: center;
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transform: translate3d(0, 0, 0);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Pill badge */
.pill {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: .82rem;
    font-weight: 500;
    padding: .45rem 1.1rem;
    border-radius: 100px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.pill-badge {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .2rem .55rem;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--primary), var(--magic));
    color: #fff;
}

h1 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.8rem, 6vw, 5rem) !important;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-bright);
    margin-bottom: 1.25rem;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-dim);
    max-width: 620px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Hero Visual */
.hero-visual-wrap {
    width: 100%;
    max-width: 900px;
    margin: 2.5rem auto 0;
    position: relative;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    opacity: .35;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

/* Floating tags */
.float-tag {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .78rem;
    font-weight: 600;
    padding: .5rem .9rem;
    z-index: 5;
    animation: tag-float 4s ease-in-out infinite;
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

.float-tag i,
.float-tag svg {
    width: 16px;
    height: 16px;
}

.tag-1 {
    top: 8%;
    left: 6%;
    animation-delay: 0s;
}

.tag-2 {
    top: 15%;
    right: 8%;
    animation-delay: 1s;
}

.tag-3 {
    bottom: 18%;
    left: 10%;
    animation-delay: 2s;
}

.tag-4 {
    bottom: 10%;
    right: 12%;
    animation-delay: .5s;
}

@keyframes tag-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ═══════════════════════════════  DEVICE FRAMES  ═══════ */
.device {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255 255 255 / .1);
    background: rgba(12 12 24 / .7);
    box-shadow: 0 20px 60px rgba(0 0 0 / .5), 0 0 0 1px rgba(255 255 255 / .04);
    transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s;
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

.feat-visual:hover .device {
    transform: translateY(-4px);
    box-shadow: 0 28px 70px rgba(0 0 0 / .6), 0 0 0 1px rgba(255 255 255 / .06);
    backface-visibility: hidden;
}

.screen {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-screen {
    background: linear-gradient(145deg, rgba(255 255 255 / .02), rgba(255 255 255 / .005));
}

.screen-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Notebook */
.device.notebook {
    width: 100%;
    max-width: 560px;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius) var(--radius) 4px 4px;
}

.device.notebook::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 110%;
    height: 10px;
    background: linear-gradient(180deg, rgba(255 255 255 / .08), rgba(255 255 255 / .03));
    border-radius: 0 0 6px 6px;
}

/* iPad */
.device.ipad {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
}

/* Mobile */
.device.mobile {
    width: 100%;
    max-width: 240px;
    aspect-ratio: 9 / 18;
    border-radius: 28px;
}

/* Enhancements for real screenshot integration */
.device-with-screen {
    background: #000;
    padding: 6px;
    border: 1px solid rgba(255 255 255 / .15);
    box-shadow: 0 24px 64px rgba(0 0 0 / .6), inset 0 0 0 1px rgba(255 255 255 / .2), inset 0 0 2px 2px rgba(255 255 255 / .05);
}

.device-with-screen .screen {
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    background: #08080f;
}

.screen-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255 255 255 / .08) 0%, rgba(255 255 255 / 0) 35%, rgba(255 255 255 / 0) 100%);
    box-shadow: inset 0 0 16px rgba(0 0 0 / .6);
    z-index: 8;
}

/* Hero device */
.hero-device {
    max-width: 700px;
    z-index: 3;
    background: rgba(12 12 24 / .92);
}

.hero-device .glass-screen {
    background: linear-gradient(145deg, rgba(255 255 255 / .015), rgba(255 255 255 / .005));
}

/* Placeholder content inside screens */
.ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    height: 100%;
    padding: 1.5rem;
}

.ph-icon {
    opacity: .45;
}

.ph-icon i,
.ph-icon svg {
    width: 40px;
    height: 40px;
}

.ph-label {
    font-size: .72rem;
    font-weight: 500;
    color: var(--text-dim);
    opacity: .5;
    font-family: var(--font-display);
    letter-spacing: .02em;
}

/* Glows behind visuals */
.glow-bg {
    position: absolute;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .35;
    top: 15%;
    left: 15%;
    pointer-events: none;
    transition: opacity .5s;
}

.feat-visual:hover .glow-bg {
    opacity: .5;
}

.glow-primary {
    background: var(--primary);
}

.glow-secondary {
    background: var(--secondary);
}

.glow-magic {
    background: var(--magic);
}

/* Float animations */
.float-a {
    animation: floatA 6s ease-in-out infinite;
}

.float-b {
    animation: floatB 7s ease-in-out infinite;
}

@keyframes floatA {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes floatB {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* ═══════════════════════════════  FEATURES  ═══════ */
.features {
    padding: 0 0;
}

.feat {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--gap) 0;
    position: relative;
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Subtle divider between features */
.feat+.feat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(280px, 40%);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.feat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}

/* Alt layout swaps columns */
.feat.alt .feat-grid {
    direction: rtl;
}

.feat.alt .feat-grid>* {
    direction: ltr;
}

.feat-text {
    position: relative;
}

.feat-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: .75rem;
    font-weight: 800;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary-dim);
    color: var(--primary);
    margin-bottom: 1rem;
}

.feat-text p {
    font-size: clamp(.95rem, 1.5vw, 1.08rem);
    color: var(--text-dim);
    line-height: 1.75;
    max-width: 520px;
}

.feat-text strong {
    color: var(--text-bright);
    font-weight: 600;
}

.feat-text em {
    color: var(--primary);
    font-style: normal;
    font-weight: 600;
}

.feat-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

/* Integration logos row */
.integration-logos {
    display: flex;
    gap: .65rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.int-logo {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .85rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-dim);
}

.int-logo i,
.int-logo svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

/* ──── Theme pair (feature 10) ──── */
.theme-pair {
    gap: 0;
}

.theme-pair:hover .device {
    transform: none;
    /* override feat-visual hover */
    backface-visibility: hidden;
}

.theme-light-device {
    transform: translateX(40px) scale(.88);
    z-index: 1;
    box-shadow: 20px 0 40px rgba(0 0 0 / .4);
    border-color: rgba(255 255 255 / .15);
    transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}

.theme-pair:hover .theme-light-device {
    transform: translateX(50px) scale(.88);
}

.theme-dark-device {
    transform: translateX(-20px);
    z-index: 2;
    box-shadow: -20px 0 50px rgba(0 0 0 / .7);
    transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}

.theme-pair:hover .theme-dark-device {
    transform: translateX(-30px);
}

/* ──── Final feature (platform badges) ──── */
.feat-final {
    padding: var(--gap) 0 calc(var(--gap) * .5);
}

.feat-final-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stores {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.store-badge {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1.4rem;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    transition: transform .2s, border-color .3s;
}

.store-badge:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.store-badge i,
.store-badge svg {
    width: 24px;
    height: 24px;
}

.store-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store-text span {
    font-size: .7rem;
    color: var(--text-dim);
    letter-spacing: .03em;
}

.store-text strong {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-bright);
}

.upcoming-badge {
    opacity: .7;
}

.upcoming-badge:hover {
    opacity: 1;
}

/* ═══════════════════════════════  FOOTER  ═══════ */
.footer {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 0 2.5rem;
    content-visibility: auto;
    contain-intrinsic-size: 0 300px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.footer-cta {
    text-align: center;
    padding: clamp(2rem, 5vw, 3.5rem);
    border-radius: var(--radius);
    margin-bottom: 3rem;
    background: linear-gradient(145deg, rgba(129 140 248 / .08), rgba(167 139 250 / .04));
    border: 1px solid rgba(129 140 248 / .15);
}

.footer-cta h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: .6rem;
}

.footer-cta p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--magic));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-copy {
    font-size: .8rem;
    color: var(--text-dim);
}

/* ═══════════════════════════════  ANIMATIONS  ═══════ */
/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal.d1 {
    transition-delay: .15s;
}

.reveal.d2 {
    transition-delay: .3s;
}

/* Hero entrance */
.anim-up {
    opacity: 0;
    transform: translateY(30px);
    animation: appear .8s cubic-bezier(.16, 1, .3, 1) forwards;
}

.d1 {
    animation-delay: .15s;
}

.d2 {
    animation-delay: .3s;
}

.d3 {
    animation-delay: .45s;
}

.d4 {
    animation-delay: .6s;
}

@keyframes appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ──── One Hub Animations ──── */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes pulse-slow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

@keyframes merge-in {

    0%,
    100% {
        transform: translateX(var(--start-dist)) scale(0.45);
        opacity: 0;
    }

    12% {
        opacity: 0.75;
        transform: translateX(calc(var(--start-dist) * 0.75)) scale(0.95);
    }

    28% {
        opacity: 0.9;
        transform: translateX(100px) scale(1);
    }

    40% {
        transform: translateX(20px) scale(0.35);
        opacity: 0;
    }
}

/* ──── Hub Components ──── */
.hub-visual {
    position: relative;
    width: 100%;
    min-height: 400px;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    isolation: isolate;
}

@media (min-width: 768px) {
    .hub-visual {
        min-height: 500px;
    }
}

.hub-glow-indigo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(300px, 60%);
    height: min(300px, 60%);
    background: rgba(99, 102, 241, 0.1);
    filter: blur(80px);
    border-radius: 50%;
    pointer-events: none;
}

.hub-glow-blue {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(150px, 30%);
    height: min(150px, 30%);
    background: rgba(59, 130, 246, 0.2);
    filter: blur(60px);
    border-radius: 50%;
    pointer-events: none;
}

.hub-flow-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hub-central {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(3rem, 8vw, 4rem);
    background: rgba(19, 25, 44, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 3rem;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 rgba(255, 255, 255, 0.06);
    will-change: transform;
    overflow: hidden;
    contain: layout paint;
}

.hub-central::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.3), transparent 50%),
        radial-gradient(circle at 78% 82%, rgba(148, 163, 184, 0.2), transparent 45%);
    opacity: 0.55;
    pointer-events: none;
}

.hub-glass-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06) 58%, rgba(255, 255, 255, 0.12)),
        rgba(19, 25, 44, 0.32);
    backdrop-filter: blur(20px) saturate(135%) contrast(105%);
    -webkit-backdrop-filter: blur(20px) saturate(135%) contrast(105%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    pointer-events: none;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .hub-glass-layer {
        background:
            linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.1) 58%, rgba(255, 255, 255, 0.14)),
            rgba(19, 25, 44, 0.56);
    }
}

.hub-logo-group {
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.hub-logo-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, #2563eb, #818cf8);
    filter: blur(24px);
    opacity: 0.6;
    border-radius: 50%;
    transition: opacity 0.5s;
}

.hub-logo-group:hover .hub-logo-glow {
    opacity: 1;
}

.hub-logo-img {
    position: relative;
    z-index: 10;
    width: clamp(3.5rem, 10vw, 5rem);
    height: clamp(3.5rem, 10vw, 5rem);
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.6));
    transition: transform 0.5s;
}

.hub-logo-group:hover .hub-logo-img {
    transform: scale(1.1);
}

/* ──── Flow Logo Styles ──── */
.flow-logo-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -1.5rem;
    margin-left: -2rem;
    width: 4rem;
    height: 3rem;
    pointer-events: auto;
}

@media (min-width: 640px) {
    .flow-logo-wrapper {
        margin-top: -2rem;
        margin-left: -3rem;
        width: 6rem;
        height: 4rem;
    }
}

.flow-logo-item {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.flow-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.6;
    transition: all 0.5s ease-out;
}

.flow-logo-item:hover .flow-logo-img {
    opacity: 1;
    transform: scale(1.25);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
}

.flow-logo-label {
    color: #71717a;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 10px;
    text-align: center;
    white-space: nowrap;
    transition: color 0.30s;
}

@media (min-width: 640px) {
    .flow-logo-label {
        font-size: 12px;
    }
}

.flow-logo-item:hover .flow-logo-label {
    color: #fff;
}

/* ─── Creators Visualization ─── */
.creators-section {
    position: relative;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

#scale-wrapper {
    width: 100%;
    position: relative;
    overflow: visible;
}

#viz-canvas {
    width: 1152px;
    height: 800px;
    position: absolute;
    top: 0;
    left: 50%;
    transform-origin: top center;
    flex-shrink: 0;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateX(-50%) translate3d(0, 0, 0);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes float-delayed {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 6s ease-in-out 2s infinite;
}

@keyframes creator-float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes creator-ring-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(244, 63, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(244, 63, 94, 0);
    }
}

.animate-creator-float {
    animation: creator-float 6s ease-in-out infinite;
}

.animate-creator-float-delayed {
    animation: creator-float 6s ease-in-out 2s infinite;
}

.viz-ambient {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.viz-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    mix-blend-mode: screen;
    opacity: 0.2;
}

.viz-orb-1 {
    top: -20%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: #1e3a8a;
    /* blue-900 */
}

.viz-orb-2 {
    top: 60%;
    right: -10%;
    width: 40%;
    height: 60%;
    background: #581c87;
    /* purple-900 */
}

.viz-orb-3 {
    top: 40%;
    left: 30%;
    width: 30%;
    height: 30%;
    background: #064e3b;
    /* emerald-900 */
}

.viz-noise {
    position: absolute;
    inset: 0;
    background-image: url('images/noise.svg');
    opacity: 0.2;
    filter: brightness(100%) contrast(150%);
    mix-blend-mode: overlay;
}

.creators-viz-area {
    position: relative;
    width: min(75vw, 70vh, 500px);
    height: min(75vw, 70vh, 500px);
    margin: 0 auto;
}

.viz-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.viz-svg line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    stroke-width: 2;
    stroke: url(#viz-lineGrad);
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.viz-svg .pulse-line {
    stroke-width: 3;
    stroke-dasharray: 50 150;
    opacity: 0;
    transition: opacity 0.5s ease;
    stroke: url(#viz-pulseGrad);
}

.viz-node {
    position: absolute;
    z-index: 20;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.viz-user-node {
    top: 50%;
    left: 50%;
}

.viz-avatar-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.viz-avatar-glow {
    position: absolute;
    inset: -1rem;
    border-radius: 9999px;
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.5s;
}

.viz-avatar-wrap:hover .viz-avatar-glow {
    opacity: 0.3;
}

.viz-avatar-inner {
    position: relative;
    width: clamp(2.25rem, 8vw, 3rem);
    height: clamp(2.25rem, 8vw, 3rem);
    background: linear-gradient(to bottom right, #1f2937, #000);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.viz-user-node .viz-avatar-inner {
    width: clamp(3.5rem, 12vw, 5rem);
    height: clamp(3.5rem, 12vw, 5rem);
}

.viz-avatar-inner i,
.viz-avatar-inner svg {
    width: 50%;
    height: 50%;
    color: #9ca3af;
}

.viz-creator-node .viz-avatar-inner {
    padding: 3px;
    background: rgba(0, 0, 0, 0.5);
}

.viz-icon-box {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1f2937;
}

.viz-icon-box i,
.viz-icon-box svg {
    position: relative;
    z-index: 10;
    color: rgba(255, 255, 255, 0.8);
}

.viz-gradient {
    position: absolute;
    inset: 0;
    opacity: 0.5;
}

.viz-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.75rem;
    text-align: center;
    width: max-content;
}

.viz-name {
    font-size: clamp(0.45rem, 1.5vw, 0.6rem);
    font-weight: 600;
    color: #e5e7eb;
}

.viz-sub {
    font-size: clamp(0.35rem, 1.2vw, 0.5rem);
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 2px;
}

.viz-sub i,
.viz-sub svg {
    width: 0.75rem;
    height: 0.75rem;
}

.viz-card-node {
    position: absolute;
    z-index: 30;
    transform: translate(-50%, -50%) scale(0.9) translateY(1rem);
    opacity: 0;
    transition: all 0.7s ease-out;
}

.viz-card {
    position: relative;
    width: clamp(4.5rem, 14vw, 7.5rem);
    aspect-ratio: 2/3;
    will-change: transform;
}

.viz-card-glow {
    position: absolute;
    inset: -2px;
    border-radius: 0.75rem;
    filter: blur(10px);
    opacity: 0.2;
    transition: opacity 0.5s;
}

.viz-card:hover .viz-card-glow {
    opacity: 0.4;
}

.viz-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: all 0.5s;
}

.viz-card:hover .viz-card-inner {
    transform: translateY(-0.5rem);
    border-color: rgba(255, 255, 255, 0.2);
}

.viz-card-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 30;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
    padding: 2px 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.viz-card-badge i,
.viz-card-badge svg {
    width: 0.6rem;
    height: 0.6rem;
    color: white;
}

.viz-card-badge span {
    font-size: 0.5rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Make badge text smaller on mobile to prevent wrapping */
@media (max-width: 639px) {
    .creators-viz-area {
        width: 90vw;
        height: 90vw;
        max-width: 400px;
        max-height: 400px;
    }

    .viz-card {
        width: clamp(80px, 25vw, 110px);
    }

    .viz-card-inner {
        border-radius: 0.6rem;
    }

    .viz-card-badge {
        top: 0.4rem;
        left: 0.4rem;
        padding: 2px 4px;
        border-radius: 0.3rem;
    }

    .viz-card-badge i,
    .viz-card-badge svg {
        width: 0.6rem;
        height: 0.6rem;
    }

    .viz-card-badge span {
        font-size: 0.45rem;
        letter-spacing: 0.05em;
    }

    .viz-card-content {
        padding: 0.5rem;
    }

    .viz-card-type {
        font-size: 0.45rem;
        margin-bottom: 2px;
        letter-spacing: 0.05em;
    }

    .viz-card-title {
        font-size: 0.6rem;
        line-height: 1.2;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow-wrap: anywhere;
    }

    .viz-card-author {
        font-size: 0.45rem;
        gap: 4px;
        margin-top: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        opacity: 0.8;
    }

    .viz-card-author .dot {
        width: 2px;
        height: 2px;
    }

    .viz-name {
        font-size: 0.45rem;
    }

    .viz-sub {
        font-size: 0.35rem;
    }

    .viz-label {
        margin-top: 0.4rem;
    }
}

@media (max-width: 400px) {
    .viz-card-badge span {
        display: none;
        /* Only show icon on very small screens */
    }

    .viz-card-badge {
        padding: 2px;
    }
}

.viz-card-media {
    aspect-ratio: 2/3;
    position: relative;
    background: #111827;
    overflow: hidden;
}

.viz-card-gradient {
    position: absolute;
    inset: 0;
    opacity: 0.8;
    filter: blur(40px);
    transform: scale(1.5);
}

.viz-card:hover .viz-card-gradient {
    transform: scale(1.25) rotate(12deg);
}

.viz-card-noise {
    position: absolute;
    inset: 0;
    background-image: url('images/noise.svg');
    opacity: 0.4;
    mix-blend-mode: overlay;
}

.viz-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, black, rgba(0, 0, 0, 0.4), transparent);
    opacity: 0.9;
    z-index: 10;
}

.viz-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 20;
}

.viz-card:hover .viz-play-btn {
    opacity: 1;
}

.viz-play-btn i,
.viz-play-btn svg {
    width: 2rem;
    height: 2rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding-left: 2px;
    backdrop-filter: blur(8px);
}

.viz-card-content {
    padding: 0.6rem;
    background: rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 20;
}

.viz-card-type {
    font-size: 0.5rem;
    color: #9ca3af;
    margin-bottom: 1px;
}

.viz-card-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    line-height: 1.1;
}

.viz-card-author {
    font-size: 0.5rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.viz-card-author .dot {
    width: 3px;
    height: 3px;
    border-radius: 9999px;
    background: #6b7280;
}

/* Cinematic Media Visualization Animations */
@keyframes silkyRevealImage {
    0% {
        filter: blur(30px);
        opacity: 0;
        transform: scale(1.1);
    }

    50% {
        opacity: 1;
    }

    100% {
        filter: blur(0px);
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slowPan {
    0% {
        transform: scale(1.05) translate(0, 0);
    }

    50% {
        transform: scale(1.1) translate(-1%, -1%);
    }

    100% {
        transform: scale(1.05) translate(0, 0);
    }
}

@keyframes cinematicFloat {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes cinematicFloatDelayed {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@keyframes slideDown {
    to {
        transform: translateY(0);
    }
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

/* Cinematic Animation Classes */
.animate-silky-backdrop {
    animation: silkyRevealImage 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, slowPan 30s ease-in-out infinite alternate;
}

.animate-silky-poster {
    animation: silkyRevealImage 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
    opacity: 0;
}

.animate-cinematic-float {
    animation: cinematicFloat 6s ease-in-out infinite;
}

.animate-cinematic-float-delayed {
    animation: cinematicFloatDelayed 7s ease-in-out infinite 1s;
}

.stagger-1 {
    animation: slideUpFade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s forwards;
    opacity: 0;
}

.stagger-2 {
    animation: slideUpFade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s forwards;
    opacity: 0;
}

.stagger-3 {
    animation: slideUpFade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s forwards;
    opacity: 0;
}

.stagger-4 {
    animation: slideUpFade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.7s forwards;
    opacity: 0;
}

.blurred-text-block {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 1000px 100%;
    animation: shimmer 4s infinite linear;
    border-radius: 4px;
    filter: blur(1px);
}

/* Cinematic Visualization Container */
.cinematic-viz {
    position: relative;
    min-height: 500px;
    width: 100%;
    background: #050505;
    border-radius: 20px;
    overflow: hidden;
}

.cinematic-attribution {
    position: absolute;
    bottom: 8rem;
    left: 50%;
    z-index: 5;
    width: min(90%, 42rem);
    margin: 0;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.6875rem;
    line-height: 1.45;
    text-align: center;
}

.cinematic-background {
    position: absolute;
    inset: -5%;
    width: 110%;
    height: 110%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    will-change: transform;
}

.cinematic-overlays {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
}

.cinematic-content {
    position: relative;
    z-index: 30;
    min-height: 500px;
    display: flex;
    align-items: center;
    padding: 3rem 2rem;
}

.cinematic-poster-container {
    perspective: 1000px;
}

.cinematic-poster {
    position: relative;
    width: 100% !important;
    max-width: 320px;
    aspect-ratio: 2/3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s ease-out;
    will-change: transform;
}

@media (min-width: 768px) {
    .cinematic-poster {
        max-width: 500px !important;
    }
}

@media (min-width: 1024px) {
    .cinematic-poster {
        max-width: 600px !important;
    }
}

.cinematic-poster:hover {
    transform: scale(1.02);
}

.cinematic-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cinematic-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cinematic-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cinematic-badge {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

.cinematic-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cinematic-play-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 9999px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    filter: blur(1px);
}

.cinematic-play-btn:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    filter: blur(0.8px);
}

.cinematic-play-btn i,
.cinematic-play-btn span {
    filter: blur(1.5px);
}

.cinematic-secondary-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: blur(1px);
}

.cinematic-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
    filter: blur(0.8px);
}

.cinematic-secondary-btn i {
    filter: blur(1.5px);
}

.cinematic-synopsis {
    max-width: 48rem;
}

.cinematic-synopsis-line {
    height: 1rem;
    margin-bottom: 0.75rem;
}

.cinematic-cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    max-width: 48rem;
}

.cinematic-cast-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    transition: background 0.3s ease;
}

.cinematic-cast-item:hover {
    background: rgba(0, 0, 0, 0.4);
}

.cinematic-cast-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.cinematic-cast-info {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    width: 100%;
}

.cinematic-cast-name {
    height: 0.75rem;
}

.cinematic-cast-role {
    height: 0.5rem;
    width: 50%;
}

/* Letterbox bars */
.cinematic-letterbox-top,
.cinematic-letterbox-bottom {
    position: fixed;
    left: 0;
    width: 100%;
    height: 2rem;
    background: black;
    z-index: 50;
}

.cinematic-letterbox-top {
    top: 0;
    transform: translateY(-100%);
    transition: transform 0.5s ease-out;
}

.cinematic-letterbox-top.visible {
    transform: translateY(0);
}

.cinematic-letterbox-bottom {
    bottom: 0;
    transform: translateY(100%);
    animation: slideUp 1s ease-out 1s forwards;
}

/* Where to Watch Visualization Animations */
@keyframes vizFloat {

    0%,
    100% {
        transform: translateY(0px) translateX(-50%);
    }

    50% {
        transform: translateY(-15px) translateX(-50%);
    }
}

@keyframes vizDrawLine {
    from {
        stroke-dashoffset: 400;
        opacity: 0;
    }

    to {
        stroke-dashoffset: 0;
        opacity: 0.8;
    }
}

@keyframes vizPulseGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4), inset 0 0 20px rgba(16, 185, 129, 0.2);
    }

    50% {
        box-shadow: 0 0 40px 15px rgba(16, 185, 129, 0), inset 0 0 0px rgba(16, 185, 129, 0);
    }
}

@keyframes vizCinematicTilt {

    0%,
    100% {
        transform: translate(-50%, -50%) perspective(1200px) rotateX(4deg) rotateY(-4deg) scale3d(1, 1, 1);
    }

    50% {
        transform: translate(-50%, -50%) perspective(1200px) rotateX(-2deg) rotateY(6deg) scale3d(1.03, 1.03, 1.03);
    }
}

@keyframes vizCameraPan {

    0%,
    100% {
        transform: scale(1) translate(0px, 0px);
    }

    50% {
        transform: scale(1.05) translate(-15px, 8px);
    }
}

@keyframes vizSweep {
    0% {
        transform: translateX(-150%) skewX(-20deg);
    }

    50%,
    100% {
        transform: translateX(150%) skewX(-20deg);
    }
}

.viz-draw {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
}

.viz-draw.active {
    animation: vizDrawLine 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.viz-best-deal-pulse {
    animation: vizPulseGlow 2.5s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

/* Where to Watch Container */
.wtw-viz {
    position: relative;
    width: 100%;
    overflow: visible;
}

.wtw-stage {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.5);
}

@media (min-width: 640px) {
    .wtw-stage {
        transform: scale(0.65);
        height: 500px;
    }
}

@media (min-width: 1024px) {
    .wtw-stage {
        transform: scale(0.8);
        height: 600px;
    }
}

.wtw-content-wrapper {
    position: relative;
    max-width: 80rem;
    width: 100%;
    margin: 0 auto;
    animation: vizCameraPan 20s ease-in-out infinite;
}

.wtw-ambient-core {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    filter: blur(120px);
    transition: all 1.5s ease-in-out;
    opacity: 0;
    display: none;
}

.wtw-ambient-core-inner {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    filter: blur(60px);
    transition: all 1s ease-in-out;
    opacity: 0;
    display: none;
}

.wtw-svg-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: visible;
}

.wtz-platform-node {
    position: absolute;
    z-index: 20;
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wtz-node-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    backdrop-filter: blur(16px);
    border-width: 1px;
    transition: all 0.7s;
}

.wtz-node-content.best-deal {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(52, 211, 153, 0.6);
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.3);
    transform: scale(1.1);
}

.wtz-node-content.normal-deal {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.wtz-node-icon {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.625rem;
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wtz-node-info {
    display: flex;
    flex-direction: column;
    padding-right: 0.75rem;
}

.wtz-node-action {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
    font-weight: 700;
    margin-bottom: 0.125rem;
}

.wtz-node-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.wtz-node-price {
    margin-left: 0.5rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.wtz-node-price-value {
    font-size: 1.125rem;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.wtz-node-price-value.best-deal-price {
    color: #34d399;
    filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.8));
}

.wtz-node-price-value.normal-deal-price {
    color: #e5e7eb;
}

.wtz-best-badge {
    position: absolute;
    top: -1rem;
    right: -1rem;
    background: #10b981;
    color: white;
    font-size: 0.6875rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.7s;
    transform: scale(0) opacity-0 translate-y-1rem;
}

.wtz-best-badge.visible {
    transform: scale(1) opacity-100 translate-y-0;
}

.wtz-center-card {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 30;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.wtz-card-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11rem;
    height: 15rem;
    border-radius: 1rem;
    padding: 2px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05), transparent);
    backdrop-filter: blur(12px);
    overflow: visible;
    animation: vizCinematicTilt 12s ease-in-out infinite alternate;
    transform-style: preserve-3d;
    will-change: transform;
}

@media (min-width: 640px) {
    .wtz-card-wrapper {
        width: 13rem;
        height: 18rem;
    }
}

.wtz-card-inner {
    width: 100%;
    height: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wtz-card-glossy {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, rgba(0, 0, 0, 0.6), transparent, rgba(255, 255, 255, 0.3));
    pointer-events: none;
    mix-blend-mode: overlay;
}

.wtz-card-sweep {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    animation: vizSweep 6s ease-in-out infinite;
}

.wtz-card-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    transform: translateZ(20px);
}

.wtz-card-icon {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
}

.wtz-card-title {
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: white;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .wtz-card-title {
        font-size: 1.5rem;
    }
}

.wtz-card-subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.wtz-film-grain {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 50;
    display: none;
}

.wtz-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 40;
    display: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .wtz-platform-node {
        transform: scale(0.8);
    }

    .wtz-node-content {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .wtz-node-name {
        font-size: 0.75rem;
    }

    .wtz-node-price-value {
        font-size: 1rem;
    }
}

.color-blue {
    background: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.border-blue {
    border-color: rgba(59, 130, 246, 0.4);
}

.bg-blue {
    background: #1e3a8a;
}

.grad-blue {
    background: linear-gradient(to right, #3b82f6, #22d3ee);
}

.grad-blue-dark {
    background: linear-gradient(to bottom right, #2563eb, #1e293b, #164e63);
}

.color-emerald {
    background: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.border-emerald {
    border-color: rgba(16, 185, 129, 0.4);
}

.bg-emerald {
    background: #064e3b;
}

.grad-emerald {
    background: linear-gradient(to right, #10b981, #34d399);
}

.grad-emerald-dark {
    background: linear-gradient(to bottom right, #059669, #134e4a, #064e3b);
}

.color-purple {
    background: #a855f7;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.border-purple {
    border-color: rgba(168, 85, 247, 0.4);
}

.bg-purple {
    background: #581c87;
}

.grad-purple {
    background: linear-gradient(to right, #a855f7, #f472b6);
}

.grad-purple-dark {
    background: linear-gradient(to bottom right, #9333ea, #701a75, #9d174d);
}

.color-rose {
    background: #f43f5e;
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.5);
}

.border-rose {
    border-color: rgba(244, 63, 94, 0.4);
}

.bg-rose {
    background: #881337;
}

.grad-rose {
    background: linear-gradient(to right, #f43f5e, #fb923c);
}

.grad-rose-dark {
    background: linear-gradient(to bottom right, #e11d48, #7f1d1d, #9a3412);
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulseData {
    0% {
        stroke-dashoffset: 200;
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0.2;
    }
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

/* ═══════════════════════════════  RESPONSIVE  ═══════ */
@media (max-width: 768px) {

    .navbar,
    .ml-panel,
    .glass,
    .ph,
    .hub-central,
    .glass-panel,
    .glass-screen,
    .cinematic-play-btn,
    .cinematic-secondary-btn,
    .wtz-node-content {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .navbar.scrolled {
        background: rgba(8, 8, 15, 0.95);
    }

    .ml-panel {
        background: rgba(15, 17, 26, 0.9);
    }

    .glass {
        background: rgba(255, 255, 255, 0.12);
    }

    .hub-central {
        background: rgba(255, 255, 255, 0.05);
    }

    .glass-panel {
        background: rgba(255, 255, 255, 0.08);
    }

    .glass-screen {
        background: rgba(255, 255, 255, 0.05);
    }

    .cinematic-play-btn,
    .cinematic-secondary-btn {
        background: rgba(255, 255, 255, 0.2);
    }

    .wtz-node-content.normal-deal {
        background: rgba(0, 0, 0, 0.8);
    }
}

@media (min-width: 901px) and (max-width: 1280px) {
    .ul-viz-container {
        padding: 0 1rem;
        min-width: 0;
    }

    .ul-viz-container .relative.z-10 {
        max-width: 100%;
        min-width: 0;
    }

    .ul-viz-container .max-w-\[960px\] {
        max-width: 100%;
        min-width: 0;
    }

    .ul-viz-container #grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1281px) {
    .ul-viz-container {
        padding: 0 1rem;
        min-width: 0;
    }

    .ul-viz-container .relative.z-10 {
        max-width: 100%;
        min-width: 0;
    }

    .ul-viz-container .max-w-\[960px\] {
        max-width: 100%;
        min-width: 0;
    }

    .ul-viz-container #grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .feat-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .feat.alt .feat-grid {
        direction: ltr;
    }

    .feat-visual {
        min-height: 240px;
    }

    .device.notebook {
        max-width: 420px;
    }

    .device.ipad {
        max-width: 360px;
    }

    .device.mobile {
        max-width: 200px;
    }

    .theme-light-device {
        transform: translateX(30px) scale(.85);
    }

    .theme-dark-device {
        transform: translateX(-15px);
    }
}

@media (max-width: 600px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .nav-right {
        gap: 0.5rem;
    }

    .nav-cta,
    .lang-btn {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    h1 {
        font-size: clamp(2rem, 12vw, 2.4rem) !important;
        margin-bottom: 1rem;
    }

    .pill {
        margin-bottom: 1rem;
    }

    .hero-sub {
        margin-bottom: 1.35rem;
        line-height: 1.55;
    }

    .btn-lg {
        padding: 0.85rem 1.35rem;
        font-size: 0.95rem;
    }

    .hero {
        min-height: 100svh;
        height: 100svh;
        padding: 5.25rem 0 1.25rem;
        justify-content: flex-start;

        scroll-snap-align: start;
        scroll-snap-stop: always;
        transform: translate3d(0, 0, 0);
    }

    .float-tag {
        display: none;

        backface-visibility: hidden;
        transform: translate3d(0, 0, 0);
    }

    .feat {
        padding: 3rem 0;

        min-height: 100vh;
        display: flex;
        align-items: center;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .hero-visual-wrap {
        margin-top: 1.25rem;
        overflow: hidden;
    }

    .hero-device {
        max-width: 100%;
    }

    .stores {
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: .8rem;
        text-align: center;
    }

    .device.notebook {
        max-width: 100%;
    }

    .device.ipad {
        max-width: 100%;
    }

    .device.mobile {
        max-width: 180px;
    }
}

/* ─── Collections Visualizer ─── */
#collections-visualizer {
    position: relative;
    width: 100%;
    max-width: 400px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.noise-bg {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.animate-pulse-ring {
    animation: pulse-ring 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.animate-pulse-ring-delayed {
    animation: pulse-ring 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite 1s;
}

.animate-stream-particle {
    animation: stream-particle 2s ease-out infinite;
}

.animate-stream-particle-delayed {
    animation: stream-particle 2s ease-out infinite 0.4s;
}

.animate-stream-particle-more-delayed {
    animation: stream-particle 2s ease-out infinite 0.8s;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(3.5);
        opacity: 0;
    }
}

@keyframes stream-particle {
    0% {
        transform: translateX(0) scale(0);
        opacity: 0;
    }

    20% {
        transform: translateX(20px) scale(1);
        opacity: 1;
    }

    80% {
        transform: translateX(120px) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(150px) scale(0);
        opacity: 0;
    }
}

/* ─── Fresh Picks Feature ─── */
#fresh-picks-visualizer {
    position: relative;
    width: 100%;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    transform: scale(0.7);
}

.fp-perspective {
    perspective: 2000px;
    transform-style: preserve-3d;
}

.fp-card-3d {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease-in-out, filter 0.5s ease-in-out;
    transform-style: preserve-3d;
    will-change: transform, opacity;
}

/* Hide last two cards on mobile */
@media (max-width: 639px) {

    #fp-card-2,
    #fp-card-3 {
        display: none;
    }
}

.fp-flipping {
    transform: rotateY(90deg) scale(0.8) translateZ(-100px);
    opacity: 0;
    filter: brightness(2) blur(10px);
}

.fp-grid-pattern {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: fp-grid-move 30s linear infinite;
}

.fp-glass-panel {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px -5px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.02);
}


@keyframes fp-float {

    0%,
    100% {
        transform: translateY(0px) rotateX(2deg) rotateY(-2deg);
    }

    50% {
        transform: translateY(-20px) rotateX(-2deg) rotateY(2deg);
    }
}

@keyframes fp-float-delayed {

    0%,
    100% {
        transform: translateY(0px) rotateX(-2deg) rotateY(2deg);
    }

    50% {
        transform: translateY(-20px) rotateX(2deg) rotateY(-2deg);
    }
}

@keyframes fp-pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 50px 10px rgba(16, 185, 129, 0.4);
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes fp-pulse-flash {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* ─── Viewport-Based Animation Control ─── */
header:not(.in-view) *,
section:not(.in-view) *,
footer:not(.in-view) * {
    animation-play-state: paused !important;
}

/* ─── Ultimate Library Visualization ─── */
.ul-viz-container {
    position: relative;
    width: 100%;
    min-height: 640px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card Sheen Animation */
.card-sheen {
    background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.25) 25%, transparent 30%);
    background-size: 200% 200%;
    transition: background-position 0.8s ease-out;
    background-position: 150% 150%;
}

.group:hover .card-sheen {
    background-position: -50% -50%;
}

/* Card Entrance Animation */
@keyframes cardEnter {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(1rem);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-card {
    animation: cardEnter 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
