:root {
    /* Shopify-Inspired Dark Theme - Deep & Electric */
    --bg-body: #000000;
    --bg-surface: #0A0A0C;
    --bg-surface-hover: #141416;
    --bg-glass: rgba(0, 0, 0, 0.75);
    --bg-glass-border: rgba(255, 255, 255, 0.08);

    --text-primary: #FFFFFF;
    --text-secondary: #9CA3AF;
    --text-tertiary: #6B7280;

    /* Electric Accent Colors (Shopify Cyan + Purple) */
    --accent-primary: #6366F1;
    --accent-secondary: #A855F7;
    --accent-tertiary: #EC4899;
    --accent-cyan: #00C8FF;
    --accent-lime: #84CC16;

    --accent-gradient: linear-gradient(135deg, #818CF8 0%, #C084FC 50%, #F472B6 100%);
    --accent-gradient-vibrant: linear-gradient(135deg, #00C8FF 0%, #6366F1 35%, #A855F7 65%, #EC4899 100%);
    --accent-glow: rgba(99, 102, 241, 0.15);
    --accent-glow-strong: rgba(99, 102, 241, 0.35);
    --accent-glow-cyan: rgba(0, 200, 255, 0.12);

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Shopify-Style Easing - Buttery Smooth */
    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-shopify: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Unified Transition Timings */
    --transition-fast: 200ms var(--ease-out);
    --transition-base: 400ms var(--ease-out);
    --transition-smooth: 700ms var(--ease-shopify);
    --transition-slow: 1000ms var(--ease-shopify);
    --transition-ultra: 1.4s var(--ease-shopify);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SMOOTH SCROLL BEHAVIOR - SHOPIFY STYLE
   ═══════════════════════════════════════════════════════════════════════════ */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION SPACING - VERTICAL PADDING
   Add consistent top and bottom padding to prevent content overlap
   Padding keeps the section background while creating spacing
   ═══════════════════════════════════════════════════════════════════════════ */
section {
    padding-top: 6rem;
    padding-bottom: 6rem;
    position: relative;
}

/* Larger spacing for major sections */
.hero-section,
.apple-scroll-flow,
.scrollytelling-flow-section,
.epic-flow-section,
.timeline-section,
.pricing-section {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

/* First section can have reduced top padding */
section:first-of-type,
.hero-section {
    padding-top: 4rem;
}

/* Responsive spacing */
@media (max-width: 768px) {
    section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .hero-section,
    .apple-scroll-flow,
    .scrollytelling-flow-section,
    .epic-flow-section,
    .timeline-section,
    .pricing-section {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
    
    section:first-of-type,
    .hero-section {
        padding-top: 2rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SHOPIFY WINTER 2026 STYLE - CURSOR GLOW EFFECT
   Creates a subtle glow that follows the cursor across the page
   ═══════════════════════════════════════════════════════════════════════════ */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(168, 85, 247, 0.04) 30%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
    filter: blur(40px);
    will-change: transform;
}

.cursor-glow.active {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SHOPIFY-STYLE SECTION REVEAL ANIMATIONS
   Dramatic blur-in and scale transitions on scroll
   ═══════════════════════════════════════════════════════════════════════════ */
.reveal-blur {
    opacity: 0;
    filter: blur(20px);
    transform: translateY(60px) scale(0.95);
    transition:
        opacity 1.2s var(--ease-shopify),
        filter 1.2s var(--ease-shopify),
        transform 1.2s var(--ease-shopify);
    will-change: opacity, filter, transform;
}

.reveal-blur.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
}

/* Staggered word reveal animation */
.word-reveal {
    display: inline-block;
    overflow: hidden;
}

.word-reveal .word {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.8s var(--ease-shopify), opacity 0.8s var(--ease-shopify);
}

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

/* Character by character reveal */
.char-reveal .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px) rotateX(-90deg);
    transition: all 0.6s var(--ease-shopify);
    transform-origin: bottom center;
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   HORIZONTAL SCROLL SECTION - SHOPIFY EDITIONS STYLE
   Full-width horizontal scrolling showcase
   ═══════════════════════════════════════════════════════════════════════════ */
.horizontal-scroll-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.horizontal-scroll-container {
    display: flex;
    gap: 2rem;
    padding: 4rem 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding-left: max(2rem, calc((100vw - 1200px) / 2));
    padding-right: 4rem;
}

.horizontal-scroll-container::-webkit-scrollbar {
    display: none;
}

.horizontal-card {
    flex: 0 0 400px;
    height: 500px;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.6s var(--ease-shopify);
    transform-origin: center center;
}

.horizontal-card:hover {
    transform: scale(1.02) translateY(-10px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow:
        0 40px 80px -20px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(99, 102, 241, 0.15);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCROLL-BASED SECTION COLOR TRANSITIONS
   Sections smoothly transition colors as they enter viewport
   ═══════════════════════════════════════════════════════════════════════════ */
.section-morph {
    position: relative;
    transition: background 0.8s var(--ease-shopify);
}

.section-morph::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 1s var(--ease-shopify);
    pointer-events: none;
}

.section-morph.in-view::before {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FLOATING ELEMENTS ENHANCED - SHOPIFY STYLE
   More organic, responsive floating animations
   ═══════════════════════════════════════════════════════════════════════════ */
.floating-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    will-change: transform;
    transition: transform 0.1s linear;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation: orbFloat1 25s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 70%);
    top: 40%;
    right: -15%;
    animation: orbFloat2 30s ease-in-out infinite;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 200, 255, 0.2) 0%, transparent 70%);
    bottom: 10%;
    left: 20%;
    animation: orbFloat3 20s ease-in-out infinite;
}

.orb-4 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, transparent 70%);
    top: 60%;
    left: 60%;
    animation: orbFloat4 22s ease-in-out infinite;
}

@keyframes orbFloat1 {

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

    25% {
        transform: translate(80px, 50px) scale(1.1);
    }

    50% {
        transform: translate(40px, 100px) scale(0.95);
    }

    75% {
        transform: translate(-30px, 60px) scale(1.05);
    }
}

@keyframes orbFloat2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(-60px, 80px) rotate(5deg);
    }

    66% {
        transform: translate(-30px, -40px) rotate(-3deg);
    }
}

@keyframes orbFloat3 {

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

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

@keyframes orbFloat4 {

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

    25% {
        transform: translate(-50px, -30px);
    }

    75% {
        transform: translate(30px, 50px);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MORPHING BACKGROUND SHAPES - SHOPIFY STYLE
   Organic blob shapes that morph and move
   ═══════════════════════════════════════════════════════════════════════════ */
.morph-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.morph-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: morphing 15s ease-in-out infinite;
    will-change: transform, border-radius;
}

@keyframes morphing {

    0%,
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: rotate(0deg) scale(1);
    }

    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: rotate(90deg) scale(1.1);
    }

    50% {
        border-radius: 50% 60% 30% 60% / 30% 40% 70% 50%;
        transform: rotate(180deg) scale(0.95);
    }

    75% {
        border-radius: 40% 30% 60% 50% / 60% 70% 30% 40%;
        transform: rotate(270deg) scale(1.05);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCROLL-LINKED EFFECTS - SHOPIFY STYLE
   Elements that respond to scroll position with smooth transitions
   ═══════════════════════════════════════════════════════════════════════════ */
.scroll-fade {
    transition:
        opacity 0.6s var(--ease-shopify),
        transform 0.6s var(--ease-shopify);
    will-change: opacity, transform;
}

.scroll-zoom {
    transition:
        transform 0.8s var(--ease-shopify),
        opacity 0.8s var(--ease-shopify);
    will-change: transform, opacity;
}

/* Smooth scale transitions for hover effects */
.hover-lift {
    transition:
        transform 0.6s var(--ease-shopify),
        box-shadow 0.6s var(--ease-shopify);
    will-change: transform;
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Float animation for cards */
.float-card {
    animation: floatGentle 6s ease-in-out infinite;
}

@keyframes floatGentle {

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

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

/* Scroll glow effect */
.scroll-glow {
    transition: box-shadow 0.8s var(--ease-shopify);
}

.scroll-glow.intense {
    box-shadow:
        0 0 60px rgba(99, 102, 241, 0.3),
        0 0 100px rgba(168, 85, 247, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION PROGRESS INDICATOR - SHOPIFY STYLE
   Right-side navigation dots with smooth transitions
   ═══════════════════════════════════════════════════════════════════════════ */
.section-progress {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.6s var(--ease-shopify);
}

.section-progress.visible {
    opacity: 1;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition:
        background 0.5s var(--ease-shopify),
        transform 0.5s var(--ease-shopify),
        box-shadow 0.5s var(--ease-shopify);
    position: relative;
}

.progress-dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.5s var(--ease-shopify);
}

.progress-dot:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.3);
}

.progress-dot.active {
    background: var(--accent-primary);
    transform: scale(1.4);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
}

.progress-dot.active::before {
    border-color: var(--accent-primary);
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }

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

@media (max-width: 768px) {
    .section-progress {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION DIVIDERS - ANIMATED GRADIENT LINES
   ═══════════════════════════════════════════════════════════════════════════ */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(99, 102, 241, 0.5) 20%,
            rgba(168, 85, 247, 0.5) 50%,
            rgba(99, 102, 241, 0.5) 80%,
            transparent 100%);
    background-size: 200% 100%;
    animation: gradientSlide 4s linear infinite;
    margin: 0;
    border: none;
}

@keyframes gradientSlide {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATED GRADIENT TEXT - ENHANCED
   ═══════════════════════════════════════════════════════════════════════════ */
.hero .animated-gradient-text {
    background: linear-gradient(90deg,
            #8FD3FF 0%,
            #A5B4FC 52%,
            #C4B5FD 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 5.2s ease-in-out infinite;
    text-shadow: 0 0 22px rgba(125, 211, 252, 0.32), 0 0 34px rgba(139, 92, 246, 0.24);
    -webkit-text-stroke: 0.5px rgba(10, 14, 28, 0.32);
}

.hero .typing-cursor {
    color: #EAF2FF;
    text-shadow: 0 0 14px rgba(125, 211, 252, 0.65);
}

@keyframes gradientFlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   GLOW BREATHING EFFECT
   ═══════════════════════════════════════════════════════════════════════════ */
.glow-breathing {
    animation: glowBreathing 3s ease-in-out infinite;
}

@keyframes glowBreathing {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.6), 0 0 80px rgba(168, 85, 247, 0.3);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SHIMMER EFFECT - BADGE HIGHLIGHT
   ═══════════════════════════════════════════════════════════════════════════ */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.15),
            transparent);
    animation: shimmerSlide 3s ease-in-out infinite;
}

@keyframes shimmerSlide {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 150%;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ELASTIC BUTTON EFFECT
   ═══════════════════════════════════════════════════════════════════════════ */
.btn-elastic {
    transition: transform 0.4s var(--ease-spring);
}

.btn-elastic:hover {
    transform: scale(1.05);
}

.btn-elastic:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GLOW PULSE EFFECT FOR CTA
   ═══════════════════════════════════════════════════════════════════════════ */
.glow-pulse {
    animation: glowPulse 2.5s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    }

    50% {
        box-shadow: 0 4px 30px rgba(255, 255, 255, 0.25), 0 0 50px rgba(99, 102, 241, 0.2);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PARALLAX DEPTH LAYERS
   ═══════════════════════════════════════════════════════════════════════════ */
[data-parallax] {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCROLL-TRIGGERED COUNTER ANIMATION
   ═══════════════════════════════════════════════════════════════════════════ */
.counter {
    font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STAGGER CHILDREN ANIMATION - ENHANCED SHOPIFY STYLE
   Parent triggers staggered child animations with smooth blur
   ═══════════════════════════════════════════════════════════════════════════ */
.stagger-children>* {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    filter: blur(10px);
    transition:
        opacity 1s var(--ease-shopify),
        transform 1s var(--ease-shopify),
        filter 1s var(--ease-shopify);
}

.stagger-children.visible>* {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.stagger-children.visible>*:nth-child(1) {
    transition-delay: 0ms;
}

.stagger-children.visible>*:nth-child(2) {
    transition-delay: 150ms;
}

.stagger-children.visible>*:nth-child(3) {
    transition-delay: 300ms;
}

.stagger-children.visible>*:nth-child(4) {
    transition-delay: 450ms;
}

.stagger-children.visible>*:nth-child(5) {
    transition-delay: 600ms;
}

.stagger-children.visible>*:nth-child(6) {
    transition-delay: 750ms;
}

.stagger-children.visible>*:nth-child(7) {
    transition-delay: 900ms;
}

.stagger-children.visible>*:nth-child(8) {
    transition-delay: 1050ms;
}

.stagger-children.visible>*:nth-child(9) {
    transition-delay: 1200ms;
}

.stagger-children.visible>*:nth-child(4) {
    transition-delay: 300ms;
}

.stagger-children.visible>*:nth-child(5) {
    transition-delay: 400ms;
}

.stagger-children.visible>*:nth-child(6) {
    transition-delay: 500ms;
}

.stagger-children.visible>*:nth-child(7) {
    transition-delay: 600ms;
}

.stagger-children.visible>*:nth-child(8) {
    transition-delay: 700ms;
}

.stagger-children.visible>*:nth-child(9) {
    transition-delay: 800ms;
}

.stagger-children.visible>*:nth-child(10) {
    transition-delay: 900ms;
}

.stagger-children.visible>* {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO TITLE WORD ANIMATION
   ═══════════════════════════════════════════════════════════════════════════ */
.hero-title-line {
    display: inline-block;
    overflow: hidden;
}

.hero-title-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: wordSlideUp 0.8s var(--ease-shopify) forwards;
}

.hero-title-word:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-title-word:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-title-word:nth-child(3) {
    animation-delay: 0.3s;
}

.hero-title-word:nth-child(4) {
    animation-delay: 0.4s;
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   REVEAL ANIMATIONS - SHOPIFY STYLE WITH SMOOTH BLUR
   Enhanced animations with blur and scale for smoother transitions
   ═══════════════════════════════════════════════════════════════════════════ */
.fade-in-up {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    filter: blur(8px);
    transition:
        opacity 1.2s var(--ease-shopify),
        transform 1.2s var(--ease-shopify),
        filter 1.2s var(--ease-shopify);
    will-change: opacity, transform, filter;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.reveal-up {
    opacity: 0;
    transform: translateY(80px);
    filter: blur(12px);
    transition:
        opacity 1.4s var(--ease-shopify),
        transform 1.4s var(--ease-shopify),
        filter 1.4s var(--ease-shopify);
    will-change: opacity, transform, filter;
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    filter: blur(10px);
    transition:
        opacity 1.3s var(--ease-shopify),
        transform 1.3s var(--ease-shopify),
        filter 1.3s var(--ease-shopify);
    will-change: opacity, transform, filter;
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

.reveal-rotate {
    opacity: 0;
    transform: perspective(1000px) rotateX(15deg) translateY(40px);
    filter: blur(8px);
    transition:
        opacity 1.2s var(--ease-shopify),
        transform 1.2s var(--ease-shopify),
        filter 1.2s var(--ease-shopify);
    will-change: opacity, transform, filter;
}

.reveal-rotate.visible {
    opacity: 1;
    transform: perspective(1000px) rotateX(0) translateY(0);
    filter: blur(0);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCROLL INDICATOR - BOUNCING ARROW
   ═══════════════════════════════════════════════════════════════════════════ */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.6;
    animation: fadeInDelay 1s 1.5s var(--ease-out) forwards;
    opacity: 0;
}

.scroll-indicator span {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-tertiary);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes fadeInDelay {
    to {
        opacity: 0.6;
    }
}

@keyframes bounce {

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

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

    60% {
        transform: translateY(5px);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SHOPIFY-STYLE VIEWPORT EDGE GLOW
   Subtle cyan aura framing the viewport for a "lit screen" feel
   ═══════════════════════════════════════════════════════════════════════════ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    box-shadow:
        inset 0 0 150px rgba(0, 180, 255, 0.06),
        inset 0 0 80px rgba(99, 102, 241, 0.04),
        inset 0 0 40px rgba(168, 85, 247, 0.03);
    opacity: 1;
    transition: opacity 0.8s var(--ease-smooth);
}

/* Enhance glow slightly on scroll */
body.scrolled::before {
    box-shadow:
        inset 0 0 120px rgba(0, 180, 255, 0.08),
        inset 0 0 60px rgba(99, 102, 241, 0.05),
        inset 0 0 30px rgba(168, 85, 247, 0.04);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    letter-spacing: -0.01em;
    transition: background-color 0.8s var(--ease-shopify);
}

/* Smooth scroll behavior for the entire page */
body,
html {
    scroll-behavior: smooth;
}

/* Enhanced smooth scrolling for webkit browsers */
@supports (-webkit-overflow-scrolling: touch) {
    body {
        -webkit-overflow-scrolling: touch;
    }
}

/* Scroll Progress Bar - Shopify Cyan */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-primary), var(--accent-secondary));
    z-index: 10001;
    width: 0%;
    transition: width 0.15s linear;
    box-shadow:
        0 0 20px rgba(0, 200, 255, 0.5),
        0 0 40px rgba(99, 102, 241, 0.3);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    letter-spacing: -0.025em;
    /* Tighter headings */
    line-height: 1.1;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    /* Slightly smaller max for better rhythm */
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.7;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-small {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* Feature Bullets (New) */
.feature-bullets {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.feature-bullets li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
}

.feature-bullets li::before {
    content: '•';
    color: var(--accent-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Typing Effect Cursor */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: var(--accent-primary);
    margin-left: 4px;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    /* Standardized width */
    margin: 0 auto;
    padding: 0 1.5rem;
    /* Tighter padding on mobile default */
    width: 100%;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

section {
    padding: 8rem 0;
    position: relative;
    transition: background 1.2s var(--ease-shopify), opacity 0.8s var(--ease-shopify);
    will-change: background;
}

@media (max-width: 768px) {
    section {
        padding: 5rem 0;
    }
}

/* Smooth section transitions on scroll */
section.in-view {
    animation: sectionFadeIn 1.2s var(--ease-shopify) forwards;
}

@keyframes sectionFadeIn {
    from {
        opacity: 0.8;
    }

    to {
        opacity: 1;
    }
}


/* Glowing Divider */
.glow-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.2;
    margin: 0 auto;
    max-width: 600px;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Spotlight Effect - Liquid Glass with Smooth Transitions */
.spotlight-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    /* Highlight top edge */
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    --mouse-x: 50%;
    --mouse-y: 50%;
    transition:
        transform 0.6s var(--ease-shopify),
        box-shadow 0.6s var(--ease-shopify),
        border-color 0.6s var(--ease-shopify),
        background 0.6s var(--ease-shopify);

    /* Liquid Glass Blur */
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    will-change: transform, box-shadow;
}

.spotlight-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 200, 255, 0.35);
    box-shadow:
        0 30px 60px -15px rgba(0, 0, 0, 0.7),
        0 0 50px rgba(0, 200, 255, 0.15),
        0 0 100px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
}

/* Spotlight Gradients (Pseudo-elements) - Keeping logic but softening */
.spotlight-card::before,
.spotlight-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s var(--ease-smooth);
    z-index: 1;
}

.spotlight-card::before {
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.03), transparent 40%);
}

.spotlight-card::after {
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), var(--accent-glow-cyan), transparent 40%);
}

.spotlight-card:hover::before,
.spotlight-card:hover::after {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SHOPIFY-STYLE SCROLL ANIMATIONS
   Float-in effect with scale + translate for premium feel
   ═══════════════════════════════════════════════════════════════════════════ */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition:
        opacity 1s var(--ease-shopify),
        transform 1s var(--ease-shopify);
    will-change: opacity, transform;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Fade in from sides for variety */
.fade-in-left {
    opacity: 0;
    transform: translateX(-40px) scale(0.96);
    transition:
        opacity 1s var(--ease-shopify),
        transform 1s var(--ease-shopify);
    will-change: opacity, transform;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px) scale(0.96);
    transition:
        opacity 1s var(--ease-shopify),
        transform 1s var(--ease-shopify);
    will-change: opacity, transform;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Scale in for center elements */
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition:
        opacity 0.8s var(--ease-shopify),
        transform 0.8s var(--ease-shopify);
    will-change: opacity, transform;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ... keep animation delay classes ... */

/* Buttons - Enhanced with Smooth Shopify Transitions */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition:
        transform 0.5s var(--ease-shopify),
        box-shadow 0.5s var(--ease-shopify),
        background 0.5s var(--ease-shopify),
        border-color 0.5s var(--ease-shopify),
        color 0.5s var(--ease-shopify);
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
    will-change: transform;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-body);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.25), 0 0 40px rgba(99, 102, 241, 0.15);
    background: #ffffff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
    transform: translateY(-3px) scale(1.02);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}



/* Ripple effect container */
.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-anim 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-anim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Navigation Styles - "Liquid Glass" PRO Compact with Smooth Transitions */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1080;
    background: linear-gradient(90deg, rgba(22, 18, 44, 0.72) 0%, rgba(9, 12, 28, 0.78) 50%, rgba(18, 16, 42, 0.72) 100%);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border-bottom: 1px solid rgba(120, 124, 255, 0.22);
    box-shadow:
        0 12px 38px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition:
        background 0.6s var(--ease-shopify),
        backdrop-filter 0.6s var(--ease-shopify),
        border-color 0.6s var(--ease-shopify),
        box-shadow 0.6s var(--ease-shopify),
        transform 0.6s var(--ease-shopify);
    will-change: background, transform;
}

nav.scrolled {
    background: linear-gradient(90deg, rgba(12, 10, 22, 0.9) 0%, rgba(9, 10, 20, 0.94) 50%, rgba(12, 10, 22, 0.9) 100%);
    border-bottom-color: rgba(141, 159, 255, 0.34);
    box-shadow:
        0 14px 46px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

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

/* Logo Fix - Contained */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1002;
    /* Above mobile menu */
    position: relative;
}

.logo-img {
    height: 40px;
    /* Contained within 60px nav */
    width: auto;
    display: block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
    margin-top: 0;
    /* Align center */
    transition: transform 0.3s var(--ease-spring);
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Desktop Links */
.nav-links {
    display: flex;
    gap: 1.65rem;
    align-items: center;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
}

.nav-links a {
    color: rgba(227, 232, 255, 0.82);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.25s var(--ease-out);
    position: relative;
    padding: 0.32rem 0.18rem;
    letter-spacing: 0.01em;
}

.nav-links a:hover {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(139, 92, 246, 0.65);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.38rem;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, #60A5FA 0%, #A855F7 50%, #EC4899 100%);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.28s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    z-index: 1002;
}

.nav-cta {
    padding: 0.62rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(141, 159, 255, 0.28);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    color: #f8faff;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 28px rgba(10, 10, 28, 0.36);
}

.nav-cta:hover {
    border-color: rgba(168, 85, 247, 0.55);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.34), 0 0 24px rgba(168, 85, 247, 0.28);
    transform: translateY(-1px);
}

/* Mobile Toggle Logic */
.mobile-menu-btn {
    display: none;
    /* Hidden on desktop by default */
}

@media (max-width: 768px) {
    .nav-links:not(.mobile-open) {
        display: none;
        /* Hidden on mobile unless toggled via JS class */
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .nav-cta {
        display: none;
        /* Hide CTA button on very small screens if needed, or keep */
    }
}

/* Hero Section - Enhanced */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 8rem;
    padding-bottom: 4rem;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 54%, rgba(4, 6, 18, 0.0) 0%, rgba(4, 6, 18, 0.0) 45%, rgba(4, 6, 18, 0.16) 100%);
    z-index: 1;
    pointer-events: none;
}

