/* ========================================
   MOUFLY SHOWCASE - ONE PAGE
   Light theme: blue / white / orange / grey
   ======================================== */

:root {
    --blue: #4A90E2;
    --blue-light: #6BA4EC;
    --blue-dark: #3A7BC8;
    --blue-bg: rgba(74, 144, 226, 0.06);
    --orange: #F5A623;
    --orange-light: #F7B84A;
    --white: #ffffff;
    --grey-50: #f9fafb;
    --grey-100: #f3f4f6;
    --grey-200: #e5e7eb;
    --grey-400: #9ca3af;
    --grey-500: #6b7280;
    --grey-600: #4b5563;
    --grey-800: #1f2937;
    --grey-900: #111827;

    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
    --shadow-xl: 0 24px 48px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 20px;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--white);
    color: var(--grey-800);
    line-height: 1.6;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---- Animations ---- */
@keyframes taglineShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@keyframes scrollRight {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

.fade-in {
    opacity: 0;
    animation: fadeUp 0.7s ease-out forwards;
    animation-delay: var(--delay, 0s);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-primary {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}
.btn-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.4);
}
.btn-large {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
    border-radius: 10px;
}
/* ---- Hero ---- */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6rem;
    background:
        radial-gradient(ellipse 70% 50% at 30% 20%, rgba(74, 144, 226, 0.07), transparent),
        radial-gradient(ellipse 40% 40% at 70% 80%, rgba(245, 166, 35, 0.05), transparent),
        var(--grey-50);
    padding-left: 5%;
    padding-right: 5%;
}
.hero-left {
    text-align: center;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}
.hero-logo {
    width: 192px;
    height: 192px;
    object-fit: contain;
    margin: 0 auto 0.5rem;
    filter: drop-shadow(0 8px 24px rgba(74, 144, 226, 0.15));
}
.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}
.hero-subtitle {
    font-size: 0.95rem;
    color: var(--grey-500);
    line-height: 1.5;
    max-width: 360px;
    margin: 1rem 0 1.5rem;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.6rem;
    background: var(--orange);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(245, 166, 35, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 166, 35, 0.35);
    background: #f0991c;
}
.hero-cta svg {
    transition: transform 0.2s ease;
}
.hero-cta:hover svg {
    transform: translateX(3px);
}
.hero-reassurance {
    font-size: 0.8rem;
    color: var(--grey-400);
    margin-top: 0.75rem;
    letter-spacing: 0.02em;
}
/* Inline word rotator inside the tagline, mirrors the .hero-feature-rotator
   animation so the hero left feels consistent with the cards on the right.
   height + line-height match the parent tagline's line-height (1.3) so the
   rotator's inline-block sits on the same baseline as the surrounding text. */
.hero-tagline-rotator {
    display: inline-block;
    position: relative;
    overflow: hidden;
    vertical-align: bottom;
    min-width: 4em; /* widened by JS once measured */
    height: 1.3em;
    line-height: 1.3;
    text-align: left;
}
.hero-tagline-rotator-text {
    display: inline-block;
    transform: translateY(0);
    opacity: 1;
    transition: transform 420ms cubic-bezier(0.45, 0, 0.2, 1), opacity 300ms ease;
    will-change: transform, opacity;
    /* Override the tagline's gradient-via-transparent fill, otherwise nested
       text inherits 'transparent' without the parent's background and vanishes. */
    color: var(--orange);
    -webkit-text-fill-color: var(--orange);
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}
.hero-tagline-rotator.is-exiting .hero-tagline-rotator-text {
    transform: translateY(-100%);
    opacity: 0;
}
.hero-tagline-rotator.is-entering .hero-tagline-rotator-text {
    transform: translateY(100%);
    opacity: 0;
    transition: none;
}
.brand {
    font-family: 'Quicksand', sans-serif; /* alt: 'Nunito', sans-serif (800) */
    font-weight: 700;
    color: var(--blue);
}
.hero-tagline {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    background: linear-gradient(90deg, var(--blue), var(--orange), var(--grey-400), var(--blue));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: taglineShift 16s ease-in-out infinite;
}
.text-accent {
    color: var(--orange);
}
.text-muted {
    opacity: 0.4;
}
.hero-right {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 560px;
}
.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.7rem 1.1rem;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--grey-200);
    transition: all 0.25s ease;
}
.hero-feature-body {
    flex: 1;
    min-width: 0;
}
.hero-feature:hover {
    border-color: var(--blue-light);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}
