/* ══════════════════════════════════════════════════════════
   Industry Pages — Distinct from Service Pages
   Service pages = "what we build" (product-focused)
   Industry pages = "who we build for" (transformation-focused)

   Key layout differences:
   1. Centered cinematic hero (vs left-aligned on services)
   2. Before/After problem panels (vs scroll word highlight)
   3. Stacking cards for solutions (vs scroll split-screen)
   ══════════════════════════════════════════════════════════ */

/* ── 1. Centered Cinematic Hero ────────────────────────── */
.ind-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 140px 24px 0;
    overflow: hidden;
}

/* Grid texture background */
.ind-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Gold radial glow */
.ind-hero::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(201,168,76,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.ind-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 960px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 48px;
}

.ind-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--border-hi);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.06em;
    margin-bottom: 32px;
}
.ind-hero-badge i {
    font-size: 12px;
    color: var(--gold);
}

.ind-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.ind-hero-subtitle {
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 700px;
    margin-bottom: 36px;
}

.ind-hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ind-hero-price {
    font-size: 14px;
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Stats strip at bottom of hero */
.ind-hero-stats {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 60px;
    margin-top: auto;
    padding-top: 0;
}

.ind-hero-stat {
    background: var(--surface);
    padding: 28px 24px;
    text-align: center;
}

.ind-hero-stat-value {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 6px;
    min-height: 1.1em;
}

.ind-hero-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}


/* ── 2. Before / After Problem Panels ──────────────────── */
.ind-problem {
    padding: 100px 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.ind-ba-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    margin-top: 3rem;
    align-items: start;
}

/* Before column */
.ind-ba-col {
    padding: 0 32px;
}

.ind-ba-col-label {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.ind-ba-col--before .ind-ba-col-label {
    color: var(--text-faint);
}

.ind-ba-col--after .ind-ba-col-label {
    color: var(--gold);
}

/* Divider */
.ind-ba-divider {
    width: 1px;
    min-height: 100%;
    background: linear-gradient(180deg, transparent 0%, var(--gold) 20%, var(--gold) 80%, transparent 100%);
    opacity: 0.3;
}

/* Individual items */
.ind-ba-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.ind-ba-item:last-child {
    border-bottom: none;
}

.ind-ba-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

/* Before icons — muted */
.ind-ba-col--before .ind-ba-icon {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-faint);
}

/* After icons — gold */
.ind-ba-col--after .ind-ba-icon {
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.2);
    color: var(--gold);
}

.ind-ba-text h4 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
    line-height: 1.3;
}

.ind-ba-col--before .ind-ba-text h4 {
    color: var(--text-muted);
}

.ind-ba-col--after .ind-ba-text h4 {
    color: var(--text-primary);
}

.ind-ba-text p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
}

.ind-ba-col--before .ind-ba-text p {
    color: var(--text-faint);
}


/* ── 3. Scroll-Driven Spotlight Accordion ─────────────── */
.ind-solutions {
    padding: 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

#ind-sol-scroll {
    position: relative;
    height: 350vh;
}

.ind-sol-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ind-sol-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

/* Header: label + title + counter */
.ind-sol-header {
    display: flex;
    align-items: baseline;
    gap: 24px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.ind-sol-header .section-label {
    width: 100%;
}

.ind-sol-header h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: var(--text-primary);
    flex: 1;
}

.ind-sol-counter {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-faint);
    white-space: nowrap;
}

.ind-sol-current {
    color: var(--gold);
    transition: color 0.3s ease;
}

.ind-sol-sep {
    margin: 0 4px;
}

/* Body: cards + progress bar side by side */
.ind-sol-body {
    display: flex;
    gap: 32px;
    align-items: stretch;
}