.intro-nebula-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.82;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1600px;
    height: 1200px;
    background: radial-gradient(ellipse at center,
            rgba(0, 200, 255, 0.12) 0%,
            rgba(99, 102, 241, 0.15) 20%,
            rgba(168, 85, 247, 0.06) 40%,
            rgba(0, 0, 0, 0) 70%);
    z-index: 2;
    pointer-events: none;
    filter: blur(100px);
    animation: hero-glow-pulse 10s ease-in-out infinite;
    will-change: opacity, transform;
}

@keyframes hero-glow-pulse {

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

    50% {
        opacity: 0.75;
        transform: translate(-50%, -50%) scale(1.08) rotate(2deg);
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.hero h1 {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: initial;
    color: #F8FAFF;
    text-shadow: 0 8px 34px rgba(4, 6, 18, 0.88), 0 0 16px rgba(120, 132, 255, 0.3);
}

.hero p {
    color: rgba(238, 243, 255, 0.92);
    text-shadow: 0 4px 22px rgba(4, 6, 18, 0.8);
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(14, 20, 48, 0.36);
    border: 1px solid rgba(167, 187, 255, 0.45);
    border-radius: 50px;
    color: #EAF2FF;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    transition:
        background 0.3s var(--ease-out),
        border-color 0.3s var(--ease-out),
        transform 0.3s var(--ease-out),
        color 0.3s var(--ease-out);
    text-shadow: 0 0 12px rgba(96, 165, 250, 0.45);
}

.hero-badge:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

/* Scrolling Feature Rows (Marquee) */
.scrolling-features-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 4rem;
    overflow: hidden;
    /* Hide overflow */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    /* Break out of container to full width */
    position: relative;
    padding: 2rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.scroll-row {
    display: flex;
    width: 100%;
    position: relative;
    overflow: hidden;
}


.scroll-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    /* Ensure width fits content */
    animation: scroll-left 40s linear infinite;
}

.scroll-row.reverse .scroll-track {
    animation: scroll-right 45s linear infinite;
}

.scroll-row:hover .scroll-track {
    animation-play-state: paused;
}

/* Ensure Bento Items fit in scroll */
.scrolling-features-container .bento-item {
    width: 400px;
    /* Fixed width for consistency */
    flex-shrink: 0;
    height: 320px;
    /* Uniform height */
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 1rem));
        /* Scroll half way (duplicates) */
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(calc(-50% - 1rem));
    }

    100% {
        transform: translateX(0);
    }
}

.bento-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Visual Previews - Layout Update */
.visual-preview {
    position: relative;
    /* Changed from absolute */
    width: 100%;
    height: 220px;
    /* Fixed height for visual area */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.01);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.bento-item.large .visual-preview {
    height: 350px;
}

.bento-item.medium .visual-preview {
    height: 200px;
}

.bento-item:hover .visual-preview {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
}

.ui-card {
    /* Reset ui-card styles if needed, or keep for legacy */
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease;
}

.bento-item:hover .ui-card {
    transform: translateY(-5px) rotate(-2deg);
    border-color: rgba(141, 159, 255, 0.2);
}

.ui-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(141, 159, 255, 0.1), rgba(188, 130, 243, 0.1));
    box-shadow: 0 0 20px rgba(141, 159, 255, 0.1);
    transition: transform 0.4s ease;
}

.bento-item:hover .ui-circle {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(141, 159, 255, 0.2);
}

.visual-foundation .ui-card {
    top: 20%;
    left: 10%;
    width: 80%;
    height: 60%;
    transform: rotate(-5deg);
}

.visual-lecture .ui-circle {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.visual-review .ui-card {
    top: 15%;
    right: 10%;
    width: 70%;
    height: 50%;
}

.visual-review .ui-card:nth-child(2) {
    top: 35%;
    right: 20%;
    width: 50%;
    height: 35%;
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

/* Calendar Grid Visual for Scheduler */
.visual-scheduler {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    height: 100%;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    /* Larger gap */
    opacity: 0.9;
    /* Increased visibility */
    transition: opacity 0.4s var(--ease-smooth);
}

.bento-item:hover .calendar-grid {
    opacity: 1;
}

.calendar-cell {
    width: 36px;
    /* Larger cells */
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s var(--ease-spring);
}

.calendar-cell.active {
    background: rgba(99, 102, 241, 0.4);
    /* More vivid active state */
    border-color: rgba(99, 102, 241, 0.8);
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.calendar-cell.highlight {
    background: rgba(255, 255, 255, 0.25);
}

.bento-item:hover .calendar-cell.highlight {
    transform: scale(1.15);
}

/* Professional App Card Visuals */
.app-card {
    width: 160px;
    height: 120px;
    background: rgba(30, 30, 35, 0.95);
    /* Brightened from 15,15,20 */
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Brighter border */
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.5s var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.bento-item:hover .app-card {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Card Header */
.card-header {
    height: 24px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 6px;
}

.card-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.card-dot.red {
    background: rgba(255, 95, 87, 0.5);
}

.card-dot.yellow {
    background: rgba(255, 189, 46, 0.5);
}

.card-dot.green {
    background: rgba(39, 201, 63, 0.5);
}

/* Card Body */
.card-body {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

/* Feature Specific: Smart Indexing (Categorized Tags) */
.folder-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 4px;
}

.folder-tab {
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px 4px 0 0;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.folder-tab.active {
    color: #fff;
    background: rgba(99, 102, 241, 0.2);
    border-bottom: 2px solid var(--accent-primary);
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.file-row {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.file-icon {
    font-size: 0.8rem;
}

/* Feature Specific: Smart Summaries (Transformation) */
.summary-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 4px;
}

.doc-mini,
.summary-mini {
    width: 40px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-mini {
    border-color: rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.1);
}

.d-line,
.s-line {
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1.5px;
    width: 100%;
}

.s-line.highlight {
    background: var(--accent-secondary);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

.flow-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* Feature Specific: Hint System (Reveal UI) */
.hint-ui {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.hint-q-line {
    height: 4px;
    width: 80%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    align-self: flex-start;
}

.hint-btn {
    font-size: 0.65rem;
    padding: 4px 10px;
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bulb-icon {
    font-size: 0.8rem;
}

.hint-box {
    width: 100%;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.h-line {
    height: 4px;
    width: 90%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    filter: blur(2px);
    /* Blurred hint effect */
    transition: all 0.4s ease;
}

.bento-item:hover .h-line {
    filter: blur(0);
    background: rgba(251, 191, 36, 0.4);
}

/* Feature Specific: Quiz Generation (MCQ) */
.quiz-ui {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.quiz-q-line {
    height: 4px;
    width: 90%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    margin-bottom: 4px;
}

.quiz-opt {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    border: 1px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-opt.selected {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #fff;
}

.check {
    color: #10b981;
    font-weight: bold;
}

/* Sound Wave Animation */
.sound-wave-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 100%;
}

.sound-wave {
    width: 4px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: soundWave 1s infinite ease-in-out;
}

@keyframes soundWave {

    0%,
    100% {
        height: 20px;
        opacity: 0.5;
    }

    50% {
        height: 50px;
        opacity: 1;
    }
}

.visual-podcast {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 100%;
}

/* Interactive Demo Section - Enhanced */
.demo-interface {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 2.5rem;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: border-color 0.4s var(--ease-smooth);
}

.demo-interface:hover {
    border-color: var(--border-hover);
}

.demo-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    z-index: 2;
    flex-wrap: wrap;
    justify-content: center;
}

.demo-controls .btn {
    transition:
        transform 0.3s var(--ease-spring),
        background 0.3s var(--ease-out),
        box-shadow 0.3s var(--ease-out);
}

.demo-controls .btn:hover {
    transform: translateY(-3px) scale(1.02);
}

.demo-controls .btn.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.demo-controls .btn:active {
    transform: translateY(0) scale(0.96);
    transition: transform 0.1s var(--ease-out);
}

.demo-screen {
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
    transition:
        background 0.4s var(--ease-smooth),
        border-color 0.4s var(--ease-smooth);
}

.demo-screen:hover {
    background: rgba(255, 255, 255, 0.03);
}

.demo-loader {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

.demo-result {
    display: none;
    width: 100%;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUpSmooth 0.7s var(--ease-out) forwards;
}

@keyframes fadeInUpSmooth {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Analytics Section (Graphs) */
.analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

.graph-card {
    padding: 2rem;
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.graph-container {
    flex-grow: 1;
    position: relative;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.graph-line {
    fill: none;
    stroke: var(--accent-primary);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 2s ease;
}

.graph-line.animate {
    stroke-dashoffset: 0;
}

/* Radar Chart */
.radar-chart {
    width: 200px;
    height: 200px;
    position: relative;
}

.radar-polygon {
    fill: rgba(141, 159, 255, 0.2);
    stroke: var(--accent-primary);
    stroke-width: 2;
    transform: scale(0);
    transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
}

.radar-polygon.animate {
    transform: scale(1);
}

.radar-axis {
    stroke: var(--border-subtle);
    stroke-width: 1;
}

/* Activity Heatmap */
.heatmap-container {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
    align-content: center;
}

.heatmap-cell {
    width: 100%;
    padding-bottom: 100%;
    /* Square aspect ratio */
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.5s ease, transform 0.3s ease;
}

.heatmap-cell:hover {
    transform: scale(1.2);
    z-index: 2;
    box-shadow: 0 0 10px var(--accent-primary);
}

.heatmap-cell.active-1 {
    background: rgba(99, 102, 241, 0.2);
}

.heatmap-cell.active-2 {
    background: rgba(99, 102, 241, 0.4);
}

.heatmap-cell.active-3 {
    background: rgba(99, 102, 241, 0.6);
}

.heatmap-cell.active-4 {
    background: rgba(99, 102, 241, 0.8);
}

.heatmap-cell.active-5 {
    background: #6366F1;
    box-shadow: 0 0 5px #6366F1;
}

/* Testimonials Marquee with Smooth Transitions */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 4rem 0;
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-body), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg-body), transparent);
}

.marquee-content {
    display: inline-flex;
    gap: 2rem;
    animation: scroll 30s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.testimonial-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.5rem;
    width: 300px;
    white-space: normal;
    transition:
        transform 0.7s var(--ease-shopify),
        box-shadow 0.7s var(--ease-shopify),
        border-color 0.7s var(--ease-shopify),
        background 0.7s var(--ease-shopify);
    will-change: transform;
}

.testimonial-card:hover {
    transform: scale(1.05) translateY(-6px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(99, 102, 241, 0.1);
    background: rgba(15, 15, 18, 0.8);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Pricing, FAQ, Footer (Existing) */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.pricing-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

/* Per-tier color identities */
.pricing-card:nth-child(1) { --tier-color: #6ee7b7; --tier-glow: rgba(110, 231, 183, 0.15); --tier-gradient: linear-gradient(135deg, #6ee7b7, #3b82f6); }
.pricing-card:nth-child(2) { --tier-color: #00C8FF; --tier-glow: rgba(0, 200, 255, 0.15); --tier-gradient: linear-gradient(135deg, #00C8FF, #6366F1); }
.pricing-card:nth-child(3) { --tier-color: #A855F7; --tier-glow: rgba(168, 85, 247, 0.2);  --tier-gradient: linear-gradient(135deg, #818CF8, #C084FC, #F472B6); }
.pricing-card:nth-child(4) { --tier-color: #F59E0B; --tier-glow: rgba(245, 158, 11, 0.15); --tier-gradient: linear-gradient(135deg, #F59E0B, #EF4444); }

.pricing-tier-label {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--tier-color);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--tier-color);
    border-radius: 20px;
    padding: 0.2rem 0.7rem;
    margin-bottom: 1rem;
}

.pricing-alt-price {
    font-size: 0.85rem;
    color: var(--tier-color);
    opacity: 0.8;
    margin-top: -0.8rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.pricing-tagline {
    font-size: 0.82rem;
    color: var(--text-tertiary);
    font-style: italic;
    margin-bottom: 1.8rem;
    min-height: 2.5rem;
    line-height: 1.5;
}

.pricing-card {
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.07);
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    transition:
        transform 0.5s var(--ease-spring),
        box-shadow 0.5s var(--ease-smooth),
        border-color 0.3s ease;
}

/* Top accent bar per tier */
.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--tier-gradient);
    border-radius: 24px 24px 0 0;
    opacity: 0.9;
}

/* Subtle glow blob in background */
.pricing-card::after {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, var(--tier-color) 0%, transparent 70%);
    opacity: 0.07;
    pointer-events: none;
    transition: opacity 0.4s ease;
    border-radius: 50%;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--tier-color);
    box-shadow: 0 20px 60px var(--tier-glow), 0 0 0 1px var(--tier-color);
}

.pricing-card:hover::after {
    opacity: 0.14;
}

.pricing-card.featured {
    border-color: var(--tier-color);
    background: var(--bg-surface);
    box-shadow: 0 0 50px var(--tier-glow), 0 0 0 1px var(--tier-color);
    transform: none;
}

.pricing-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.pricing-card .btn {
    margin-top: auto;
}

.price {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 1.2rem 0 0.4rem;
    background: var(--tier-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -0.03em;
}

.price span {
    font-size: 0.95rem;
    -webkit-text-fill-color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0;
}

.pricing-features {
    list-style: none;
    text-align: left;
    flex: 1;
    text-align: left;
    margin: 1.5rem 0 2rem;
}

.pricing-features li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.88rem;
    line-height: 1.4;
}

.pricing-features li::before {
    content: '✓';
    color: var(--tier-color);
    font-weight: 700;
    font-size: 0.8rem;
    background: var(--tier-glow);
    border: 1px solid var(--tier-color);
    border-radius: 50%;
    width: 1.2rem;
    height: 1.2rem;
    min-width: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.5rem;
}

.faq-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Task Bot vs Chatbot Visuals */
.comparison-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.comparison-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    width: 250px;
    text-align: center;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.comparison-card.reactive {
    opacity: 0.7;
}

.comparison-card.proactive {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
    transform: scale(1.05);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-tertiary);
    margin: 1rem auto;
}

.status-dot.active {
    background: #4ADE80;
    box-shadow: 0 0 10px #4ADE80;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

.arrow {
    font-size: 2rem;
    color: var(--text-tertiary);
}

/* Analytics Graphs Enhanced */
.graph-card {
    position: relative;
    overflow: hidden;
}

.graph-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.comparison-table th,
.comparison-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.roadmap-steps {
    --timeline-marker-size: 52px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.roadmap-steps::before {
    content: '';
    position: absolute;
    left: calc(var(--timeline-marker-size) / 2);
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, rgba(99, 102, 241, 0.2), var(--border-subtle), rgba(168, 85, 247, 0.2));
}

.step {
    display: flex;
    gap: 2rem;
    position: relative;
}

.step-marker {
    width: var(--timeline-marker-size);
    height: var(--timeline-marker-size);
    min-width: var(--timeline-marker-size);
    min-height: var(--timeline-marker-size);
    flex: 0 0 var(--timeline-marker-size);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.18), rgba(10, 10, 12, 0.95));
    border: 1px solid rgba(99, 102, 241, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.step-marker.active {
    background: var(--accent-primary);
    color: var(--bg-body);
    box-shadow: 0 0 20px var(--accent-glow);
    border-color: var(--accent-primary);
}

.step-marker.done {
    background: rgba(141, 159, 255, 0.1);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.step-content {
    padding-bottom: 2rem;
}

.step-month-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 0.35rem;
    opacity: 0.85;
}

.step-bullets {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.step-bullets li {
    position: relative;
    padding-left: 1.1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.step-bullets li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    opacity: 0.6;
}

@media (max-width: 768px) {
    .roadmap-steps {
        --timeline-marker-size: 44px;
    }

    .step {
        gap: 1rem;
    }
}

/* Demo Video Section */
.demo-video-frame {
    max-width: 1080px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.28);
    background: rgba(5, 5, 10, 0.75);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.5),
        0 0 45px rgba(99, 102, 241, 0.18);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.55s ease, border-color 0.55s ease;
    transform-origin: center center;
}

.demo-video-frame:hover {
    transform: scale(1.07);
    border-color: rgba(168, 85, 247, 0.8);
    box-shadow:
        0 40px 110px rgba(0, 0, 0, 0.72),
        0 0 100px rgba(168, 85, 247, 0.45);
}

.demo-video-player {
    display: block;
    width: 100%;
    height: auto;
    min-height: 360px;
    background: #000;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.55s ease;
}

.demo-video-frame:hover .demo-video-player {
    transform: scale(1.04);
    filter: saturate(1.08) brightness(1.04);
}

.demo-video-fallback {
    margin: 0;
    padding: 0.8rem 1rem 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.demo-video-fallback a {
    color: var(--accent-cyan);
    text-decoration: underline;
}

/* Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-layout.reverse {
    direction: rtl;
}

.split-layout.reverse>* {
    direction: ltr;
}

/* Feature List (Privacy Section) */
.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Comparison Visual */
.comparison-visual {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: center;
}

.comparison-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    width: 200px;
    text-align: center;
    transition: all 0.3s ease;
}

.comparison-card.proactive {
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(141, 159, 255, 0.1);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-tertiary);
    margin: 1rem auto;
}

.status-dot.active {
    background: #4ADE80;
    /* Green */
    box-shadow: 0 0 10px #4ADE80;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

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

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

.arrow {
    font-size: 2rem;
    color: var(--text-tertiary);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Sound Wave Animation */
.sound-wave {
    width: 6px;
    height: 100%;
    background: var(--accent-primary);
    border-radius: 10px;
    animation: sound-wave 1s ease-in-out infinite;
}

@keyframes sound-wave {

    0%,
    100% {
        height: 20%;
        opacity: 0.5;
    }

    50% {
        height: 100%;
        opacity: 1;
    }
}

.visual-podcast {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 100%;
}


/* =========================================
   Refined Bento Grid (Graceful & Elegant)
   ========================================= */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(340px, auto);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-item {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.8s var(--ease-shopify),
        background 0.8s var(--ease-shopify),
        border-color 0.8s var(--ease-shopify),
        box-shadow 0.8s var(--ease-shopify);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    will-change: transform;
}

.bento-item:hover {
    transform: translateY(-8px) scale(1.01);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(99, 102, 241, 0.2);
}

/* Spanning Utilities */
.bento-item.medium {
    grid-column: span 2;
}

.bento-item.large {
    grid-column: span 3;
}

/* Content Styling */
.bento-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 2;
    position: relative;
    width: 100%;
    background: transparent;
    /* Removed heavy gradient for cleaner look */
}

.bento-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.6s var(--ease-shopify),
        background 0.6s var(--ease-shopify),
        border-color 0.6s var(--ease-shopify);
}

.bento-item:hover .bento-icon {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent-primary);
    transform: scale(1.15) rotate(5deg);
}

.bento-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.bento-item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    margin-bottom: 0;
    max-width: 100%;
}

/* Feature List in Cards */
.feature-bullets li {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.4rem;
}

/* Visual Preview Refinements */
.visual-preview {
    position: relative;
    /* Changed from absolute to relative for stacking */
    width: 100%;
    height: 240px;
    /* Fixed height for visual part in small cards */
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.08), transparent 70%);
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    border-bottom: none;
    overflow: visible;
    /* Allow hover effects to pop slightly */
}

/* Medium & Large Layouts (Side-by-Side) */
.bento-item.medium,
.bento-item.large {
    flex-direction: row;
    align-items: center;
}

.bento-item.medium .visual-preview,
.bento-item.large .visual-preview {
    position: relative;
    width: 55%;
    height: 100%;
    order: 2;
    mask-image: linear-gradient(to right, transparent 0%, black 15%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%);
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.1), transparent 70%);
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.03);
}

.bento-item.large .visual-preview {
    width: 60%;
}

.bento-item.medium .bento-content,
.bento-item.large .bento-content {
    width: 45%;
    height: 100%;
    justify-content: center;
    padding: 3rem;
    order: 1;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.2), transparent);
}

.bento-item.large .bento-content {
    width: 40%;
}

/* Specific adjustments for content typography in large cards */
.bento-item.medium h3,
.bento-item.large h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.bento-item.medium p,
.bento-item.large p {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-item.large,
    .bento-item.medium {
        grid-column: span 2;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .split-layout.reverse {
        direction: ltr;
    }

    .split-layout.reverse>* {
        direction: ltr;
    }

    .pricing-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-item.large,
    .bento-item.medium {
        grid-column: span 1;
    }

    .nav-links:not(.mobile-open) {
        display: none;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid,
    .pricing-grid-4 {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

.step-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.5rem;
    flex-grow: 1;
}

footer {
    border-top: 1px solid var(--border-subtle);
    padding: 6rem 0 2rem;
    margin-top: 4rem;
    background: linear-gradient(180deg, var(--bg-body) 0%, var(--bg-surface) 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media screen and (max-width: 1024px) {

    .bento-grid,
    .analytics-grid,
    .pricing-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .bento-item.large {
        grid-column: span 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* --- New Visual Styles --- */

/* Podcast Visual */
.visual-podcast {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.sound-wave {
    width: 6px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 4px;
    animation: wave 1.2s ease-in-out infinite;
}

@keyframes wave {

    0%,
    100% {
        height: 20px;
        opacity: 0.5;
    }

    50% {
        height: 60px;
        opacity: 1;
    }
}

/* Task Bot vs Chatbot Section */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media screen and (max-width: 768px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
}

.comparison-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
}

.comparison-visual::before {
    content: '';
    position: absolute;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.12), transparent 60%);
    z-index: -1;
    top: -20%;
    left: -20%;
    pointer-events: none;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {

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

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

.comparison-card {
    background: rgba(20, 20, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    width: 240px;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.comparison-card h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0;
    color: var(--text-secondary);
}

.comparison-card p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-tertiary);
}

.comparison-card.reactive {
    opacity: 0.5;
    transform: scale(0.95);
    border-style: dashed;
}

.comparison-card.reactive:hover {
    opacity: 0.8;
    transform: scale(0.98);
    border-color: var(--text-secondary);
}

.comparison-card.proactive {
    background: rgba(30, 30, 35, 0.9);
    border: 1px solid rgba(99, 102, 241, 0.6);
    box-shadow:
        0 0 50px rgba(99, 102, 241, 0.2),
        inset 0 0 20px rgba(99, 102, 241, 0.1);
    transform: scale(1.08);
}

.comparison-card.proactive::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(45deg, transparent, rgba(99, 102, 241, 0.8), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.5;
}

.comparison-card.proactive h4 {
    color: #fff;
    font-weight: 600;
}

.comparison-card.proactive p {
    color: var(--text-primary);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-tertiary);
    margin: 0.5rem auto;
    position: relative;
}

.status-dot.active {
    background: #4ADE80;
    box-shadow: 0 0 20px #4ADE80;
    width: 14px;
    height: 14px;
}

.status-dot.active::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 1px solid #4ADE80;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0.5;
}

.arrow {
    font-size: 2rem;
    background: linear-gradient(to right, var(--text-tertiary), var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
    margin: 0 1rem;
    filter: drop-shadow(0 0 5px rgba(99, 102, 241, 0.3));
}

/* Roadmap Markers */
.step-marker.done {
    background: radial-gradient(circle at 35% 25%, rgba(129, 140, 248, 0.95), rgba(99, 102, 241, 0.9));
    color: #ffffff;
    border: 1px solid rgba(129, 140, 248, 0.95);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14), 0 10px 28px rgba(99, 102, 241, 0.35);
}

.step-marker.active {
    background: radial-gradient(circle at 30% 30%, rgba(168, 85, 247, 0.25), rgba(10, 10, 12, 0.95));
    border: 2px solid var(--accent-primary);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14), 0 0 18px rgba(141, 159, 255, 0.45);
}

/* Enhanced Glows */
.spotlight-card:hover {
    border-color: rgba(141, 159, 255, 0.3);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.hero-glow {
    background: radial-gradient(circle at center, rgba(141, 159, 255, 0.12) 0%, rgba(5, 5, 7, 0) 60%);
}

/* Mobile Menu Button */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
    position: relative;
}

.mobile-menu-btn .bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition:
        transform 0.4s var(--ease-out),
        opacity 0.3s var(--ease-out),
        background 0.3s var(--ease-out);
}

.mobile-menu-btn.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Navigation Overlay */
.nav-links.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background: rgba(8, 8, 18, 0.99);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 80px 2rem 2rem;
    z-index: 1050;
    animation: slideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    gap: 0;
    box-sizing: border-box;
}

/* Hide all fixed overlapping elements when mobile menu is open */
body.menu-open .flow-nebula-background,
body.menu-open .flow-scene,
body.menu-open .cursor-glow,
body.menu-open .section-progress,
body.menu-open .scroll-progress,
body.menu-open .floating-orbs {
    display: none !important;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.nav-links.mobile-open a {
    font-size: 1.5rem;
    font-weight: 500;
    padding: 1rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #ffffff;
    text-decoration: none;
    display: block;
    width: 100%;
    letter-spacing: 0.01em;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.nav-links.mobile-open a:hover {
    color: rgba(99, 102, 241, 1);
    padding-left: 0.75rem;
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition:
        opacity 0.4s var(--ease-out),
        visibility 0.4s var(--ease-out),
        transform 0.4s var(--ease-out),
        background 0.3s var(--ease-out),
        box-shadow 0.3s var(--ease-out);
    z-index: 100;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--bg-surface-hover);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.3);
    border-color: var(--accent-primary);
}

/* Newsletter Form Enhanced */
.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border-radius: 100px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition:
        border-color 0.3s var(--ease-out),
        background 0.3s var(--ease-out),
        box-shadow 0.3s var(--ease-out);
}

