/* ============================================
   HYBRID SAVINGS - STYLES
   ============================================ */

/* ============================================
   THEME VARIABLES
   ============================================ */

:root {
    /* Light Theme (default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.7);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-light: rgba(226, 232, 240, 0.5);
    
    --accent: #f97316;
    --accent-light: #ffedd5;
    --accent-bg: rgba(249, 115, 22, 0.05);
    
    --shadow-color: rgba(0, 0, 0, 0.1);
    --grid-dot: #f1f5f9;
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;
    --bg-glass: rgba(30, 41, 59, 0.8);
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    
    --border-color: #334155;
    --border-light: rgba(51, 65, 85, 0.5);
    
    --accent: #fb923c;
    --accent-light: #431407;
    --accent-bg: rgba(251, 146, 60, 0.1);
    
    --shadow-color: rgba(0, 0, 0, 0.3);
    --grid-dot: #1e293b;
}

/* ============================================
   BASE STYLES
   ============================================ */

body {
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s, color 0.3s;
}

::selection {
    background: var(--accent-light);
    color: var(--accent);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ============================================
   THEME SWITCHER
   ============================================ */

.theme-switcher {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s;
    border: 1px solid var(--border-color);
}

.theme-switcher:hover {
    border-color: var(--accent);
}

.theme-switcher-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--bg-card);
    border-radius: 50%;
    transition: transform 0.3s, background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px var(--shadow-color);
}

[data-theme="dark"] .theme-switcher-thumb {
    transform: translateX(20px);
    background: var(--accent);
}

.theme-switcher-thumb svg {
    width: 12px;
    height: 12px;
    color: var(--accent);
}

[data-theme="dark"] .theme-switcher-thumb svg {
    color: var(--bg-primary);
}

.theme-switcher-thumb .sun-icon,
.theme-switcher-thumb .moon-icon {
    width: 12px;
    height: 12px;
}

[data-theme="dark"] .theme-switcher-thumb .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-switcher-thumb .moon-icon {
    display: block;
}

.theme-switcher-thumb .moon-icon {
    display: none;
}

.theme-switcher-thumb .sun-icon {
    display: block;
}

/* ============================================
   GLASS EFFECT
   ============================================ */

.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Grid Background */
.bg-grid {
    background-image: radial-gradient(circle, var(--grid-dot) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ============================================
   DARK THEME OVERRIDES
   ============================================ */

[data-theme="dark"] .bg-white {
    background-color: var(--bg-primary) !important;
}

[data-theme="dark"] .bg-slate-50 {
    background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .bg-slate-900 {
    background-color: var(--bg-tertiary) !important;
}

[data-theme="dark"] .text-slate-900 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .text-slate-800 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .text-slate-700 {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .text-slate-500 {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .text-slate-400 {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .text-slate-300 {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .border-slate-100,
[data-theme="dark"] .border-slate-200\/50 {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .bg-orange-50 {
    background-color: var(--accent-bg) !important;
}

[data-theme="dark"] .border-orange-100 {
    border-color: rgba(251, 146, 60, 0.2) !important;
}

[data-theme="dark"] .shadow-orange-200,
[data-theme="dark"] .shadow-orange-100 {
    --tw-shadow-color: rgba(251, 146, 60, 0.15) !important;
}

[data-theme="dark"] .card-hover,
[data-theme="dark"] .faq-item {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .mobile-menu {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .faq-item.open {
    background-color: var(--accent-bg) !important;
}

/* Dark theme header glass */
[data-theme="dark"] .glass {
    background: var(--bg-glass);
    border-color: var(--border-color) !important;
}

/* Dark theme text overrides for logo */
[data-theme="dark"] header .text-slate-900 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .text-slate-800 {
    color: var(--text-primary) !important;
}

/* Dark theme footer */
[data-theme="dark"] footer {
    background-color: var(--bg-primary) !important;
    border-color: var(--border-color) !important;
}

/* Dark theme navigation */
[data-theme="dark"] .text-slate-700 {
    color: var(--text-secondary) !important;
}

/* Dark theme hero gradient fix */
[data-theme="dark"] .bg-grid {
    background-color: var(--bg-primary);
}

/* Dark theme selection */
[data-theme="dark"] ::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

/* Ensure dark mode for Launch section */
[data-theme="dark"] #launch {
    background-color: #0f172a !important;
}

[data-theme="dark"] #launch .bg-slate-800\/50 {
    background-color: rgba(30, 41, 59, 0.5) !important;
}

/* Dark mode for format cards */
[data-theme="dark"] .bg-slate-50 {
    background-color: var(--bg-secondary) !important;
}

/* Dark mode for product section */
[data-theme="dark"] #product {
    background-color: var(--bg-primary) !important;
}

[data-theme="dark"] #product .bg-orange-100\/40,
[data-theme="dark"] #product .bg-slate-100\/60 {
    background-color: rgba(249, 115, 22, 0.08) !important;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes pulse-slow {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.3; }
}

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

/* Float animation */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-2deg); }
}

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

.animate-float-delayed {
    animation: float-delayed 8s ease-in-out infinite;
    animation-delay: 1s;
}

/* Phone float animation */
@keyframes phone-float {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    50% { transform: translateY(-10px) rotateY(2deg); }
}

.phone-float {
    animation: phone-float 5s ease-in-out infinite;
}

/* Card float animation */
@keyframes card-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.02); }
}

