/* Navbar styling moved to navbar-redesign.css (global, linked from _Navbar.cshtml).
   Kept here: mobile drawer surface fix. */
@media (max-width: 991.98px) {
    #main-nav .st-popup-container {
        background: var(--dc-body-bg, #18191a) !important;
    }
    [data-bs-theme="light"] #main-nav .st-popup-container {
        background: #fff !important;
    }
}

/* Home redesign additions — keep existing dashcore.css untouched.
   Uses Dashcore CSS variables (--dc-*) so cards and sections adapt to dark/light theme. */

.home-hero {
    position: relative;
    padding-top: 6rem;
    padding-bottom: 8rem;
    overflow: hidden;
    /* Hero stays dark in both themes (same as Partners/API heroes) — white text is always readable. */
    background: radial-gradient(ellipse 80% 55% at 50% 0%, rgba(85, 51, 255, 0.22), transparent 60%),
                linear-gradient(180deg, #12121b 0%, #16161f 100%);
    color: #fff;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.35;
    background-image: radial-gradient(rgba(165, 180, 252, 0.35) 1px, transparent 1px);
    background-size: 30px 30px;
}

.home-hero-aurora {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.home-hero-aurora .aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    will-change: transform;
    animation: aurora-float 18s ease-in-out infinite alternate;
}

.home-hero-aurora .aurora-blob:nth-child(1) {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(85, 51, 255, 0.95), transparent 70%);
    top: -180px;
    left: -100px;
    animation-duration: 22s;
}

.home-hero-aurora .aurora-blob:nth-child(2) {
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.85), transparent 70%);
    bottom: -120px;
    right: -180px;
    animation-duration: 26s;
    animation-delay: -6s;
}

.home-hero-aurora .aurora-blob:nth-child(3) {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(0, 178, 134, 0.5), transparent 70%);
    top: 30%;
    left: 55%;
    animation-duration: 20s;
    animation-delay: -12s;
}

.home-hero-aurora .aurora-blob:nth-child(4) {
    display: none;
}

@keyframes aurora-float {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(80px, -50px, 0) scale(1.15); }
}

@media (max-width: 767.98px) {
    .home-hero-aurora .aurora-blob {
        filter: blur(50px);
        opacity: 0.35;
    }
    .home-hero-aurora .aurora-blob:nth-child(1) { width: 380px; height: 380px; }
    .home-hero-aurora .aurora-blob:nth-child(2) { width: 320px; height: 320px; }
    .home-hero-aurora .aurora-blob:nth-child(3) { width: 260px; height: 260px; }
}

.home-hero-bg-grid {
    display: none;
}

.home-hero .container {
    position: relative;
    z-index: 3;
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    font-weight: 500;
    color: #c7d2fe;
}

.home-hero-badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #00b286;
    animation: home-pulse 2s infinite;
}

@keyframes home-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.home-hero .lead {
    opacity: 0.75;
}

.home-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 3;
    line-height: 0;
}

.home-wave svg {
    display: block;
    width: 100%;
    height: 60px;
    fill: var(--dc-body-bg);
}

@media (max-width: 767.98px) {
    .home-wave svg {
        height: 36px;
    }
}

.home-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background: var(--dc-body-bg);
    color: var(--dc-body-color);
    position: relative;
}

.home-section-alt {
    background: var(--dc-tertiary-bg);
}

.home-section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--dc-border-color), transparent);
    border: none;
    margin: 0;
}

.home-section-title {
    color: var(--dc-emphasis-color);
}

.home-card {
    background: var(--dc-card-bg);
    color: var(--dc-card-color);
    border: 1px solid var(--dc-border-color);
    border-radius: 1.25rem;
    padding: 1.75rem;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-card:hover {
    transform: translateY(-4px);
    border-color: rgba(85, 51, 255, 0.35);
    box-shadow: 0 18px 40px rgba(85, 51, 255, 0.12);
}

.home-icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(85, 51, 255, 0.12), rgba(139, 92, 246, 0.12));
    border: 1px solid rgba(85, 51, 255, 0.2);
    margin-bottom: 1.25rem;
    color: var(--dc-primary);
    font-size: 1.25rem;
}

.home-icon-box.flex-shrink-0 {
    margin-bottom: 0;
}

.home-step-card {
    position: relative;
    background: var(--dc-card-bg);
    color: var(--dc-card-color);
    border: 1px solid var(--dc-border-color);
    border-radius: 1.25rem;
    padding: 1.75rem;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-step-card:hover {
    transform: translateY(-3px);
    border-color: rgba(85, 51, 255, 0.35);
    box-shadow: 0 14px 34px rgba(85, 51, 255, 0.1);
}

.home-step-badge {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    background: var(--dc-primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(85, 51, 255, 0.3);
    margin-bottom: 1rem;
}

.home-model-card {
    background: var(--dc-card-bg);
    color: var(--dc-card-color);
    border: 1px solid var(--dc-border-color);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-model-card:hover {
    transform: translateY(-3px);
    border-color: rgba(85, 51, 255, 0.35);
    box-shadow: 0 14px 34px rgba(85, 51, 255, 0.1);
}

.home-model-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 0.375rem;
    background: var(--dc-primary-bg-subtle);
    border: 1px solid rgba(85, 51, 255, 0.2);
    color: var(--dc-primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.home-model-tag-image {
    background: rgba(0, 178, 134, 0.12);
    border-color: rgba(0, 178, 134, 0.25);
    color: #0ba67f;
}

[data-bs-theme="dark"] .home-model-tag-image {
    color: #34d399;
}

.home-cta-card {
    background: var(--dc-card-bg);
    color: var(--dc-card-color);
    border: 1px solid var(--dc-border-color);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.home-glow-btn {
    box-shadow: 0 8px 24px rgba(85, 51, 255, 0.35) !important;
}

.home-link-muted {
    color: var(--dc-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.home-link-muted:hover {
    color: var(--dc-primary);
}

@media (max-width: 991.98px) {
    /* g-5 row (-24px margins) inside a 12px-padded container pokes 12px
       past the screen edge on mobile — drop it back to the default gutter */
    .home-section > .container > .row.g-5 {
        --dc-gutter-x: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .home-hero {
        padding-top: 4rem;
        padding-bottom: 5.5rem;
    }
    .home-section {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
}
