/* ═══════════════════════════════════════════════════════
   PATO Marketing Design System
   Single source of truth for all marketing pages.
   ═══════════════════════════════════════════════════════ */

/* ── Base ── */
* { font-family: 'Inter', sans-serif; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

/* ── Gradients ── */
.gradient-orange { background: linear-gradient(135deg, #F97316 0%, #EA580C 100%); }
.gradient-orange-yellow { background: linear-gradient(135deg, #F97316 0%, #FACC15 100%); }

/* ── CTA Glow Button ── */
.cta-glow {
    position: relative; z-index: 1;
    background: linear-gradient(90deg, #F97316, #FACC15, #EA580C, #F97316);
    background-size: 300%;
    background-position: 0% 50%;
    -webkit-appearance: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cta-glow:hover {
    transform: scale(1.05);
    animation: ctaGradientSlide 4s linear infinite;
}
.cta-glow::before {
    content: ''; position: absolute;
    top: -4px; right: -4px; bottom: -4px; left: -4px;
    z-index: -1; border-radius: inherit;
    background: linear-gradient(90deg, #F97316, #FACC15, #EA580C, #F97316);
    background-size: 300%;
    opacity: 0; filter: blur(16px);
    transition: opacity 0.4s ease;
}
.cta-glow:hover::before {
    opacity: 1;
    animation: ctaGradientSlide 4s linear infinite;
}
@keyframes ctaGradientSlide {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}
.gradient-text {
    background: linear-gradient(135deg, #F97316 0%, #FACC15 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── Gradient Underline ── */
.gradient-underline { position: relative; display: inline-block; }
.gradient-underline::after {
    content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
    height: 4px; border-radius: 2px; background: linear-gradient(90deg, #F97316, #FACC15);
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0; transform: 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);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Glassmorphism ── */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-strong {
    background: rgba(23, 23, 23, 0.7);
    backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
nav.glass-strong { border: none; }

/* ── Card Hover ── */
.card-lift { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease; }
.card-lift:hover { transform: translateY(-8px); box-shadow: 0 25px 50px rgba(249, 115, 22, 0.15); border-color: rgba(249, 115, 22, 0.2); }

/* ── Section Badge ── */
.section-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(249, 115, 22, 0.1); color: #F97316;
    padding: 0.5rem 1rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 500; margin-bottom: 1rem;
}

/* ── Mesh Blobs ── */
.mesh-blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; will-change: transform; }
.mesh-1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(249,115,22,0.3) 0%, transparent 70%); top: -10%; left: -5%; animation: meshA 12s ease-in-out infinite; }
.mesh-2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(250,204,21,0.25) 0%, transparent 70%); bottom: -10%; right: -5%; animation: meshB 14s ease-in-out infinite; }
.mesh-3 { width: 350px; height: 350px; background: radial-gradient(circle, rgba(234,88,12,0.25) 0%, transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); animation: meshC 10s ease-in-out infinite; }
@keyframes meshA { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(60px, 40px) scale(1.1); } 66% { transform: translate(-30px, 60px) scale(0.95); } }
@keyframes meshB { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-50px, -40px) scale(1.08); } }
@keyframes meshC { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 33% { transform: translate(-40%, -60%) scale(1.15); } 66% { transform: translate(-60%, -40%) scale(0.9); } }

/* ── Hamburger → X animation ── */
.hamburger { width: 28px; height: 20px; position: relative; cursor: pointer; z-index: 60; }
.hamburger span {
    display: block; position: absolute; height: 2px; width: 100%; background: #fff;
    border-radius: 2px; left: 0; transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; width: 70%; }
.hamburger span:nth-child(3) { top: 18px; }
.hamburger.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* ── Full-screen glass menu ── */
.nav-overlay {
    position: fixed; inset: 0; z-index: 45;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.nav-overlay.open { opacity: 1; visibility: visible; }
.nav-overlay-inner {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; gap: 0;
}
.nav-overlay a, .nav-overlay button.nav-link {
    font-size: 2rem; font-weight: 700; color: rgba(255,255,255,0.5);
    text-decoration: none; padding: 0.75rem 0; transition: all 0.3s ease;
    transform: translateY(20px); opacity: 0;
    background: none; border: none; cursor: pointer;
}
.nav-overlay.open a, .nav-overlay.open button.nav-link {
    transform: translateY(0); opacity: 1;
}
.nav-overlay a:hover, .nav-overlay button.nav-link:hover { color: #F97316; transform: scale(1.05); }
.nav-overlay.open a:nth-child(1) { transition-delay: 0.1s; }
.nav-overlay.open a:nth-child(2) { transition-delay: 0.15s; }
.nav-overlay.open a:nth-child(3) { transition-delay: 0.2s; }
.nav-overlay.open a:nth-child(4) { transition-delay: 0.25s; }
.nav-overlay.open a:nth-child(5) { transition-delay: 0.3s; }

/* ── Logo Shimmer ── */
.logo-shimmer { position: relative; overflow: hidden; border-radius: 1rem; }
.logo-shimmer::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(249,115,22,0.3), rgba(250,204,21,0.2), transparent);
    animation: logoShine 3s ease-in-out infinite;
}
@keyframes logoShine { 0% { left: -100%; } 50% { left: 100%; } 100% { left: 100%; } }

/* ── Video showcase ── */
.video-showcase {
    position: relative; border-radius: 1.5rem; overflow: hidden; cursor: pointer;
    aspect-ratio: 16/9; background: #0d0d0d;
}
.video-showcase img, .video-showcase video { width: 100%; height: 100%; object-fit: cover; }
.video-play-btn {
    width: 72px; height: 72px; border-radius: 50%;
    background: rgba(249,115,22,0.9); backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 8px 32px rgba(249,115,22,0.3);
}
.video-play-btn:hover { transform: scale(1.1); background: rgba(249,115,22,1); }

/* ── Video Modal ── */
.video-modal {
    position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.9);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.video-modal.open { opacity: 1; visibility: visible; }

/* ── Float ── */
.animate-float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-16px); } }