.newsletter-input::placeholder {
    color: var(--text-tertiary);
}

.newsletter-input:focus {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links:not(.mobile-open) {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .demo-controls {
        flex-wrap: wrap;
    }

    .demo-controls .btn {
        flex: 1 1 45%;
        min-width: 140px;
    }

    .comparison-visual {
        flex-direction: column;
    }

    .arrow {
        transform: rotate(90deg);
    }
}

/* =========================================
   Feature Card Visuals - Enhanced
   ========================================= */

/* General Visual Container Adjustments */
.visual-preview {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
    perspective: 1000px;
}

/* 1. Graceful Foundation Visuals */
.foundation-preview {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.doc-layer {
    position: absolute;
    width: 200px;
    height: 280px;
    background: rgba(255, 255, 255, 0.08);
    /* Brightened from 0.05 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: transform 0.5s var(--ease-out);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}


.doc-layer.base {
    transform: rotate(-6deg) translate(-10px, 10px);
    z-index: 1;
}

.doc-layer.mid {
    transform: rotate(-3deg) translate(-5px, 5px);
    z-index: 2;
    background: rgba(255, 255, 255, 0.12);
    /* Brightened from 0.07 */
}

.doc-layer.top {
    transform: rotate(0deg);
    z-index: 3;
    background: rgba(40, 40, 45, 0.9);
    /* Brightened from 30,30,35,0.8 */
    backdrop-filter: blur(10px);
    border-color: rgba(99, 102, 241, 0.3);
    overflow: hidden;
}

.bento-item:hover .doc-layer.base {
    transform: rotate(-12deg) translate(-20px, 15px);
}

.bento-item:hover .doc-layer.mid {
    transform: rotate(-6deg) translate(-10px, 8px);
}

.bento-item:hover .doc-layer.top {
    transform: rotate(0deg) scale(1.05);
    border-color: var(--accent-primary);
}

.handwriting-path {
    position: absolute;
    top: 40px;
    left: 30px;
    width: 150px;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='60' viewBox='0 0 120 60' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 30C20 20 30 40 40 30C50 20 60 40 70 30' stroke='%236366F1' stroke-width='2' stroke-linecap='round' stroke-dasharray='100' stroke-dashoffset='100'%3E%3Canimate attributeName='stroke-dashoffset' values='100;0' dur='2s' repeatCount='indefinite' /%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
}

.typing-cursor-anim {
    position: absolute;
    top: 130px;
    left: 30px;
    width: 3px;
    height: 20px;
    background: var(--accent-secondary);
    animation: blink 1s infinite;
}

.pencil-tool {
    position: absolute;
    bottom: 50px;
    right: 50px;
    width: 100px;
    height: 14px;
    background: linear-gradient(90deg, #333, #666);
    border-radius: 7px;
    transform: rotate(-45deg);
    z-index: 4;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s var(--ease-spring);
}

.pencil-tool::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 0;
    width: 12px;
    height: 100%;
    background: #fff;
    border-radius: 4px 0 0 4px;
    clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

.bento-item:hover .pencil-tool {
    transform: rotate(-45deg) translate(10px, -10px);
}

/* 2. Smart Indexing Visuals */
.indexing-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.file-card {
    position: absolute;
    width: 120px;
    height: 85px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.6s var(--ease-spring);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.file-tag {
    padding: 3px 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
}

.file-physics {
    top: 30px;
    left: 30px;
    transform: rotate(-5deg);
    z-index: 2;
}

.file-math {
    top: 40px;
    right: 30px;
    transform: rotate(5deg);
    z-index: 1;
}

.file-history {
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    z-index: 3;
}

.folder-target {
    position: absolute;
    bottom: 25px;
    width: 150px;
    height: 100px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s var(--ease-out);
}


.folder-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 8px 8px 0 0;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.folder-front {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: rgba(99, 102, 241, 0.4);
    border-radius: 0 0 8px 8px;
    border: 1px solid rgba(99, 102, 241, 0.5);
    z-index: 10;
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.bento-item:hover .file-physics {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    transition-delay: 0.1s;
}

.bento-item:hover .file-math {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    transition-delay: 0.2s;
}

.bento-item:hover .file-history {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    transition-delay: 0.3s;
}

.bento-item:hover .folder-target {
    opacity: 1;
    transform: translateY(0);
}

.bento-item:hover .folder-front {
    transform: rotateX(15deg);
}

/* 3. Smart Summaries Visuals */
.summary-anim-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.long-text-doc {
    width: 100px;
    height: 140px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.4s var(--ease-out);
}

.text-line {
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    width: 100%;
}

.text-line.short {
    width: 60%;
}

.transform-arrow {
    color: var(--accent-primary);
    width: 24px;
    height: 24px;
    opacity: 0.5;
    transition: all 0.4s ease;
}

.summary-card {
    width: 100px;
    height: 115px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
    transform: scale(0.9);
    opacity: 0.8;
    transition: all 0.4s var(--ease-spring);
}

.summary-bullet {
    height: 8px;
    background: var(--accent-primary);
    border-radius: 4px;
    width: 100%;
    opacity: 0.8;
}


.bento-item:hover .long-text-doc {
    transform: translateX(-10px) scale(0.95);
    opacity: 0.6;
}

.bento-item:hover .transform-arrow {
    transform: translateX(5px);
    opacity: 1;
    color: var(--accent-secondary);
}

.bento-item:hover .summary-card {
    transform: translateX(5px) scale(1.1);
    opacity: 1;
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.3);
    border-color: var(--accent-primary);
}

/* 4. Podcast Generation Visuals */
.podcast-ui {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-preview {
    width: 80px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s var(--ease-out);
}


.slide-content-lines {
    width: 70%;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 5px 0 rgba(255, 255, 255, 0.5), 0 10px 0 rgba(255, 255, 255, 0.5);
}

.connection-line {
    position: absolute;
    left: 110px;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), var(--accent-primary));
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.5s 0.2s var(--ease-out);
}

.audio-player-visual {
    width: 180px;
    height: 60px;
    background: rgba(10, 10, 12, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    position: absolute;
    right: 30px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.5s var(--ease-spring);
}


.play-btn-visual {
    width: 32px;
    height: 32px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


.play-btn-visual::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 8px solid white;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    margin-left: 2px;
}

.waveform-visual {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 20px;
    flex: 1;
}

.waveform-visual .bar {
    width: 3px;
    background: var(--accent-secondary);
    border-radius: 2px;
    height: 100%;
    animation: wave 1s ease-in-out infinite;
}

.waveform-visual .bar:nth-child(1) {
    animation-delay: 0.1s;
    height: 40%;
}

.waveform-visual .bar:nth-child(2) {
    animation-delay: 0.2s;
    height: 80%;
}

.waveform-visual .bar:nth-child(3) {
    animation-delay: 0.3s;
    height: 60%;
}

.waveform-visual .bar:nth-child(4) {
    animation-delay: 0.4s;
    height: 90%;
}

.waveform-visual .bar:nth-child(5) {
    animation-delay: 0.5s;
    height: 50%;
}

.waveform-visual .bar:nth-child(6) {
    animation-delay: 0.6s;
    height: 70%;
}

@keyframes wave {

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

    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.bento-item:hover .slide-preview {
    transform: translateY(-50%) scale(0.9);
    opacity: 0.7;
}

.bento-item:hover .connection-line {
    transform: scaleX(1);
}

.bento-item:hover .audio-player-visual {
    transform: scale(1.05);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

/* 5. AI Lecture Mode Visuals */
.lecture-scene {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lecturer-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    position: absolute;
    top: 40px;
    z-index: 5;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}


.avatar-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {

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

.lecture-slides-flow {
    position: absolute;
    top: 90px;
    width: 160px;
    height: 100px;
    perspective: 500px;
}


.lecture-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
    /* Brightened from 0.05 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.6s var(--ease-smooth);
}

.lecture-slide.current {
    transform: translateZ(0);
    z-index: 2;
    background: rgba(40, 40, 45, 0.95);
    /* Brightened */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    /* Added shadow */
}

.lecture-slide.next {
    transform: translateZ(-50px) translateX(40px) rotateY(-20deg);
    z-index: 1;
    opacity: 0.5;
}

.speech-bubble-visual {
    position: absolute;
    top: 20px;
    right: 40px;
    background: white;
    padding: 6px 12px;
    border-radius: 12px;
    border-bottom-left-radius: 2px;
    opacity: 0;
    transform: translateY(10px) scale(0.8);
    transition: all 0.4s var(--ease-spring);
}

.typing-dots span {
    display: inline-block;
    width: 4px;
    height: 4px;
    background: #333;
    border-radius: 50%;
    margin: 0 1px;
    animation: blink 1.4s infinite both;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

.bento-item:hover .speech-bubble-visual {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.bento-item:hover .lecture-slide.current {
    transform: translateZ(-50px) translateX(-40px) rotateY(20deg);
    opacity: 0.5;
}

.bento-item:hover .lecture-slide.next {
    transform: translateZ(0);
    opacity: 1;
    z-index: 3;
    background: rgba(30, 30, 35, 0.9);
    border-color: var(--accent-primary);
}

/* 6. Hint System Visuals */
.hint-interaction {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.question-block {
    width: 180px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 20px;
}

.q-line {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 8px;
    border-radius: 3px;
}

.q-line.short {
    width: 60%;
}

.hint-bulb-trigger {
    font-size: 2.5rem;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s var(--ease-spring);
    z-index: 5;
}

.bulb-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 255, 0, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.hint-reveal-card {
    position: absolute;
    bottom: 30px;
    width: 200px;
    height: 70px;
    background: rgba(30, 30, 35, 0.95);
    border: 1px solid var(--accent-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    transition: all 0.4s var(--ease-spring);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.reveal-text {
    font-size: 1rem;
    color: var(--accent-primary);
    font-weight: 500;
}

.bento-item:hover .hint-bulb-trigger {
    transform: scale(1.2) rotate(10deg);
}

.bento-item:hover .bulb-glow {
    opacity: 1;
}

.bento-item:hover .hint-reveal-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 7. Quiz Generation Visuals */
.quiz-stack {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.quiz-card {
    position: absolute;
    width: 180px;
    height: 220px;
    background: rgba(40, 40, 45, 0.95);
    /* Brightened from 30,30,35,0.9 */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.5s var(--ease-spring);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.q-back {
    transform: rotate(-5deg) translate(-5px, -5px) scale(0.95);
    z-index: 1;
    background: rgba(255, 255, 255, 0.05);
}

.q-front {
    z-index: 2;
    transform: rotate(2deg);
}

.q-header {
    height: 8px;
    width: 60%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-bottom: 10px;
}

.q-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.q-opt {
    height: 24px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.q-opt.selected {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent-primary);
}

.grade-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 50px;
    height: 50px;
    background: var(--accent-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
    transform: scale(0) rotate(-20deg);
    transition: transform 0.4s var(--ease-spring);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.bento-item:hover .q-back {
    transform: rotate(-10deg) translate(-15px, 0) scale(0.9);
}

.bento-item:hover .q-front {
    transform: rotate(0deg) scale(1.05);
    border-color: var(--accent-primary);
}

.bento-item:hover .grade-badge {
    transform: scale(1) rotate(15deg);
    transition-delay: 0.2s;
}

/* 8. Adaptive Scheduler Visuals */
.scheduler-timeline {
    width: 100%;
    height: 100%;
    display: flex;
    padding: 20px;
    gap: 15px;
    position: relative;
}

.time-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    padding-top: 10px;
    width: 50px;
}

.events-column {
    flex: 1;
    position: relative;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 20px;
}

.event-block {
    position: absolute;
    left: 20px;
    width: calc(100% - 20px);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: white;
    transition: all 0.5s var(--ease-spring);
}

.event-block.physics {
    top: 0;
    height: 60px;
    background: rgba(99, 102, 241, 0.2);
    border-left: 3px solid var(--accent-primary);
}

.event-block.math {
    top: 75px;
    height: 60px;
    background: rgba(168, 85, 247, 0.2);
    border-left: 3px solid var(--accent-secondary);
}

.event-block.break {
    top: 150px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--text-tertiary);
    color: var(--text-secondary);
}

.smart-adjust-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(10, 10, 12, 0.9);
    border: 1px solid var(--accent-primary);
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: all 0.3s;
    z-index: 10;
}

.smart-adjust-indicator span {
    font-size: 0.8rem;
    color: var(--accent-primary);
}

.bento-item:hover .event-block.physics {
    top: 15px;
}

.bento-item:hover .event-block.math {
    top: 90px;
}

.bento-item:hover .event-block.break {
    top: 165px;
}


.bento-item:hover .smart-adjust-indicator {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    transition-delay: 0.1s;
}

/* 9. Intelligent Review Visuals */
.review-dashboard {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: relative;
}

.review-stat-circle {
    width: 140px;
    height: 140px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Circular Chart Animation */
.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.2));
    /* Overall chart glow */
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.15);
    /* Brighter bg stroke */
    stroke-width: 2.8;
}

.circle {
    fill: none;
    stroke-width: 3.5;
    /* Thicker stroke for emphasis */
    stroke-linecap: round;
    stroke: var(--accent-primary);
    animation: progress 1.5s ease-out forwards;
    filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.6));
    /* Stronger glow on data */
}

.percentage {
    fill: #fff;
    font-family: inherit;
    font-weight: bold;
    font-size: 0.55em;
    /* Slightly larger font */
    text-anchor: middle;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.stat-label {
    position: absolute;
    bottom: -30px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.review-connectors {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.connector-node {
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s;
}

.connector-line {
    width: 2px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.weakness-card {
    width: 150px;
    padding: 15px;
    background: rgba(236, 72, 153, 0.15);
    /* Brighter pink bg */
    border: 1px solid rgba(236, 72, 153, 0.4);
    border-radius: 12px;
    transform: translateX(30px);
    opacity: 0.7;
    transition: all 0.4s var(--ease-out);
    backdrop-filter: blur(5px);
}

.w-header {
    font-size: 0.8rem;
    color: var(--accent-tertiary);
    margin-bottom: 6px;
}

.w-topic {
    font-size: 1rem;
    font-weight: 500;
}

.bento-item:hover .circle {
    stroke: var(--accent-secondary);
    filter: drop-shadow(0 0 5px var(--accent-secondary));
}

.bento-item:hover .connector-node {
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
}

.bento-item:hover .weakness-card {
    transform: translateX(0);
    opacity: 1;
    background: rgba(236, 72, 153, 0.2);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.2);
}

/* Demo State Classes */
.demo-hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.demo-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.demo-content-enter {
    animation: fadeIn 0.5s var(--ease-out) forwards;
}

.demo-item-enter {
    opacity: 0;
    transform: translateY(10px);
    animation: slideUpFade 0.4s var(--ease-out) forwards;
}

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

/* Demo Result Styles */
.demo-result-header {
    margin-bottom: 1rem;
}

.demo-result-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    margin-bottom: 0.5rem;
}

.demo-tag {
    border: 1px solid var(--border-subtle);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.demo-tag:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.demo-tag.active {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
    color: white;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.demo-plan-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.demo-lecturer-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-primary);
    position: relative;
}

/* Hero Typing Stability */
.typing-container {
    display: inline-flex;
    align-items: center;
    min-width: 140px;
    /* Fixed width to prevent shifting */
    justify-content: flex-start;
    white-space: nowrap;
}

/* =========================================
   New Bento Visuals (Refined)
   ========================================= */

/* 1. Graceful Foundation (File Manager + PDF + AI Tools) */
.visual-foundation {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 1rem;
}

.foundation-ui {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 0.75rem;
}

/* File Sidebar */
.file-sidebar {
    width: 35%;
    background: rgba(20, 20, 25, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.folder-icon {
    font-size: 0.7rem;
}

.folder-name {
    font-size: 0.6rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.file-list-compact {
    flex: 1;
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.file-entry {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    opacity: 0.5;
    transition: all 0.2s var(--ease-out);
}

.file-entry.active {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    opacity: 1;
}

.entry-icon {
    font-size: 0.65rem;
}

.entry-name {
    font-size: 0.55rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-entry.active .entry-name {
    color: var(--text-primary);
}

.file-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.action-btn {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(99, 102, 241, 0.2);
}

/* PDF Canvas */
.pdf-canvas {
    flex: 1;
    background: rgba(25, 25, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pdf-title {
    font-size: 0.6rem;
    color: var(--text-secondary);
}

.pencil-indicator {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(99, 102, 241, 0.15);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.pencil-icon {
    font-size: 0.6rem;
}

.pdf-content {
    flex: 1;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pdf-line {
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    width: 100%;
}

.pdf-line.short {
    width: 50%;
}

.pdf-line.medium {
    width: 75%;
}

/* Handwriting Area */
.handwriting-area {
    position: relative;
    height: 35px;
    margin: 0.3rem 0;
    display: flex;
    align-items: center;
}

.handwriting-text {
    width: 90px;
    height: 100%;
}

.hw-letter {
    fill: none;
    stroke: #f59e0b;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}

.hw-letter.l1 {
    animation: draw-letter 0.6s 0.2s ease-out forwards;
}

.hw-letter.l2 {
    animation: draw-letter 0.6s 0.5s ease-out forwards;
}

.hw-letter.l3 {
    animation: draw-letter 0.5s 0.8s ease-out forwards;
}

.hw-letter.l4 {
    animation: draw-letter 0.6s 1.1s ease-out forwards;
}

.hw-letter.l5 {
    animation: draw-letter 0.4s 1.4s ease-out forwards;
}

.hw-underline {
    fill: none;
    stroke: #f59e0b;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-dasharray: 80;
    stroke-dashoffset: 80;
    animation: draw-letter 0.5s 1.7s ease-out forwards;
}

@keyframes draw-letter {
    to {
        stroke-dashoffset: 0;
    }
}


/* AI Writing Popup */
.ai-writing-popup {
    position: absolute;
    bottom: 0.6rem;
    right: 0.6rem;
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 10px;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
    animation: float 4s ease-in-out infinite;
}

.ai-sparkle {
    font-size: 0.7rem;
}

.ai-options {
    display: flex;
    gap: 0.25rem;
}

.ai-option {
    font-size: 0.5rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}

.ai-option.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

/* 2. Smart Indexing (File Manager) */
.visual-indexing {
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-manager-ui {
    width: 85%;
    background: rgba(30, 30, 35, 0.9);
    /* Brighter */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.fm-header {
    display: flex;
    gap: 15px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.fm-tab {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    position: relative;
    padding-bottom: 4px;
}

.fm-tab.active {
    color: var(--text-primary);
}

.fm-tab.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
}

.fm-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fm-file {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    /* Brightened from 0.03 */
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Added subtle border */
}

.fm-icon {
    margin-right: 10px;
}

.fm-tag {
    margin-left: auto;
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-secondary);
}

.floating-sort {
    border-color: var(--accent-secondary);
    background: rgba(168, 85, 247, 0.1);
    animation: sortMove 3s ease-in-out infinite;
}

@keyframes sortMove {

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

    50% {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
    }
}

/* 3. Smart Summaries (Split App Interface) */
.visual-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.summary-app-interface {
    width: 100%;
    height: 100%;
    display: flex;
    background: rgba(20, 20, 25, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Left Sidebar */
.app-sidebar {
    width: 35%;
    background: rgba(15, 15, 20, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
}

.sidebar-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.3rem;
}

.tab {
    font-size: 0.45rem;
    color: var(--text-tertiary);
    padding-bottom: 2px;
    cursor: pointer;
}

.tab.active {
    color: var(--accent-primary);
    border-bottom: 1px solid var(--accent-primary);
}

.sidebar-scroll-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow: hidden;
}

.slide-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-text-block {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.text-line {
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 1.5px;
    width: 100%;
}

.text-line.short {
    width: 60%;
}

.text-line.medium {
    width: 80%;
}

.sidebar-input {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-placeholder {
    font-size: 0.4rem;
    color: var(--text-tertiary);
}

.send-icon {
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6px;
    color: white;
}

/* Right Main View */
.app-main-view {
    width: 65%;
    background: rgba(30, 30, 35, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.lecture-slide-large {
    width: 100%;
    aspect-ratio: 4/3;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.slide-large-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0.4rem;
    margin-bottom: 0.2rem;
}

.slide-title-bar {
    width: 70%;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 4px;
    opacity: 0.8;
}

.slide-large-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bullet-point {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.bullet {
    font-size: 0.5rem;
    color: var(--accent-primary);
}

.b-line {
    height: 4px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 2px;
    width: 90%;
}

.b-line.long {
    width: 100%;
}

.b-line.medium {
    width: 80%;
}

.b-line.short {
    width: 60%;
}

.sub-bullet {
    padding-left: 1rem;
}

/* 4. Podcast (Comprehensive Interface) */
.visual-podcast {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    height: 180px;
    /* reduce vertical stretch further */
}

.podcast-interface {
    width: 100%;
    height: 100%;
    display: flex;
    background: rgba(20, 20, 25, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Playlist Sidebar */
.podcast-playlist {
    width: 45%;
    background: rgba(15, 15, 20, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    overflow: hidden;
    /* Prevent spillover */
}

.playlist-header {
    font-size: 0.6rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
    padding-left: 0.2rem;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    /* Reserve space for border */
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.playlist-item.active {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.play-icon-small {
    font-size: 0.6rem;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.play-icon-small.active {
    color: var(--accent-primary);
}

.playlist-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    /* Enable text truncation */
}

.ep-title {
    font-size: 0.55rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item.active .ep-title {
    color: var(--text-primary);
    font-weight: 600;
}

.ep-time {
    font-size: 0.45rem;
    color: var(--text-tertiary);
}

/* Mini Sound Wave */
.sound-wave-mini {
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 12px;
    flex-shrink: 0;
}

.sound-wave-mini span {
    width: 2px;
    background: var(--accent-secondary);
    animation: wave 1s ease-in-out infinite;
    border-radius: 1px;
}

.sound-wave-mini span:nth-child(1) {
    animation-duration: 0.6s;
    height: 60%;
}

.sound-wave-mini span:nth-child(2) {
    animation-duration: 0.8s;
    height: 100%;
}

.sound-wave-mini span:nth-child(3) {
    animation-duration: 1.0s;
    height: 40%;
}

/* Main Player */
.podcast-main-player {
    width: 55%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: radial-gradient(circle at center, rgba(30, 30, 40, 0.8) 0%, rgba(20, 20, 25, 0.9) 100%);
}

.album-art-large {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 0.8rem;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.art-icon {
    font-size: 1.8rem;
    z-index: 2;
}

.art-wave-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48cGF0aCBkPSJNMCA1MCBSTTIwIDUwIEw0MCAyMCBMNjAgODAgTDgwIDUwIEwxMDAgNTAiIHN0cm9rZT0icmdiYSgyNTUsMjU1LDI1NSwwLjIpIiBzdHJva2Utd2lkdGg9IjIiIGZpbGw9Im5vbmUiLz48L3N2Zz4=');
    background-size: cover;
    opacity: 0.3;
    border-radius: 12px;
}

.track-info-large {
    text-align: center;
    margin-bottom: 0.8rem;
}

.track-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.track-subtitle {
    font-size: 0.55rem;
    color: var(--text-tertiary);
}

.progress-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.time-stamp {
    font-size: 0.5rem;
    color: var(--text-tertiary);
    width: 24px;
}

.progress-track {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
}

.progress-fill {
    width: 53%;
    height: 100%;
    background: var(--accent-primary);
    border-radius: 2px;
}

.progress-knob {
    position: absolute;
    left: 53%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.player-controls-large {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.control-btn {
    cursor: pointer;
    transition: transform 0.2s;
}

.control-btn:active {
    transform: scale(0.9);
}

.control-btn.secondary {
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

.control-btn.primary {
    font-size: 1.2rem;
    color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Waveform Animation Reuse */
@keyframes wave {

    0%,
    100% {
        height: 30%;
    }

    50% {
        height: 100%;
    }
}

/* 5. Lecture Mode (Notes + AI Lecturer) */
.visual-lecture {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lecture-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    position: relative;
}

/* Notes Page */
.notes-page {
    flex: 1;
    background: rgba(25, 25, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.notes-title {
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.page-indicator {
    font-size: 0.55rem;
    color: var(--text-tertiary);
    background: rgba(99, 102, 241, 0.15);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: var(--accent-primary);
}

.notes-body {
    flex: 1;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.note-line {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    width: 100%;
}

.note-line.short {
    width: 60%;
}

.note-line.medium {
    width: 80%;
}

.note-highlight-section {
    position: relative;
    padding: 0.4rem;
    margin: 0.3rem 0;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 6px;
    border-left: 2px solid var(--accent-primary);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    animation: highlight-pulse 3s infinite;
}

@keyframes highlight-pulse {

    0%,
    100% {
        background: rgba(99, 102, 241, 0.08);
    }

    50% {
        background: rgba(99, 102, 241, 0.15);
    }
}

.highlight-marker {
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.highlight-marker::after {
    content: '';
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
}

.note-line.highlighted {
    background: rgba(99, 102, 241, 0.3);
}

/* Page Navigation */
.page-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.nav-arrow {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.page-dots {
    display: flex;
    gap: 4px;
}

.page-dots .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s var(--ease-out);
}

.page-dots .dot.active {
    background: var(--accent-primary);
    box-shadow: 0 0 6px var(--accent-primary);
    transform: scale(1.2);
}

/* AI Lecturer Panel */
.lecturer-panel {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.lecturer-bubble {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 12px;
    padding: 0.6rem 0.75rem;
    position: relative;
    max-width: 100%;
}

.lecturer-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(99, 102, 241, 0.25);
}

.bubble-content {
    display: flex;
    align-items: center;
}

.speech-text {
    font-size: 0.6rem;
    color: var(--text-secondary);
    line-height: 1.4;
    font-style: italic;
}

.lecturer-bubble .typing-cursor {
    width: 1px;
    height: 0.7rem;
    background: var(--accent-primary);
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

/* AI Lecturer Avatar */
.lecturer-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    animation: glow-pulse 2s infinite;
}

@keyframes glow-pulse {

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

    50% {
        transform: scale(1.3);
        opacity: 0.4;
    }
}

.lecturer-avatar .avatar-emoji {
    font-size: 1.6rem;
    z-index: 2;
    animation: avatar-bob 3s ease-in-out infinite;
}

@keyframes avatar-bob {

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

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

/* Heatmap Visualization (New) */
.heatmap-container {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
    padding: 1rem;
    width: 100%;
    max-width: 300px;
    /* Constrain width */
    margin: 0 auto;
}

.heatmap-cell {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.6s var(--ease-out);
}

.heatmap-cell.active-1 {
    background: rgba(99, 102, 241, 0.2);
}

.heatmap-cell.active-2 {
    background: rgba(99, 102, 241, 0.4);
}

.heatmap-cell.active-3 {
    background: rgba(99, 102, 241, 0.6);
}

.heatmap-cell.active-4 {
    background: rgba(99, 102, 241, 0.9);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SHOPIFY-STYLE ENHANCED ANIMATIONS & VISUAL EFFECTS
   Premium scroll-triggered animations, parallax, floating elements
   ═══════════════════════════════════════════════════════════════════════════ */

/* Floating Background Orbs */
.floating-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float-drift 20s ease-in-out infinite;
    will-change: transform, opacity;
}

.floating-orb.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
    animation-duration: 25s;
}

.floating-orb.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 70%);
    top: 40%;
    right: -150px;
    animation-delay: -5s;
    animation-duration: 22s;
}

.floating-orb.orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(0, 200, 255, 0.2) 0%, transparent 70%);
    bottom: 10%;
    left: 20%;
    animation-delay: -10s;
    animation-duration: 28s;
}

.floating-orb.orb-4 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%);
    top: 60%;
    left: -100px;
    animation-delay: -15s;
    animation-duration: 30s;
}

@keyframes float-drift {

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

    25% {
        transform: translate(50px, -30px) scale(1.05);
        opacity: 0.5;
    }

    50% {
        transform: translate(20px, 40px) scale(0.95);
        opacity: 0.35;
    }

    75% {
        transform: translate(-30px, 20px) scale(1.02);
        opacity: 0.45;
    }
}

/* Section Transition Overlays */
section {
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, var(--bg-body), transparent);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

section.has-gradient-top::before {
    opacity: 1;
}

/* Scroll-Linked Parallax Container */
.parallax-wrapper {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    inset: -20%;
    background-size: cover;
    background-position: center;
    will-change: transform;
    transition: transform 0.1s linear;
}

/* Enhanced Scroll Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition:
        opacity 1.2s var(--ease-shopify),
        transform 1.2s var(--ease-shopify);
    will-change: opacity, transform;
}

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

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition:
        opacity 1s var(--ease-shopify),
        transform 1s var(--ease-bounce);
    will-change: opacity, transform;
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

.reveal-rotate {
    opacity: 0;
    transform: perspective(1000px) rotateX(15deg) translateY(40px);
    transition:
        opacity 1.2s var(--ease-shopify),
        transform 1.2s var(--ease-shopify);
    will-change: opacity, transform;
    transform-style: preserve-3d;
}

.reveal-rotate.visible {
    opacity: 1;
    transform: perspective(1000px) rotateX(0deg) translateY(0);
}

/* Staggered Children Animation */
.stagger-children>* {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s var(--ease-shopify),
        transform 0.8s var(--ease-shopify);
}

.stagger-children.visible>*:nth-child(1) {
    transition-delay: 0.05s;
}

.stagger-children.visible>*:nth-child(2) {
    transition-delay: 0.1s;
}

.stagger-children.visible>*:nth-child(3) {
    transition-delay: 0.15s;
}

.stagger-children.visible>*:nth-child(4) {
    transition-delay: 0.2s;
}

.stagger-children.visible>*:nth-child(5) {
    transition-delay: 0.25s;
}

.stagger-children.visible>*:nth-child(6) {
    transition-delay: 0.3s;
}

.stagger-children.visible>*:nth-child(7) {
    transition-delay: 0.35s;
}

.stagger-children.visible>*:nth-child(8) {
    transition-delay: 0.4s;
}

.stagger-children.visible>*:nth-child(9) {
    transition-delay: 0.45s;
}

.stagger-children.visible>*:nth-child(10) {
    transition-delay: 0.5s;
}

.stagger-children.visible>* {
    opacity: 1;
    transform: translateY(0);
}

/* Magnetic Hover Effect */
.magnetic-hover {
    transition: transform 0.3s var(--ease-out);
    will-change: transform;
}

/* Text Reveal Animation */
.text-reveal {
    overflow: hidden;
    display: inline-block;
}

.text-reveal-inner {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.8s var(--ease-shopify);
}

.text-reveal.visible .text-reveal-inner {
    transform: translateY(0);
}

/* Gradient Text Animation */
.animated-gradient-text {
    background: linear-gradient(90deg,
            var(--accent-cyan) 0%,
            var(--accent-primary) 25%,
            var(--accent-secondary) 50%,
            var(--accent-tertiary) 75%,
            var(--accent-cyan) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 4s linear infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Glow Pulse Effect */
.glow-pulse {
    animation: glow-pulse-anim 3s ease-in-out infinite;
}

@keyframes glow-pulse-anim {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.6), 0 0 60px rgba(168, 85, 247, 0.3);
    }
}

/* Border Glow Animation */
.border-glow {
    position: relative;
}

.border-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(45deg,
            transparent 30%,
            var(--accent-cyan) 50%,
            transparent 70%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: border-rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.border-glow:hover::before {
    opacity: 1;
}

@keyframes border-rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Shimmer Effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 100%);
    animation: shimmer-slide 3s ease-in-out infinite;
}

@keyframes shimmer-slide {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

/* Scroll-Triggered Scale */
.scroll-scale {
    transition: transform 0.3s var(--ease-out);
    will-change: transform;
}

/* Section Color Transitions */
.section-dark {
    background: var(--bg-body);
}

.section-elevated {
    background: var(--bg-surface);
}

.section-gradient {
    background: linear-gradient(180deg, var(--bg-body) 0%, var(--bg-surface) 50%, var(--bg-body) 100%);
}

.section-glow {
    position: relative;
}

.section-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Morphing Background */
.morph-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.morph-shape {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(60px);
    opacity: 0.3;
    animation: morph 15s ease-in-out infinite;
}

@keyframes morph {

    0%,
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg) scale(1);
    }

    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
        transform: rotate(45deg) scale(1.1);
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
        transform: rotate(90deg) scale(0.95);
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
        transform: rotate(135deg) scale(1.05);
    }
}

/* Card 3D Tilt Effect */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.3s var(--ease-out);
}

.tilt-card-inner {
    transition: transform 0.3s var(--ease-out);
    transform-style: preserve-3d;
}

/* Floating Animation */
.float-subtle {
    animation: float-subtle-anim 6s ease-in-out infinite;
}

@keyframes float-subtle-anim {

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

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

/* Scroll-Linked Opacity */
.scroll-fade {
    transition: opacity 0.5s ease;
}

/* Enhanced Hero Animations */
.hero-title-line {
    overflow: hidden;
}

.hero-title-word {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    animation: word-reveal 1s var(--ease-shopify) forwards;
}

.hero-title-word:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-title-word:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-title-word:nth-child(3) {
    animation-delay: 0.3s;
}

.hero-title-word:nth-child(4) {
    animation-delay: 0.4s;
}

.hero-title-word:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes word-reveal {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

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

/* Scroll Progress Glow Enhancement */
.scroll-progress {
    box-shadow:
        0 0 20px rgba(0, 200, 255, 0.6),
        0 0 40px rgba(99, 102, 241, 0.4),
        0 0 60px rgba(168, 85, 247, 0.2);
}

/* Interactive Card Shine */
.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.03) 50%,
            transparent 100%);
    transform: skewX(-25deg);
    transition: left 0.8s ease;
}

.card-shine:hover::before {
    left: 125%;
}

/* Counter Animation */
.counter-animate {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* Noise Texture Overlay */
.noise-overlay {
    position: relative;
}

.noise-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Scroll Snap Sections */
.scroll-snap-container {
    scroll-snap-type: y proximity;
    overflow-y: auto;
    height: 100vh;
}

.scroll-snap-section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Sticky Section Headers */
.sticky-header {
    position: sticky;
    top: 80px;
    z-index: 10;
    background: var(--bg-body);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
}

/* Smooth Section Divider */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
    margin: 0 auto;
    max-width: 80%;
}

/* Animated Underline */
.animated-underline {
    position: relative;
    display: inline-block;
}

.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.4s var(--ease-out);
}

.animated-underline:hover::after {
    width: 100%;
}

/* Breathing Glow Icon */
.glow-breathing {
    animation: breathing-glow 3s ease-in-out infinite;
}

@keyframes breathing-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 5px rgba(99, 102, 241, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.6));
    }
}

/* Elastic Button */
.btn-elastic {
    transition: transform 0.4s var(--ease-spring);
}

.btn-elastic:active {
    transform: scale(0.92);
}

/* Viewport Enter Animations */
@keyframes slide-in-bottom {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0.9);
    }

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

@keyframes slide-in-left {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }

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

@keyframes slide-in-right {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }

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

@keyframes zoom-in {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

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

@keyframes flip-in {
    0% {
        opacity: 0;
        transform: perspective(400px) rotateY(90deg);
    }

    100% {
        opacity: 1;
        transform: perspective(400px) rotateY(0);
    }
}

/* Apply animations on scroll */
.animate-slide-bottom {
    animation: slide-in-bottom 1s var(--ease-shopify) forwards;
}

.animate-slide-left {
    animation: slide-in-left 1s var(--ease-shopify) forwards;
}

.animate-slide-right {
    animation: slide-in-right 1s var(--ease-shopify) forwards;
}

.animate-zoom {
    animation: zoom-in 0.8s var(--ease-bounce) forwards;
}

.animate-flip {
    animation: flip-in 0.8s var(--ease-out) forwards;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SHOPIFY EDITIONS WINTER 2026 - ADVANCED SCROLL ANIMATIONS
   Premium scroll-linked effects, 3D transforms, and cinematic transitions
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   SCROLL-LINKED OPACITY & SCALE - Elements fade/scale based on scroll position
   ───────────────────────────────────────────────────────────────────────────── */
.scroll-fade {
    transition: opacity 0.1s linear, transform 0.1s linear;
    will-change: opacity, transform;
}

.scroll-zoom {
    transition: transform 0.15s ease-out;
    will-change: transform;
}

/* ─────────────────────────────────────────────────────────────────────────────
   TEXT SPLIT REVEAL - Characters animate individually on scroll
   ───────────────────────────────────────────────────────────────────────────── */
.split-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(80px) rotateX(-90deg);
    transition: all 0.6s var(--ease-shopify);
    transform-origin: bottom center;
}

.split-text.visible .char {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

/* Stagger delay for each character */
.split-text .char:nth-child(1) {
    transition-delay: 0.02s;
}

.split-text .char:nth-child(2) {
    transition-delay: 0.04s;
}

.split-text .char:nth-child(3) {
    transition-delay: 0.06s;
}

.split-text .char:nth-child(4) {
    transition-delay: 0.08s;
}

.split-text .char:nth-child(5) {
    transition-delay: 0.10s;
}

.split-text .char:nth-child(6) {
    transition-delay: 0.12s;
}

.split-text .char:nth-child(7) {
    transition-delay: 0.14s;
}

.split-text .char:nth-child(8) {
    transition-delay: 0.16s;
}

.split-text .char:nth-child(9) {
    transition-delay: 0.18s;
}

.split-text .char:nth-child(10) {
    transition-delay: 0.20s;
}

.split-text .char:nth-child(11) {
    transition-delay: 0.22s;
}

.split-text .char:nth-child(12) {
    transition-delay: 0.24s;
}

.split-text .char:nth-child(13) {
    transition-delay: 0.26s;
}

.split-text .char:nth-child(14) {
    transition-delay: 0.28s;
}

.split-text .char:nth-child(15) {
    transition-delay: 0.30s;
}

/* ─────────────────────────────────────────────────────────────────────────────
   REVEAL MASK ANIMATION - Content slides in from behind a mask
   ───────────────────────────────────────────────────────────────────────────── */
.reveal-mask {
    position: relative;
    overflow: hidden;
}

.reveal-mask::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-body);
    transform: translateX(-101%);
    transition: transform 1s var(--ease-shopify);
    z-index: 2;
}

.reveal-mask.visible::before {
    transform: translateX(101%);
}

.reveal-mask-content {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s var(--ease-shopify) 0.3s;
}

.reveal-mask.visible .reveal-mask-content {
    opacity: 1;
    transform: translateX(0);
}

/* ─────────────────────────────────────────────────────────────────────────────
   STICKY SCROLL SECTION - Content changes while section stays pinned
   ───────────────────────────────────────────────────────────────────────────── */
.sticky-section {
    position: relative;
    min-height: 300vh;
}

.sticky-section .sticky-content {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sticky-section .sticky-item {
    position: absolute;
    opacity: 0;
    transform: translateY(100px) scale(0.9);
    transition: all 1s var(--ease-shopify);
    pointer-events: none;
}

.sticky-section .sticky-item.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* ─────────────────────────────────────────────────────────────────────────────
   PARALLAX DEPTH LAYERS - Multi-layer depth effect
   ───────────────────────────────────────────────────────────────────────────── */
.parallax-container {
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.parallax-layer {
    position: absolute;
    inset: 0;
    will-change: transform;
    transition: transform 0.1s linear;
}

.parallax-layer-back {
    transform: translateZ(-200px) scale(1.2);
}

.parallax-layer-mid {
    transform: translateZ(-100px) scale(1.1);
}

.parallax-layer-front {
    transform: translateZ(0);
}

/* ─────────────────────────────────────────────────────────────────────────────
   DOT GRID BACKGROUND - Animated particle grid effect
   ───────────────────────────────────────────────────────────────────────────── */
.dot-grid-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(99, 102, 241, 0.15) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    pointer-events: none;
    animation: dotGridPulse 8s ease-in-out infinite;
}

@keyframes dotGridPulse {

    0%,
    100% {
        opacity: 0.3;
        background-size: 40px 40px;
    }

    50% {
        opacity: 0.5;
        background-size: 42px 42px;
    }
}

.dot-grid-bg.animated {
    animation: dotGridWave 15s linear infinite;
}

@keyframes dotGridWave {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 40px 40px;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   GRADIENT MESH BACKGROUND - Animated color mesh
   ───────────────────────────────────────────────────────────────────────────── */
.gradient-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(168, 85, 247, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 200, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
    animation: meshMove 20s ease-in-out infinite;
    filter: blur(60px);
}

@keyframes meshMove {

    0%,
    100% {
        background-position: 0% 0%, 100% 100%, 50% 50%;
        transform: scale(1) rotate(0deg);
    }

    25% {
        background-position: 100% 0%, 0% 100%, 50% 0%;
        transform: scale(1.1) rotate(1deg);
    }

    50% {
        background-position: 100% 100%, 0% 0%, 0% 50%;
        transform: scale(1) rotate(0deg);
    }

    75% {
        background-position: 0% 100%, 100% 0%, 100% 50%;
        transform: scale(1.05) rotate(-1deg);
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   SCROLL-TRIGGERED COLOR SHIFT - Sections change color scheme on scroll
   ───────────────────────────────────────────────────────────────────────────── */
.color-shift {
    transition: background-color 1s var(--ease-shopify);
}

.color-shift.shift-purple {
    background-color: rgba(168, 85, 247, 0.05);
}

.color-shift.shift-cyan {
    background-color: rgba(0, 200, 255, 0.05);
}

.color-shift.shift-pink {
    background-color: rgba(236, 72, 153, 0.05);
}

/* ─────────────────────────────────────────────────────────────────────────────
   CINEMATIC ZOOM REVEAL - Elements zoom from background on scroll
   ───────────────────────────────────────────────────────────────────────────── */
.zoom-reveal {
    opacity: 0;
    transform: scale(0.5);
    filter: blur(20px);
    transition: all 1.2s var(--ease-shopify);
    will-change: opacity, transform, filter;
}

.zoom-reveal.visible {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

/* ─────────────────────────────────────────────────────────────────────────────
   3D CARD FLIP ON SCROLL - Cards rotate in 3D space
   ───────────────────────────────────────────────────────────────────────────── */
.flip-card-3d {
    perspective: 1500px;
}

.flip-card-inner {
    transform-style: preserve-3d;
    transform: rotateY(-30deg) rotateX(10deg);
    opacity: 0;
    transition: all 1s var(--ease-shopify);
}

.flip-card-3d.visible .flip-card-inner {
    transform: rotateY(0) rotateX(0);
    opacity: 1;
}

/* ─────────────────────────────────────────────────────────────────────────────
   SMOOTH COUNTER ANIMATION - Numbers count up smoothly
   ───────────────────────────────────────────────────────────────────────────── */
.counter-animate {
    font-variant-numeric: tabular-nums;
    display: inline-block;
    min-width: 3ch;
}

/* ─────────────────────────────────────────────────────────────────────────────
   MAGNETIC HOVER ZONES - Elements attract to cursor
   ───────────────────────────────────────────────────────────────────────────── */
.magnetic {
    transition: transform 0.3s var(--ease-out);
    will-change: transform;
}

.magnetic:hover {
    transition: transform 0.1s linear;
}

/* ─────────────────────────────────────────────────────────────────────────────
   GLOW LINE ANIMATION - Animated border glow
   ───────────────────────────────────────────────────────────────────────────── */
.glow-border {
    position: relative;
    overflow: hidden;
}

.glow-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            var(--accent-cyan) 60deg,
            var(--accent-primary) 120deg,
            var(--accent-secondary) 180deg,
            var(--accent-tertiary) 240deg,
            transparent 300deg,
            transparent 360deg);
    animation: glowBorderRotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: inherit;
    z-index: -1;
}

.glow-border:hover::before {
    opacity: 1;
}

.glow-border::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--bg-surface);
    border-radius: inherit;
    z-index: -1;
}

@keyframes glowBorderRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   SCROLL PROGRESS INDICATOR - Shows section progress
   ───────────────────────────────────────────────────────────────────────────── */
.section-progress {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.section-progress.visible {
    opacity: 1;
}

.section-progress .progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s var(--ease-shopify);
    cursor: pointer;
}

.section-progress .progress-dot.active {
    background: var(--accent-primary);
    transform: scale(1.5);
    box-shadow: 0 0 20px var(--accent-primary);
}

.section-progress .progress-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.3);
}

/* ─────────────────────────────────────────────────────────────────────────────
   WAVE TEXT ANIMATION - Text waves on scroll
   ───────────────────────────────────────────────────────────────────────────── */
.wave-text .char {
    display: inline-block;
    animation: waveChar 2s ease-in-out infinite;
    animation-play-state: paused;
}

.wave-text.animating .char {
    animation-play-state: running;
}

@keyframes waveChar {

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

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

/* Stagger the wave effect */
.wave-text .char:nth-child(1) {
    animation-delay: 0s;
}

.wave-text .char:nth-child(2) {
    animation-delay: 0.05s;
}

.wave-text .char:nth-child(3) {
    animation-delay: 0.1s;
}

.wave-text .char:nth-child(4) {
    animation-delay: 0.15s;
}

.wave-text .char:nth-child(5) {
    animation-delay: 0.2s;
}

.wave-text .char:nth-child(6) {
    animation-delay: 0.25s;
}

.wave-text .char:nth-child(7) {
    animation-delay: 0.3s;
}

.wave-text .char:nth-child(8) {
    animation-delay: 0.35s;
}

.wave-text .char:nth-child(9) {
    animation-delay: 0.4s;
}

.wave-text .char:nth-child(10) {
    animation-delay: 0.45s;
}

/* ─────────────────────────────────────────────────────────────────────────────
   BLUR REVEAL ENHANCED - More dramatic blur transition
   ───────────────────────────────────────────────────────────────────────────── */
.blur-reveal-dramatic {
    opacity: 0;
    filter: blur(40px);
    transform: translateY(80px) scale(0.85);
    transition:
        opacity 1.5s var(--ease-shopify),
        filter 1.5s var(--ease-shopify),
        transform 1.5s var(--ease-shopify);
    will-change: opacity, filter, transform;
}

.blur-reveal-dramatic.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
}

/* ─────────────────────────────────────────────────────────────────────────────
   FLOATING CARD ANIMATION - Cards float with subtle movement
   ───────────────────────────────────────────────────────────────────────────── */
.float-card {
    animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {

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

    25% {
        transform: translateY(-10px) rotate(0.5deg);
    }

    50% {
        transform: translateY(-5px) rotate(0deg);
    }

    75% {
        transform: translateY(-15px) rotate(-0.5deg);
    }
}

.float-card:nth-child(odd) {
    animation-delay: -3s;
}

/* ─────────────────────────────────────────────────────────────────────────────
   SCROLL SNAP SECTIONS - Smooth section-by-section scrolling
   ───────────────────────────────────────────────────────────────────────────── */
.scroll-snap-container {
    scroll-snap-type: y proximity;
    overflow-y: scroll;
    height: 100vh;
}

.scroll-snap-section {
    scroll-snap-align: start;
    min-height: 100vh;
}

/* ─────────────────────────────────────────────────────────────────────────────
   LINE DRAW ANIMATION - SVG lines draw on scroll
   ───────────────────────────────────────────────────────────────────────────── */
.line-draw {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 2s var(--ease-shopify);
}

.line-draw.visible {
    stroke-dashoffset: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   PERSPECTIVE SCROLL - 3D depth on scroll
   ───────────────────────────────────────────────────────────────────────────── */
.perspective-scroll {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.perspective-scroll-item {
    transform: translateZ(var(--z-offset, 0));
    transition: transform 0.3s var(--ease-out);
}

/* ─────────────────────────────────────────────────────────────────────────────
   ENHANCED HOVER LIFT - Cards lift with shadow on hover
   ───────────────────────────────────────────────────────────────────────────── */
.hover-lift {
    transition: all 0.5s var(--ease-shopify);
}

.hover-lift:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 30px 60px -15px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(99, 102, 241, 0.15),
        0 0 80px rgba(168, 85, 247, 0.1);
}

/* ─────────────────────────────────────────────────────────────────────────────
   AURORA BACKGROUND EFFECT
   ───────────────────────────────────────────────────────────────────────────── */
.aurora-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.aurora-bg::before,
.aurora-bg::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: conic-gradient(from 180deg at 50% 50%,
            rgba(99, 102, 241, 0.3) 0deg,
            rgba(168, 85, 247, 0.2) 90deg,
            rgba(0, 200, 255, 0.3) 180deg,
            rgba(236, 72, 153, 0.2) 270deg,
            rgba(99, 102, 241, 0.3) 360deg);
    filter: blur(100px);
    animation: auroraRotate 30s linear infinite;
    opacity: 0.5;
}

.aurora-bg::after {
    animation-direction: reverse;
    animation-duration: 25s;
    opacity: 0.3;
}

@keyframes auroraRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   SMOOTH SCROLL REVEAL SEQUENCE
   ───────────────────────────────────────────────────────────────────────────── */
.reveal-sequence>* {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-shopify);
}

.reveal-sequence.visible>*:nth-child(1) {
    transition-delay: 0s;
    opacity: 1;
    transform: translateY(0);
}

.reveal-sequence.visible>*:nth-child(2) {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateY(0);
}

.reveal-sequence.visible>*:nth-child(3) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0);
}

.reveal-sequence.visible>*:nth-child(4) {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateY(0);
}

.reveal-sequence.visible>*:nth-child(5) {
    transition-delay: 0.4s;
    opacity: 1;
    transform: translateY(0);
}

.reveal-sequence.visible>*:nth-child(6) {
    transition-delay: 0.5s;
    opacity: 1;
    transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────────────────────────
   GLASS MORPHISM ENHANCED
   ───────────────────────────────────────────────────────────────────────────── */
.glass-ultra {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ─────────────────────────────────────────────────────────────────────────────
   SCROLL-TRIGGERED GLOW INTENSIFY
   ───────────────────────────────────────────────────────────────────────────── */
.scroll-glow {
    transition: box-shadow 0.5s var(--ease-out);
}

.scroll-glow.intense {
    box-shadow:
        0 0 60px rgba(99, 102, 241, 0.4),
        0 0 120px rgba(168, 85, 247, 0.2),
        0 0 180px rgba(0, 200, 255, 0.1);
}

/* ─────────────────────────────────────────────────────────────────────────────
   SMOOTH NUMBER MORPH
   ───────────────────────────────────────────────────────────────────────────── */
.morph-number {
    display: inline-block;
    transition: transform 0.3s var(--ease-spring);
}

.morph-number.updating {
    transform: scale(1.2);
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE HIDING FOR SECTION PROGRESS
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .section-progress {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   VIBENOTES FLOW SECTION - COMPLETE 9-FEATURE CONNECTED FLOW
   Visualizes all features connected in a seamless learning journey
   ═══════════════════════════════════════════════════════════════════════════ */

.flow-section {
    padding: 6rem 0;
    overflow: hidden;
    position: relative;
}

.flow-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* Flow Grid Container - 3 columns layout */
.flow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* SVG Connections Layer */
.flow-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.flow-connections svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Connection path styling */
.flow-path {
    fill: none;
    stroke: url(#flowGradient);
    stroke-width: 2;
    stroke-linecap: round;
    opacity: 0.6;
    stroke-dasharray: 8 4;
    animation: dashFlow 1.5s linear infinite;
}

@keyframes dashFlow {
    to {
        stroke-dashoffset: -24;
    }
}

/* Glowing particle effect on paths */
.flow-particle-path {
    fill: none;
    stroke: url(#particleGradient);
    stroke-width: 6;
    stroke-linecap: round;
    filter: blur(3px);
    stroke-dasharray: 20 200;
    animation: particleTravel 4s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes particleTravel {
    0% {
        stroke-dashoffset: 220;
    }

    100% {
        stroke-dashoffset: -220;
    }
}

/* Individual Flow Steps */
.flow-step {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition:
        opacity 0.8s var(--ease-shopify),
        transform 0.8s var(--ease-shopify);
}

.flow-step.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stagger animation delays for 9 items */
.flow-step:nth-child(1) {
    transition-delay: 0s;
}

.flow-step:nth-child(2) {
    transition-delay: 0.1s;
}

.flow-step:nth-child(3) {
    transition-delay: 0.2s;
}

.flow-step:nth-child(4) {
    transition-delay: 0.3s;
}

.flow-step:nth-child(5) {
    transition-delay: 0.4s;
}

.flow-step:nth-child(6) {
    transition-delay: 0.5s;
}

.flow-step:nth-child(7) {
    transition-delay: 0.6s;
}

.flow-step:nth-child(8) {
    transition-delay: 0.7s;
}

.flow-step:nth-child(9) {
    transition-delay: 0.8s;
}

/* Scaled Feature Preview Container */
.flow-step-preview {
    width: 100%;
    height: 160px;
    position: relative;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition:
        transform 0.5s var(--ease-shopify),
        box-shadow 0.5s var(--ease-shopify),
        border-color 0.5s var(--ease-shopify);
}

.flow-step-preview:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow:
        0 20px 50px -15px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(99, 102, 241, 0.2);
}

/* Scale down the existing visual previews to fit */
.flow-step-preview .visual-preview {
    transform: scale(0.45);
    transform-origin: top left;
    width: 222%;
    /* Counter-scale: 100% / 0.45 ≈ 222% */
    height: 222%;
    position: absolute;
    top: 0;
    left: 0;
    background: transparent;
    border: none;
}

/* Flow Step Label */
.flow-step-label {
    text-align: center;
    margin-top: 1rem;
}

.flow-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.flow-step-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.flow-step-subtitle {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* Flow Step Icon Badge */
.flow-step-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* ─────────────────────────────────────────────────────────────────────────────
   FLOW SECTION RESPONSIVE DESIGN
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .flow-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 1.5rem;
    }

    .flow-connections {
        display: none;
    }

    .flow-step-preview {
        height: 150px;
    }
}

@media (max-width: 768px) {
    .flow-section {
        padding: 4rem 0;
    }

    .flow-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 340px;
    }

    .flow-step-preview {
        height: 180px;
    }

    .flow-step-preview .visual-preview {
        transform: scale(0.5);
        width: 200%;
        height: 200%;
    }
}

@media (max-width: 480px) {
    .flow-grid {
        max-width: 300px;
    }

    .flow-step-preview {
        height: 160px;
    }
}

/* Flow Section Background Accent */
.flow-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 80%;
    background: radial-gradient(ellipse at center,
            rgba(99, 102, 241, 0.06) 0%,
            rgba(168, 85, 247, 0.03) 40%,
            transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Flow Journey Title Connector Labels */
.flow-journey-label {
    position: absolute;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    z-index: 2;
}
/* ═══════════════════════════════════════════════════════════════════════════
   SCROLLYTELLING FLOW SECTION - Cinematic Journey
   震撼的滚动叙事体验 - From Beginner to Expert
   ═══════════════════════════════════════════════════════════════════════════ */

.scrollytelling-flow-section {
    position: relative;
    background: #000000;
    overflow-x: hidden;
    perspective: 2000px;
    transform-style: preserve-3d;
}

/* AR/VR Immersive Floating Particles */
.scrollytelling-flow-section::before,
.scrollytelling-flow-section::after {
    content: '';
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatParticle 20s ease-in-out infinite;
}

.scrollytelling-flow-section::before {
    background: radial-gradient(circle, var(--accent-cyan), transparent);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.scrollytelling-flow-section::after {
    background: radial-gradient(circle, var(--accent-secondary), transparent);
    bottom: 20%;
    right: 15%;
    animation-delay: -10s;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(100px, -80px) scale(1.2);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50px, 100px) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translate(80px, 50px) scale(1.1);
        opacity: 0.6;
    }
}

/* Parallax Background Layers - Enhanced with 3D depth */
.parallax-bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.parallax-bg-layer.layer-1 {
    background: radial-gradient(ellipse at 20% 30%, rgba(99, 102, 241, 0.2) 0%, transparent 50%);
    transform: translateZ(-100px) scale(1.1);
    animation: parallaxFloat1 25s ease-in-out infinite;
}

.parallax-bg-layer.layer-2 {
    background: radial-gradient(ellipse at 80% 70%, rgba(168, 85, 247, 0.18) 0%, transparent 50%);
    transform: translateZ(-50px) scale(1.05);
    animation: parallaxFloat2 30s ease-in-out infinite;
}

.parallax-bg-layer.layer-3 {
    background: radial-gradient(ellipse at 50% 50%, rgba(236, 72, 153, 0.15) 0%, transparent 60%);
    transform: translateZ(-25px) scale(1.03);
    animation: parallaxFloat3 35s ease-in-out infinite;
}

@keyframes parallaxFloat1 {
    0%, 100% { transform: translateZ(-100px) scale(1.1) translate(0, 0); }
    50% { transform: translateZ(-100px) scale(1.1) translate(50px, -30px); }
}

@keyframes parallaxFloat2 {
    0%, 100% { transform: translateZ(-50px) scale(1.05) translate(0, 0); }
    50% { transform: translateZ(-50px) scale(1.05) translate(-40px, 40px); }
}

@keyframes parallaxFloat3 {
    0%, 100% { transform: translateZ(-25px) scale(1.03) translate(0, 0); }
    50% { transform: translateZ(-25px) scale(1.03) translate(30px, 50px); }
}

/* Flow Scene - Each step is a full viewport scene with AR/VR depth */
.flow-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: none; /* Hidden by default to prevent overlay */
    align-items: center;
    justify-content: center;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transform-style: preserve-3d;
    /* No opacity transition — JS scroll handler drives opacity directly */
}

.flow-scene.active {
    pointer-events: auto;
    z-index: 100; /* Ensure active scene is on top */
}

/* AR/VR Motion Trail Effect - Subtle */
.flow-scene::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    border: 1px dashed rgba(99, 102, 241, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotateX(60deg);
    animation: rotateMotionTrail 50s linear infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.flow-scene.active::before {
    opacity: 0.6;
}

@keyframes rotateMotionTrail {
    0% { transform: translate(-50%, -50%) rotateX(60deg) rotateZ(0deg); }
    100% { transform: translate(-50%, -50%) rotateX(60deg) rotateZ(360deg); }
}

/* Intro Scene - Enhanced with AR/VR atmosphere */
.intro-scene {
    height: 100vh;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.9) 0%,
        rgba(10, 5, 20, 0.95) 100%
    );
    position: relative;
    overflow: hidden;
}

/* AR/VR Grid Background */
.intro-scene::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg) translateZ(-200px);
    transform-origin: center bottom;
    opacity: 0.3;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

.intro-scene .scene-content {
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
}

.scene-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 2rem 0;
    color: white !important;
    opacity: 1;
    transform: translateY(0) translateZ(50px);
    animation: fadeInUp 1s ease-out 0.3s forwards;
    text-shadow: 
        0 0 40px rgba(99, 102, 241, 0.5),
        0 10px 30px rgba(0, 0, 0, 0.8);
    transform-style: preserve-3d;
}

.scene-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    opacity: 1;
    animation: fadeInUp 1s ease-out 0.6s forwards;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.7);
    transform: translateZ(30px);
}

.scroll-hint {
    margin-top: 4rem;
    font-size: 2rem;
    color: var(--accent-primary);
    opacity: 1;
    animation: fadeInBounce 1s ease-out 1s forwards, bounce3D 2s ease-in-out 2s infinite;
    filter: drop-shadow(0 0 20px var(--accent-primary));
    transform: translateZ(40px);
}

@keyframes bounce3D {
    0%, 100% { 
        transform: translateY(0) translateZ(40px);
        filter: drop-shadow(0 0 20px var(--accent-primary));
    }
    50% { 
        transform: translateY(-20px) translateZ(60px);
        filter: drop-shadow(0 10px 30px var(--accent-primary));
    }
}

/* Step Scenes - Sticky Scrollytelling */
.step-scene {
    height: 120vh;
    position: relative;
}

.scene-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    padding: 4rem;
    opacity: 0.85;
    transform: scale(0.98) translateZ(0);
    transition: opacity 0.5s ease-out, transform 0.5s var(--ease-shopify);
    transform-style: preserve-3d;
}

.scene-sticky.active {
    opacity: 1;
    transform: scale(1) translateZ(0);
}

/* Scene Visual */
.scene-visual {
    flex: 1;
    max-width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-card {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.15) 0%, 
        rgba(168, 85, 247, 0.15) 100%
    );
    border: 2px solid rgba(99, 102, 241, 0.4);
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.4),
        inset 0 0 60px rgba(99, 102, 241, 0.1),
        0 0 40px rgba(99, 102, 241, 0.2);
    transform: perspective(1000px) rotateY(-8deg) rotateX(3deg);
    transition: all 0.6s var(--ease-shopify);
    transform-style: preserve-3d;
}

/* AR/VR Glass Reflection Effect - More visible */
.visual-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%
    );
    transform: skewX(-20deg);
    animation: glassShine 6s ease-in-out infinite;
}

@keyframes glassShine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

/* AR/VR Floating Particles inside card - More visible */
.visual-card::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 200, 255, 0.4) 0%, transparent 3%),
        radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.4) 0%, transparent 3%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.4) 0%, transparent 3%),
        radial-gradient(circle at 30% 80%, rgba(99, 102, 241, 0.4) 0%, transparent 3%),
        radial-gradient(circle at 70% 20%, rgba(132, 204, 22, 0.4) 0%, transparent 3%);
    animation: particleFloat 18s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.7;
}

@keyframes particleFloat {
    0%, 100% { 
        transform: translateY(0) scale(1) translateZ(0);
        opacity: 0.5;
    }
    50% { 
        transform: translateY(-25px) scale(1.15) translateZ(20px);
        opacity: 0.9;
    }
}

.scene-sticky.active .visual-card {
    border-color: var(--accent-primary);
    box-shadow: 
        0 35px 90px rgba(99, 102, 241, 0.7),
        0 0 0 1px rgba(99, 102, 241, 0.5),
        inset 0 0 80px rgba(99, 102, 241, 0.15),
        0 0 60px rgba(99, 102, 241, 0.4);
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.05);
}

.visual-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 40px currentColor);
    animation: iconFloat3D 6s ease-in-out infinite;
    transform-style: preserve-3d;
    position: relative;
    z-index: 10;
}

/* AR/VR 3D Icon Float with depth */
@keyframes iconFloat3D {
    0%, 100% { 
        transform: translateY(0) translateZ(0) rotateY(-5deg) rotateX(5deg);
        filter: drop-shadow(0 5px 40px currentColor);
    }
    25% { 
        transform: translateY(-20px) translateZ(40px) rotateY(10deg) rotateX(-5deg);
        filter: drop-shadow(0 15px 50px currentColor);
    }
    50% { 
        transform: translateY(-30px) translateZ(60px) rotateY(-8deg) rotateX(8deg);
        filter: drop-shadow(0 25px 60px currentColor);
    }
    75% { 
        transform: translateY(-15px) translateZ(30px) rotateY(12deg) rotateX(-3deg);
        filter: drop-shadow(0 18px 55px currentColor);
    }
}

.visual-animation {
    width: 100%;
    padding: 2rem;
}

/* Scene Narrative */
.scene-narrative {
    flex: 1;
    max-width: 500px;
    opacity: 0.7;
    transform: translateX(30px) translateZ(0);
    transition: opacity 0.5s ease-out 0.1s, transform 0.5s var(--ease-shopify) 0.1s;
    transform-style: preserve-3d;
    position: relative;
}

/* AR/VR Text Glow Effect */
.scene-narrative::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25), transparent);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0;
    transition: opacity 0.5s ease 0.2s;
    pointer-events: none;
}

.scene-sticky.active .scene-narrative {
    opacity: 1;
    transform: translateX(0) translateZ(0);
}

.scene-sticky.active .scene-narrative::before {
    opacity: 0.8;
}

.step-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.narrative-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    position: relative;
    animation: titleShimmer 4s ease-in-out infinite;
}

/* AR/VR Title Shimmer Effect */
@keyframes titleShimmer {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
    }
    50% {
        filter: brightness(1.3) drop-shadow(0 0 20px rgba(99, 102, 241, 0.6));
    }
}

