/*
=========================================================
MistroAstro Learning Platform

File:
home.css

Purpose:
Provides all page-specific styling for the MistroAstro
homepage.

This stylesheet supports the observatory-centered learning
experience introduced in index.php.

Author:
Mitch Dimler

Version:
1.1

Last Updated:
2026-11-18
=========================================================
*/


/* =====================================================
   HOME PAGE VARIABLES
===================================================== */

.home-page {
    --home-bg-primary: #020617;
    --home-bg-secondary: #071426;
    --home-bg-panel: rgba(7, 20, 38, 0.92);
    --home-bg-panel-soft: rgba(10, 28, 50, 0.78);

    --home-text-primary: #ffffff;
    --home-text-secondary: #cbd5e1;
    --home-text-muted: #94a3b8;

    --home-gold: #c8a96b;
    --home-gold-light: #e2c991;
    --home-blue: #66ccff;
    --home-blue-soft: rgba(102, 204, 255, 0.18);

    --home-border: rgba(102, 204, 255, 0.26);
    --home-border-strong: rgba(102, 204, 255, 0.45);

    --home-shadow:
        0 24px 70px rgba(0, 0, 0, 0.42);

    --home-shadow-soft:
        0 16px 40px rgba(0, 0, 0, 0.28);

    --home-radius-small: 10px;
    --home-radius-medium: 18px;
    --home-radius-large: 28px;

    background:
        radial-gradient(
            circle at top,
            rgba(31, 78, 121, 0.18),
            transparent 32%
        ),
        var(--home-bg-primary);

    color: var(--home-text-primary);
    overflow: hidden;
}


/* =====================================================
   SHARED HOME PAGE ELEMENTS
===================================================== */

.home-page *,
.home-page *::before,
.home-page *::after {
    box-sizing: border-box;
}

.home-section {
    position: relative;
    padding: 110px 24px;
}

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

.section-heading {
    max-width: 790px;
    margin: 0 auto 58px;
    text-align: center;
}

.section-eyebrow,
.home-eyebrow {
    margin: 0 0 16px;
    color: var(--home-gold-light);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-heading h2,
.destination-content h2,
.progress-content h2,
.journey-cta-content h2 {
    margin: 0;
    color: var(--home-text-primary);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.section-heading > p:last-child,
.destination-content > p,
.progress-content > p,
.journey-cta-content > p {
    color: var(--home-text-secondary);
    font-size: 1.05rem;
    line-height: 1.85;
}

.section-heading > p:last-child {
    max-width: 720px;
    margin: 22px auto 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 28px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        color 0.25s ease;
}

.button:hover {
    transform: translateY(-3px);
}

.button-primary {
    background:
        linear-gradient(
            135deg,
            var(--home-gold-light),
            var(--home-gold)
        );

    color: #08111f;
    box-shadow:
        0 12px 28px rgba(200, 169, 107, 0.26);
}

.button-primary:hover {
    box-shadow:
        0 16px 36px rgba(200, 169, 107, 0.38);
}

.button-secondary {
    border-color: var(--home-border-strong);
    background: rgba(5, 16, 31, 0.58);
    color: var(--home-text-primary);
    backdrop-filter: blur(10px);
}

.button-secondary:hover {
    border-color: var(--home-blue);
    background: rgba(15, 40, 67, 0.78);
    box-shadow:
        0 12px 28px rgba(102, 204, 255, 0.14);
}


/* =====================================================
   HERO SECTION
===================================================== */

.home-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 82px);
    padding: 72px 24px 140px;
    isolation: isolate;

    background-image:
        url("../images/observatories/mountain-observatory.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;

    background:
        linear-gradient(
            90deg,
            rgba(2, 6, 23, 0.94) 0%,
            rgba(2, 6, 23, 0.77) 42%,
            rgba(2, 6, 23, 0.25) 75%,
            rgba(2, 6, 23, 0.12) 100%
        );
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;

    background:
        linear-gradient(
            180deg,
            rgba(2, 6, 23, 0.15) 0%,
            rgba(2, 6, 23, 0.05) 55%,
            var(--home-bg-primary) 100%
        );
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        radial-gradient(
            circle at 72% 36%,
            rgba(102, 204, 255, 0.10),
            transparent 26%
        ),
        radial-gradient(
            circle at 20% 20%,
            rgba(200, 169, 107, 0.07),
            transparent 24%
        );
}

.home-hero-content {
    width: min(1180px, 100%);
    margin: 0 auto;
    transform: translateY(-24px);
}

.home-hero-content > * {
    max-width: 720px;
}

.home-hero-content h1 {
    margin: 0;
    color: #ffffff;

    font-size: clamp(2.75rem, 4.5vw, 4.75rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;

    text-shadow:
        0 10px 34px rgba(0, 0, 0, 0.5);
}

.home-hero-description {
    margin: 28px 0 0;
    color: #dbe7f2;
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    line-height: 1.75;

    text-shadow:
        0 4px 14px rgba(0, 0, 0, 0.48);
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 36px;
}

.home-scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 32px);
    padding: 10px 20px;
    border: 1px solid rgba(102, 204, 255, 0.65);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.88);
    text-align: center;
    text-decoration: none;
    z-index: 1;
}

