/* Home page hero + dashboard telemetry */

.home-page-hero.hero-main {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    min-height: 90vh;
}

.home-page-hero.hero-main::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 22%, rgba(125, 211, 252, 0.18), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(196, 181, 253, 0.16), transparent 32%),
        linear-gradient(180deg, rgba(8, 17, 31, 0.08), rgba(8, 17, 31, 0.22));
    z-index: 0;
}

.home-page-hero.hero-main > .mud-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 3.5rem);
}

.hero-shell__content,
.hero-shell__visual {
    min-width: 0;
}

.hero-shell__content .hero-content {
    max-width: 38rem;
}

.hero-visual {
    position: relative;
    animation: fadeInUp 0.85s ease-out 0.12s both;
}

.dashboard-preview {
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.97) !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.08) !important;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.dashboard-preview:hover {
    transform: translateY(-6px);
    box-shadow:
        0 36px 100px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(255, 255, 255, 0.1) !important;
}

.dashboard-preview .public-dashboard-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    background: linear-gradient(180deg, var(--egk-color-background), var(--mud-palette-surface, #f1f5f9));
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.mud-theme-dark .dashboard-preview .public-dashboard-chrome {
    background: linear-gradient(180deg, var(--mud-palette-dark-lighten, #1e293b), var(--mud-palette-dark, #0f172a));
    border-bottom-color: rgba(148, 163, 184, 0.15);
}

.dp-chrome-title {
    flex: 1;
    margin-left: 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--egk-color-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mud-theme-dark .dp-chrome-title {
    color: #94a3b8;
}

.dp-live-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #94a3b8;
    flex-shrink: 0;
}

.dp-live-dot.is-live {
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
    animation: dpDotPulse 2s ease infinite;
}

.dp-live-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--egk-color-muted);
}

.mud-theme-dark .dp-live-label {
    color: #94a3b8;
}

.dp-body {
    padding: 1rem 1rem 1.1rem;
    color: var(--egk-color-text);
}

.mud-theme-dark .dp-body {
    color: #e2e8f0;
}

.dp-panel-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.dp-panel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.16);
    color: #2563eb;
    flex-shrink: 0;
}

.mud-theme-dark .dp-panel-icon {
    color: #93c5fd;
}

.dp-panel-meta {
    flex: 1;
    min-width: 0;
}

.dp-panel-title {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--egk-color-text);
    line-height: 1.3;
}

.mud-theme-dark .dp-panel-title {
    color: var(--mud-palette-text-primary, #f8fafc);
}

.dp-panel-sub {
    margin-top: 0.15rem;
    font-size: 0.72rem;
    color: var(--egk-color-muted);
    line-height: 1.45;
}

.mud-theme-dark .dp-panel-sub {
    color: #94a3b8;
}

.dp-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.22);
    color: #15803d;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.mud-theme-dark .dp-live-badge {
    color: #86efac;
}

.dp-pulse-ring {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #22c55e;
    position: relative;
}

.dp-pulse-ring::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    border: 1px solid rgba(34, 197, 94, 0.55);
    animation: dpPulse 1.8s ease-out infinite;
}

.dp-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.dp-kpi {
    padding: 0.75rem 0.7rem;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.88));
    border: 1px solid rgba(148, 163, 184, 0.22);
    animation: fadeInUp 0.55s ease both;
}

.mud-theme-dark .dp-kpi {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.68));
    border-color: rgba(148, 163, 184, 0.14);
}

.dp-kpi:nth-child(1) { animation-delay: 0.05s; }
.dp-kpi:nth-child(2) { animation-delay: 0.1s; }
.dp-kpi:nth-child(3) { animation-delay: 0.15s; }
.dp-kpi:nth-child(4) { animation-delay: 0.2s; }

.dp-kpi__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.45rem;
}

.dp-kpi__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.dp-kpi__icon--primary {
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
}

.dp-kpi__icon--info {
    background: rgba(14, 165, 233, 0.12);
    color: #0284c7;
}

.dp-kpi__icon--success {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.dp-kpi__icon--secondary {
    background: rgba(124, 58, 237, 0.12);
    color: #7c3aed;
}

.dp-kpi__trend {
    font-size: 0.72rem;
    font-weight: 700;
    color: #16a34a;
}

.dp-kpi__value {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--egk-color-text);
    line-height: 1.15;
}

.mud-theme-dark .dp-kpi__value {
    color: var(--mud-palette-text-primary, #f8fafc);
}

.dp-kpi__label {
    margin-top: 0.15rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: #475569;
}

.mud-theme-dark .dp-kpi__label {
    color: #cbd5e1;
}

.dp-kpi__sub {
    margin-top: 0.1rem;
    font-size: 0.62rem;
    color: var(--egk-color-muted);
    line-height: 1.35;
}

.mud-theme-dark .dp-kpi__sub {
    color: #94a3b8;
}

.dp-kpi--primary {
    border-color: rgba(37, 99, 235, 0.18);
}

.dp-kpi--info {
    border-color: rgba(14, 165, 233, 0.18);
}

.dp-kpi--success {
    border-color: rgba(34, 197, 94, 0.18);
}

.dp-kpi--secondary {
    border-color: rgba(124, 58, 237, 0.18);
}

.dp-chart-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 0.65rem;
}