.narrative-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Visual Animations for Each Step */

/* Foundation - File Import Animation with 3D depth */
.file-import-anim {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    transform-style: preserve-3d;
}

.file-item {
    font-size: 3rem;
    animation: fileSlideIn3D 2s ease-out infinite;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.6));
}

@keyframes fileSlideIn3D {
    0% {
        opacity: 0;
        transform: translateY(-80px) translateZ(-50px) scale(0.3) rotateX(-90deg);
        filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
    }
    50% {
        opacity: 1;
        transform: translateY(0) translateZ(50px) scale(1.2) rotateX(0deg);
        filter: drop-shadow(0 20px 40px rgba(99, 102, 241, 0.8));
    }
    100% {
        opacity: 0;
        transform: translateY(80px) translateZ(-50px) scale(0.3) rotateX(90deg);
        filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
    }
}

/* Indexing - Tag Cloud with 3D floating */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    transform-style: preserve-3d;
}

.tag {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    animation: tagPop3D 3s ease-in-out infinite;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
    transform-style: preserve-3d;
}

@keyframes tagPop3D {
    0%, 100% {
        transform: scale(1) rotate(0deg) translateZ(0);
        opacity: 0.8;
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
    }
    50% {
        transform: scale(1.2) rotate(5deg) translateZ(40px);
        opacity: 1;
        box-shadow: 0 20px 40px rgba(99, 102, 241, 0.8);
    }
}