.ind-sol-cards {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

/* Progress bar — vertical track on the right */
.ind-sol-progress {
    width: 2px;
    flex-shrink: 0;
    position: relative;
}

.ind-sol-progress-track {
    width: 100%;
    height: 100%;
    background: var(--border);
    border-radius: 1px;
    overflow: hidden;
}

.ind-sol-progress-fill {
    width: 100%;
    height: 0%;
    background: var(--gold);
    transition: height 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 1px;
}

/* Individual cards */
.ind-sol-card {
    display: flex;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease;
}

.ind-sol-card:last-child {
    border-bottom: none;
}

/* Gold left bar */
.ind-sol-bar {
    width: 3px;
    flex-shrink: 0;
    background: var(--gold);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ind-sol-active .ind-sol-bar {
    transform: scaleY(1);
}

.ind-sol-active {
    background: var(--surface);
}

/* Card content */
.ind-sol-content {
    flex: 1;
    padding: 24px 32px;
}

/* Number label */
.ind-sol-num {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.ind-sol-active .ind-sol-num {
    color: var(--gold);
}

/* Title */
.ind-sol-title {
    font-family: var(--font-display);
    font-size: clamp(16px, 1.8vw, 22px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--text-faint);
    transform: translateX(0);
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ind-sol-active .ind-sol-title {
    color: var(--text-primary);
    transform: translateX(6px);
}

/* Description — grid-row expand trick */
.ind-sol-desc-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ind-sol-active .ind-sol-desc-wrap {
    grid-template-rows: 1fr;
}

.ind-sol-desc {
    overflow: hidden;
}

.ind-sol-desc p {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 560px;
    padding-top: 12px;
    opacity: 0;
    transition: opacity 0.35s ease 0.1s;
}

.ind-sol-active .ind-sol-desc p {
    opacity: 1;
}


/* ── 4. Before / After Metrics Section ─────────────────── */
.ind-metrics {
    padding: 100px 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.ind-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 3rem;
}

.ind-metric-card {
    background: var(--surface);
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    transition: background 0.25s ease;
}
.ind-metric-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.ind-metric-card:hover { background: var(--surface-hi); }
.ind-metric-card:hover::after { transform: scaleX(1); }

.ind-metric-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
}

.ind-metric-before {
    font-family: var(--font-display);
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 600;
    color: var(--text-faint);
    letter-spacing: -0.02em;
    text-decoration: line-through;
    text-decoration-color: var(--text-faint);
    margin-bottom: 8px;
    line-height: 1.2;
}

.ind-metric-arrow {
    font-size: 14px;
    color: var(--gold);
    margin-bottom: 8px;
    opacity: 0.6;
}

.ind-metric-after {
    font-family: var(--font-display);
    font-size: clamp(24px, 2.5vw, 36px);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.ind-metric-desc {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.6;
}


/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
    .ind-hero h1 {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .ind-ba-grid {
        gap: 0;
    }
    .ind-ba-col {
        padding: 0 20px;
    }
    .ind-sol-inner {
        padding: 0 24px;
    }
    .ind-sol-content {
        padding: 20px 24px;
    }
}

@media (max-width: 768px) {
    /* Hero */
    .ind-hero {
        min-height: auto;
        padding: 120px 20px 40px;
    }
    .ind-hero-stats {
        grid-template-columns: 1fr;
        margin-bottom: 40px;
    }
    .ind-hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    /* Before/After → single column */
    .ind-ba-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .ind-ba-divider {
        width: 100%;
        min-height: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent 0%, var(--gold) 20%, var(--gold) 80%, transparent 100%);
        margin: 24px 0;
    }
    .ind-ba-col {
        padding: 0;
    }

    /* Spotlight accordion — disable scroll-driven on mobile */
    #ind-sol-scroll {
        height: auto;
        padding: 80px 0;
    }
    .ind-sol-sticky {
        position: relative;
        height: auto;
    }
    .ind-sol-inner {
        padding: 0 20px;
    }
    .ind-sol-card {
        background: var(--surface);
    }
    .ind-sol-bar {
        transform: scaleY(1);
    }
    .ind-sol-num {
        color: var(--gold);
    }
    .ind-sol-title {
        color: var(--text-primary);
        font-size: 18px;
    }
    .ind-sol-desc-wrap {
        grid-template-rows: 1fr;
    }
    .ind-sol-desc p {
        opacity: 1;
    }
    .ind-sol-progress {
        display: none;
    }
    .ind-sol-counter {
        display: none;
    }
    /* Mobile reveal animation */
    .ind-sol-card {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease, background 0.3s ease;
    }
    .ind-sol-card.visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Metrics */
    .ind-metrics-grid {
        grid-template-columns: 1fr;
    }
    .ind-metric-card {
        padding: 28px 24px;
    }
}

/* ── Reduced Motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .ind-metric-card::after,
    .ind-sol-bar,
    .ind-sol-num,
    .ind-sol-title,
    .ind-sol-desc-wrap,
    .ind-sol-desc p,
    .ind-sol-progress-fill {
        transition: none;
    }
    .ind-sol-desc-wrap {
        grid-template-rows: 1fr;
    }
    .ind-sol-desc p {
        opacity: 1;
    }
    .ind-sol-bar {
        transform: scaleY(1);
    }
    .ind-sol-num {
        color: var(--gold);
    }
    .ind-sol-title {
        color: var(--text-primary);
    }
}