.card-float {
    animation: card-float 3s ease-in-out infinite;
}

.card-float-delayed {
    animation: card-float 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Floating badge animation */
@keyframes floating-badge {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-12px) rotate(5deg); }
}

.floating-badge {
    animation: floating-badge 4s ease-in-out infinite;
}

.floating-badge-delayed {
    animation: floating-badge 4s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* Scroll reveal animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-on-scroll:nth-child(1) { animation-delay: 0.1s; }
.animate-on-scroll:nth-child(2) { animation-delay: 0.2s; }
.animate-on-scroll:nth-child(3) { animation-delay: 0.3s; }
.animate-on-scroll:nth-child(4) { animation-delay: 0.4s; }
.animate-on-scroll:nth-child(5) { animation-delay: 0.5s; }

/* Shimmer effect */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Glow pulse */
@keyframes glow-pulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(249, 115, 22, 0.3),
                    0 0 40px rgba(249, 115, 22, 0.1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(249, 115, 22, 0.5),
                    0 0 60px rgba(249, 115, 22, 0.2);
    }
}

.glow-pulse {
    animation: glow-pulse 3s ease-in-out infinite;
}

/* Rotate animation */
@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-rotate-slow {
    animation: rotate-slow 20s linear infinite;
}

/* Scale in animation */
@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scale-in {
    animation: scale-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Bounce subtle */
@keyframes bounce-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.animate-bounce-subtle {
    animation: bounce-subtle 2s ease-in-out infinite;
}

/* Typing cursor */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.animate-blink {
    animation: blink 1s infinite;
}

/* Gradient shift */
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
}

/* Stagger children animations */
.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }

/* Scroll reveal animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Staggered card reveals */
.scroll-reveal.card-hover:nth-child(1) { transition-delay: 0.1s; }
.scroll-reveal.card-hover:nth-child(2) { transition-delay: 0.15s; }
.scroll-reveal.card-hover:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal.card-hover:nth-child(4) { transition-delay: 0.25s; }
.scroll-reveal.card-hover:nth-child(5) { transition-delay: 0.3s; }
.scroll-reveal.card-hover:nth-child(6) { transition-delay: 0.35s; }

/* Initial state for sections (no transform until JS loads) */
section.scroll-reveal {
    transform: none;
}

section.scroll-reveal:not(.is-visible) {
    opacity: 0;
}

