/* ================================================================
   PROJECTKART — HOMEPAGE SECTIONS
================================================================ */

.home-page {
    background: #07090d;
}

.section-container {
    width: min(100% - 76px, var(--container-width));
    margin: 0 auto;
}

.home-section {
    padding: 88px 0;
}

.section-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}

.section-eyebrow {
    display: block;
    margin-bottom: 14px;
    color: #6ea0ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-heading h2,
.project-kits-intro h2,
.why-intro h2,
.learning-cta h2,
.maker-hub-card h2 {
    color: #fff;
    font-size: clamp(2.4rem, 4.4vw, 3.6rem);
    font-weight: 750;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.section-heading p,
.project-kits-intro p,
.why-intro p,
.learning-cta p,
.maker-hub-card p {
    max-width: 520px;
    margin-top: 14px;
    color: #8b97ab;
    font-size: 15px;
    line-height: 1.7;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4d8dff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.section-link:hover {
    color: #7aa8ff;
}


/* Feature strip */

.feature-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(100% - 76px, var(--container-width));
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.feature-strip__item {
    display: flex;
    gap: 14px;
    padding: 28px 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.feature-strip__item:last-child {
    border-right: 0;
}

.feature-strip__icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    color: #8eb4ff;
}

.feature-strip__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-strip h3 {
    margin-bottom: 4px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.feature-strip p {
    color: #8090a6;
    font-size: 13px;
    line-height: 1.5;
}


/* Kits */

.project-kits-section__container {
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
    gap: 48px;
    align-items: center;
}

.kit-showcase {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 16px;
}

.kit-showcase.is-empty {
    grid-template-columns: 1fr;
}

.home-section-empty {
    margin-top: 8px;
    padding: 42px 28px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    text-align: center;
    color: #8b97ab;
    background: rgba(12, 17, 24, 0.55);
}

.home-section-empty h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 22px;
    font-weight: 750;
    letter-spacing: -0.03em;
}

.home-section-empty p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.home-section-empty--kits {
    min-height: 280px;
    display: grid;
    place-content: center;
}

.home-card-skeleton {
    min-height: 220px;
    background: linear-gradient(90deg, #121821 0%, #1a2230 50%, #121821 100%);
    background-size: 200% 100%;
    animation: homeSkeleton 1.2s ease infinite;
    pointer-events: none;
}

.product-card--skeleton .product-card__media,
.shop-skeleton-line {
    background: linear-gradient(90deg, #121821 0%, #1a2230 50%, #121821 100%);
    background-size: 200% 100%;
    animation: homeSkeleton 1.2s ease infinite;
}

.shop-skeleton-line {
    height: 12px;
    margin-top: 12px;
    border-radius: 999px;
}

.shop-skeleton-line--title {
    width: 70%;
    height: 18px;
}

@keyframes homeSkeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}


/* Learning CTA */

.learning-cta {
    padding: 28px 0 8px;
}

.learning-cta .section-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 42px 48px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 28px;
    background:
        radial-gradient(circle at 90% 20%, rgba(40, 120, 255, 0.16), transparent 32%),
        linear-gradient(180deg, #0c121c, #080b11);
}

.learning-cta__actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}


/* Why */

.why-section__container {
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
    gap: 48px;
    align-items: center;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    background: rgba(13, 18, 26, 0.7);
}

.why-card {
    padding: 28px 26px 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.why-card:nth-child(2n) {
    border-right: 0;
}

.why-card:nth-child(n + 3) {
    border-bottom: 0;
}

.why-card__icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 16px;
    color: #5b8dff;
}

.why-card__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.why-card h3 {
    margin-bottom: 8px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.why-card p {
    color: #8593a8;
    font-size: 14px;
    line-height: 1.6;
}


/* Maker hub */

.maker-hub-section {
    padding: 20px 0 96px;
}

.maker-hub-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 48px 52px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    background:
        radial-gradient(circle at 88% 20%, rgba(40, 120, 255, 0.18), transparent 36%),
        linear-gradient(180deg, #101826, #0b111a);
}

.maker-hub-card__actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}


/* Page loader */

.page-loader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.page-loader__logo {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(180deg, #3b86ff, #1768ed);
    color: #fff;
    font-weight: 800;
}

.page-loader__line {
    width: 96px;
    height: 3px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
}

.page-loader__line span {
    display: block;
    width: 40%;
    height: 100%;
    background: var(--color-primary);
    animation: loader-slide 900ms ease infinite;
}

@keyframes loader-slide {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(280%); }
}

.toast-container {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (max-width: 1100px) {
    .section-container,
    .feature-strip {
        width: min(100% - 40px, var(--container-width));
    }

    .feature-strip,
    .project-kits-section__container,
    .why-section__container,
    .learning-cta .section-container,
    .maker-hub-card {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .feature-strip {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .kit-showcase {
        grid-template-columns: 1fr;
    }

    .section-heading-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .feature-strip,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .learning-cta__actions,
    .maker-hub-card__actions {
        flex-direction: column;
    }

    .maker-hub-card,
    .learning-cta .section-container {
        padding: 28px 22px;
    }
}

.brand__logo-image {
    height: 80px;
    width: 100%;
    display: block;
    object-fit: contain;
}