/* Summary - Lines Animation with depth */
.summary-lines {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    transform-style: preserve-3d;
}

.sum-line {
    height: 12px;
    background: linear-gradient(90deg, 
        var(--accent-primary) 0%, 
        var(--accent-secondary) 50%,
        transparent 100%
    );
    border-radius: 6px;
    animation: lineExpand3D 2.5s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.sum-line.short { width: 60%; animation-delay: 0.2s; }
.sum-line.medium { width: 80%; animation-delay: 0.4s; }

@keyframes lineExpand3D {
    0%, 100% {
        transform: scaleX(0.7) translateZ(0);
        opacity: 0.5;
        box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
    }
    50% {
        transform: scaleX(1) translateZ(20px);
        opacity: 1;
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.7);
    }
}

/* Podcast - Audio Waves with 3D pulsing */
.audio-waves {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 100px;
    transform-style: preserve-3d;
}

.audio-waves span {
    width: 8px;
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-primary));
    border-radius: 4px;
    animation: waveMove3D 1.5s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.6);
}

.audio-waves span:nth-child(1) { height: 30px; animation-delay: 0s; }
.audio-waves span:nth-child(2) { height: 60px; animation-delay: 0.1s; }
.audio-waves span:nth-child(3) { height: 80px; animation-delay: 0.2s; }
.audio-waves span:nth-child(4) { height: 50px; animation-delay: 0.3s; }
.audio-waves span:nth-child(5) { height: 70px; animation-delay: 0.4s; }
.audio-waves span:nth-child(6) { height: 40px; animation-delay: 0.5s; }
.audio-waves span:nth-child(7) { height: 65px; animation-delay: 0.6s; }
.audio-waves span:nth-child(8) { height: 35px; animation-delay: 0.7s; }

@keyframes waveMove3D {
    0%, 100% { 
        transform: scaleY(0.5) translateZ(0);
        opacity: 0.5;
        box-shadow: 0 0 10px rgba(0, 200, 255, 0.4);
    }
    50% { 
        transform: scaleY(1.2) translateZ(30px);
        opacity: 1;
        box-shadow: 0 10px 30px rgba(0, 200, 255, 0.9);
    }
}

/* Lecture - Typing Bubble with 3D float */
.lecture-bubble {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 25px;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.6);
    animation: bubbleFloat3D 4s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes bubbleFloat3D {
    0%, 100% {
        transform: translateY(0) translateZ(0) scale(1);
        box-shadow: 0 15px 40px rgba(99, 102, 241, 0.6);
    }
    50% {
        transform: translateY(-15px) translateZ(30px) scale(1.05);
        box-shadow: 0 25px 60px rgba(99, 102, 241, 0.9);
    }
}

