body {
    background-color: #FAFAFA;
    color: #0A0A0A;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.noise-bg {
    position: relative;
}
.noise-bg::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.glass-nav {
    background: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.hairline-border {
    border: 0.5px solid #EAEAEA;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }

.hover-underline-animation {
    display: inline-block;
    position: relative;
}
.hover-underline-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: currentColor;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}
.hover-underline-animation:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.form-message {
    animation: fadeIn 0.4s ease-out;
}

/* Step flow animation */
.step-images {
    position: relative;
    min-height: 340px;
}
.step-image {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}
.step-image.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.step-item.active .step-dot {
    background-color: #C86F43;
    box-shadow: 0 0 0 4px rgba(200, 111, 67, 0.15);
}
.step-item.active .step-title {
    color: #0A0A0A;
}
.step-item.active .step-desc {
    color: #737373;
}
.step-item.active .step-line {
    background-color: #C86F43;
    opacity: 1;
}

/* ==================== MOBILE ==================== */

/* On mobile, all step items look active since they're visible at once */
@media (max-width: 1023px) {
    .step-item .step-dot {
        background-color: #C86F43;
        box-shadow: 0 0 0 4px rgba(200, 111, 67, 0.15);
    }
    .step-item .step-title {
        color: #0A0A0A;
    }
    .step-item .step-desc {
        color: #737373;
    }
    .step-item .step-line {
        background-color: #C86F43;
        opacity: 0.5;
    }

    .step-images {
        min-height: 300px;
    }

    /* Show first step image by default on mobile */
    .step-image.step-image-1 {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* On mobile the section has natural height — disable sticky */
    #how-it-works .lg\:sticky {
        position: relative;
        top: auto;
        height: auto;
    }
}

@media (max-width: 640px) {
    .step-images {
        min-height: 280px;
    }

    .step-image .p-8 {
        padding: 1.25rem;
    }
}