/* ==========================================================================
   Metryki Landing Page - Custom Styles
   ========================================================================== */

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal for child elements */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 400ms; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 500ms; }

/* Fade in from left/right */
.reveal-left {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-right {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale in */
.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================================================
   Before/After Slider
   ========================================================================== */

.before-after-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    user-select: none;
    touch-action: pan-y pinch-zoom;
}

.before-after-before {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.before-after-before img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.before-after-after {
    position: relative;
    width: 100%;
}

.before-after-after img {
    width: 100%;
    height: auto;
    display: block;
}

.before-after-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: white;
    cursor: ew-resize;
    z-index: 10;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.before-after-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: #f59e0b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: ew-resize;
}

.before-after-handle svg {
    width: 24px;
    height: 24px;
    color: white;
}

.before-after-label {
    position: absolute;
    bottom: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.5rem;
}

.before-after-label.before {
    left: 1rem;
}

.before-after-label.after {
    right: 1rem;
}

/* ==========================================================================
   Particle Animation
   ========================================================================== */

.particles-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(251, 191, 36, 0.5);
    border-radius: 50%;
    animation: float-up 15s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 14s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 16s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 13s; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 15s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 11s; }
.particle:nth-child(7) { left: 70%; animation-delay: 2.5s; animation-duration: 14s; }
.particle:nth-child(8) { left: 80%; animation-delay: 0.5s; animation-duration: 17s; }
.particle:nth-child(9) { left: 90%; animation-delay: 3.5s; animation-duration: 12s; }
.particle:nth-child(10) { left: 15%; animation-delay: 4.5s; animation-duration: 16s; }

@keyframes float-up {
    0% {
        transform: translateY(100vh) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-20px) translateX(30px) scale(0.5);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .particle {
        animation: none;
        opacity: 0.3;
    }
}

/* ==========================================================================
   CTA Button Styles
   ========================================================================== */

.cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    background: linear-gradient(to right, #f59e0b, #d97706);
    color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.cta-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
}

.cta-primary:active {
    transform: scale(0.98);
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    background: transparent;
    color: #94a3b8;
    border: 2px solid rgba(148, 163, 184, 0.5);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.cta-secondary:hover {
    color: white;
    border-color: rgba(251, 191, 36, 0.6);
    background: rgba(255, 255, 255, 0.05);
}

/* Glow pulse animation for primary CTA */
@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    }
    50% {
        box-shadow: 0 4px 24px rgba(245, 158, 11, 0.5);
    }
}

.cta-primary.glow {
    animation: glow-pulse 2s ease-in-out infinite;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.faq-item {
    background: white;
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s ease;
}

.faq-item:hover {
    border-color: #fbbf24;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: #1e293b;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.5;
}

.faq-question:focus {
    outline: 2px solid #f59e0b;
    outline-offset: -2px;
}

.faq-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    margin-left: 1rem;
    color: #94a3b8;
    transition: transform 0.3s ease, color 0.2s ease;
}

.faq-item[data-open="true"] .faq-icon {
    transform: rotate(180deg);
    color: #f59e0b;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item[data-open="true"] .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.25rem;
    color: #475569;
    line-height: 1.7;
}

/* ==========================================================================
   Trust Badges
   ========================================================================== */

.trust-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #e2e8f0;
    backdrop-filter: blur(4px);
}

.trust-badge svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    color: #22c55e;
}

/* ==========================================================================
   Pricing Cards
   ========================================================================== */

.pricing-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pricing-card:hover {
    border-color: #fbbf24;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.pricing-card.featured {
    border-color: #f59e0b;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
    transform: scale(1.02);
}

.pricing-card.featured:hover {
    transform: scale(1.04);
}

.pricing-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 1rem;
    background: #f59e0b;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
}

/* ==========================================================================
   Testimonial Cards
   ========================================================================== */

.testimonial-card {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-stars svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #fbbf24;
}

.testimonial-quote {
    flex: 1;
    font-style: italic;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.testimonial-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

/* ==========================================================================
   Mobile Sticky CTA
   ========================================================================== */

.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 40;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mobile-sticky-cta.visible {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .mobile-sticky-cta {
        display: none;
    }
}

/* ==========================================================================
   Section Dividers
   ========================================================================== */

.section-divider {
    position: relative;
    height: 1px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
    margin: 4rem 0;
}

/* ==========================================================================
   Scroll Indicator
   ========================================================================== */

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-indicator-mouse {
    width: 1.5rem;
    height: 2.5rem;
    border: 2px solid currentColor;
    border-radius: 9999px;
    position: relative;
}

.scroll-indicator-wheel {
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0.375rem;
    height: 0.375rem;
    background: currentColor;
    border-radius: 50%;
    animation: scroll-bounce 1.5s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(0.75rem);
        opacity: 0.5;
    }
}

/* ==========================================================================
   Step Connector Lines
   ========================================================================== */

.step-connector {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, #e2e8f0, #fbbf24, #e2e8f0);
    z-index: 0;
}

@media (max-width: 767px) {
    .step-connector {
        display: none;
    }
}

/* ==========================================================================
   Pull Quote Styling
   ========================================================================== */

.pull-quote {
    position: relative;
    padding: 2rem;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-left: 4px solid #f59e0b;
    border-radius: 0 1rem 1rem 0;
    font-size: 1.125rem;
    font-style: italic;
    color: #78350f;
}

.pull-quote::before {
    content: '"';
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: #fbbf24;
    opacity: 0.5;
    line-height: 1;
}

/* ==========================================================================
   Floating Document Shapes
   ========================================================================== */

.floating-doc {
    position: absolute;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), transparent);
    border-radius: 0.25rem;
    pointer-events: none;
}

.floating-doc-1 {
    width: 8rem;
    height: 10rem;
    top: 15%;
    left: 10%;
    transform: rotate(-12deg);
    animation: float-doc 8s ease-in-out infinite;
}

.floating-doc-2 {
    width: 6rem;
    height: 8rem;
    top: 25%;
    right: 15%;
    transform: rotate(8deg);
    animation: float-doc 10s ease-in-out infinite 1s;
}

.floating-doc-3 {
    width: 5rem;
    height: 6rem;
    bottom: 25%;
    left: 20%;
    transform: rotate(4deg);
    animation: float-doc 12s ease-in-out infinite 2s;
}

@keyframes float-doc {
    0%, 100% {
        transform: translateY(0) rotate(var(--rotation, -12deg));
    }
    50% {
        transform: translateY(-20px) rotate(calc(var(--rotation, -12deg) + 3deg));
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-doc {
        animation: none;
    }
}