.home-scroll-indicator:hover {
    border-color: var(--home-blue);
    background: #0b2238;
}

.home-scroll-indicator:focus-visible {
    outline: 3px solid var(--home-blue);
    outline-offset: 4px;
}

.home-scroll-hint {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

#home-beginners {
    scroll-margin-top: 120px;
}

.scroll-arrow {
    color: var(--home-gold-light);
    font-size: 1.3rem;
    animation: homeScrollArrow 1.8s ease-in-out infinite;
}

@keyframes homeScrollArrow {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.55;
    }

    50% {
        transform: translateY(8px);
        opacity: 1;
    }
}


/* =====================================================
   DESTINATION SECTION
===================================================== */

.destination-section {
    background:
        linear-gradient(
            180deg,
            var(--home-bg-primary),
            var(--home-bg-secondary)
        );
}

.destination-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 72px;
}

.destination-content h2 {
    margin-bottom: 26px;
}

.destination-content > p {
    margin: 0 0 20px;
}

.destination-highlight {
    display: flex;
    gap: 18px;
    margin-top: 32px;
    padding: 22px;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-medium);

    background:
        linear-gradient(
            135deg,
            rgba(102, 204, 255, 0.08),
            rgba(200, 169, 107, 0.06)
        );
}

.destination-highlight-icon {
    flex: 0 0 auto;
    color: var(--home-gold-light);
    font-size: 1.4rem;
}

.destination-highlight p {
    margin: 0;
    color: var(--home-text-secondary);
    line-height: 1.75;
}

.destination-image-frame {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    border: 1px solid var(--home-border-strong);
    border-radius: var(--home-radius-large);
    box-shadow: var(--home-shadow);
}

.destination-image-frame::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 42%,
            rgba(2, 6, 23, 0.92) 100%
        );
}

.destination-image-frame img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.destination-image-frame:hover img {
    transform: scale(1.045);
}

.destination-image-label {
    position: absolute;
    right: 30px;
    bottom: 28px;
    left: 30px;
    z-index: 1;
}

.destination-image-label span {
    display: block;
    margin-bottom: 8px;
    color: var(--home-gold-light);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.destination-image-label strong {
    color: #ffffff;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
}


/* =====================================================
   LEARNING JOURNEY SECTION
===================================================== */

.learning-journey-section {
    background:
        radial-gradient(
            circle at center top,
            rgba(102, 204, 255, 0.08),
            transparent 36%
        ),
        #04101f;
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.journey-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 355px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-medium);

    background:
        linear-gradient(
            145deg,
            rgba(12, 32, 57, 0.94),
            rgba(5, 16, 31, 0.96)
        );

    box-shadow: var(--home-shadow-soft);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.journey-card::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    top: -70px;
    right: -60px;
    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(102, 204, 255, 0.16),
            transparent 70%
        );
}

