/* ===================================================
   WEBPOT
   Professional Scroll-Driven Split Comparison Section
   File: comparison.css
  =================================================== */

#comparison {
    padding: var(--section-padding) 0;
    position: relative;
    background: transparent;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

/* ==========================================
   SCROLL REVEAL POP-OUT ANIMATION
 ========================================== */

.scroll-reveal-item {
    opacity: 0;
    transform: scale(0.92) translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.scroll-reveal-item.revealed {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.comparison-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 50px;
}

.comparison-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 6px 16px;
    background: #111111;
    color: #ffffff;
    border-radius: 99px;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.comparison-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.comparison-subtitle {
    font-size: 1.08rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ==========================================
   HIGH-TECH SPLIT SLIDER STAGE
 ========================================== */

.comparison-stage {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 30px;
    height: 540px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    user-select: none;
    cursor: ew-resize;
    background: #ffffff;
}

/* Layer 1: Standard Website (Underneath / Grayscale) */
.comp-layer-standard {
    position: absolute;
    inset: 0;
    background: #f1f5f9;
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    pointer-events: none;
}

.comp-layer-standard .comp-tag {
    background: #e2e8f0;
    color: #475569;
    padding: 6px 16px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
    border: 1px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.comp-card-standard {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 36px 40px;
    width: 100%;
    max-width: 540px;
    min-height: 230px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    filter: grayscale(100%);
    opacity: 0.85;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.comp-card-standard-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #334155;
    text-align: center;
}

.comp-card-standard-desc {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    text-align: center;
}

/* Layer 2: Webpot Engine (Overlaid with Clip Path) */
.comp-layer-webpot {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, #1e1b4b 0%, #090d16 100%);
    color: #ffffff;
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    will-change: clip-path;
    pointer-events: none;
}

.comp-layer-webpot .comp-tag {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(129, 140, 248, 0.4);
    color: #818cf8;
    padding: 6px 16px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.comp-card-webpot {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 36px 40px;
    width: 100%;
    max-width: 540px;
    min-height: 230px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    color: #ffffff;
    transform-style: preserve-3d;
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Performance Indicator Pills */
.live-fps-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 20px;
}

.badge-slow {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.badge-fast {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.35);
}

/* Stainless Glass Slider Handle */
.comp-slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0) 0%, rgba(56, 189, 248, 0.95) 20%, rgba(255, 255, 255, 1) 50%, rgba(168, 85, 247, 0.95) 80%, rgba(168, 85, 247, 0) 100%);
    cursor: ew-resize;
    z-index: 20;
    transform: translateX(-50%);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.6), 0 0 32px rgba(129, 140, 248, 0.4);
    will-change: left;
    touch-action: none;
}

.comp-slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #0b0f19;
    border: 1.5px solid rgba(56, 189, 248, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 15px rgba(56, 189, 248, 0.35);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.comp-slider-button svg {
    display: block;
    stroke: #38bdf8;
    filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.6));
    transition: transform 0.2s ease;
}

.comp-slider-handle:hover .comp-slider-button,
.comp-slider-handle:active .comp-slider-button {
    transform: translate(-50%, -50%) scale(1.15);
    border-color: #38bdf8;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(56, 189, 248, 0.6);
}

.comp-slider-handle:active .comp-slider-button {
    transform: translate(-50%, -50%) scale(1.08);
}

/* ==========================================
   CONTINUOUS RIGHT-TO-LEFT TICKER CAROUSEL
 ========================================== */

.comp-ticker-wrapper {
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 10px 0;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.comp-ticker-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: compMarqueeRightToLeft 24s linear infinite;
    will-change: transform;
}

.comp-ticker-track:hover {
    animation-play-state: paused;
}

@keyframes compMarqueeRightToLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===================================================
   LIQUID METAL CAROUSEL TICKER PILLS
 =================================================== */

