.home-hero {
    padding: 1.25rem 0 0.75rem;
    text-align: center;
}

.home-hero-lead {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    margin-bottom: 0.65rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--bs-primary);
    background: rgba(13, 110, 253, 0.08);
    border: 1px solid rgba(13, 110, 253, 0.15);
    border-radius: 999px;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
}

.home-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.home-section-subtitle {
    color: var(--bs-secondary-color);
    margin-bottom: 1rem;
}

.home-feature-card {
    transition: box-shadow 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.home-feature-card:hover {
    box-shadow: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.home-feature-card .card-body {
    display: flex;
    flex-direction: column;
}

.home-feature-visual {
    position: relative;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--bs-card-border-radius) var(--bs-card-border-radius) 0 0;
}

/* When an illustration is present, let the active theme drive its color:
   the container background supplies the hue/saturation and the image is
   blended on top so only its light/dark structure remains (monochrome tint).
   Override --home-feature-tint per card to use a different theme color. */
.home-feature-visual:has(.home-feature-visual-img) {
    background: var(--home-feature-tint, var(--bs-primary));
    isolation: isolate;
}

/* Match each card's illustration tint to the color of its button:
   Dashboards/AI use primary (default), Reports secondary, Administration tertiary. */
.home-feature-visual--reports {
    --home-feature-tint: var(--bs-secondary);
}

.home-feature-visual--admin {
    --home-feature-tint: var(--bs-tertiary-color);
}

/* Keep each card's title icon in step with its illustration/button color. */
.home-feature-card:has(.home-feature-visual--reports) .card-title-with-icon .fa-icon-card {
    color: var(--bs-secondary);
}

.home-feature-card:has(.home-feature-visual--admin) .card-title-with-icon .fa-icon-card {
    color: var(--bs-tertiary-color);
}

.home-feature-visual-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(1.05);
    mix-blend-mode: luminosity;
}

.home-feature-visual-icon {
    font-size: 3rem;
    opacity: 0.28;
    color: var(--bs-primary);
}