.journey-card:hover {
    transform: translateY(-8px);
    border-color: var(--home-border-strong);
    box-shadow:
        0 24px 52px rgba(0, 0, 0, 0.34),
        0 0 28px rgba(102, 204, 255, 0.08);
}

.journey-card-featured {
    border-color: rgba(200, 169, 107, 0.6);

    background:
        linear-gradient(
            145deg,
            rgba(45, 38, 24, 0.95),
            rgba(6, 17, 31, 0.98)
        );
}

.journey-number {
    color: rgba(255, 255, 255, 0.18);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.journey-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 26px 0 22px;
    border: 1px solid var(--home-border-strong);
    border-radius: 16px;
    color: var(--home-blue);
    font-size: 1.35rem;

    background:
        rgba(102, 204, 255, 0.07);
}

.journey-card-featured .journey-icon {
    border-color: rgba(200, 169, 107, 0.5);
    color: var(--home-gold-light);
    background: rgba(200, 169, 107, 0.08);
}

.journey-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.32rem;
    line-height: 1.3;
}

.journey-card p {
    margin: 18px 0 24px;
    color: var(--home-text-secondary);
    line-height: 1.75;
}

.journey-result {
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    color: var(--home-gold-light);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}


/* =====================================================
   OBSERVATORY PROGRESS SECTION
===================================================== */

.progress-section {
    background:
        linear-gradient(
            180deg,
            #04101f,
            var(--home-bg-primary)
        );
}

.progress-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 72px;
}

.progress-observatory-card {
    padding: 34px;
    border: 1px solid var(--home-border-strong);
    border-radius: var(--home-radius-large);

    background:
        linear-gradient(
            145deg,
            rgba(10, 27, 49, 0.96),
            rgba(4, 13, 26, 0.98)
        );

    box-shadow: var(--home-shadow);
}

.progress-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.progress-label {
    margin: 0 0 8px;
    color: var(--home-gold-light);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.progress-card-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.progress-percentage {
    color: var(--home-blue);
    font-size: 2rem;
    font-weight: 800;
}

.progress-bar {
    width: 100%;
    height: 10px;
    margin: 30px 0 34px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.progress-bar-fill {
    height: 100%;
    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--home-blue),
            var(--home-gold-light)
        );
}

.progress-milestones {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.progress-milestone {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.milestone-marker {
    display: block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: #09182a;
}

.milestone-marker.active {
    border-color: var(--home-gold-light);
    background: var(--home-gold-light);
    box-shadow:
        0 0 0 5px rgba(200, 169, 107, 0.12);
}

.progress-milestone strong {
    display: block;
    color: #ffffff;
    font-size: 0.91rem;
}

.progress-milestone span:last-child {
    display: block;
    margin-top: 4px;
    color: var(--home-text-muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.progress-content h2 {
    margin-bottom: 26px;
}

.progress-content > p {
    margin: 0 0 20px;
}

.progress-benefits {
    display: grid;
    gap: 14px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.progress-benefits li {
    position: relative;
    padding-left: 28px;
    color: var(--home-text-secondary);
    line-height: 1.65;
}

.progress-benefits li::before {
    content: "✦";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--home-gold-light);
}


/* =====================================================
   PLATFORM TOOLS SECTION
===================================================== */

.tools-section {
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(200, 169, 107, 0.07),
            transparent 34%
        ),
        var(--home-bg-secondary);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.tool-card {
    display: flex;
    flex-direction: column;
    min-height: 330px;
    padding: 32px;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-medium);

    background:
        linear-gradient(
            145deg,
            rgba(11, 30, 53, 0.94),
            rgba(5, 16, 31, 0.98)
        );

    box-shadow: var(--home-shadow-soft);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-8px);
    border-color: var(--home-border-strong);
    box-shadow:
        0 24px 52px rgba(0, 0, 0, 0.34);
}

.tool-card-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 24px;
    border: 1px solid var(--home-border-strong);
    border-radius: 18px;
    color: var(--home-blue);
    font-size: 1.4rem;
    background: rgba(102, 204, 255, 0.07);
}

.tool-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.4rem;
}