/* Hover lift effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

/* Text gradient animation */
@keyframes text-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.animate-text-gradient {
    background: linear-gradient(90deg, #f97316, #f59e0b, #f97316);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-gradient 3s linear infinite;
}

/* Ripple effect on click */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
}

.ripple:active::after {
    animation: ripple 0.6s ease-out;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu {
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.backdrop {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.backdrop.open {
    opacity: 1;
    pointer-events: auto;
}


/* ============================================
   FAQ ACCORDION
   ============================================ */

.faq-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.open .faq-panel {
    max-height: 500px;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
    background: var(--accent) !important;
    color: white !important;
}

.faq-item.open {
    border-color: var(--accent) !important;
    background: var(--accent-bg) !important;
}

/* ============================================
   CARDS & HOVER EFFECTS
   ============================================ */

.card-hover {
    transition: transform 0.5s, box-shadow 0.5s, border-color 0.5s, background-color 0.3s;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px -20px rgba(249, 115, 22, 0.15);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

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

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ============================================
   PLATFORM CHOICE MODAL
   ============================================ */

.brand-platform-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.brand-platform-modal.is-open {
    display: flex;
}

.brand-platform-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.brand-platform-modal__card {
    position: relative;
    width: 100%;
    max-width: 420px;
    border-radius: 24px;
    padding: 28px 20px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 24px 70px -24px rgba(15, 23, 42, 0.45);
}

.brand-platform-modal__close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: var(--text-secondary);
    background: transparent;
}

.brand-platform-modal__caption {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.brand-platform-modal__title {
    margin: 6px 0 18px;
    color: var(--text-primary);
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
}

.brand-platform-modal__actions {
    display: grid;
    gap: 10px;
}

.brand-platform-modal__action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    background: var(--bg-primary);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.brand-platform-modal__action:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}


   MOCKUP DUO (two phones composition)
   ============================================ */

.mockup-duo {
    position: relative;
    width: 100%;
    max-width: 640px;
    height: 0;
    padding-bottom: 105%;
    isolation: isolate;
    align-self: center;
    flex-shrink: 0;
}

.mockup-duo__glow {
    position: absolute;
    inset: -8%;
    background: radial-gradient(60% 50% at 35% 35%, rgba(249, 115, 22, 0.35), transparent 70%),
                radial-gradient(55% 50% at 70% 70%, rgba(251, 191, 36, 0.30), transparent 75%);
    filter: blur(50px);
    opacity: 0.85;
    z-index: 0;
    animation: mockup-glow 8s ease-in-out infinite alternate;
}

@keyframes mockup-glow {
    0%   { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.06); opacity: 0.95; }
}

.mockup-duo__phone {
    position: absolute;
    width: 58%;
    /* No transform here — rotation moved to <img> to keep the wrapper a clean,
       non-rasterized layer. This lets the browser sample the image at its
       native pixel grid before applying rotation, avoiding ~1× DPR buffer blur. */
}

.mockup-duo__phone img,
.mockup-duo__phone object,
.mockup-duo__phone > svg,
.mockup-duo__phone .phone-mock-stack {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    transition: transform 0.15s ease-out;
}

/* Layered phone: screenshot img + SVG bezel overlay on top */
.phone-mock-stack {
    position: relative;
    /* SVG viewBox is 440×916 — match the aspect so children align */
    aspect-ratio: 440 / 916;
}
.phone-mock-stack > svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}
.phone-mock-stack .phone-mock__screen {
    position: absolute;
    /* Screen rect in viewBox: x=19 y=21 w=402 h=874, rx=ry=57 */
    left: 4.318%;
    top: 2.293%;
    width: 91.36%;
    height: 95.41%;
    object-fit: fill;
    z-index: 1;
    /* Elliptical radius (57 viewBox units on each axis of the screen rect) */
    border-radius: 7.09% / 3.26%;
    background: #fff;
}

.mockup-duo__phone--back  > svg,
.mockup-duo__phone--back  img:not(.phone-mock__screen),
.mockup-duo__phone--back  .phone-mock-stack { transform: rotate(-7deg); }
.mockup-duo__phone--front > svg,
.mockup-duo__phone--front img:not(.phone-mock__screen),
.mockup-duo__phone--front .phone-mock-stack { transform: rotate(6deg); }

.mockup-duo:hover .mockup-duo__phone--back  > svg,
.mockup-duo:hover .mockup-duo__phone--back  img:not(.phone-mock__screen),
.mockup-duo:hover .mockup-duo__phone--back  .phone-mock-stack { transform: rotate(-9deg) translate(-6px, -6px); }
.mockup-duo:hover .mockup-duo__phone--front > svg,
.mockup-duo:hover .mockup-duo__phone--front img:not(.phone-mock__screen),
.mockup-duo:hover .mockup-duo__phone--front .phone-mock-stack { transform: rotate(8deg)  translate(6px, 6px); }

.mockup-duo__phone--back {
    top: 0;
    left: 0;
    z-index: 1;
}

.mockup-duo__phone--front {
    bottom: 0;
    right: 0;
    z-index: 2;
}


.mockup-duo__chip {
    position: absolute;
    top: 6%;
    right: -4%;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.95rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 999px;
    box-shadow: 0 12px 28px -10px rgba(15, 23, 42, 0.35);
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 800;
    font-size: 12px;
    color: #0f172a;
    letter-spacing: -0.01em;
    white-space: nowrap;
    transform: rotate(4deg);
    animation: mockup-chip-float 5s ease-in-out infinite;
}

@keyframes mockup-chip-float {
    0%, 100% { transform: rotate(4deg) translateY(0); }
    50%      { transform: rotate(4deg) translateY(-6px); }
}

.mockup-duo__chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
    animation: mockup-chip-pulse 1.8s ease-in-out infinite;
}