.hero-feature:hover .hero-feature-icon {
    background: rgba(245, 166, 35, 0.1);
    color: var(--orange);
}
.hero-feature-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--blue-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
}
.hero-feature h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--grey-900);
    line-height: 1.2;
    margin: 0 0 2px;
}
.hero-feature p {
    font-size: 0.8125rem;
    color: var(--grey-500);
    line-height: 1.5;
}
/* Split-flap / train board rotator: vertical slide between words, wrapped in a
   fixed-height clip so nothing can shift the card layout. */
.hero-feature-rotator {
    display: block;
    position: relative;
    overflow: hidden;
    height: 1.25em;
    line-height: 1.25em;
    margin: 0;
    /* Prevent ellipsis from cropping long features; card width is wide enough */
    white-space: nowrap;
}
.hero-feature-rotator-text {
    display: inline-block;
    transform: translateY(0);
    opacity: 1;
    transition: transform 400ms cubic-bezier(0.45, 0, 0.2, 1), opacity 280ms ease;
    will-change: transform, opacity;
}
/* Outgoing word: slide up + fade */
.hero-feature-rotator.is-exiting .hero-feature-rotator-text {
    transform: translateY(-100%);
    opacity: 0;
}
/* Incoming word: placed below, without transition so it snaps before sliding in */
.hero-feature-rotator.is-entering .hero-feature-rotator-text {
    transform: translateY(100%);
    opacity: 0;
    transition: none;
}

/* ---- Section common ---- */
.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    color: var(--grey-900);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}
.section-subtitle {
    text-align: center;
    color: var(--grey-500);
    font-size: 1.125rem;
    margin-bottom: 3.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Gallery ---- */
.gallery {
    padding: 7rem 0 5rem;
    background: var(--grey-50);
    overflow: hidden;
}
.gallery-header {
    padding: 0 2rem;
}
.gallery-wall {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transform: rotate(-3deg) scale(1.05);
    transform-origin: center center;
}
.gallery-row {
    overflow: hidden;
    position: relative;
}
.gallery-track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    will-change: transform;
}

/* Scroll directions */
.gallery-row[data-direction="left"] .gallery-track {
    animation: scrollLeft 70s linear infinite;
}
.gallery-row[data-direction="right"] .gallery-track {
    animation: scrollRight 120s linear infinite;
}

/* Pause on hover */
.gallery-wall:hover .gallery-track {
    animation-play-state: paused;
}

/* Image sizes */
.gallery-img {
    border-radius: var(--radius);
    border: 1px solid var(--grey-200);
    box-shadow: var(--shadow-sm);
    object-fit: cover;
    flex-shrink: 0;
    transition: all 0.3s ease;
    background: var(--white);
}
.gallery-img:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.03);
    z-index: 2;
    position: relative;
}
.gallery-img--sm {
    height: 140px;
    width: auto;
}
.gallery-img--lg {
    height: 280px;
    width: auto;
}

/* ---- Trust strip (CMS logos) ---- */
.trust-strip {
    padding: 2.5rem 1.5rem;
    background: var(--white);
    text-align: center;
}
.trust-strip-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--grey-500);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 1.5rem;
}
.trust-strip-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5.5rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
.trust-strip-logo {
    height: 64px;
    width: auto;
    max-width: 220px;
    filter: grayscale(1);
    opacity: 0.4;
    transition: opacity 0.2s ease;
}
.trust-strip-logo:hover {
    opacity: 0.7;
}
/* "Coming soon" CMS — faded to signal they aren't supported yet */
.trust-strip-logo--soon {
    opacity: 0.1;
}
.trust-strip-logo--soon:hover {
    opacity: 0.25;
}
/* The 'Woo' rebrand is a short wordmark — trim its height so it matches the
   visual weight of the longer logos beside it. */
.trust-strip-logo--woocommerce {
    height: 40px;
}

/* Mobile carousel variant — hidden by default, revealed in mobile media query */
.trust-strip-carousel {
    display: none;
    overflow: hidden;
    width: 100%;
}
.trust-strip-carousel-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: max-content;
    animation: scrollLeft 28s linear infinite;
    will-change: transform;
}
.trust-strip-carousel-track .trust-strip-logo {
    flex-shrink: 0;
}

/* ---- Separator ---- */
.section-separator {
    padding: 0 2rem;
    background: var(--white);
}
.separator-line {
    max-width: 120px;
    height: 3px;
    margin: 0 auto;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--blue-light), var(--orange-light));
}