.cursor-blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Hint - Bulb Glow with 3D pulse */
.hint-bulb-anim {
    font-size: 6rem;
    animation: bulbGlowPulse3D 3s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes bulbGlowPulse3D {
    0%, 100% { 
        filter: drop-shadow(0 0 30px #FCD34D);
        transform: scale(1) translateZ(0) rotateY(0deg);
    }
    50% { 
        filter: drop-shadow(0 20px 80px #FCD34D);
        transform: scale(1.4) translateZ(50px) rotateY(15deg);
    }
}

/* Quiz - Options */
/* Quiz - Options with 3D depth */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    transform-style: preserve-3d;
}

.quiz-opt {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
}

.quiz-opt.correct {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: var(--accent-primary);
    color: white;
    animation: correctPulse3D 2.5s ease-in-out infinite;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.7);
}

@keyframes correctPulse3D {
    0%, 100% { 
        transform: scale(1) translateZ(0);
        box-shadow: 0 8px 30px rgba(99, 102, 241, 0.7);
    }
    50% { 
        transform: scale(1.08) translateZ(25px);
        box-shadow: 0 15px 45px rgba(99, 102, 241, 0.9);
    }
}

/* Scheduler - Calendar with 3D pop */
.calendar-anim {
    display: flex;
    gap: 1rem;
    justify-content: center;
    transform-style: preserve-3d;
}

.cal-day {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
}

.cal-day.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: var(--accent-primary);
    animation: calendarHighlight3D 2.5s ease-in-out infinite;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.7);
}

@keyframes calendarHighlight3D {
    0%, 100% { 
        transform: scale(1) translateZ(0) rotateY(0deg);
        box-shadow: 0 8px 30px rgba(99, 102, 241, 0.7);
    }
    50% { 
        transform: scale(1.2) translateZ(30px) rotateY(10deg);
        box-shadow: 0 15px 45px rgba(99, 102, 241, 0.9);
    }
}

/* Review - Progress Ring with 3D rotation */
.progress-ring {
    position: relative;
    width: 150px;
    height: 150px;
    animation: ringRotate3D 8s ease-in-out infinite;
    transform-style: preserve-3d;
    filter: drop-shadow(0 10px 30px rgba(99, 102, 241, 0.5));
}

@keyframes ringRotate3D {
    0%, 100% {
        transform: rotateY(0deg) rotateX(0deg) scale(1);
        filter: drop-shadow(0 10px 30px rgba(99, 102, 241, 0.5));
    }
    50% {
        transform: rotateY(15deg) rotateX(10deg) scale(1.1);
        filter: drop-shadow(0 20px 50px rgba(99, 102, 241, 0.8));
    }
}

.progress-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.ring-progress {
    fill: none;
    stroke: url(#ringGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 251.2;
    stroke-dashoffset: 25.12;
    animation: ringFill 3s ease-out infinite;
}

@keyframes ringFill {
    0% { stroke-dashoffset: 251.2; }
    100% { stroke-dashoffset: 25.12; }
}

.ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--accent-gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Finale Scene - Transformation Complete with AR/VR Celebration */
.finale-scene {
    height: 100vh;
    background: linear-gradient(180deg, 
        rgba(10, 5, 20, 0.95) 0%,
        rgba(0, 0, 0, 0.98) 100%
    );
    position: relative;
    overflow: hidden;
}

/* AR/VR Celebration Particles */
.finale-scene::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.4) 0%, transparent 2%),
        radial-gradient(circle at 90% 30%, rgba(168, 85, 247, 0.4) 0%, transparent 2%),
        radial-gradient(circle at 30% 70%, rgba(236, 72, 153, 0.4) 0%, transparent 2%),
        radial-gradient(circle at 70% 80%, rgba(0, 200, 255, 0.4) 0%, transparent 2%),
        radial-gradient(circle at 50% 10%, rgba(132, 204, 22, 0.4) 0%, transparent 2%),
        radial-gradient(circle at 20% 90%, rgba(99, 102, 241, 0.4) 0%, transparent 2%),
        radial-gradient(circle at 80% 60%, rgba(168, 85, 247, 0.4) 0%, transparent 2%);
    animation: celebrationParticles 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes celebrationParticles {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-100px) scale(1.5);
        opacity: 1;
    }
}

.finale-content {
    text-align: center;
    padding: 2rem;
    opacity: 0;
    transform: scale(0.8) translateZ(-100px);
    transition: opacity 1.5s ease-out, transform 1.5s var(--ease-shopify);
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
}

.finale-content.active {
    opacity: 1;
    transform: scale(1) translateZ(0);
}

.transformation-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    font-size: 1.5rem;
    transform-style: preserve-3d;
}

.transform-from,
.transform-to {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transform-style: preserve-3d;
}

.transform-icon {
    font-size: 4rem;
    filter: drop-shadow(0 0 40px currentColor);
    transform-style: preserve-3d;
}

.transform-from .transform-icon {
    animation: iconPulse3D 3s ease-in-out infinite;
}

.transform-to .transform-icon {
    animation: iconCelebrate3D 3s ease-in-out infinite;
}

/* AR/VR 3D Icon Animations */
@keyframes iconPulse3D {
    0%, 100% { 
        transform: scale(1) translateZ(0);
        filter: drop-shadow(0 0 40px currentColor);
    }
    50% { 
        transform: scale(1.2) translateZ(30px);
        filter: drop-shadow(0 10px 60px currentColor);
    }
}

@keyframes iconCelebrate3D {
    0%, 100% { 
        transform: scale(1) rotate(0deg) translateZ(0);
        filter: drop-shadow(0 0 40px currentColor);
    }
    25% { 
        transform: scale(1.3) rotate(-15deg) translateZ(40px);
        filter: drop-shadow(0 15px 70px currentColor);
    }
    75% { 
        transform: scale(1.3) rotate(15deg) translateZ(40px);
        filter: drop-shadow(0 15px 70px currentColor);
    }
}

.transform-label {
    font-weight: 700;
    color: var(--text-secondary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.transform-arrow {
    font-size: 3rem;
    color: var(--accent-primary);
    animation: arrowSlide3D 2s ease-in-out infinite;
    filter: drop-shadow(0 0 30px var(--accent-primary));
}

@keyframes arrowSlide3D {
    0%, 100% { 
        transform: translateX(0) translateZ(0);
        filter: drop-shadow(0 0 30px var(--accent-primary));
    }
    50% { 
        transform: translateX(30px) translateZ(20px);
        filter: drop-shadow(0 5px 40px var(--accent-primary));
    }
}

.finale-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 2rem;
    text-shadow: 
        0 0 50px rgba(99, 102, 241, 0.6),
        0 10px 40px rgba(0, 0, 0, 0.8);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 
            0 0 50px rgba(99, 102, 241, 0.6),
            0 10px 40px rgba(0, 0, 0, 0.8);
    }
    50% {
        text-shadow: 
            0 0 80px rgba(99, 102, 241, 0.9),
            0 15px 50px rgba(0, 0, 0, 0.9);
    }
}

.finale-text {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.7);
}

.finale-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
    position: relative;
    z-index: 20;
}

.finale-stat {
    text-align: center;
    position: relative;
    z-index: 20;
}

.stat-num {
    font-size: 5rem;
    font-weight: 900;
    background: var(--accent-gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.stat-lbl {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .scene-sticky {
    flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }
    
    .visual-card {
        width: 350px;
        height: 350px;
    }
    
    .narrative-title {
        font-size: 2.5rem;
    }
    
    .narrative-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .scene-title {
        font-size: 3rem;
    }
    
    .scene-subtitle {
        font-size: 1.2rem;
    }
    
    .visual-card {
        width: 300px;
        height: 300px;
    }
    
    .visual-icon {
        font-size: 3.5rem;
    }
    
    .narrative-title {
        font-size: 2rem;
    }
    
    .narrative-text {
        font-size: 1rem;
    }
    
    .scene-narrative {
        transform: translateX(0);
    }
    
    .transformation-visual {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .transform-arrow {
        transform: rotate(90deg);
    }
    
    .finale-title {
        font-size: 2.5rem;
    }
    
    .finale-text {
        font-size: 1.2rem;
    }
    
    .finale-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .stat-num {
        font-size: 3.5rem;
    }
}

@media (max-width: 480px) {
    .scene-title {
        font-size: 2.5rem;
    }
    
    .visual-card {
        width: 280px;
        height: 280px;
    }
    
    .visual-icon {
        font-size: 3rem;
    }
    
    .narrative-title {
        font-size: 1.8rem;
    }
    
    .step-scene {
        height: 150vh;
    }
}

/* Add gradient for progress ring */
svg defs {
    display: none;
}

.progress-ring svg {
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.6));
}

/* Central Animated Line */
.flow-central-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    transform: translateX(-50%);
    z-index: 0;
}

.line-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, 
        var(--accent-cyan) 0%,
        var(--accent-primary) 30%,
        var(--accent-secondary) 60%,
        var(--accent-tertiary) 80%,
        var(--accent-lime) 100%
    );
    border-radius: 2px;
    transition: height 2s var(--ease-shopify);
    box-shadow: 0 0 20px var(--accent-primary);
}

.flow-path-wrapper.active .line-progress {
    height: 100%;
}

.line-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    border-radius: 50%;
    animation: lineGlowMove 4s ease-in-out infinite;
    opacity: 0.6;
    filter: blur(10px);
}

@keyframes lineGlowMove {
    0%, 100% {
        top: 0%;
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Flow Nodes */
.flow-node {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 2;
    opacity: 0;
    transform: scale(0.5) translateY(50px);
    transition: all 0.8s var(--ease-shopify);
}

.flow-node.active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Stagger delays */
.flow-node[data-step="1"] { transition-delay: 0.1s; }
.flow-node[data-step="2"] { transition-delay: 0.2s; }
.flow-node[data-step="3"] { transition-delay: 0.3s; }
.flow-node[data-step="4"] { transition-delay: 0.4s; }
.flow-node[data-step="5"] { transition-delay: 0.5s; }
.flow-node[data-step="6"] { transition-delay: 0.6s; }
.flow-node[data-step="7"] { transition-delay: 0.7s; }
.flow-node[data-step="8"] { transition-delay: 0.8s; }
.flow-node[data-step="9"] { transition-delay: 0.9s; }

/* Node Circle */
.node-circle {
    position: relative;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.2) 0%, 
        rgba(168, 85, 247, 0.2) 100%
    );
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s var(--ease-shopify);
    box-shadow: 
        0 0 30px rgba(99, 102, 241, 0.4),
        inset 0 0 20px rgba(99, 102, 241, 0.1);
}

.node-circle:hover {
    transform: scale(1.2) rotate(10deg);
    border-color: var(--accent-secondary);
    box-shadow: 
        0 0 50px rgba(99, 102, 241, 0.8),
        inset 0 0 30px rgba(99, 102, 241, 0.2);
}

.node-circle.final-node {
    border-color: var(--accent-lime);
    background: linear-gradient(135deg, 
        rgba(132, 204, 22, 0.2) 0%, 
        rgba(234, 179, 8, 0.2) 100%
    );
    box-shadow: 
        0 0 40px rgba(132, 204, 22, 0.6),
        inset 0 0 20px rgba(132, 204, 22, 0.1);
}

.node-circle.final-node:hover {
    box-shadow: 
        0 0 60px rgba(132, 204, 22, 1),
        inset 0 0 30px rgba(132, 204, 22, 0.3);
}

.node-icon {
    font-size: 2.5rem;
    z-index: 2;
    animation: nodeIconFloat 3s ease-in-out infinite;
}

@keyframes nodeIconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(5deg);
    }
}

/* Node Pulse Effect */
.node-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    animation: nodePulse 2s ease-out infinite;
}

@keyframes nodePulse {
    0% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% { 
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

.final-node .node-pulse {
    border-color: var(--accent-lime);
}

/* Node Label */
.node-label {
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    min-width: 200px;
    transition: all 0.4s var(--ease-shopify);
}

.flow-node:hover .node-label {
    border-color: var(--accent-primary);
    background: rgba(10, 10, 12, 0.95);
    transform: translateX(10px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.node-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.node-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Flow Stats */
.flow-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 6rem;
    padding: 3rem;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.05) 0%, 
        rgba(168, 85, 247, 0.05) 100%
    );
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    background: var(--accent-gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .epic-flow-section .section-header h2 {
        font-size: 2.5rem;
    }
    
    .node-circle {
        width: 80px;
        height: 80px;
    }
    
    .node-icon {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .epic-flow-section {
        padding: 4rem 0;
    }
    
    .flow-visualization-container {
        padding: 2rem 0;
    }
    
    .flow-node {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .node-label {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }
    
    .flow-node:hover .node-label {
        transform: translateX(0) translateY(10px);
    }
    
    .epic-flow-section .section-header h2 {
        font-size: 2rem;
    }
    
    .epic-flow-section .section-header p {
        font-size: 1rem;
    }
    
    .marker-icon {
        font-size: 3rem;
    }
    
    .marker-label {
        font-size: 1.5rem;
    }
    
    .flow-stats {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .node-circle {
        width: 70px;
        height: 70px;
    }
    
    .node-icon {
        font-size: 1.8rem;
    }
    
    .node-title {
        font-size: 1.2rem;
    }
    
    .node-desc {
        font-size: 0.85rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}


/* Ripple Effect Animation */
@keyframes rippleEffect {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(10);
        opacity: 0;
    }
}

/* Active Node State */
.flow-node.node-active .node-circle {
    transform: scale(1.3) rotate(15deg);
    border-color: var(--accent-secondary);
    box-shadow: 
        0 0 60px rgba(99, 102, 241, 1),
        inset 0 0 40px rgba(99, 102, 241, 0.3);
}

.flow-node.node-active .node-label {
    border-color: var(--accent-primary);
    background: rgba(10, 10, 12, 1);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.5);
}

.flow-node.node-active .node-icon {
    animation: nodeIconSpin 0.8s ease-out;
}

@keyframes nodeIconSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.3); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Force visibility for scrollytelling section */
.scrollytelling-flow-section {
    position: relative;
    background: #000000;
    overflow-x: hidden;
    color: white;
}

.scrollytelling-flow-section * {
    color: inherit;
}

.scene-content {
    position: relative;
    z-index: 10;
    color: white;
}

.scene-sticky {
    position: relative;
    z-index: 10;
    color: white;
}

.scene-title,
.narrative-title,
.finale-title {
    color: white !important;
}

.scene-subtitle,
.narrative-text,
.finale-text,
.step-number {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════

/* ═══════════════════════════════════════════════════════════════════════════
   FLOW SECTION - Centered, Consistent with Site Style
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   APPLE-STYLE SCROLL-DRIVEN FLOW SECTION
   Cinematic storytelling with smooth scroll-linked animations
   ═══════════════════════════════════════════════════════════════════════════ */

.apple-scroll-flow {
    background: linear-gradient(180deg, 
        #000000 0%, 
        #0A0A0C 20%, 
        #050510 40%,
        #0A0A0C 60%,
        #000000 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: 0;
}

/* Scroll Container - Creates the scroll distance for cinematic effect */
.flow-scroll-container {
    position: relative;
    height: 500vh; /* 5x viewport height for smooth scrolling */
    z-index: 10;
}

/* Add floating particles for depth */
.apple-scroll-flow .floating-orbs {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* Each Scene - Positioned absolute (fixed in viewport), controlled by scroll */
.flow-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: none; /* Hidden by default to prevent overlay */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.85) translateY(50px);
    /* No opacity/transform transition here — JS scroll handler drives these directly */
    z-index: 1;
    will-change: opacity, transform;
    pointer-events: none;
}

.flow-scene .container {
    max-width: 1200px;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.flow-scene.active {
    display: flex !important; /* Show active scene */
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1) translateY(0) !important;
    /* No transition — JS scroll handler drives opacity/transform directly */
    pointer-events: auto;
    z-index: 100 !important;
}

/* Hide inactive scenes completely - CRITICAL for preventing overlap */
.flow-scene:not(.active) {
    display: none !important; /* Completely hide to prevent overlay */
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* Smooth fade between scenes */
.flow-scene.fading-out {
    opacity: 0 !important;
    transform: scale(0.95) translateY(-30px) !important;
    z-index: 50 !important;
}

/* Scene Hero - Enhanced spacing */
.scene-hero {
    z-index: 50;
    background: radial-gradient(ellipse at center, 
        rgba(99, 102, 241, 0.08) 0%, 
        rgba(168, 85, 247, 0.04) 34%,
        transparent 68%);
}

.scene-hero::before {
    content: "";
    position: absolute;
    inset: 18% 10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(168, 85, 247, 0.12) 34%, rgba(236, 72, 153, 0.06) 52%, transparent 74%);
    filter: blur(45px);
    animation: heroCorePulse 4.2s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.scene-hero .container {
    position: relative;
    z-index: 200;
}

/* Journey badge - ensure it's visible and has proper spacing */
.scene-hero .hero-badge {
    margin-bottom: 2rem;
    position: relative;
    z-index: 300;
    display: inline-block;
}

/* Add scroll down indicator */
.scene-hero::after {
    content: '';
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 60px;
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.5), transparent);
    animation: scrollHint 2s ease-in-out infinite;
}

@keyframes scrollHint {
    0%, 100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes heroCorePulse {
    0%, 100% { opacity: 0.45; transform: scale(0.88); }
    50% { opacity: 0.95; transform: scale(1.08); }
}

/* AI Journey Image with Wave Effect */
/* ========================================
   WAVE IMAGE - EASY ADJUSTMENTS
   
   SIZE: Change the height value to make image bigger/smaller
   Recommended: 700px - 1000px
   
   BORDER: Adjust padding to add transparent space around image
   Current: 40px top/bottom, 80px left/right
   Increase for more border, decrease for less
   ======================================== */
.flow-hero-image-container {
    width: 100vw !important;
    max-width: none !important;
    height: 0 !important;
    padding-bottom: 56.227% !important; /* Exact aspect ratio: 1535/2730 = 0.56227 */
    margin: 3rem 0 5rem 0 !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    opacity: 1 !important;
    border-radius: 0;
    overflow: hidden;
    background: transparent !important;
    box-sizing: border-box !important;
}



.reveal-wave-canvas {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    cursor: pointer;
    background: transparent !important;
    border-radius: 0;
    overflow: hidden;
}

.flow-hero-image-container:hover {
}

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive sizing */
@media (max-width: 768px) {
    .flow-hero-image-container {
        padding-bottom: 75% !important;  /* Taller aspect ratio for mobile */
        margin: 2rem 0 3rem 0 !important;
    }
}

.flow-main-title {
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 3rem;
    margin-top: 3rem;
    letter-spacing: -0.03em;
    color: #FFFFFF;
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
    transition: transform 0.22s ease, text-shadow 0.22s ease, filter 0.22s ease, letter-spacing 0.22s ease;
    will-change: transform, text-shadow, filter;
}

.flow-main-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 2rem;
    transition: transform 0.22s ease;
    will-change: transform;
}

.scene-hero .hero-badge {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    will-change: transform, box-shadow;
}

/* Scene Problem (Chaos) - Enhanced spacing */
.scene-problem {
    z-index: 1;
    background: radial-gradient(ellipse at center, 
        rgba(236, 72, 153, 0.05) 0%, 
        transparent 60%);
}

.scene-problem .container {
    position: relative;
    z-index: 200;
}

.scene-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 4rem;
    margin-top: 2rem;
    position: relative;
    z-index: 20;
    text-shadow: 0 0 30px rgba(236, 72, 153, 0.5);
    line-height: 1.2;
    opacity: 0;
    filter: blur(24px);
    transform: translateY(60px) scale(0.88);
    /* opacity/filter/transform driven by JS scroll handler */
}

.chaos-visual {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 400px;
    margin: 2rem auto 2rem; /* Reduced margins */
}

.chaos-item {
    position: absolute;
    font-size: 4rem; /* Larger icons */
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg);
    /* No transition — JS scroll handler drives these directly */
}

.chaos-item[data-chaos="1"] { top: 20%; left: 20%; }
.chaos-item[data-chaos="2"] { top: 30%; left: 70%; }
.chaos-item[data-chaos="3"] { top: 60%; left: 25%; }
.chaos-item[data-chaos="4"] { top: 70%; left: 75%; }
.chaos-item[data-chaos="5"] { top: 25%; left: 50%; }
.chaos-item[data-chaos="6"] { top: 75%; left: 50%; }

.chaos-question {
    position: absolute;
    font-size: 4rem;
    color: rgba(236, 72, 153, 0.6);
    font-weight: 900;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    /* No transition — JS scroll handler drives these directly */
}

.chaos-question[data-chaos="q1"] { top: 10%; left: 45%; }
.chaos-question[data-chaos="q2"] { top: 50%; left: 15%; }
.chaos-question[data-chaos="q3"] { top: 55%; left: 85%; }

/* Chaos item visibility is driven entirely by JS scroll handler */

.scene-description {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Scene Explosion (BOOM) - Enhanced spacing */
.scene-explosion {
    z-index: 1;
    background: radial-gradient(ellipse at center, 
        rgba(99, 102, 241, 0.1) 0%, 
        rgba(168, 85, 247, 0.05) 40%,
        transparent 70%);
}

.scene-explosion .container {
    position: relative;
    z-index: 200;
}

.scene-explosion .scene-title {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 25;
    margin: 0;
    white-space: nowrap;
}

.explosion-center-logo {
    position: relative;
    padding: 3rem 4rem;
    background: rgba(10, 10, 12, 0.98);
    border: 2px solid rgba(99, 102, 241, 0.5);
    border-radius: 24px;
    box-shadow: 
        0 0 60px rgba(99, 102, 241, 0.4),
        0 0 120px rgba(168, 85, 247, 0.3);
    backdrop-filter: blur(20px);
    transform: scale(0);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 20;
    display: none; /* Hide the logo, show only cards */
}

.scene-explosion.active .explosion-center-logo {
    transform: scale(1);
    opacity: 1;
}

.scene-explosion.exploding .explosion-center-logo {
    transform: scale(1.3);
    filter: brightness(2);
    box-shadow: 
        0 0 100px rgba(99, 102, 241, 0.8),
        0 0 200px rgba(168, 85, 247, 0.6),
        0 0 300px rgba(236, 72, 153, 0.4);
}

.logo-text {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #6366F1, #A855F7, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
}

.ai-organizing-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.15em;
    font-weight: 600;
    position: relative;
    z-index: 20;
}

/* BOOM Effect */
.boom-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 8rem;
    font-weight: 900;
    color: #FFFFFF;
    text-shadow: 
        0 0 20px rgba(99, 102, 241, 1),
        0 0 40px rgba(168, 85, 247, 1),
        0 0 60px rgba(236, 72, 153, 1);
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    letter-spacing: 0.1em;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.scene-explosion.exploding .boom-effect {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 1;
}

.scene-explosion.exploded .boom-effect {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
}

/* Background Image */
.explosion-bg-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 1200px;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
    z-index: 5;
}

.explosion-bg-image img {
    width: 100%;
    height: auto;
    filter: blur(1px) brightness(0.9);
    border-radius: 24px;
}

.scene-explosion.exploded .explosion-bg-image {
    opacity: 0.6;
}

/* Feature Cards Container */
.feature-cards-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 15;
}

.feature-card-mini {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    padding: 1.5rem 2rem; /* Increased from 1rem 1.5rem */
    background: rgba(10, 10, 12, 0.98);
    border: 2px solid rgba(99, 102, 241, 0.4);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    gap: 1rem; /* Increased from 0.75rem */
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(99, 102, 241, 0.2);
    will-change: transform, opacity;
    z-index: 30; /* Higher z-index to be above everything */
}