.tool-card p {
    margin: 18px 0 28px;
    color: var(--home-text-secondary);
    line-height: 1.75;
}

.tool-card-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    color: var(--home-gold-light);
    font-weight: 700;
    text-decoration: none;
}

.tool-card-link span {
    transition: transform 0.25s ease;
}

.tool-card-link:hover span {
    transform: translateX(6px);
}


/* =====================================================
   OBSERVATORY ENVIRONMENTS SECTION
===================================================== */

.environments-section {
    background:
        linear-gradient(
            180deg,
            var(--home-bg-secondary),
            #030a16
        );
}

.environment-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 22px;
}

.environment-card {
    position: relative;
    grid-column: span 2;
    min-height: 370px;
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-medium);
    box-shadow: var(--home-shadow-soft);
}

.environment-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.environment-card:nth-child(5) {
    grid-column: 4 / span 2;
}

.environment-card::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(2, 6, 23, 0.04) 20%,
            rgba(2, 6, 23, 0.93) 100%
        );
}

.environment-card img {
    width: 100%;
    height: 100%;
    min-height: 370px;
    object-fit: cover;

    transition:
        transform 0.7s ease,
        filter 0.7s ease;
}

.environment-card:hover img {
    transform: scale(1.06);
    filter: brightness(1.06);
}

.environment-card-overlay {
    position: absolute;
    right: 26px;
    bottom: 25px;
    left: 26px;
    z-index: 1;
}

.environment-card-overlay span {
    display: block;
    margin-bottom: 8px;
    color: var(--home-gold-light);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.environment-card-overlay h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.35rem;
}


/* =====================================================
   JOURNEY CALL TO ACTION
===================================================== */

.journey-cta-section {
    padding-top: 80px;
    padding-bottom: 120px;

    background:
        linear-gradient(
            180deg,
            #030a16,
            var(--home-bg-primary)
        );
}

.journey-cta {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 52px;
    overflow: hidden;
    padding: 52px;
    border: 1px solid rgba(200, 169, 107, 0.46);
    border-radius: var(--home-radius-large);

    background:
        linear-gradient(
            135deg,
            rgba(43, 37, 25, 0.94),
            rgba(8, 23, 42, 0.96)
        );

    box-shadow: var(--home-shadow);
}

.journey-cta::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -150px;
    top: -180px;
    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(200, 169, 107, 0.15),
            transparent 70%
        );
}

.journey-cta-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.journey-cta-content h2 {
    margin-bottom: 22px;
}

.journey-cta-content > p {
    margin: 0;
}

.journey-cta-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 230px;
}


/* =====================================================
   RESPONSIVE DESIGN
===================================================== */

@media (max-width: 1050px) {

    .destination-layout,
    .progress-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .destination-preview {
        order: -1;
    }

    .journey-grid,
    .tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .environment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .environment-card,
    .environment-card:nth-child(4),
    .environment-card:nth-child(5) {
        grid-column: auto;
    }

    .environment-card:last-child {
        grid-column: 1 / -1;
    }

    .journey-cta {
        grid-template-columns: 1fr;
    }

    .journey-cta-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}