@keyframes mockup-chip-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18); }
    50%      { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.05); }
}

@media (max-width: 1023px) {
    .mockup-duo { max-width: 420px; }
}

@media (max-width: 640px) {
    .mockup-duo {
        max-width: 340px;
        aspect-ratio: 1 / 1.1;
    }
    .mockup-duo__chip {
        font-size: 10px;
        padding: 0.45rem 0.75rem;
        top: 3%;
        right: 0;
    }
}

[data-theme="dark"] .mockup-duo__chip {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

/* ============================================
   BRAND LOGOS MARQUEE
   ============================================ */

.logo-marquee {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.logo-marquee__track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: logo-marquee 60s linear infinite;
}

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

@keyframes logo-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.logo-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 88px;
    margin-right: 1.25rem;
    border-radius: 18px;
    overflow: hidden;
    background: transparent;
    border: 1px solid rgba(15, 23, 42, 0.06);
    opacity: 0.88;
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.logo-tile img {
    height: 100%;
    width: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.logo-tile:hover {
    opacity: 1;
    transform: translateY(-2px);
    border-color: rgba(249, 115, 22, 0.35);
}

@media (max-width: 640px) {
    .logo-tile {
        height: 64px;
        margin-right: 0.875rem;
        border-radius: 14px;
    }
}

/* Keep the logo marquee scrolling even when the user prefers reduced motion —
   it's a slow continuous slide, not flashing/parallax. */
@media (prefers-reduced-motion: reduce) {
    .logo-marquee__track {
        animation-duration: 60s !important;
        animation-iteration-count: infinite !important;
        animation-timing-function: linear !important;
    }
}

[data-theme="dark"] .logo-tile {
    border-color: rgba(255, 255, 255, 0.08);
    opacity: 0.85;
}

[data-theme="dark"] .logo-tile:hover {
    opacity: 1;
    border-color: rgba(251, 146, 60, 0.4);
}