.feature-card-mini:hover {
    border-color: rgba(99, 102, 241, 0.8);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(99, 102, 241, 0.4);
    transform: translate(var(--tx), var(--ty)) scale(1.1) !important;
}

.card-icon-mini {
    font-size: 2rem; /* Increased from 1.5rem */
}

.card-name-mini {
    font-size: 1.1rem; /* Increased from 0.9rem */
    font-weight: 600;
    color: #FFFFFF;
}

/* Exploded positions */
.scene-explosion.exploded .feature-card-mini {
    opacity: 1;
}

.scene-explosion.exploded .feature-card-mini[data-position="tl"] {
    transform: translate(-200%, -200%) scale(1);
}

.scene-explosion.exploded .feature-card-mini[data-position="t"] {
    transform: translate(-50%, -250%) scale(1);
}

.scene-explosion.exploded .feature-card-mini[data-position="tr"] {
    transform: translate(100%, -200%) scale(1);
}

.scene-explosion.exploded .feature-card-mini[data-position="l"] {
    transform: translate(-250%, -50%) scale(1);
}

.scene-explosion.exploded .feature-card-mini[data-position="r"] {
    transform: translate(150%, -50%) scale(1);
}

.scene-explosion.exploded .feature-card-mini[data-position="bl"] {
    transform: translate(-200%, 100%) scale(1);
}

.scene-explosion.exploded .feature-card-mini[data-position="b"] {
    transform: translate(-50%, 150%) scale(1);
}

.scene-explosion.exploded .feature-card-mini[data-position="br"] {
    transform: translate(100%, 100%) scale(1);
}

/* Mobile features grid — desktop hidden, mobile shown */
.mobile-features-grid {
    display: none;
}

/* Scene Reorganize - Enhanced spacing */
/* ===== 4-Level Learning Loop – Premium Circular UI ===== */

.ll-wrap {
    position: relative;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 1.5rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 200;
}

.ll-header {
    text-align: center;
    margin-bottom: 1.2rem;
}

.ll-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.ll-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

.ll-wrap::before {
    content: '';
    position: absolute;
    inset: 5% 8%;
    background:
        radial-gradient(circle at 20% 30%, rgba(99,102,241,0.22), transparent 45%),
        radial-gradient(circle at 70% 70%, rgba(236,72,153,0.18), transparent 42%),
        radial-gradient(circle at 85% 20%, rgba(168,85,247,0.16), transparent 38%);
    filter: blur(26px);
    pointer-events: none;
    z-index: -1;
}

@keyframes loopCounterRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* --- Diagram container --- */
.ll-diagram {
    position: relative;
    width: min(560px, 94vw);
    height: min(560px, 94vw);
    flex-shrink: 0;
    animation: loopRotate 34s linear infinite;
    perspective: 1200px;
}

.ll-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.28);
    box-shadow: 0 0 45px rgba(139, 92, 246, 0.18);
    transform-style: preserve-3d;
    pointer-events: none;
}

.ring-a {
    transform: translate(-50%, -50%) rotateX(72deg) rotateY(16deg);
    animation: sphereSpinA 22s linear infinite;
}

.ring-b {
    transform: translate(-50%, -50%) rotateY(76deg) rotateX(18deg);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 45px rgba(59, 130, 246, 0.16);
    animation: sphereSpinB 34s linear infinite reverse;
}

.ring-c {
    width: 280px;
    height: 280px;
    transform: translate(-50%, -50%) rotateX(84deg) rotateY(40deg);
    border-color: rgba(236, 72, 153, 0.24);
    box-shadow: 0 0 34px rgba(236, 72, 153, 0.16);
    animation: sphereSpinC 42s linear infinite;
}

@keyframes sphereSpinA {
    from { transform: translate(-50%, -50%) rotateX(72deg) rotateZ(0deg); }
    to { transform: translate(-50%, -50%) rotateX(72deg) rotateZ(360deg); }
}

@keyframes sphereSpinB {
    from { transform: translate(-50%, -50%) rotateY(76deg) rotateZ(0deg); }
    to { transform: translate(-50%, -50%) rotateY(76deg) rotateZ(360deg); }
}

@keyframes sphereSpinC {
    from { transform: translate(-50%, -50%) rotateX(84deg) rotateZ(0deg); }
    to { transform: translate(-50%, -50%) rotateX(84deg) rotateZ(360deg); }
}

.ll-particles {
    position: absolute;
    inset: 8%;
    pointer-events: none;
    animation: loopRotate 70s linear infinite reverse;
}

.ll-p {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.75);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.9);
    animation: particlePulse 2.6s ease-in-out infinite;
}

.ll-p.p1 { top: 8%; left: 52%; animation-delay: 0s; }
.ll-p.p2 { top: 24%; left: 84%; animation-delay: 0.6s; }
.ll-p.p3 { top: 50%; left: 92%; animation-delay: 1.2s; }
.ll-p.p4 { top: 82%; left: 68%; animation-delay: 1.8s; }
.ll-p.p5 { top: 72%; left: 22%; animation-delay: 2.2s; }
.ll-p.p6 { top: 34%; left: 10%; animation-delay: 2.8s; }

@keyframes particlePulse {
    0%, 100% { opacity: 0.35; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.35); }
}

@keyframes loopRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ll-orbit-lane {
    position: absolute;
    inset: 15%;
    border-radius: 50%;
    border: 1px dashed rgba(168, 85, 247, 0.28);
    filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.3));
    pointer-events: none;
}

.ll-orbit-lane.l2 {
    inset: 23%;
    border-color: rgba(59, 130, 246, 0.24);
    transform: rotate(24deg);
}

.ll-wireframe {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 420px;
    height: 420px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.32));
    animation: wireframeSpin 48s linear infinite;
}

.ll-lat,
.ll-lon {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(167, 139, 250, 0.33);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.ll-lat.lat-1 { transform: translate(-50%, -50%) scaleY(0.2) translateY(-145px); }
.ll-lat.lat-2 { transform: translate(-50%, -50%) scaleY(0.42) translateY(-70px); }
.ll-lat.lat-3 { transform: translate(-50%, -50%) scaleY(0.58); }
.ll-lat.lat-4 { transform: translate(-50%, -50%) scaleY(0.42) translateY(70px); }
.ll-lat.lat-5 { transform: translate(-50%, -50%) scaleY(0.2) translateY(145px); }

.ll-lon.lon-1 { transform: translate(-50%, -50%) scaleX(0.16) rotate(8deg); }
.ll-lon.lon-2 { transform: translate(-50%, -50%) scaleX(0.34) rotate(-8deg); }
.ll-lon.lon-3 { transform: translate(-50%, -50%) scaleX(0.56) rotate(8deg); }
.ll-lon.lon-4 { transform: translate(-50%, -50%) scaleX(0.72) rotate(-8deg); }
.ll-lon.lon-5 { transform: translate(-50%, -50%) scaleX(0.86) rotate(8deg); }
.ll-lon.lon-6 { transform: translate(-50%, -50%) scaleX(1) rotate(-8deg); }

@keyframes wireframeSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.ll-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.ll-arc {
    animation: llArcSpin 26s linear infinite;
    transform-origin: 200px 200px;
}

@keyframes llArcSpin {
    0%   { stroke-dashoffset: 942; }
    100% { stroke-dashoffset: 0; }
}

/* --- Hub --- */
.ll-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(135deg, rgba(99,102,241,0.25) 0%, rgba(10,10,18,0.95) 100%);
    border: 1.5px solid rgba(99,102,241,0.55);
    box-shadow: 0 0 40px rgba(99,102,241,0.3), inset 0 0 30px rgba(99,102,241,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    animation: hubPulse 3s ease-in-out infinite, loopCounterRotate 34s linear infinite;
    z-index: 10;
}

.ll-hub-inner {
    text-align: center;
}

.ll-hub-icon {
    font-size: 1.6rem;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.ll-hub-name {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    line-height: 1.3;
}

@keyframes hubPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(99,102,241,0.25), inset 0 0 20px rgba(99,102,241,0.08); }
    50%       { box-shadow: 0 0 55px rgba(168,85,247,0.45), inset 0 0 35px rgba(168,85,247,0.15); }
}

/* --- Stage cards --- */
.ll-stage {
    position: absolute;
    top: var(--sy);
    left: var(--sx);
    transform: translate(-50%, -50%);
    z-index: 20;
    cursor: pointer;
    animation: loopCounterRotate 34s linear infinite;
}

.ll-stage-inner {
    background: rgba(10,10,18,0.9);
    border: 1px solid rgba(99,102,241,0.42);
    border-radius: 16px;
    padding: 0.7rem 0.85rem;
    min-width: 168px;
    max-width: 168px;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 16px rgba(99,102,241,0.15);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.ll-stage.active .ll-stage-inner {
    border-color: rgba(236,72,153,0.85);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 28px rgba(236,72,153,0.4);
    transform: scale(1.07);
}

.ll-stage:hover .ll-stage-inner {
    border-color: rgba(168,85,247,0.9);
    box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 32px rgba(168,85,247,0.4);
    transform: scale(1.09) translateY(-4px);
}

.ll-stage-num {
    font-size: 0.65rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6366F1, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.ll-stage-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.4rem;
}

.ll-stage-features {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.ll-stage-features span {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Detail panel (click to expand) --- */
.ll-detail-panel {
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%) scaleY(0);
    transform-origin: top center;
    background: rgba(10,10,20,0.97);
    border: 1px solid rgba(168,85,247,0.55);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    min-width: 200px;
    max-width: 240px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.7), 0 0 24px rgba(168,85,247,0.25);
    backdrop-filter: blur(20px);
    z-index: 100;
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), opacity 0.22s ease;
    pointer-events: none;
}

.ll-stage.expanded .ll-detail-panel {
    transform: translateX(-50%) scaleY(1);
    opacity: 1;
    pointer-events: auto;
}

.ll-detail-panel strong {
    display: block;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 0.45rem;
}

.ll-detail-panel p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
    margin: 0 0 0.55rem;
}

.ll-outcome {
    font-size: 0.68rem;
    font-weight: 700;
    color: #A855F7;
    padding: 0.3rem 0.6rem;
    background: rgba(168,85,247,0.12);
    border-radius: 8px;
    border: 1px solid rgba(168,85,247,0.3);
}

/* --- Mobile cards --- */
.ll-mobile-cards {
    display: none;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0;
    width: 100%;
    scrollbar-width: none;
}

.ll-mobile-cards::-webkit-scrollbar { display: none; }

.ll-mc {
    scroll-snap-align: center;
    flex: 0 0 80vw;
    max-width: 300px;
    background: rgba(10,10,18,0.9);
    border: 1px solid rgba(99,102,241,0.35);
    border-radius: 16px;
    padding: 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    backdrop-filter: blur(14px);
    transition: border-color 0.3s;
}

.ll-mc.active {
    border-color: rgba(236,72,153,0.7);
    box-shadow: 0 0 22px rgba(236,72,153,0.25);
}

.ll-mc-n {
    font-size: 0.65rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6366F1, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.1em;
}

.ll-mc strong {
    font-size: 1rem;
    color: #fff;
}

.ll-mc small {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
}

.ll-mobile-dots {
    display: none;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.ll-mobile-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    transition: background 0.3s;
}

.ll-mobile-dots span.active {
    background: #A855F7;
}

@media (max-width: 640px) {
    .ll-diagram { display: none; }
    .ll-mobile-cards { display: flex; }
    .ll-mobile-dots { display: flex; }
}

/* ===== OLD scene-reorganize (kept for z-index/bg) ===== */
.scene-reorganize {
    z-index: 1;
    background: radial-gradient(ellipse at center,
        rgba(168, 85, 247, 0.08) 0%,
        transparent 60%);
}

/* Scene Finale Styles */
.mastery-results {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.result-stat {
    text-align: center;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6366F1, #A855F7, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.result-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Scene Finale - Enhanced spacing */
.scene-finale {
    z-index: 1;
    background: radial-gradient(ellipse at center, 
        rgba(99, 102, 241, 0.1) 0%, 
        rgba(236, 72, 153, 0.05) 50%,
        transparent 70%);
}

.scene-finale .container {
    position: relative;
    z-index: 200;
}

.scene-finale .btn {
    position: relative;
    z-index: 300;
    margin-top: 2rem;
}

.finale-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 2rem; /* Reduced spacing */
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
    position: relative;
    z-index: 20;
    line-height: 1.1;
}

.finale-subtitle {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 3rem; /* Reduced spacing */
    position: relative;
    z-index: 20;
    line-height: 1.5;
}

/* Scroll Progress Indicator */
.flow-scroll-progress {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.apple-scroll-flow.scrolling .flow-scroll-progress {
    opacity: 1;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6366F1, #A855F7, #EC4899);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Add scroll hint text */
.flow-scroll-progress::after {
    content: 'Scroll to explore';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .flow-scroll-container {
        height: 600vh; /* Reduce scroll height on mobile */
    }
    
    .flow-main-title {
        font-size: 3rem;
    }
    
    .chaos-visual {
        height: 300px;
    }
    
    .chaos-item {
        font-size: 2rem;
    }
    
    .chaos-question {
        font-size: 2.5rem;
    }
    
    .boom-effect {
        font-size: 4rem;
    }
    
    .explosion-center-logo {
        padding: 2rem 2.5rem;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .feature-card-mini {
        padding: 0.75rem 1rem;
    }
    
    .card-name-mini {
        font-size: 0.8rem;
    }
    
    /* Function blocks responsive - already defined above */
    }
    
    .mastery-results {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .scene-reorganize,
    .scene-finale {
        padding: 2rem 0;
    }
}

/* Three.js Nebula Shader Background */
.flow-nebula-background {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
    mix-blend-mode: screen;
}

/* Add atmospheric glow overlay */
.apple-scroll-flow::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 50%, 
        rgba(99, 102, 241, 0.15) 0%, 
        rgba(168, 85, 247, 0.1) 30%,
        transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* Add subtle grain texture */
.apple-scroll-flow::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    z-index: 1;
    pointer-events: none;
}

/* Background Image Container (Overlay on shader) */
.flow-bg-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    max-width: 900px;
    height: 50%;
    z-index: 1;
    overflow: hidden;
    border-radius: 40px;
    opacity: 0;
    animation: bgFadeIn 1.5s ease-out 0.5s forwards;
    pointer-events: none;
}

@keyframes bgFadeIn {
    to {
        opacity: 1;
    }
}

.flow-bg-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.3;
    filter: blur(1px) brightness(0.9);
}

.flow-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, 
        rgba(0,0,0,0.2) 0%, 
        rgba(0,0,0,0.6) 60%, 
        rgba(0,0,0,0.9) 100%);
}

/* Flow Hero */
.flow-explosive-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    z-index: 10;
}

.flow-hero-content {
    max-width: 1000px;
    margin: 0 auto;
}

.flow-explosive-title {
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    color: #FFFFFF;
    animation: titleFadeIn 1.5s var(--ease-shopify) forwards;
    text-shadow: 
        0 0 40px rgba(99, 102, 241, 0.5),
        0 0 80px rgba(168, 85, 247, 0.3);
}

.gradient-text-flow {
    background: linear-gradient(135deg, #00C8FF 0%, #6366F1 35%, #A855F7 65%, #EC4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.flow-explosive-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    font-weight: 400;
    animation: subtitleFadeIn 1.5s var(--ease-shopify) 0.3s forwards;
    opacity: 0;
}

@keyframes titleFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtitleFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Explosion Stage */
.flow-explosion-stage {
    min-height: 120vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem;
    position: relative;
    z-index: 10;
    transition: transform 0.3s var(--ease-shopify);
}

.flow-explosion-stage .container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 800px;
    z-index: 10;
}

/* Trigger explosion on scroll */
.flow-explosion-stage.exploded .feature-card {
    animation-play-state: running;
}

.flow-explosion-stage.exploded .connect-line {
    animation-play-state: running;
}

.flow-explosion-stage.exploded .explosion-center {
    animation: centerExplode 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.flow-explosion-stage.exploded::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: shockwave 1s ease-out forwards;
    pointer-events: none;
    z-index: 15;
}

@keyframes centerExplode {
    0% {
        transform: translate(-50%, -50%) scale(1);
        filter: brightness(1);
    }
    30% {
        transform: translate(-50%, -50%) scale(0.9);
        filter: brightness(1.5);
    }
    60% {
        transform: translate(-50%, -50%) scale(1.4);
        filter: brightness(2);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        filter: brightness(1);
    }
}

/* BOOM Text Effect */
.boom-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 8rem;
    font-weight: 900;
    color: #FFFFFF;
    text-shadow: 
        0 0 20px rgba(99, 102, 241, 1),
        0 0 40px rgba(168, 85, 247, 1),
        0 0 60px rgba(236, 72, 153, 1);
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    letter-spacing: 0.1em;
}

.flow-explosion-stage.exploded .boom-text {
    animation: boomAppear 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes boomAppear {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-20deg);
        opacity: 0;
    }
    40% {
        transform: translate(-50%, -50%) scale(1.5) rotate(5deg);
        opacity: 1;
    }
    60% {
        transform: translate(-50%, -50%) scale(1.3) rotate(-2deg);
        opacity: 1;
    }
    80% {
        transform: translate(-50%, -50%) scale(1.4) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(2) rotate(0deg);
        opacity: 0;
    }
}

@keyframes shockwave {
    0% {
        width: 100px;
        height: 100px;
        opacity: 1;
    }
    100% {
        width: 1200px;
        height: 1200px;
        opacity: 0;
    }
}

/* Central Explosion Point */
.explosion-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    animation: centerPulse 3s ease-in-out infinite;
}

.center-logo {
    position: relative;
    padding: 3rem 4rem;
    background: rgba(10, 10, 12, 0.98);
    border: 2px solid rgba(99, 102, 241, 0.5);
    border-radius: 24px;
    box-shadow: 
        0 0 60px rgba(99, 102, 241, 0.4),
        0 0 120px rgba(168, 85, 247, 0.3),
        inset 0 0 40px rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(20px);
    z-index: 20;
}

.logo-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    border-radius: 24px;
    filter: blur(30px);
    animation: glowPulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.logo-text {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #6366F1, #A855F7, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
}

.ai-badge {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.15em;
    font-weight: 600;
    text-align: center;
    animation: badgeBlink 2s ease-in-out infinite;
}

@keyframes badgeBlink {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes centerPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

/* Exploding Feature Cards */
.exploding-features {
    position: absolute;
    inset: 0;
}

.feature-card {
    position: absolute;
    padding: 2rem;
    background: rgba(10, 10, 12, 0.98);
    border: 2px solid rgba(99, 102, 241, 0.4);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(99, 102, 241, 0.2);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    animation: explodeOut 1s var(--ease-shopify) forwards;
    animation-play-state: paused;
    transition: all 0.4s var(--ease-shopify);
    cursor: pointer;
    min-width: 200px;
    z-index: 15;
}

.feature-card:hover {
    transform: translate(-50%, -50%) scale(1.1) !important;
    border-color: rgba(99, 102, 241, 0.8);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(99, 102, 241, 0.4);
}

@keyframes explodeOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        filter: blur(10px);
    }
    50% {
        opacity: 1;
        transform: translate(calc(var(--tx) * 0.6), calc(var(--ty) * 0.6)) scale(1.2) rotate(10deg);
        filter: blur(0px);
    }
    70% {
        transform: translate(calc(var(--tx) * 1.1), calc(var(--ty) * 1.1)) scale(0.95) rotate(-5deg);
    }
    100% {
        opacity: 1;
        transform: translate(var(--tx), var(--ty)) scale(1) rotate(0deg);
        filter: blur(0px);
    }
}

/* Position each card */
.explode-tl {
    top: 15%;
    left: 20%;
    --tx: -50%;
    --ty: -50%;
    animation-delay: 0.2s;
}

.explode-t {
    top: 10%;
    left: 50%;
    --tx: -50%;
    --ty: -50%;
    animation-delay: 0.3s;
}

.explode-tr {
    top: 15%;
    left: 80%;
    --tx: -50%;
    --ty: -50%;
    animation-delay: 0.4s;
}

.explode-l {
    top: 50%;
    left: 10%;
    --tx: -50%;
    --ty: -50%;
    animation-delay: 0.5s;
}

.explode-r {
    top: 50%;
    left: 90%;
    --tx: -50%;
    --ty: -50%;
    animation-delay: 0.6s;
}

.explode-bl {
    top: 85%;
    left: 20%;
    --tx: -50%;
    --ty: -50%;
    animation-delay: 0.7s;
}

.explode-b {
    top: 90%;
    left: 50%;
    --tx: -50%;
    --ty: -50%;
    animation-delay: 0.8s;
}

.explode-br {
    top: 85%;
    left: 80%;
    --tx: -50%;
    --ty: -50%;
    animation-delay: 0.9s;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #FFFFFF, #A0A0FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* Connection Lines */
.connection-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.connect-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 1.5s ease-out forwards;
    animation-play-state: paused;
    opacity: 0.6;
}

.line-1 { animation-delay: 0.2s; }
.line-2 { animation-delay: 0.3s; }
.line-3 { animation-delay: 0.4s; }
.line-4 { animation-delay: 0.5s; }
.line-5 { animation-delay: 0.6s; }
.line-6 { animation-delay: 0.7s; }
.line-7 { animation-delay: 0.8s; }
.line-8 { animation-delay: 0.9s; }

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* Floating Files/Folders */
.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.float-file {
    position: absolute;
    font-size: 2rem;
    opacity: 0;
    animation: fileFloat 4s ease-in-out infinite;
}

.file-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.file-2 {
    top: 30%;
    left: 85%;
    animation-delay: 0.5s;
}

.file-3 {
    top: 60%;
    left: 10%;
    animation-delay: 1s;
}

.file-4 {
    top: 70%;
    left: 88%;
    animation-delay: 1.5s;
}

.file-5 {
    top: 15%;
    left: 50%;
    animation-delay: 2s;
}

.file-6 {
    top: 85%;
    left: 30%;
    animation-delay: 2.5s;
}

.file-7 {
    top: 40%;
    left: 5%;
    animation-delay: 3s;
}

.file-8 {
    top: 50%;
    left: 95%;
    animation-delay: 3.5s;
}

@keyframes fileFloat {
    0% {
        opacity: 0;
        transform: translateY(0) rotate(0deg);
    }
    20% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
        transform: translateY(-30px) rotate(10deg);
    }
    80% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: translateY(0) rotate(0deg);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   STEP 1: THE CHAOS (Problem State)
   ═══════════════════════════════════════════════════════════════════════════ */

.flow-story-step {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    position: relative;
    z-index: 10;
}

.step-chaos {
    text-align: center;
}

.step-badge {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(168, 85, 247, 0.3));
    border: 2px solid rgba(236, 72, 153, 0.5);
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 2rem;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

.step-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 40px rgba(236, 72, 153, 0.5);
}

.step-description {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 4rem;
    line-height: 1.6;
}

/* Chaos Container */
.chaos-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 400px;
    margin: 0 auto;
}

.chaos-item {
    position: absolute;
    font-size: 3rem;
    animation: chaosFloat 3s ease-in-out infinite;
    opacity: 0.7;
}

.chaos-item.item-1 { top: 10%; left: 15%; animation-delay: 0s; }
.chaos-item.item-2 { top: 30%; left: 70%; animation-delay: 0.5s; transform: rotate(15deg); }
.chaos-item.item-3 { top: 60%; left: 20%; animation-delay: 1s; transform: rotate(-10deg); }
.chaos-item.item-4 { top: 70%; left: 80%; animation-delay: 1.5s; }
.chaos-item.item-5 { top: 20%; left: 50%; animation-delay: 2s; transform: rotate(20deg); }
.chaos-item.item-6 { top: 80%; left: 50%; animation-delay: 2.5s; transform: rotate(-15deg); }