@media (max-width: 760px) {
    .home-hero-brand img {
        width: clamp(210px, 68vw, 330px);
    }
    .home-section {
        padding: 82px 18px;
    }

    .home-hero {
        min-height: calc(100vh - 70px);
        padding: 100px 18px 92px;
        background-position: 62% center;
    }

    .home-hero::before {
        background:
            linear-gradient(
                90deg,
                rgba(2, 6, 23, 0.94) 0%,
                rgba(2, 6, 23, 0.80) 65%,
                rgba(2, 6, 23, 0.5) 100%
            );
    }

    .home-hero-content h1 {
        font-size: clamp(2.8rem, 13vw, 4.7rem);
    }

    .home-hero-description {
        font-size: 1rem;
    }

    .home-hero-actions {
        align-items: stretch;
        flex-direction: column;
        max-width: 330px;
    }

    .button {
        width: 100%;
    }

    .section-heading {
        margin-bottom: 42px;
    }

    .journey-grid,
    .tools-grid,
    .environment-grid {
        grid-template-columns: 1fr;
    }

    .environment-card:last-child {
        grid-column: auto;
    }

    .journey-card {
        min-height: auto;
    }

    .destination-image-frame,
    .destination-image-frame img {
        min-height: 370px;
    }

    .progress-observatory-card {
        padding: 26px 22px;
    }

    .progress-card-header {
        align-items: flex-start;
    }

    .progress-percentage {
        font-size: 1.6rem;
    }

    .progress-milestones {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
    }

    .journey-cta {
        padding: 34px 24px;
    }

    .journey-cta-actions {
        flex-direction: column;
        min-width: 0;
    }
}


@media (max-width: 480px) {

    .home-scroll-indicator {
        display: flex;
        font-size: 0.85rem;
    }

    .home-hero {
        min-height: 720px;
    }

    .home-hero-content h1 {
        line-height: 1;
    }

    .destination-highlight {
        align-items: flex-start;
        padding: 18px;
    }

    .destination-image-frame,
    .destination-image-frame img {
        min-height: 320px;
    }

    .destination-image-label {
        right: 20px;
        bottom: 20px;
        left: 20px;
    }

    .journey-card,
    .tool-card {
        padding: 25px;
    }

    .progress-milestones {
        grid-template-columns: 1fr;
    }

    .environment-card,
    .environment-card img {
        min-height: 320px;
    }

    .journey-cta {
        padding: 30px 20px;
    }
}


/* =====================================================
   REDUCED MOTION ACCESSIBILITY
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .home-page *,
    .home-page *::before,
    .home-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =====================================================
   Homepage — Reduce Section Spacing
===================================================== */

.home-page .tools-section {
    padding-bottom: 40px;
}

.home-page .environments-section {
    padding-top: 40px;
}

/* =====================================================
   BUILT FOR BEGINNERS — Homepage introduction
===================================================== */

.home-beginners-section {
    background: linear-gradient(180deg, #020617 0%, #08192c 100%);
    text-align: center;
}

.home-beginners-content {
    max-width: 880px;
}

.home-beginners-content h2 {
    margin: 0 0 28px;
    color: var(--home-blue);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.home-beginners-content h3 {
    margin: 30px 0 24px;
    color: #ffffff;
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    line-height: 1.3;
}

.home-beginners-content > p:not(.section-eyebrow) {
    max-width: 760px;
    margin: 0 auto 20px;
    color: var(--home-text-secondary);
    font-size: 1.08rem;
    line-height: 1.8;
}

.home-beginners-content .home-beginners-question {
    color: #e7eef7;
    font-size: 1.18rem;
}

.home-beginners-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 46px;
    padding-top: 30px;
    border-top: 1px solid var(--home-border);
}

.home-beginners-benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 0.95rem;
}

.home-beginners-benefit span {
    color: var(--home-gold-light);
    font-size: 1.7rem;
}

@media (max-width: 760px) {
    .home-beginners-benefits {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Section continuation prompts — 2026-11-18 */
.home-section-continue {
    display: flex;
    justify-content: center;
    margin: 36px 24px 0;
}
.home-section-scroll-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 24px;
    border: 1px solid rgba(102, 204, 255, 0.65);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.88);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}
.home-section-scroll-link:hover {
    background: #0b2238;
    border-color: var(--home-blue);
}
.home-section-scroll-link:focus-visible {
    outline: 3px solid var(--home-blue);
    outline-offset: 4px;
}
.home-page section[id], #home-continue {
    scroll-margin-top: 120px;
}