.home-feature-visual--ai {
    background: linear-gradient(135deg, #f5f3ff 0%, #ddd6fe 45%, #ede9fe 100%);
}

.home-feature-visual--reports {
    background: linear-gradient(135deg, #ecfeff 0%, #a5f3fc 45%, #e0f2fe 100%);
}

.home-feature-visual--admin {
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 45%, #f1f5f9 100%);
}

.home-feature-visual--data {
    background: linear-gradient(135deg, #ecfdf5 0%, #a7f3d0 45%, #d1fae5 100%);
}

.home-feature-visual--dashboards {
    background: linear-gradient(135deg, #eff6ff 0%, #bfdbfe 45%, #dbeafe 100%);
}

.home-feature-visual--pipelines {
    background: linear-gradient(135deg, #fff7ed 0%, #fdba74 45%, #ffedd5 100%);
}

.home-feature-visual--cursor {
    background: linear-gradient(135deg, #faf5ff 0%, #d8b4fe 45%, #f3e8ff 100%);
}

.home-feature-visual--ai .home-feature-visual-icon {
    color: #6d28d9;
}

.home-feature-visual--reports .home-feature-visual-icon {
    color: #0e7490;
}

.home-feature-visual--admin .home-feature-visual-icon {
    color: #475569;
}

.home-feature-visual--data .home-feature-visual-icon {
    color: #047857;
}

.home-feature-visual--dashboards .home-feature-visual-icon {
    color: #1d4ed8;
}

.home-feature-visual--pipelines .home-feature-visual-icon {
    color: #c2410c;
}

.home-feature-visual--cursor .home-feature-visual-icon {
    color: #7e22ce;
}

.home-feature-card:has(.home-feature-visual--pipelines) .card-title-with-icon .fa-icon-card {
    color: #c2410c;
}

.home-feature-card:has(.home-feature-visual--cursor) .card-title-with-icon .fa-icon-card {
    color: #7e22ce;
}

.home-feature-visual--pipelines .home-feature-visual-decor::before {
    width: 55%;
    height: 0.35rem;
    left: 14%;
    bottom: 32%;
    background: rgba(194, 65, 12, 0.18);
    box-shadow:
        0 0.85rem 0 rgba(194, 65, 12, 0.12),
        0 1.7rem 0 rgba(194, 65, 12, 0.08);
}

.home-feature-visual--pipelines .home-feature-visual-decor::after {
    width: 38%;
    height: 0.35rem;
    right: 12%;
    bottom: 46%;
    background: rgba(194, 65, 12, 0.12);
}

.home-feature-visual--cursor .home-feature-visual-decor::before {
    width: 3rem;
    height: 3rem;
    top: 20%;
    left: 18%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

.home-feature-visual--cursor .home-feature-visual-decor::after {
    width: 1.75rem;
    height: 1.75rem;
    bottom: 22%;
    right: 20%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
}

.home-feature-visual-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.home-feature-visual-decor::before,
.home-feature-visual-decor::after {
    content: "";
    position: absolute;
    border-radius: 0.375rem;
    background: rgba(255, 255, 255, 0.45);
}

.home-feature-visual--reports .home-feature-visual-decor::before {
    width: 42%;
    height: 55%;
    left: 12%;
    bottom: 14%;
    box-shadow: 0.75rem -0.5rem 0 rgba(255, 255, 255, 0.35);
}

.home-feature-visual--reports .home-feature-visual-decor::after {
    width: 34%;
    height: 48%;
    right: 14%;
    bottom: 18%;
}

.home-feature-visual--ai .home-feature-visual-decor::before {
    width: 3.5rem;
    height: 3.5rem;
    top: 18%;
    left: 16%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

.home-feature-visual--ai .home-feature-visual-decor::after {
    width: 2rem;
    height: 2rem;
    bottom: 20%;
    right: 18%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
}

.home-feature-visual--data .home-feature-visual-decor::before {
    width: 55%;
    height: 0.35rem;
    left: 14%;
    bottom: 28%;
    background: rgba(4, 120, 87, 0.15);
    box-shadow:
        0 0.85rem 0 rgba(4, 120, 87, 0.12),
        0 1.7rem 0 rgba(4, 120, 87, 0.08),
        0.75rem -0.75rem 0 rgba(255, 255, 255, 0.45);
}

.home-feature-visual--data .home-feature-visual-decor::after {
    width: 38%;
    height: 0.35rem;
    right: 12%;
    bottom: 42%;
    background: rgba(4, 120, 87, 0.1);
}

.home-feature-visual--dashboards .home-feature-visual-decor::before {
    width: 36%;
    height: 30%;
    left: 14%;
    top: 22%;
    background: rgba(255, 255, 255, 0.5);
    box-shadow:
        calc(100% + 0.55rem) 0 0 rgba(255, 255, 255, 0.42),
        0 calc(100% + 0.55rem) 0 rgba(255, 255, 255, 0.48),
        calc(100% + 0.55rem) calc(100% + 0.55rem) 0 rgba(255, 255, 255, 0.36);
}

.home-feature-visual--dashboards .home-feature-visual-decor::after {
    width: 28%;
    height: 0.3rem;
    left: 20%;
    top: 36%;
    border-radius: 999px;
    background: rgba(29, 78, 216, 0.22);
    box-shadow:
        0 0.55rem 0 rgba(29, 78, 216, 0.14),
        0 1.1rem 0 rgba(29, 78, 216, 0.1);
}

.home-feature-visual--admin .home-feature-visual-decor::before {
    width: 2.5rem;
    height: 2.5rem;
    top: 22%;
    right: 20%;
    border: 0.2rem solid rgba(71, 85, 105, 0.15);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.35);
}

.home-value-list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-value-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: var(--bs-secondary-color);
    font-size: 0.9375rem;
}

.home-value-list .fa-icon-card {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.home-welcome-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .home-hero {
        padding: 1.75rem 0 1rem;
    }
}

.home-showcase {
    margin-top: 0.75rem;
    margin-bottom: 1.5rem !important;
}

.home-showcase-header {
    margin-bottom: 0.75rem;
}

.home-showcase-header .home-section-subtitle {
    margin-bottom: 0.25rem;
}

.home-showcase .card-body {
    padding: 0.875rem 1rem;
}

.home-showcase .card-body > .h5,
.home-showcase .card-body > h2,
.home-showcase .card-body > h3 {
    margin-bottom: 0.15rem;
}

.home-showcase .card-body > .small.text-muted {
    margin-bottom: 0.5rem;
}

.home-showcase .import-heatmap-legend {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    gap: 0.35rem 0.5rem;
}

.home-showcase-card {
    border-color: rgba(13, 110, 253, 0.12);
    box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.04);
}

.home-showcase-chart {
    position: relative;
    height: 240px;
}

.home-showcase-chart--compact {
    height: 140px;
}

.home-showcase .import-heatmap-card h2.mb-2 {
    margin-bottom: 0.25rem !important;
}

.home-showcase .import-heatmap-card .small.text-muted.mb-2,
.home-showcase .import-heatmap-card [id$="-summary"] {
    margin-bottom: 0.5rem !important;
}

.home-showcase .import-heatmap-card [id$="-chart"] {
    margin-bottom: 0.25rem !important;
}

.home-showcase-devops-header {
    margin-bottom: 0.5rem;
}

.home-showcase-stat {
    background: rgba(13, 110, 253, 0.04);
    border: 1px solid rgba(13, 110, 253, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    height: 100%;
}

.home-showcase-stat-label {
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
    margin-bottom: 0.1rem;
}

.home-showcase-stat-value {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.2;
}
