/*
 * Industry solution pages
 * -----------------------
 * This file intentionally scopes every rule to .industry-page so the shared
 * site shell remains the single source of truth for global navigation/footer
 * styling. It is loaded after styles.css on the seven solution pages.
 */

.industry-page {
    background: var(--bg, #fff);
}

.industry-page .industry-main {
    width: 100%;
    margin: 0;
    padding: clamp(1.1rem, 2.5vw, 2.25rem) 0 clamp(3.75rem, 8vw, 7rem);
    flex: 1 0 auto;
    overflow: clip;
}

.industry-page .industry-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 clamp(1.35rem, 3vw, 2.5rem);
    color: var(--muted, #475569);
    font-size: 0.875rem;
    font-weight: 600;
}

.industry-page .industry-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.industry-page .industry-breadcrumb a:hover {
    color: var(--cta, #1d4ed8);
}

.industry-page .industry-breadcrumb [aria-hidden="true"] {
    color: #94a3b8;
}

.industry-page .industry-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.55fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 6rem);
    min-height: min(640px, 72vh);
    padding: clamp(1.5rem, 4vw, 4rem);
    border: 1px solid var(--line-subtle, #e2e8f0);
    border-radius: clamp(1.25rem, 3vw, 2rem);
    background:
        radial-gradient(circle at 94% 9%, rgba(96, 165, 250, 0.2), transparent 25rem),
        radial-gradient(circle at 10% 100%, rgba(20, 184, 166, 0.11), transparent 25rem),
        var(--surface-subtle, #f8fafc);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.industry-page .industry-eyebrow,
.industry-page .industry-section-label,
.industry-page .industry-workflow-label {
    margin: 0 0 0.85rem;
    color: var(--cta, #1d4ed8);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.25;
    text-transform: uppercase;
}

.industry-page .industry-hero h1 {
    max-width: 14ch;
    margin-bottom: 1rem;
    color: var(--text, #0f172a);
    font-size: clamp(2.15rem, 5vw, 4.5rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.industry-page .industry-hero-copy {
    max-width: 62ch;
    margin: 0;
    color: var(--muted, #475569);
    font-size: clamp(1rem, 1.25vw, 1.18rem);
    line-height: 1.62;
}

.industry-page .industry-hero-actions,
.industry-page .industry-final-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.65rem;
}

.industry-page .industry-hero-actions .btn,
.industry-page .industry-final-actions .btn {
    min-height: 2.75rem;
}

.industry-page .industry-device {
    position: relative;
    z-index: 0;
    width: min(100%, 286px);
    margin: 0 auto;
    padding: 0.45rem;
    border: 6px solid #0f172a;
    border-radius: 2.2rem;
    background: #0f172a;
    box-shadow: 0 26px 50px rgba(15, 23, 42, 0.25);
}

.industry-page .industry-device::before {
    position: absolute;
    z-index: 2;
    top: 0.48rem;
    left: 50%;
    width: 31%;
    height: 1.05rem;
    border-radius: 0 0 0.75rem 0.75rem;
    background: #0f172a;
    content: "";
    transform: translateX(-50%);
}

.industry-page .industry-device::after {
    position: absolute;
    z-index: -1;
    top: 15%;
    right: -24%;
    width: 76%;
    aspect-ratio: 1;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.18);
    content: "";
    filter: blur(2px);
}

.industry-page .industry-device img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1206 / 2622;
    border-radius: 1.72rem;
    object-fit: cover;
    object-position: top center;
}

.industry-page .industry-section {
    margin-top: clamp(3.75rem, 9vw, 8.5rem);
}

.industry-page .industry-section-heading {
    max-width: 720px;
    margin-bottom: clamp(1.35rem, 3vw, 2.5rem);
}

.industry-page .industry-section-heading h2,
.industry-page .industry-result-copy h2,
.industry-page .industry-final h2 {
    margin: 0;
    color: var(--text, #0f172a);
    font-size: clamp(1.75rem, 3.5vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.industry-page .industry-problem-card {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr);
    gap: 1rem;
    padding: clamp(1.35rem, 3vw, 2.5rem);
    border: 1px solid var(--line-subtle, #e2e8f0);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
}

.industry-page .industry-problem-card svg {
    width: 2rem;
    height: 2rem;
    color: var(--cta, #1d4ed8);
}

.industry-page .industry-problem-card p {
    max-width: 72ch;
    margin: 0;
    color: var(--muted, #475569);
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    line-height: 1.65;
}

.industry-page .industry-existing {
    display: grid;
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
    gap: clamp(1.25rem, 4vw, 4rem);
    align-items: stretch;
    padding: clamp(1.25rem, 3vw, 2.75rem);
    border-radius: 1.45rem;
    background: #0f172a;
}

.industry-page .industry-existing-label {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    padding: 0.3rem;
}

.industry-page .industry-existing-label p {
    margin: 0;
    color: #93c5fd;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.industry-page .industry-existing-label h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.55rem, 3vw, 2.65rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.industry-page .industry-existing-card {
    padding: clamp(1.25rem, 3vw, 2.25rem);
    border: 1px solid rgba(191, 219, 254, 0.26);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.07);
}

.industry-page .industry-existing-card p {
    margin: 0;
    color: #dbeafe;
    font-size: clamp(1rem, 1.2vw, 1.12rem);
    line-height: 1.65;
}

.industry-page .industry-workflow {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 0.64fr) minmax(0, 1.36fr);
    gap: clamp(1.5rem, 5vw, 5rem);
    align-items: start;
}

.industry-page .industry-workflow-intro {
    position: sticky;
    top: 1.5rem;
}

.industry-page .industry-workflow-intro h2 {
    margin: 0;
    color: var(--text, #0f172a);
    font-size: clamp(1.75rem, 3.2vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.industry-page .industry-workflow-intro p:not(.industry-workflow-label) {
    margin: 1rem 0 0;
    color: var(--muted, #475569);
    font-size: 0.98rem;
    line-height: 1.58;
}

.industry-page .industry-flow {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: flow;
}

.industry-page .industry-flow-item {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 1rem;
    padding: clamp(1.1rem, 2.5vw, 1.75rem);
    border: 1px solid var(--line-subtle, #e2e8f0);
    border-radius: 1rem;
    background: #fff;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.industry-page .industry-flow-item:hover {
    border-color: rgba(37, 99, 235, 0.48);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.industry-page .industry-flow-number {
    display: grid;
    width: 2.45rem;
    height: 2.45rem;
    place-items: center;
    border-radius: 0.75rem;
    background: rgba(37, 99, 235, 0.11);
    color: var(--cta, #1d4ed8);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
}

.industry-page .industry-flow-item:nth-child(2) .industry-flow-number {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.industry-page .industry-flow-item:nth-child(3) .industry-flow-number {
    background: rgba(217, 119, 6, 0.13);
    color: #b45309;
}

.industry-page .industry-flow-item:nth-child(4) .industry-flow-number {
    background: rgba(79, 70, 229, 0.12);
    color: #4338ca;
}

.industry-page .industry-flow-item h3 {
    margin: 0 0 0.35rem;
    color: var(--text, #0f172a);
    font-size: clamp(1.03rem, 1.25vw, 1.2rem);
    letter-spacing: -0.02em;
}

.industry-page .industry-flow-item h3 a {
    color: inherit;
    text-decoration: none;
}

.industry-page .industry-flow-item h3 a:hover {
    color: var(--cta, #1d4ed8);
}

.industry-page .industry-flow-item p {
    margin: 0;
    color: var(--muted, #475569);
    font-size: 0.96rem;
    line-height: 1.58;
}

.industry-page .industry-review-note {
    margin: 1rem 0 0;
    padding: 1rem 1.1rem;
    border-left: 3px solid #0f766e;
    border-radius: 0 0.75rem 0.75rem 0;
    background: rgba(15, 118, 110, 0.06);
    color: #155e75;
    font-size: 0.93rem;
    line-height: 1.55;
}

.industry-page .industry-result {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(1.25rem, 4vw, 4rem);
    align-items: center;
    padding: clamp(1.35rem, 4vw, 3.5rem);
    border-radius: 1.4rem;
    background: linear-gradient(130deg, #eff6ff, #f8fafc 58%, #ecfdf5);
}

.industry-page .industry-result-badge {
    display: grid;
    width: min(100%, 280px);
    min-height: 200px;
    place-items: center;
    margin: 0 auto;
    padding: 1.25rem;
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.75);
    color: var(--cta, #1d4ed8);
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.02;
    text-align: center;
}

.industry-page .industry-result-copy p {
    max-width: 57ch;
    margin: 1rem 0 0;
    color: var(--muted, #475569);
    font-size: clamp(1rem, 1.25vw, 1.14rem);
    line-height: 1.65;
}

.industry-page .industry-boundary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid #fbbf24;
    border-radius: 1rem;
    background: #fffbeb;
}

.industry-page .industry-boundary-icon {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-weight: 800;
}

.industry-page .industry-boundary h2 {
    margin: 0 0 0.45rem;
    color: #78350f;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    letter-spacing: -0.025em;
}

.industry-page .industry-boundary p {
    max-width: 78ch;
    margin: 0;
    color: #78350f;
    font-size: 0.98rem;
    line-height: 1.6;
}

.industry-page .industry-final {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    border-radius: 1.4rem;
    background: #000;
}

.industry-page .industry-final > div:not(.dark-section-dots) {
    position: relative;
    z-index: 1;
}

.industry-page .industry-final .industry-section-label {
    color: #93c5fd;
}

.industry-page .industry-final h2 {
    max-width: 19ch;
    color: #fff;
}

.industry-page .industry-final-copy {
    max-width: 52ch;
    margin: 1rem 0 0;
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.6;
}

.industry-page .industry-final .btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}

.industry-page .industry-final .btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.industry-page :focus-visible {
    outline: 3px solid rgba(29, 78, 216, 0.34);
    outline-offset: 3px;
}

@media (max-width: 860px) {
    .industry-page .industry-hero {
        grid-template-columns: minmax(0, 1fr) minmax(200px, 250px);
        gap: 1.5rem;
    }

    .industry-page .industry-device {
        width: min(100%, 230px);
    }

    .industry-page .industry-workflow {
        grid-template-columns: 1fr;
        gap: 1.35rem;
    }

    .industry-page .industry-workflow-intro {
        position: static;
    }
}

@media (max-width: 640px) {
    .industry-page .industry-main {
        padding-top: 0.95rem;
        padding-bottom: 3.25rem;
    }

    .industry-page .industry-hero {
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 1.75rem;
        padding: 1.4rem;
        border-radius: 1.15rem;
    }

    .industry-page .industry-hero h1 {
        max-width: 12ch;
        font-size: clamp(2.15rem, 12vw, 3.25rem);
    }

    .industry-page .industry-device {
        width: min(76vw, 252px);
        justify-self: center;
    }

    .industry-page .industry-section {
        margin-top: 3.6rem;
    }

    .industry-page .industry-existing,
    .industry-page .industry-result,
    .industry-page .industry-final {
        grid-template-columns: 1fr;
    }

    .industry-page .industry-existing {
        gap: 1.25rem;
    }

    .industry-page .industry-existing-label {
        gap: 0.75rem;
    }

    .industry-page .industry-result-badge {
        width: 100%;
        min-height: 136px;
    }

    .industry-page .industry-final-actions {
        margin-top: 0;
    }

    .industry-page .industry-final-actions .btn,
    .industry-page .industry-hero-actions .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .industry-page .industry-flow-item {
        transition: none;
    }

    .industry-page .industry-flow-item:hover {
        transform: none;
    }
}