.dp-chart-card {
    padding: 0.75rem;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.mud-theme-dark .dp-chart-card {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(148, 163, 184, 0.12);
}

.dp-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.dp-chart-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #334155;
}

.mud-theme-dark .dp-chart-title {
    color: #e2e8f0;
}

.dp-trend-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.dp-trend-badge--up {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.dp-trend-badge--info {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.dp-sparkbar {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 3.25rem;
}

.dp-sparkbar__bar {
    flex: 1;
    max-width: 10px;
    height: var(--bar-h, 40%);
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.75), rgba(37, 99, 235, 0.18));
    transform-origin: bottom;
    animation: dpBarGrow 0.9s ease both;
}

.dp-sparkbar__bar:nth-child(1) { animation-delay: 0.05s; }
.dp-sparkbar__bar:nth-child(2) { animation-delay: 0.08s; }
.dp-sparkbar__bar:nth-child(3) { animation-delay: 0.11s; }
.dp-sparkbar__bar:nth-child(4) { animation-delay: 0.14s; }
.dp-sparkbar__bar:nth-child(5) { animation-delay: 0.17s; }
.dp-sparkbar__bar:nth-child(6) { animation-delay: 0.2s; }
.dp-sparkbar__bar:nth-child(7) { animation-delay: 0.23s; }
.dp-sparkbar__bar:nth-child(8) { animation-delay: 0.26s; }
.dp-sparkbar__bar:nth-child(9) { animation-delay: 0.29s; }
.dp-sparkbar__bar:nth-child(10) { animation-delay: 0.32s; }
.dp-sparkbar__bar:nth-child(11) { animation-delay: 0.35s; }
.dp-sparkbar__bar:nth-child(12) { animation-delay: 0.38s; }

.dp-donut-wrap {
    position: relative;
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto;
}

.dp-donut {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.dp-donut__track {
    stroke: rgba(148, 163, 184, 0.28);
}

.dp-donut__fill {
    stroke: #2563eb;
    transition: stroke-dasharray 0.6s ease;
}

.dp-donut__label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--egk-color-text);
    letter-spacing: -0.02em;
}

.mud-theme-dark .dp-donut__label {
    color: var(--mud-palette-text-primary, #f8fafc);
}

.dp-donut__unit {
    font-size: 0.62rem;
    font-weight: 700;
    margin-left: 1px;
    color: var(--egk-color-muted);
}

.dp-activity {
    padding: 0.75rem;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.mud-theme-dark .dp-activity {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(148, 163, 184, 0.12);
}

.dp-activity__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.dp-activity__title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #334155;
}

.mud-theme-dark .dp-activity__title {
    color: #e2e8f0;
}

.dp-activity__all {
    font-size: 0.62rem;
    font-weight: 600;
    color: #2563eb;
    cursor: default;
}

.dp-activity__list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.dp-activity__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.45rem;
}

.dp-activity__dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.dp-activity__dot--primary {
    background: #2563eb;
}

.dp-activity__dot--info {
    background: #0ea5e9;
}

.dp-activity__dot--success {
    background: #22c55e;
}

.dp-activity__text {
    font-size: 0.68rem;
    color: #475569;
    line-height: 1.35;
    min-width: 0;
}

.mud-theme-dark .dp-activity__text {
    color: #cbd5e1;
}

.dp-activity__time {
    font-size: 0.62rem;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
}

.feature-link {
    align-self: flex-start;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    text-transform: none !important;
    transition: transform 0.2s ease, color 0.2s ease;
}

.feature-link:hover {
    transform: translateX(4px);
}

.home-industry-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.home-industry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.home-industry-card .public-card-accent {
    height: 3px;
    width: 100%;
}

.home-industry-card .industry-card__cta {
    text-transform: none !important;
    font-weight: 600 !important;
}

.home-feature-card {
    display: flex;
    flex-direction: column;
}

@media (width <= 1200px) {
    .hero-shell {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .dp-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (width <= 960px) {
    .home-page-hero.hero-main {
        min-height: auto;
    }

    .hero-shell {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-shell__content .hero-content {
        max-width: none;
        text-align: center;
    }

    .hero-shell__content .public-hero-actions,
    .hero-shell__content .public-hero-trust,
    .hero-shell__content .home-social-proof-strip {
        justify-content: center;
    }

    .dp-chart-row {
        grid-template-columns: 1fr;
    }
}

@media (width <= 600px) {
    .dp-body {
        padding: 0.85rem;
    }

    .dp-kpi-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .dp-kpi__value {
        font-size: 1rem;
    }

    .dashboard-preview:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-visual,
    .dp-kpi,
    .dp-sparkbar__bar,
    .dp-live-dot.is-live,
    .dp-pulse-ring::after,
    .dashboard-preview {
        animation: none !important;
        transition: none !important;
    }
}

@keyframes dpDotPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

@keyframes dpPulse {
    0% {
        transform: scale(0.85);
        opacity: 0.85;
    }

    70% {
        transform: scale(1.35);
        opacity: 0;
    }

    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

@keyframes dpBarGrow {
    from {
        transform: scaleY(0.15);
        opacity: 0.35;
    }

    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