@keyframes chaosFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
        opacity: 0.9;
    }
}

.chaos-question {
    position: absolute;
    font-size: 4rem;
    color: rgba(236, 72, 153, 0.6);
    font-weight: 900;
    animation: questionBounce 2s ease-in-out infinite;
}

.chaos-question.q-1 { top: 5%; left: 40%; animation-delay: 0s; }
.chaos-question.q-2 { top: 45%; left: 10%; animation-delay: 0.7s; }
.chaos-question.q-3 { top: 50%; left: 85%; animation-delay: 1.4s; }

@keyframes questionBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-40px) scale(1.2);
        opacity: 0.8;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   STEP 3: THE LEARNING PATH (Organized Flow)
   ═══════════════════════════════════════════════════════════════════════════ */

.flow-learning-path {
    padding: 8rem 2rem;
    position: relative;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.path-header {
    text-align: center;
    margin-bottom: 6rem;
}

.path-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 1rem;
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
}

.path-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
}

/* Learning Path Container */
.learning-path-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* Path Stage */
.path-stage {
    margin-bottom: 4rem;
    opacity: 0;
    animation: stageReveal 1s var(--ease-shopify) forwards;
}

.path-stage.stage-1 { animation-delay: 0.2s; }
.path-stage.stage-2 { animation-delay: 0.4s; }
.path-stage.stage-3 { animation-delay: 0.6s; }
.path-stage.stage-4 { animation-delay: 0.8s; }

@keyframes stageReveal {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.stage-content {
    background: rgba(10, 10, 12, 0.9);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    transition: all 0.4s var(--ease-shopify);
}

.path-stage:hover .stage-content {
    border-color: rgba(99, 102, 241, 0.6);
    transform: translateX(10px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(99, 102, 241, 0.3);
}

.stage-number {
    position: absolute;
    top: -20px;
    left: 3rem;
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6366F1, #A855F7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stage-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.stage-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Stage Features */
.stage-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.stage-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    transition: all 0.3s var(--ease-shopify);
}

.stage-feature:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    transform: scale(1.05);
}

.feature-icon {
    font-size: 1.5rem;
}

.feature-name {
    font-size: 1rem;
    font-weight: 600;
    color: #FFFFFF;
}

/* Stage Arrow */
.stage-arrow {
    text-align: center;
    font-size: 3rem;
    color: var(--accent-primary);
    margin: 2rem 0;
    animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(15px); opacity: 1; }
}

/* Mastery Stats */
.mastery-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    justify-content: center;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6366F1, #A855F7, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Card Step Badges */
.card-step-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Flow Finale */
.flow-finale {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem;
    position: relative;
    z-index: 10;
}

.flow-finale .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.finale-heading {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 900;
    max-width: 900px;
    line-height: 1.2;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    text-shadow: 
        0 0 30px rgba(99, 102, 241, 0.4),
        0 0 60px rgba(168, 85, 247, 0.2);
}

.finale-subtext {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
}

.btn-large {
    padding: 1.5rem 3rem;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50px;
}

/* Responsive */
@media (max-width: 1200px) {
    .flow-explosion-stage .container {
        height: 700px;
    }
    
    .feature-card {
        min-width: 180px;
        padding: 1.5rem;
    }
    
    .card-icon {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .flow-explosion-stage {
        padding: 4rem 1rem;
    }
    
    .flow-explosion-stage .container {
        height: 600px;
    }
    
    .feature-card {
        min-width: 140px;
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-desc {
        font-size: 0.8rem;
    }
    
    .center-logo {
        padding: 2rem 2.5rem;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .boom-text {
        font-size: 4rem;
    }
    
    .flow-bg-container {
        width: 95%;
        height: 60%;
    }
    
    .chaos-container {
        height: 300px;
    }
    
    .chaos-item {
        font-size: 2rem;
    }
    
    .chaos-question {
        font-size: 2.5rem;
    }
    
    .stage-features {
        flex-direction: column;
    }
    
    .mastery-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stage-content {
        padding: 2rem;
    }
    
    .stage-number {
        font-size: 3rem;
        left: 2rem;
    }
}



/* ═══════════════════════════════════════════════════════════════════════════
   ZOOM PARALLAX SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.zoom-parallax-section {
    position: relative;
    background: var(--bg-body);
}

.zoom-parallax-container {
    height: 300vh;
    position: relative;
}

.zoom-parallax-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-image-wrapper {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

.parallax-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Image 1 - Center large */
.parallax-img-1 {
    width: 25vw;
    height: 25vh;
    z-index: 1;
}

/* Image 2 - Top left */
.parallax-img-2 {
    width: 35vw;
    height: 30vh;
    top: -30vh;
    left: 5vw;
    z-index: 2;
}

/* Image 3 - Top far left */
.parallax-img-3 {
    width: 20vw;
    height: 45vh;
    top: -10vh;
    left: -25vw;
    z-index: 3;
}

/* Image 4 - Center right */
.parallax-img-4 {
    width: 25vw;
    height: 25vh;
    left: 27.5vw;
    z-index: 2;
}

/* Image 5 - Bottom left */
.parallax-img-5 {
    width: 20vw;
    height: 25vh;
    top: 27.5vh;
    left: 5vw;
    z-index: 1;
}

@media (max-width: 768px) {
    .parallax-image-wrapper {
        width: 40vw !important;
        height: 20vh !important;
    }
    
    .parallax-img-2 {
        top: -20vh !important;
        left: 10vw !important;
    }
    
    .parallax-img-3 {
        left: -15vw !important;
    }
    
    .parallax-img-4 {
        left: 20vw !important;
    }
    
    .parallax-img-5 {
        top: 20vh !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   NEW PRICING CARDS
   ═══════════════════════════════════════════════════════════════════════════ */

.pricing-section-new {
    padding: 8rem 0;
    background: var(--bg-body);
}

.pricing-cards-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

/* Card base */
.pcard {
    border-radius: 28px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-top: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.pcard:hover {
    transform: translateY(-6px);
}

/* Solid card fill colors */
.pcard-basic  { background: #2A2A2E; box-shadow: 0 8px 40px rgba(0,0,0,0.4); }
.pcard-notetaker { background: #1E2A3A; box-shadow: 0 8px 40px rgba(0,0,0,0.4); }
.pcard-pro    { background: #3A1018; box-shadow: 0 12px 50px rgba(180,20,40,0.25); }
.pcard-ultra  { background: #1A2015; box-shadow: 0 8px 40px rgba(0,0,0,0.4); }

.pcard:hover.pcard-basic     { box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.pcard:hover.pcard-notetaker { box-shadow: 0 20px 60px rgba(30,60,120,0.35); }
.pcard:hover.pcard-pro       { box-shadow: 0 20px 60px rgba(200,30,50,0.35); }
.pcard:hover.pcard-ultra     { box-shadow: 0 20px 60px rgba(40,80,20,0.35); }

/* Floating pill label above card */
.pcard-pill {
    position: absolute;
    top: -0.85rem;
    left: 50%;
    transform: translateX(-50%);
    background: #0D1117;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.12);
    z-index: 2;
}

.pcard-pill-recommended {
    background: #0D1117;
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}

/* Card body */
.pcard-body {
    padding: 2rem 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pcard-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin: 0 0 0.4rem;
    line-height: 1.1;
}

.pcard-sub {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    margin: 0 0 1.4rem;
    line-height: 1.4;
}

.pcard-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin-bottom: 1.2rem;
}

.pcard-features-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 0.8rem;
}

.pcard-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
}

.pcard-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 0.65rem;
    line-height: 1.4;
}

.pcard-features li::before {
    content: '';
    display: inline-block;
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    margin-top: 0.1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' fill='%2322c55e' opacity='0.2'/%3E%3Cpath d='M4.5 8l2.5 2.5 4.5-4.5' stroke='%2322c55e' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Price block */
.pcard-price-wrap {
    margin-bottom: 1.25rem;
}

.pcard-price {
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.04em;
    line-height: 1;
}

.pcard-price span {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0;
}

.pcard-alt-price {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    margin-top: 0.3rem;
}

/* CTA button */
.pcard-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #0D1117;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.12);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    letter-spacing: 0.01em;
}

.pcard-btn:hover {
    background: #1a2030;
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 1024px) {
    .pricing-cards-new {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .pricing-cards-new {
        grid-template-columns: 1fr;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — COMPREHENSIVE OVERRIDES
   Applies only on phones (≤ 768px). Desktop layout is untouched.
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

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

    body {
        overflow-x: hidden;
        width: 100%;
    }

    .container {
        padding: 0 1.25rem;
        width: 100%;
    }

    /* ── Typography ── */
    h1 {
        font-size: clamp(2.2rem, 9vw, 3.2rem);
        line-height: 1.15;
        word-break: break-word;
    }

    h2 {
        font-size: clamp(1.8rem, 7vw, 2.6rem);
        line-height: 1.2;
    }

    h3 {
        font-size: clamp(1.2rem, 5vw, 1.6rem);
    }

    p {
        font-size: 0.97rem;
        line-height: 1.65;
    }

    /* ── Navigation ── */
    nav {
        width: 100%;
    }

    .nav-content {
        height: 58px;
        padding: 0 1.25rem;
    }

    .logo-img {
        height: 32px;
    }

    /* Mobile menu open: show CTA inside overlay */
    .nav-links.mobile-open .nav-cta-mobile {
        display: block;
        margin-top: 2rem;
        text-align: center;
    }

    /* ── Hero Section ── */
    .hero {
        min-height: 100svh;
        padding-top: 5rem;
        padding-bottom: 3rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .hero-content {
        padding: 0;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.9rem;
    }

    .hero .animated-gradient-text {
        display: inline;
        word-break: break-word;
    }

    .hero h1 {
        font-size: clamp(1.9rem, 7.5vw, 2.6rem) !important;
        line-height: 1.2;
        white-space: nowrap;
        text-align: center;
        width: 100%;
        display: block;
    }

    .hero p {
        font-size: 0.82rem !important;
        line-height: 1.65;
        margin-bottom: 2rem;
        max-width: 100% !important;
        padding: 0 0.25rem;
    }

    /* Hide the desktop line-break on mobile */
    .hidden-mobile {
        display: none;
    }

    /* hero CTA buttons: stack on very narrow */
    .hero .fade-in-up > a,
    .hero .fade-in-up > div > a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* The flex wrapper around CTA buttons */
    .hero [style*="display: flex"][style*="gap"] {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem !important;
        padding: 0 0.5rem;
    }

    .scroll-indicator {
        display: none;
    }

    /* ── Demo Video ── */
    .demo-video-section {
        padding: 3rem 0;
    }

    .demo-video-frame {
        border-radius: 12px;
        margin: 0 0.5rem;
    }

    .demo-video-frame:hover {
        transform: none; /* disable scale hover on touch */
    }

    .demo-video-player {
        min-height: 200px;
    }

    /* ── Bento Grid ── */
    .bento-section {
        padding: 3rem 0;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0 0.25rem;
    }

    /* Force ALL bento items to single column stacked layout */
    .bento-item,
    .bento-item.medium,
    .bento-item.large {
        grid-column: span 1 !important;
        flex-direction: column !important;  /* stack visual on top, text below */
        align-items: stretch !important;
        min-height: unset;
    }

    /* Visual preview: compact height on mobile */
    .bento-item .visual-preview,
    .bento-item.medium .visual-preview,
    .bento-item.large .visual-preview {
        width: 100% !important;
        height: 160px !important;
        min-height: 160px !important;
        order: 1 !important;
        mask-image: linear-gradient(to bottom, black 70%, transparent 100%) !important;
        -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%) !important;
        border-left: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }

    /* Scale down complex inner UIs to fit */
    .foundation-ui,
    .summary-app-interface,
    .podcast-interface,
    .lecture-container,
    .scheduler-timeline,
    .review-dashboard {
        transform: scale(0.72);
        transform-origin: center center;
    }

    /* Content area: full width below visual */
    .bento-item .bento-content,
    .bento-item.medium .bento-content,
    .bento-item.large .bento-content {
        width: 100% !important;
        height: auto !important;
        order: 2 !important;
        padding: 1.25rem 1.25rem 1.5rem !important;
        background: transparent !important;
        justify-content: flex-start !important;
    }

    .bento-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .bento-item h3,
    .bento-item.medium h3,
    .bento-item.large h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.35rem;
        line-height: 1.3;
    }

    .bento-item p,
    .bento-item.medium p,
    .bento-item.large p {
        font-size: 0.88rem !important;
        line-height: 1.55;
        color: rgba(255,255,255,0.7);
    }

    /* ── Apple Scroll Flow Section ── */
    .apple-scroll-flow {
        /* Keep scroll-driven layout but reduce height */
    }

    .flow-scroll-container {
        height: 450vh;
    }

    .flow-main-title {
        font-size: clamp(2.4rem, 9vw, 3.5rem);
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .flow-main-subtitle {
        font-size: 1rem;
        margin-top: 1rem;
    }

    .scene-title {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
        margin-bottom: 2rem;
    }

    .scene-description {
        font-size: 0.95rem;
    }

    .chaos-visual {
        height: 240px;
        max-width: 100%;
    }

    .chaos-item {
        font-size: 2rem;
    }

    .chaos-question {
        font-size: 2rem;
    }

    /* ── Explosion scene: always show on mobile, prevent overflow ── */
    .scene-explosion {
        overflow: hidden;
    }

    .scene-explosion .container {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        padding: 1rem 1.5rem;
        gap: 0.75rem;
        position: relative;
        width: 100%;
        height: 100vh;
        box-sizing: border-box;
    }

    .scene-explosion .scene-title,
    .explosion-scene-title {
        font-size: clamp(1.4rem, 6vw, 2rem) !important;
        white-space: normal;
        text-align: center;
        padding: 0 0.5rem;
        margin: 0 !important;
        /* Override desktop inline absolute positioning */
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        order: 1;
        /* Let JS blur-reveal drive opacity/filter */
    }

    /* Explosion scene: hide complex JS-animated layout, show simple list */
    .feature-cards-container {
        display: none !important;
    }

    .explosion-bg-image {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 60% !important;
        max-width: 180px !important;
        margin: 0 auto !important;
        opacity: 1 !important;
        transform: none !important;
        flex-shrink: 0;
        order: 2;
        pointer-events: auto !important;
        z-index: auto !important;
    }

    .scene-explosion.exploded .explosion-bg-image,
    .scene-explosion.exploding .explosion-bg-image {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        opacity: 1 !important;
        width: 60% !important;
        max-width: 180px !important;
        margin: 0 auto !important;
    }

    .explosion-bg-image img {
        width: 100% !important;
        height: auto !important;
        border-radius: 14px;
        object-fit: cover;
        box-shadow: 0 8px 32px rgba(99,102,241,0.35);
    }

    .explosion-center-logo {
        display: none !important;
    }

    /* Remove old ::after text fallback */
    .scene-explosion .container::after {
        content: none !important;
        display: none !important;
    }

    /* Show mobile feature pill grid */
    .mobile-features-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 0.55rem;
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
        padding: 0;
        flex-shrink: 0;
        order: 3;
    }

    .mobile-feature-pill {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        background: rgba(99, 102, 241, 0.13);
        border: 1px solid rgba(99, 102, 241, 0.32);
        border-radius: 10px;
        padding: 0.55rem 0.8rem;
        font-size: 0.8rem;
        font-weight: 500;
        color: #fff;
        white-space: nowrap;
        backdrop-filter: blur(10px);
        opacity: 0;
        transform: translateY(10px) scale(0.95);
        /* opacity/transform driven by JS scroll handler */
    }

    .mobile-feature-pill span:first-child {
        font-size: 1.05rem;
        flex-shrink: 0;
    }

    /* ── Learning Loop ── */
    .ll-diagram {
        display: block !important;
        width: min(560px, 94vw) !important;
        height: min(560px, 94vw) !important;
        zoom: 0.58;
        margin-left: auto !important;
        margin-right: auto !important;
        animation: loopRotate 34s linear infinite;
    }

    /* Stage cards: shrink the inner card only, keep animation untouched */
    .ll-stage-inner {
        padding: 0.45rem 0.6rem;
        min-width: 120px;
        max-width: 120px;
    }

    .ll-stage-num {
        font-size: 0.55rem;
    }

    .ll-stage-title {
        font-size: 0.7rem;
    }

    .ll-stage-features span {
        font-size: 0.55rem;
    }

    .ll-hub {
        width: 90px;
        height: 90px;
    }

    .ll-hub-name {
        font-size: 0.42rem;
        line-height: 1.3;
    }

    .ll-hub-icon {
        font-size: 1rem;
    }

    /* Hide swipe cards — diagram is visible */
    .ll-mobile-cards {
        display: none !important;
    }

    .ll-mobile-dots {
        display: none !important;
    }

    .ll-header {
        padding: 0 1rem;
        text-align: center;
        width: 100%;
    }

    .ll-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        overflow: hidden;
    }

    .ll-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .finale-title {
        font-size: clamp(1.6rem, 6vw, 2.4rem);
    }

    /* Shrink the Get Started Today button */
    .scene-finale .btn-large,
    .btn-large {
        padding: 0.8rem 1.8rem !important;
        font-size: 1rem !important;
        border-radius: 30px !important;
    }

    .finale-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .flow-scroll-progress {
        width: 140px;
        bottom: 1rem;
    }

    /* ── Timeline / Roadmap ── */
    .roadmap-steps {
        gap: 1.5rem;
    }

    .step {
        flex-direction: column;
        gap: 0.75rem;
    }

    .step-marker {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 0.9rem;
        align-self: flex-start;
    }

    .step-content {
        padding: 1.25rem;
    }

    .step-content h3 {
        font-size: 1.05rem;
        margin-bottom: 0.5rem;
    }

    .step-month-label {
        font-size: 0.75rem;
    }

    .step-bullets li {
        font-size: 0.88rem;
    }

    /* ── Pricing ── */
    .pricing-section-new {
        padding: 4rem 0;
    }

    .pricing-cards-new {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 0.5rem;
    }

    .pcard {
        margin-top: 1rem; /* space for floating pill */
    }

    .pcard-body {
        padding: 1.5rem 1.25rem;
    }

    .pcard-name {
        font-size: 1.3rem;
    }

    .pcard-price {
        font-size: 2rem;
    }

    /* ── Footer ── */
    footer {
        padding: 3.5rem 0 5rem; /* extra bottom so scroll-top btn doesn't overlap */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-col {
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .footer-col:last-child {
        border-bottom: none;
    }

    .footer-col:first-child {
        margin-bottom: 0;
    }

    .footer-col h4 {
        font-size: 0.8rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: rgba(255,255,255,0.45);
        margin-bottom: 0.75rem;
    }

    .footer-col ul li {
        margin-bottom: 0.6rem;
    }

    .footer-col ul li a {
        font-size: 0.95rem;
    }

    .newsletter-form {
        flex-direction: row;
        gap: 0.5rem;
    }

    .newsletter-input {
        width: 100%;
        font-size: 0.95rem;
        flex: 1;
    }

    .newsletter-form .btn {
        flex-shrink: 0;
        padding: 0.8rem 1rem;
    }

    /* Move scroll-to-top away from footer CTA */
    .scroll-top-btn {
        bottom: 1.5rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }

    /* ── Disable expensive hover animations on touch ── */
    .hover-lift:hover {
        transform: none;
    }

    .float-card {
        animation: none;
    }

    .magnetic:hover {
        transform: none;
    }

    /* ── Floating orbs — reduce on mobile ── */
    .orb-1 { width: 280px; height: 280px; }
    .orb-2 { width: 180px; height: 180px; }
    .orb-3 { width: 130px; height: 130px; }
    .orb-4 { display: none; }

    /* ── Typography spacing polish ── */
    .text-center {
        padding: 0 0.5rem;
    }

    .text-center h2,
    .text-center p {
        text-align: center;
    }

    /* Increase body text contrast slightly */
    p, li {
        color: rgba(255,255,255,0.72);
    }

    /* Consistent safe-margin spacing for all sections */
    section > .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    /* ── Section badge ── */
    .hero-badge {
        font-size: 0.72rem;
        padding: 0.35rem 0.85rem;
    }

    /* ── Hero CTA button group ── */
    .hero-cta-group {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.6rem !important;
        padding: 0 0.25rem;
    }

    .hero-cta-group .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 0.65rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Extra small phones */
@media (max-width: 390px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .hero {
        padding-top: 4.5rem;
    }

    .bento-grid {
        gap: 1rem;
    }

    .pcard-body {
        padding: 1.25rem 1rem;
    }

    .pcard-features li {
        font-size: 0.82rem;
    }

    .finale-title {
        font-size: 1.8rem;
    }

    .flow-main-title {
        font-size: 2rem;
    }
}

/* ===== Vibe Coin Info Button & Modal ===== */

.coin-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(160, 160, 160, 0.15);
    border: 1px solid rgba(160, 160, 160, 0.45);
    color: rgba(180, 180, 180, 0.75);
    font-size: 0.58rem;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, serif;
    line-height: 1;
    cursor: pointer;
    vertical-align: middle;
    margin-left: 4px;
    padding: 0;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    flex-shrink: 0;
}

.coin-info-btn:hover {
    background: rgba(160, 160, 160, 0.28);
    border-color: rgba(200, 200, 200, 0.7);
    transform: scale(1.15);
}

/* Overlay */
.coin-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.coin-modal-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

/* Modal box */
.coin-modal {
    position: relative;
    background: #16112a;
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 18px;
    padding: 2rem 2rem 1.75rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 24px 80px rgba(99, 102, 241, 0.25), 0 0 0 1px rgba(168,85,247,0.1);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

.coin-modal-overlay.is-open .coin-modal {
    transform: translateY(0) scale(1);
}

/* Close button */
.coin-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s, color 0.2s;
}

.coin-modal-close:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

/* Header */
.coin-modal-header {
    margin-bottom: 1.5rem;
}

.coin-modal-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.coin-modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.4rem;
}

.coin-modal-intro {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    margin: 0;
    line-height: 1.5;
}

/* Rate rows */
.coin-modal-rates {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.4rem;
}

.coin-rate-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
}

.coin-rate-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.coin-rate-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    gap: 0.1rem;
}

.coin-rate-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.coin-rate-sub {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    font-weight: 400;
}

.coin-rate-cost {
    font-size: 0.82rem;
    font-weight: 700;
    color: #c084fc;
    white-space: nowrap;
}

/* Per-tier breakdown */
.coin-modal-breakdown {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.22);
    border-radius: 12px;
    padding: 1rem 1.1rem;
}

.coin-breakdown-title {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.6rem;
}

.coin-breakdown-total {
    font-size: 1rem;
    font-weight: 700;
    color: #a78bfa;
    margin-bottom: 0.6rem;
}

.coin-breakdown-examples {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin: 0;
    padding-left: 1.1rem;
}

.coin-breakdown-examples li {
    margin-bottom: 0.1rem;
}

@media (max-width: 480px) {
    .coin-modal {
        padding: 1.5rem 1.25rem 1.4rem;
    }
}

/* Coin li two-line layout */
.pcard-coin-li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.pcard-coin-label {
    color: inherit;
}

.pcard-coin-value {
    display: flex;
    align-items: center;
    gap: 0;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95em;
}

@media (max-width: 768px) {
    .pcard-coin-li {
        flex-direction: column !important;
        align-items: flex-start;
    }
    .pcard-coin-value {
        display: flex !important;
        width: 100%;
    }
}