/* ---- Strengths ---- */
.strengths {
    padding: 7rem 0;
    background: var(--white);
}
.strengths-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 960px;
    margin: 0 auto;
}
.strengths-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.strength-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--grey-200);
    background: var(--grey-50);
    transition: all 0.25s ease;
}
.strength-item:hover {
    border-color: var(--blue-light);
    box-shadow: var(--shadow-md);
    background: var(--white);
}
.strength-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    background: var(--blue-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
}
.strength-text h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--grey-900);
    margin-bottom: 0.25rem;
}
.strength-text p {
    font-size: 0.9375rem;
    color: var(--grey-500);
    line-height: 1.6;
}

/* ---- CTA 50/50 ---- */
.cta-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
    border-top: 1px solid var(--grey-200);
}
.cta-left {
    background: var(--grey-50);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}
.cta-left-content {
    text-align: center;
    max-width: 400px;
}
.cta-left-content h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: var(--grey-900);
    margin-bottom: 0.75rem;
}
.cta-left-content p {
    font-size: 1rem;
    color: var(--grey-500);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.cta-right {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}
.cta-right-content {
    text-align: center;
    max-width: 400px;
}
.cta-right-content h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
}
.cta-right-content p {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: #fff;
    color: var(--blue);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}
.btn-white:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
@media (max-width: 768px) {
    .hide-mobile { display: none; }
    .cta-split {
        grid-template-columns: 1fr;
    }
    .cta-left {
        min-height: 280px;
        padding: 0;
    }
    .cta-right {
        padding: 2.5rem 1.25rem;
    }
}

/* ---- Footer ---- */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--grey-200);
    background: var(--white);
}
.footer-inner {
    text-align: center;
}
.footer-copy {
    font-size: 0.875rem;
    color: var(--grey-400);
}

/* ---- Topbar ---- */
.showcase-topbar {
    display: flex;
    justify-content: flex-end;
    padding: 16px 32px;
}
.showcase-topbar .btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--blue);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s;
}
.showcase-topbar .btn-login:hover {
    background: var(--orange);
}
.showcase-topbar .btn-login svg {
    width: 16px;
    height: 16px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        gap: 3rem;
        min-height: auto;
        padding: 4rem 2rem;
    }
    .hero-logo {
        width: 170px;
        height: 170px;
    }
    .hero h1 { font-size: 2.25rem; }
    .hero-right {
        max-width: 100%;
    }
}

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

    /* Login button: icon only */
    .showcase-topbar {
        padding: 16px 20px;
    }
    .showcase-topbar .btn-login {
        padding: 0;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        justify-content: center;
        background: var(--blue);
        color: #fff;
        box-shadow: none;
    }
    .showcase-topbar .btn-login svg {
        width: 18px;
        height: 18px;
        stroke: #fff;
        flex-shrink: 0;
    }
    .showcase-topbar .btn-login:hover {
        background: var(--blue);
        color: #fff;
    }
    .showcase-topbar .btn-login:hover svg {
        stroke: #fff;
    }
    .btn-login-text {
        display: none;
    }

    /* Hero: logo large + name centered */
    .hero {
        padding: 5.5rem 1.25rem 3rem;
        gap: 3.5rem;
        min-height: 70vh;
    }
    .hero-logo {
        width: 194px;
        height: 194px;
        margin-bottom: 1rem;
    }
    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
    .hero-tagline {
        font-size: 1rem;
    }
    .hero-feature { padding: 0.875rem 1rem; }
    .hero-right { grid-template-columns: 1fr; } /* stack on true mobile only */

    .gallery, .strengths, .cta {
        padding: 4rem 0;
    }

    .gallery-wall {
        transform: rotate(-2deg) scale(1.02);
    }
    .gallery-img--sm { height: 100px; }
    .gallery-img--lg { height: 200px; }

    .strengths-columns {
        grid-template-columns: 1fr;
    }
    .strength-item {
        padding: 1.25rem;
    }

    /* Trust strip: swap static wrap for single-line auto-scroll carousel */
    .trust-strip {
        padding: 1.75rem 0;
    }
    .trust-strip-logos {
        display: none;
    }
    .trust-strip-carousel {
        display: block;
    }
    .trust-strip-carousel-track .trust-strip-logo {
        height: 48px;
    }
    .trust-strip-carousel-track .trust-strip-logo--woocommerce {
        height: 30px;
    }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
