/* =============================================================================
   Process Block — Frontend Stylesheet
   1-1 conversion of Process.tsx (Tailwind → plain CSS)
   ============================================================================= */

/* --------------------------------------------------------------------------
   Section wrapper
   py-20 md:py-32 bg-[#0a0a0a] text-white overflow-hidden
   -------------------------------------------------------------------------- */
.process-block {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: #0a0a0a;
    color: #ffffff;
    overflow: hidden;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Inner container — max-w-7xl mx-auto px-6
   -------------------------------------------------------------------------- */
.process-container {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* --------------------------------------------------------------------------
   Section header — mb-16 md:mb-24
   -------------------------------------------------------------------------- */
.process-header {
    margin-bottom: 4rem;
}

/* font-display text-4xl md:text-5xl font-bold tracking-tight mb-4 */
.process-heading {
    font-family: "Syne", ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 1rem 0;
    color: #ffffff;
}

/* text-white/50 max-w-xl text-sm md:text-base */
.process-subheading {
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
    color: rgba(255, 255, 255, 0.50);
    max-width: 36rem;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Steps grid — grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-12 md:gap-8
   -------------------------------------------------------------------------- */
.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

/* --------------------------------------------------------------------------
   Individual step — relative group
   whileInView initial state: opacity:0, y:30
   -------------------------------------------------------------------------- */
.process-step {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

/* Added by JS when step enters viewport */
.process-step.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.6s ease var(--step-delay, 0s),
        transform 0.6s ease var(--step-delay, 0s);
}

/* --------------------------------------------------------------------------
   Desktop connector line — hidden lg:block
   absolute top-8 left-[80%] w-[60%] h-[1px]
   bg-gradient-to-r from-[#FF4E00]/30 to-transparent z-0
   -------------------------------------------------------------------------- */
.process-step__connector {
    display: none;
    /* hidden by default; shown at lg */
    position: absolute;
    top: 2rem;
    /* top-8 */
    left: 80%;
    width: 60%;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 78, 0, 0.30), transparent);
    z-index: 0;
}

/* --------------------------------------------------------------------------
   Step inner content — relative z-10
   -------------------------------------------------------------------------- */
.process-step__inner {
    position: relative;
    z-index: 10;
}

/* --------------------------------------------------------------------------
   Large background number
   font-mono text-5xl md:text-6xl font-black text-white/5
   group-hover:text-[#FF4E00]/20 transition-colors duration-500 mb-6
   -------------------------------------------------------------------------- */
.process-step__num {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: clamp(3rem, 6vw, 3.75rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
    line-height: 1;
    transition: color 0.5s ease;
    user-select: none;
}

.process-step:hover .process-step__num {
    color: rgba(255, 78, 0, 0.20);
}

/* --------------------------------------------------------------------------
   Title — font-display text-2xl font-bold mb-4
   group-hover:text-[#FF4E00] transition-colors duration-300
   -------------------------------------------------------------------------- */
.process-step__title {
    font-family: "Syne", ui-sans-serif, system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #ffffff;
    transition: color 0.3s ease;
}

.process-step:hover .process-step__title {
    color: #FF4E00;
}

/* --------------------------------------------------------------------------
   Description — text-white/60 text-sm leading-relaxed
   -------------------------------------------------------------------------- */
.process-step__desc {
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
    color: rgba(255, 255, 255, 0.60);
    font-size: 0.875rem;
    line-height: 1.75;
    margin: 0;
}

/* =============================================================================
   Responsive
   ============================================================================= */
@media (min-width: 48rem) {
    .process-block {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }

    .process-header {
        margin-bottom: 6rem;
    }

    .process-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .process-subheading {
        font-size: 1rem;
    }
}

@media (min-width: 64rem) {
    .process-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .process-step__connector {
        display: block;
    }
}