.comp-ticker-item {
    position: relative;
    background: linear-gradient(135deg, #0a0d16 0%, #151928 50%, #060810 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 22px;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    cursor: default;
    user-select: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

/* Liquid Metal Border Flow */
.comp-ticker-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 99px;
    padding: 1.5px;
    background: linear-gradient(
        135deg,
        #111115 0%,
        #94a3b8 20%,
        #ffffff 35%,
        #475569 50%,
        #ffffff 65%,
        #64748b 80%,
        #050508 100%
    );
    background-size: 300% 300%;
    animation: liquidChromeBorderFlow 6s ease-in-out infinite alternate;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Liquid Specular Shine Reflection Sweep */
.comp-ticker-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 100%
    );
    transform: skewX(-20deg);
    animation: liquidSheenSweep 4.5s ease-in-out infinite;
    pointer-events: none;
}

.comp-ticker-item .ticker-icon {
    font-size: 1.05rem;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

/* Liquid Metal Chrome Text Effect */
.comp-ticker-text {
    background: linear-gradient(
        115deg,
        #ffffff 0%,
        #cbd5e1 15%,
        #f8fafc 30%,
        #ffffff 45%,
        #94a3b8 60%,
        #e2e8f0 75%,
        #ffffff 100%
    );
    background-size: 260% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: liquidMetalTextFlow 4s ease-in-out infinite alternate;
    font-weight: 700;
    letter-spacing: -0.01em;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
    display: inline-block;
}

.comp-ticker-item:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(148, 163, 184, 0.25);
}

.comp-ticker-item:hover .ticker-icon {
    transform: scale(1.15) rotate(5deg);
}

/* Liquid Metal Keyframe Animations */
@keyframes liquidChromeBorderFlow {
    0% {
        background-position: 0% 50%;
        filter: brightness(1) contrast(1.1);
    }
    50% {
        background-position: 100% 50%;
        filter: brightness(1.3) contrast(1.25);
    }
    100% {
        background-position: 50% 100%;
        filter: brightness(1.1) contrast(1.15);
    }
}

@keyframes liquidMetalTextFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 50% 100%;
    }
}

@keyframes liquidSheenSweep {
    0% {
        left: -150%;
    }
    50%, 100% {
        left: 150%;
    }
}

@media (max-width: 900px) {
    .comp-stage { height: 460px; }
}

/* ===================================================
   LIQUID TEXT EFFECT (EXCLUSIVE TO MAIN WEBPOT CARD)
 =================================================== */

.comp-card-webpot .liquid-card-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    margin-bottom: 12px;
    user-select: none;
}

.comp-card-webpot .liquid-text-label {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: liquidLabelFlow 6s ease infinite alternate;
    display: inline-block;
}

.comp-card-webpot .liquid-text-heading {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    background: linear-gradient(
        115deg,
        #ffffff 0%,
        #93c5fd 18%,
        #38bdf8 36%,
        #ffffff 50%,
        #818cf8 64%,
        #c084fc 82%,
        #ffffff 100%
    );
    background-size: 280% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.4)) drop-shadow(0 0 24px rgba(129, 140, 248, 0.25));
    animation: liquidChromeWave 4.5s ease-in-out infinite alternate;
    transition: filter 0.4s ease, transform 0.4s ease;
    display: block;
}

.comp-card-webpot:hover .liquid-text-heading {
    filter: url(#webpot-liquid-filter) drop-shadow(0 0 16px rgba(56, 189, 248, 0.75)) drop-shadow(0 0 32px rgba(192, 132, 252, 0.5));
}

/* Fluid Liquid Chrome Wave Animations */
@keyframes liquidChromeWave {
    0% {
        background-position: 0% 50%;
        filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.35)) drop-shadow(0 0 20px rgba(129, 140, 248, 0.2));
    }
    50% {
        background-position: 100% 50%;
        filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.65)) drop-shadow(0 0 36px rgba(192, 132, 252, 0.45));
    }
    100% {
        background-position: 50% 100%;
        filter: drop-shadow(0 0 12px rgba(0, 242, 254, 0.45)) drop-shadow(0 0 26px rgba(129, 140, 248, 0.3));
    }
}

@keyframes liquidLabelFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