/* ── Shimmer ── */
.shimmer { background: linear-gradient(90deg, transparent 0%, rgba(249,115,22,0.08) 50%, transparent 100%); background-size: 200% 100%; animation: shimmerAnim 3s ease-in-out infinite; }
@keyframes shimmerAnim { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Streak glow ── */
.streak-glow { text-shadow: 0 0 20px rgba(249, 115, 22, 0.5), 0 0 40px rgba(249, 115, 22, 0.2); }

/* ── Glow cards ── */
.glow-card { transition: box-shadow 0.6s ease; }
.glow-card.visible { box-shadow: 0 0 60px rgba(249, 115, 22, 0.08); }

/* ── Gradient Border ── */
.gradient-border { position: relative; }
.gradient-border::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: linear-gradient(135deg, rgba(249,115,22,0.4), rgba(250,204,21,0.2), transparent);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude; -webkit-mask-composite: xor; pointer-events: none;
}

/* ── Pulse Glow ── */
.pulse-glow { animation: pulseGlow 2.5s ease-in-out infinite; }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4); } 50% { box-shadow: 0 0 0 20px rgba(249, 115, 22, 0); } }

/* ── Reward Card Shine ── */
.reward-shine { position: relative; overflow: hidden; }
.reward-shine::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.03) 50%, transparent 60%);
    animation: shine 4s ease-in-out infinite;
}
@keyframes shine { 0% { transform: translateX(-100%) rotate(0deg); } 100% { transform: translateX(100%) rotate(0deg); } }

/* ── Counter ── */
.counter { display: inline-block; }

/* ── Blue Variants (for-gyms page) ── */
.gradient-blue-purple { background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%); }
.gradient-text-blue {
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.card-lift-blue:hover { box-shadow: 0 20px 40px rgba(59, 130, 246, 0.12); }
.section-badge-blue {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(59, 130, 246, 0.1); color: #3B82F6;
    padding: 0.5rem 1rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 500; margin-bottom: 1rem;
}

/* ── Legal content (privacy, terms) ── */
.legal-content h2 { font-size: 1.25rem; font-weight: 700; color: #fff; margin-top: 2.5rem; margin-bottom: 0.75rem; }
.legal-content p { font-size: 0.938rem; color: #d4d4d4; margin-bottom: 1rem; line-height: 1.7; }
.legal-content ul { margin-bottom: 1rem; padding-left: 1.5rem; }
.legal-content li { font-size: 0.938rem; color: #d4d4d4; margin-bottom: 0.375rem; line-height: 1.7; }
.legal-content strong { color: #fff; font-weight: 600; }
.legal-content a { color: #F97316; }
.legal-content a:hover { color: #FACC15; }
