/* ============================================
   USE CASE PAGES — Shared Styles
   ============================================ */

/* ---- Hero (use-case variant) ---- */
.uc-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: #0b0f1a;
    color: white;
    padding: 7rem 2rem 5rem;
    overflow: hidden;
    text-align: left;
}

.uc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 900px 600px at 15% 40%, var(--uc-glow, rgba(126, 87, 194, 0.18)), transparent 70%),
        radial-gradient(ellipse 700px 500px at 80% 20%, var(--uc-glow-alt, rgba(46, 87, 255, 0.1)), transparent 60%);
    animation: uc-mesh-drift 15s ease-in-out infinite alternate;
    pointer-events: none;
}

.uc-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(126, 87, 194, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

@keyframes uc-mesh-drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, -10px) scale(1.03); }
}

.uc-hero-content {
    position: relative;
    z-index: 2;
}

.uc-hero-sector {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(167, 139, 250, 0.9);
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid rgba(167, 139, 250, 0.15);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.uc-hero-sector i {
    font-size: 0.85rem;
}

.uc-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.uc-hero h1 .text-gradient {
    background: linear-gradient(135deg, #c4b5fd, #7e57c2, #4da3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.uc-hero-subtitle {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.65;
    color: rgba(230, 234, 242, 0.55);
    max-width: 50ch;
    margin-bottom: 32px;
}

.uc-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---- Scenario Section ---- */
.uc-scenario {
    position: relative;
    padding: 5rem 2rem;
    background: #fff;
}

.uc-scenario-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #7e57c2;
    background: rgba(126, 87, 194, 0.06);
    border: 1px solid rgba(126, 87, 194, 0.12);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
}

/* ---- Disruption Cards ---- */
.uc-disruption-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.uc-disruption {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.uc-disruption::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 16px 0 0 16px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.uc-disruption:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(126, 87, 194, 0.1);
    border-color: rgba(126, 87, 194, 0.25);
}

.uc-disruption:hover::before {
    opacity: 1;
}

.uc-disruption-critical::before { background: linear-gradient(180deg, #ef4444, #f97316); }
.uc-disruption-high::before { background: linear-gradient(180deg, #f97316, #fbbf24); }
.uc-disruption-medium::before { background: linear-gradient(180deg, #7e57c2, #4da3ff); }

.uc-disruption-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.uc-disruption-icon-red {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}

.uc-disruption-icon-orange {
    background: rgba(249, 115, 22, 0.08);
    color: #f97316;
}

.uc-disruption-icon-purple {
    background: rgba(126, 87, 194, 0.08);
    color: #7e57c2;
}

.uc-disruption h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.uc-disruption p {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.55;
    margin: 0;
}

.uc-disruption-severity {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f9fafb;
    color: #9ca3af;
}

.uc-disruption-severity-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

/* ---- Timeline / How it works ---- */
.uc-timeline-section {
    position: relative;
    padding: 5rem 2rem;
    background: linear-gradient(180deg, #0b0f1a 0%, #12182b 100%);
    overflow: hidden;
}

.uc-timeline-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(126, 87, 194, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.uc-timeline-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 500px 350px at 15% 80%, rgba(126, 87, 194, 0.1), transparent 60%),
        radial-gradient(ellipse 400px 250px at 85% 20%, rgba(77, 163, 255, 0.06), transparent 55%);
    pointer-events: none;
}

.uc-timeline-content {
    position: relative;
    z-index: 1;
}

.uc-timeline {
    position: relative;
    padding-left: 40px;
}

.uc-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(126, 87, 194, 0.4), rgba(126, 87, 194, 0.1));
}

.uc-timeline-step {
    position: relative;
    padding-bottom: 48px;
}

.uc-timeline-step:last-child {
    padding-bottom: 0;
}

.uc-timeline-dot {
    position: absolute;
    left: -33px;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #7e57c2;
    border: 3px solid #0b0f1a;
    box-shadow: 0 0 12px rgba(126, 87, 194, 0.4);
}

.uc-timeline-dot-active {
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
    animation: uc-dot-glow 2s ease-in-out infinite;
}

@keyframes uc-dot-glow {
    0%, 100% { box-shadow: 0 0 12px rgba(34, 197, 94, 0.5); }
    50% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.8); }
}

.uc-timeline-time {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(167, 139, 250, 0.7);
    margin-bottom: 8px;
}

.uc-timeline-step h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.uc-timeline-step p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin: 0;
    max-width: 50ch;
}

/* ---- Scenario Cards (options) ---- */
.uc-scenario-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.uc-option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.uc-option:hover {
    border-color: rgba(126, 87, 194, 0.3);
    background: rgba(126, 87, 194, 0.04);
}

.uc-option-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.uc-option-label-a { color: #22c55e; }
.uc-option-label-b { color: #60a5fa; }
.uc-option-label-c { color: #fbbf24; }

.uc-option h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.uc-option p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.55;
    margin: 0;
}

.uc-option-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.uc-option-tag {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---- Before / After ---- */
.uc-compare-section {
    padding: 5rem 2rem;
    background: linear-gradient(to bottom, #fff 0%, #f7f8fb 100%);
}

.uc-compare-panel {
    background: #fff;
    border-radius: 20px;
    padding: 36px;
    height: 100%;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.3s ease;
}

.uc-compare-panel:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.uc-compare-panel-accent {
    border-color: rgba(126, 87, 194, 0.25);
    background: linear-gradient(180deg, rgba(126, 87, 194, 0.02), #fff);
}

.uc-compare-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.uc-compare-badge {
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.uc-compare-badge-before {
    background: #fef3c7;
    color: #92400e;
}

.uc-compare-badge-after {
    background: rgba(126, 87, 194, 0.1);
    color: #7e57c2;
}

.uc-compare-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
}

.uc-compare-item + .uc-compare-item {
    border-top: 1px solid #f9fafb;
}

.uc-compare-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 7px;
    flex-shrink: 0;
}

.uc-compare-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #111827;
    margin-bottom: 2px;
}

.uc-compare-item-desc {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

/* ---- Actors Section ---- */
.uc-actors-section {
    padding: 5rem 2rem;
    background: #fff;
}

.uc-actor-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    height: 100%;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.uc-actor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
}

.uc-actor-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.uc-actor-icon-purple { background: rgba(126, 87, 194, 0.08); color: #7e57c2; }
.uc-actor-icon-blue { background: rgba(59, 130, 246, 0.08); color: #3b82f6; }
.uc-actor-icon-green { background: rgba(34, 197, 94, 0.08); color: #22c55e; }
.uc-actor-icon-orange { background: rgba(249, 115, 22, 0.08); color: #f97316; }

.uc-actor-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.uc-actor-card p {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.55;
    margin-bottom: 12px;
}

.uc-actor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.uc-actor-action {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f9fafb;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

/* ---- KPI Section ---- */
.uc-kpi-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, #0b0f1a, #12182b);
    position: relative;
    overflow: hidden;
}

.uc-kpi-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(126, 87, 194, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.uc-kpi-content {
    position: relative;
    z-index: 1;
}

.uc-kpi-card {
    text-align: center;
    padding: 32px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    height: 100%;
    transition: border-color 0.3s ease;
}

.uc-kpi-card:hover {
    border-color: rgba(126, 87, 194, 0.3);
}

.uc-kpi-value {
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #c4b5fd, #7e57c2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.uc-kpi-label {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.uc-kpi-detail {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ---- Integrations Section ---- */
.uc-integrations-section {
    padding: 5rem 2rem;
    background: linear-gradient(to bottom, #f7f8fb 0%, #fff 100%);
}

.uc-integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.uc-integration-category {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.uc-integration-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.uc-integration-category-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 14px;
    background: rgba(126, 87, 194, 0.08);
    color: #7e57c2;
}

.uc-integration-category h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.uc-integration-category-desc {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 14px;
}

.uc-integration-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.uc-integration-tool {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 8px;
    background: #f3f0ff;
    color: #6d49a8;
    border: 1px solid rgba(126, 87, 194, 0.1);
    white-space: nowrap;
}

.uc-integration-note {
    font-size: 0.82rem;
    color: #9ca3af;
    text-align: center;
    margin-top: 28px;
}

.uc-integration-note i {
    color: #7e57c2;
    margin-right: 4px;
}

/* ---- CTA Section ---- */
.uc-cta-section {
    padding: 5rem 2rem;
    background: #fff;
    text-align: center;
}

.uc-cta-section h2 {
    font-weight: 800;
    margin-bottom: 16px;
}

.uc-cta-section p {
    color: #6b7280;
    max-width: 50ch;
    margin: 0 auto 32px;
}

/* ---- Cross-link banner ---- */
.uc-crosslink {
    padding: 3rem 2rem;
    background: #f7f8fb;
    border-top: 1px solid #e5e7eb;
}

.uc-crosslink-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px 28px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.uc-crosslink-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    color: inherit;
}

.uc-crosslink-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(126, 87, 194, 0.08);
    color: #7e57c2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.uc-crosslink-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2px;
}

.uc-crosslink-text p {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

/* ---- Illustration Frames ---- */
.uc-illus-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #0b0f1a, #12182b);
    border: 1px solid rgba(126, 87, 194, 0.2);
    box-shadow:
        0 0 60px rgba(126, 87, 194, 0.1),
        0 30px 80px rgba(0, 0, 0, 0.4);
    padding: 16px;
}

.uc-illus-svg {
    width: 100%;
    height: auto;
    display: block;
}

.uc-illus-section {
    position: relative;
    padding: 5rem 2rem;
    background: linear-gradient(180deg, #0b0f1a 0%, #12182b 100%);
    overflow: hidden;
}

.uc-illus-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(126, 87, 194, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.uc-illus-section .container {
    position: relative;
    z-index: 1;
}

.uc-illus-section h2 {
    color: #fff;
}

.uc-illus-wide-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(13, 15, 26, 0.6);
    border: 1px solid rgba(126, 87, 194, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 20px;
}

/* ---- Navbar for inner pages ---- */
.uc-navbar {
    z-index: 1050;
    transition: background-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.uc-navbar.scrolled {
    background-color: rgba(13, 18, 30, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

.uc-navbar:has(.navbar-collapse.show),
.uc-navbar:has(.navbar-collapse.collapsing) {
    background-color: rgba(13, 18, 30, 0.95);
    backdrop-filter: blur(12px);
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .uc-hero {
        padding: 6rem 1.5rem 3.5rem;
        min-height: auto;
    }

    .uc-hero h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .uc-timeline {
        padding-left: 32px;
    }

    .uc-timeline::before {
        left: 11px;
    }

    .uc-timeline-dot {
        left: -28px;
    }
}

@media (max-width: 767px) {
    .uc-kpi-card {
        padding: 24px 12px;
    }

    .uc-kpi-value {
        font-size: 2rem;
    }

    .uc-compare-panel {
        padding: 24px;
    }

    .uc-scenario-options {
        grid-template-columns: 1fr;
    }

    .uc-illus-wide-frame {
        padding: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .uc-illus-wide-frame svg {
        min-width: 700px;
    }

    .uc-illus-section {
        padding: 3rem 1rem;
    }
}
