/* =========================================================
   PROOFLEARN
   PREMIUM GALAXY THEME
   ========================================================= */


/* =========================================================
   COLOR SYSTEM
   ========================================================= */

:root {
    --deep-black: #020817;
    --deep-navy: #04132f;
    --navy: #071b42;
    --blue-space: #0b2454;

    --silver-bright: #edf2f8;
    --silver: #d8e1ed;
    --silver-muted: #93a5bd;

    --blue: #4e8cff;
    --blue-soft: #72a8ff;
    --cyan: #4bc8e8;

    --purple: #6850b8;

    --green: #35d399;
    --warning: #f2b65f;

    --border: rgba(215, 228, 245, 0.18);
    --border-strong: rgba(215, 228, 245, 0.30);

    --radius: 18px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;

    position: relative;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--silver);

    background:

        /* -------------------------------------------------
           PURPLE NEBULA — LEFT
           ------------------------------------------------- */
        radial-gradient(
            ellipse 38% 58% at -6% 48%,
            rgba(91, 52, 182, 0.48) 0%,
            rgba(67, 51, 145, 0.28) 30%,
            rgba(32, 52, 112, 0.12) 54%,
            transparent 76%
        ),

        /* -------------------------------------------------
           BLUE NEBULA — LEFT
           ------------------------------------------------- */
        radial-gradient(
            ellipse 45% 38% at 3% 76%,
            rgba(24, 92, 204, 0.38) 0%,
            rgba(22, 67, 153, 0.22) 38%,
            transparent 75%
        ),

        /* -------------------------------------------------
           PURPLE NEBULA — RIGHT
           ------------------------------------------------- */
        radial-gradient(
            ellipse 38% 58% at 106% 46%,
            rgba(91, 52, 182, 0.44) 0%,
            rgba(67, 51, 145, 0.26) 30%,
            rgba(32, 52, 112, 0.11) 54%,
            transparent 76%
        ),

        /* -------------------------------------------------
           BLUE NEBULA — RIGHT
           ------------------------------------------------- */
        radial-gradient(
            ellipse 45% 38% at 98% 78%,
            rgba(24, 92, 204, 0.36) 0%,
            rgba(22, 67, 153, 0.20) 38%,
            transparent 75%
        ),

        /* -------------------------------------------------
           SOFT CENTRAL BLUE AURA
           ------------------------------------------------- */
        radial-gradient(
            ellipse 80% 72% at 50% 42%,
            rgba(8, 39, 91, 0.42),
            transparent 72%
        ),

        /* -------------------------------------------------
           DEEP SPACE BASE
           ------------------------------------------------- */
        linear-gradient(
            180deg,
            #010713 0%,
            #031332 48%,
            #04132e 100%
        );

    background-attachment: fixed;
    background-size: cover;
}


/* =========================================================
   GALAXY ATMOSPHERE
   Very subtle blue/purple haze
   ========================================================= */

body::before {
    content: "";

    position: fixed;
    inset: 0;

    pointer-events: none;

    z-index: 0;

    background:

        /* LEFT BLUE VAPOR */
        radial-gradient(
            ellipse 28% 34% at 4% 35%,
            rgba(42, 103, 213, 0.18),
            transparent 70%
        ),

        /* LEFT PURPLE VAPOR */
        radial-gradient(
            ellipse 24% 40% at 1% 61%,
            rgba(106, 66, 190, 0.17),
            transparent 72%
        ),

        /* RIGHT BLUE VAPOR */
        radial-gradient(
            ellipse 28% 34% at 96% 38%,
            rgba(42, 103, 213, 0.18),
            transparent 70%
        ),

        /* RIGHT PURPLE VAPOR */
        radial-gradient(
            ellipse 24% 40% at 100% 62%,
            rgba(106, 66, 190, 0.17),
            transparent 72%
        );

    opacity: 1;
}



/* =========================================================
   CONTENT ABOVE GALAXY
   ========================================================= */

.nav,
main,
footer {
    position: relative;
    z-index: 3;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.nav {
    max-width: 1180px;

    margin: 0 auto;

    padding: 22px 28px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.brand {
    display: flex;

    align-items: center;

    gap: 10px;

    color: var(--silver-bright);

    font-weight: 800;

    letter-spacing: -0.03em;

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


.brand:hover {
    transform: translateY(-2px);

    filter:
        drop-shadow(
            0 0 16px rgba(220,230,245,0.24)
        );
}


.brand-mark {
    width: 32px;
    height: 32px;

    display: grid;

    place-items: center;

    border-radius: 10px;

    color: #0a2249;

    background:
        linear-gradient(
            145deg,
            #f4f7fb,
            #d3deec 54%,
            #a1c2ef
        );

    box-shadow:
        0 8px 28px rgba(90,145,225,0.28);
}


.day-pill,
.offline-badge {
    padding: 8px 12px;

    border-radius: 999px;

    border: 1px solid var(--border);

    background:
        rgba(2, 12, 31, 0.60);

    color: var(--silver);

    font-size: 11px;

    letter-spacing: 0.08em;

    backdrop-filter: blur(14px);
}


/* =========================================================
   MAIN
   ========================================================= */

main {
    max-width: 1180px;

    margin: 0 auto;

    padding: 40px 28px 80px;
}


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

.hero {
    max-width: 900px;

    margin: 6vh auto 0;

    text-align: center;
}


.eyebrow,
.ai-tag,
.step-label,
.mini-label,
.q-type {
    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.14em;
}


.eyebrow,
.ai-tag {
    color: var(--cyan);

    text-shadow:
        0 0 18px rgba(72,201,232,0.25);
}


h1 {
    margin: 18px 0 24px;

    font-size:
        clamp(48px, 8vw, 88px);

    line-height: 0.94;

    letter-spacing: -0.065em;

    color: var(--silver-bright);

    text-shadow:
        0 4px 30px rgba(0,0,0,0.38);
}


h1 span {
    color: var(--blue-soft);

    text-shadow:
        0 0 30px rgba(77,140,255,0.30);
}


h2 {
    margin: 8px 0 12px;

    font-size:
        clamp(30px, 4vw, 48px);

    line-height: 1.05;

    letter-spacing: -0.045em;

    color: var(--silver-bright);
}


h3 {
    color: var(--silver-bright);
}


p {
    color: var(--silver-muted);

    line-height: 1.7;
}


.hero > p {
    max-width: 680px;

    margin: 0 auto;

    font-size: 17px;
}


/* =========================================================
   PREMIUM GLASS
   ========================================================= */

.glass {
    border:
        1px solid rgba(218,229,244,0.20);

    background:
        linear-gradient(
            145deg,
            rgba(8, 34, 76, 0.72),
            rgba(2, 13, 34, 0.82)
        );

    backdrop-filter:
        blur(20px);

    -webkit-backdrop-filter:
        blur(20px);

    border-radius:
        var(--radius);

    box-shadow:
        0 28px 80px rgba(0,7,25,0.48),
        inset 0 1px 0 rgba(255,255,255,0.045);

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


.glass:hover {
    transform:
        translateY(-4px);

    border-color:
        rgba(220,230,245,0.34);

    box-shadow:
        0 34px 90px rgba(0,7,25,0.54),
        0 0 30px rgba(115,165,245,0.07),
        inset 0 1px 0 rgba(255,255,255,0.055);
}


/* =========================================================
   TOPIC CARD
   ========================================================= */

.topic-card {
    max-width: 760px;

    margin: 42px auto 0;

    padding: 24px;

    text-align: left;

    position: relative;

    overflow: hidden;

    border:
        1px solid rgba(218,229,244,0.22);

    border-radius:
        var(--radius);

    background:
        linear-gradient(
            145deg,
            rgba(8, 37, 82, 0.76),
            rgba(2, 15, 38, 0.84)
        );

    backdrop-filter:
        blur(20px);

    -webkit-backdrop-filter:
        blur(20px);

    box-shadow:
        0 28px 85px rgba(0,7,25,0.48),
        inset 0 1px 0 rgba(255,255,255,0.045);

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


.topic-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 12%;

    width: 76%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(220,230,245,0.48),
            rgba(102,157,240,0.42),
            transparent
        );

    opacity: 0.65;
}


.topic-card:hover {
    transform:
        translateY(-4px);

    border-color:
        rgba(220,230,245,0.34);

    box-shadow:
        0 34px 90px rgba(0,7,25,0.55),
        0 0 30px rgba(100,155,240,0.07);
}


.topic-card > label {
    display: block;

    color: var(--silver);

    font-size: 13px;

    margin-bottom: 10px;
}


.topic-row {
    display: flex;

    gap: 10px;
}


/* =========================================================
   INPUTS
   ========================================================= */

input,
textarea,
select {
    width: 100%;

    padding: 14px 16px;

    border:
        1px solid rgba(215,227,244,0.16);

    outline: none;

    border-radius: 14px;

    color: var(--silver-bright);

    background:
        rgba(2, 13, 34, 0.62);

    font: inherit;

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


select {
    cursor: pointer;
}


input::placeholder,
textarea::placeholder {
    color: #70839d;
}


input:hover,
textarea:hover,
select:hover {
    border-color:
        rgba(215,227,244,0.28);
}


input:focus,
textarea:focus,
select:focus {
    border-color:
        rgba(114,167,255,0.68);

    background:
        rgba(2,13,34,0.76);

    box-shadow:
        0 0 0 3px rgba(77,140,255,0.07),
        0 0 24px rgba(77,140,255,0.08);
}


textarea {
    min-height: 150px;

    resize: vertical;

    line-height: 1.6;
}


/* =========================================================
   BUTTONS
   ========================================================= */

button {
    border: 0;

    cursor: pointer;

    border-radius: 14px;

    padding: 13px 18px;

    font: inherit;

    font-size: 13px;

    font-weight: 800;

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


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


button:active {
    transform:
        translateY(0)
        scale(0.98);
}


button:focus-visible {
    outline:
        2px solid var(--cyan);

    outline-offset: 3px;
}


.primary {
    color: #f5f8fc;

    background:
        linear-gradient(
            135deg,
            #659dff,
            #3d7ee9
        );

    box-shadow:
        0 12px 35px rgba(47,111,228,0.25),
        inset 0 1px 0 rgba(255,255,255,0.14);
}


.primary:hover {
    box-shadow:
        0 17px 45px rgba(47,111,228,0.34),
        0 0 28px rgba(111,165,255,0.14);
}


.secondary {
    color: var(--silver-bright);

    background:
        rgba(215,227,244,0.045);

    border:
        1px solid var(--border);
}


.secondary:hover {
    border-color:
        rgba(215,227,244,0.35);

    background:
        rgba(215,227,244,0.08);

    box-shadow:
        0 0 22px rgba(215,227,244,0.07);
}


.wide {
    width: 100%;

    margin-top: 22px;
}


.demo-note {
    color: #718099;

    font-size: 11px;

    margin-top: 10px;
}


/* =========================================================
   SCREENS
   ========================================================= */

.hidden {
    display: none !important;
}


.screen {
    animation:
        screenEnter 0.4s ease both;
}


@keyframes screenEnter {

    from {
        opacity: 0;

        transform:
            translateY(10px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


.screen-head,
.proof-header {
    margin: 10px 0 28px;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;
}


/* =========================================================
   LESSON
   ========================================================= */

.lesson-grid,
.proof-grid,
.analysis-grid {
    display: grid;

    gap: 18px;
}


.lesson-grid {
    grid-template-columns:
        1.5fr 1fr;
}


.lesson-grid article,
.question,
.analysis-grid article {
    padding: 26px;
}


.lesson-main {
    min-height: 300px;
}


.lesson-main p {
    font-size: 20px;

    color: var(--silver);
}


#key-points {
    padding-left: 20px;

    color: var(--silver-muted);

    line-height: 2;
}


.lesson-grid article:first-child {
    position: relative;

    overflow: hidden;
}


.lesson-grid article:first-child::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(72,201,232,0.60),
            rgba(220,230,245,0.40),
            transparent
        );
}


/* =========================================================
   CONFIDENCE
   ========================================================= */

.center-card {
    max-width: 700px;

    margin: 50px auto;

    padding: 45px;

    text-align: center;
}


.lock-icon,
.repair-icon {
    font-size: 38px;

    color: var(--cyan);

    text-shadow:
        0 0 25px rgba(72,201,232,0.24);
}


.confidence-value {
    margin: 20px 0;

    font-size: 72px;

    font-weight: 900;

    letter-spacing: -0.06em;

    color: var(--silver-bright);
}


input[type="range"] {
    padding: 0;

    cursor: pointer;

    accent-color: var(--blue);

    background: transparent;
}


.range-labels {
    display: flex;

    justify-content: space-between;

    color: #7e8da4;

    font-size: 11px;
}


/* =========================================================
   PROOF
   ========================================================= */

.proof-grid {
    grid-template-columns:
        repeat(3, 1fr);
}


.question h3 {
    min-height: 52px;

    line-height: 1.35;
}


.q-type {
    margin-bottom: 12px;

    color: var(--cyan);
}


.offline-badge {
    color: var(--green);

    border-color:
        rgba(53,211,153,0.25);

    background:
        rgba(53,211,153,0.065);
}


/* =========================================================
   PROOF REPORT
   ========================================================= */

.result-hero {
    padding: 30px;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 18px;

    align-items: center;
}


.big-score {
    font-size: 82px;

    font-weight: 900;

    letter-spacing: -0.07em;

    color: var(--silver-bright);
}


.big-score small {
    font-size: 24px;

    color: var(--silver-muted);
}


.gap-box {
    border-left:
        1px solid rgba(242,182,95,0.28);

    padding-left: 30px;
}


.gap-score {
    margin-top: 8px;

    font-size: 42px;

    font-weight: 900;

    color: var(--warning);
}


/* =========================================================
   ANALYSIS
   ========================================================= */

.analysis-grid {
    grid-template-columns:
        1fr 1fr;

    margin-top: 18px;
}


.bar-row {
    margin: 18px 0;
}


.bar-top {
    display: flex;

    justify-content: space-between;

    margin-bottom: 7px;

    color: var(--silver);

    font-size: 13px;
}


.bar {
    height: 9px;

    overflow: hidden;

    border-radius: 999px;

    background:
        rgba(215,227,244,0.08);
}


.bar > span {
    display: block;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #4d8cff,
            #48c9e8
        );

    box-shadow:
        0 0 14px rgba(72,201,232,0.20);
}


#weakAreas {
    padding-left: 20px;

    color: var(--silver);

    line-height: 1.8;
}


#weakAreas li::marker {
    color: var(--warning);
}


/* =========================================================
   REPAIR
   ========================================================= */

.repair-preview {
    margin-top: 25px;

    padding: 16px;

    border:
        1px solid rgba(242,182,95,0.22);

    border-radius: 14px;

    background:
        rgba(242,182,95,0.065);

    color: var(--silver);
}


.repair-preview span {
    color: var(--warning);
}


/* =========================================================
   SUCCESS
   ========================================================= */

.success,
.repaired,
.final-success {
    border-color:
        rgba(53,211,153,0.30);

    box-shadow:
        0 0 42px rgba(53,211,153,0.07);
}


.success .repair-icon,
.repaired .repair-icon,
.final-success .repair-icon {
    color: var(--green);

    text-shadow:
        0 0 25px rgba(53,211,153,0.25);
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    max-width: 1180px;

    margin: 0 auto;

    padding: 24px 28px 40px;

    display: flex;

    justify-content: space-between;

    color: #718099;

    font-size: 12px;

    position: relative;

    z-index: 3;
}


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

@media (max-width: 820px) {

    main {
        padding-top: 20px;
    }

    .topic-row,
    .screen-head,
    .proof-header {
        flex-direction: column;

        align-items: stretch;
    }

    .lesson-grid,
    .proof-grid,
    .analysis-grid,
    .result-hero {
        grid-template-columns: 1fr;
    }

    .gap-box {
        border-left: 0;

        border-top:
            1px solid rgba(242,182,95,0.25);

        padding:
            20px 0 0;
    }

    .center-card {
        padding: 28px 20px;
    }

    .big-score {
        font-size: 64px;
    }

    footer {
        flex-direction: column;

        gap: 8px;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

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

    *,
    *::before,
    *::after {
        animation: none !important;

        transition: none !important;

        scroll-behavior: auto !important;
    }
}

/* =====================================================
   PROOFLEARN — GALAXY FIRST PAGE
   FULL-BLEED GALAXY BACKGROUND
===================================================== */

#start-screen {
    position: relative;

    /* FORCE FULL SCREEN WIDTH */
    width: 100%;
    max-width: none;
    min-width: 100%;

    /* FORCE FULL SCREEN HEIGHT */
    min-height: 100vh;

    /* Remove any old positioning constraints */
    margin: 0;
    box-sizing: border-box;

    overflow: hidden;

    /* GALAXY */
    background-image:
        linear-gradient(
            rgba(3, 10, 35, 0.12),
            rgba(3, 10, 35, 0.12)
        ),
        url("../images/galaxy-bg.png");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}
/* =====================================================
   FULL-BLEED START SCREEN FIX
===================================================== */

html,
body {
    width: 100%;
    min-width: 100%;
    margin: 0;
    padding: 0;
}

#start-screen {
    width: 100vw !important;
    max-width: none !important;
    min-width: 100vw !important;

    min-height: 100vh !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    box-sizing: border-box;

    background-image:
        linear-gradient(
            rgba(3, 10, 35, 0.12),
            rgba(3, 10, 35, 0.12)
        ),
        url("../images/galaxy-bg.png") !important;

    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}
/* =====================================================
   FULL-WIDTH GALAXY — BREAK OUT OF CENTERED CONTAINER
===================================================== */

#start-screen {
    position: relative;

    width: 100vw !important;
    max-width: none !important;
    min-width: 100vw !important;

    min-height: 100vh !important;

    /* Pull the section back to the viewport's left edge */
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    box-sizing: border-box;

    background-image:
        linear-gradient(
            rgba(3, 10, 35, 0.10),
            rgba(3, 10, 35, 0.10)
        ),
        url("../images/galaxy-bg.png") !important;

    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}
/* =====================================================
   PROOFLEARN — PRIMARY ACTION BUTTONS
   Premium Galaxy Blue
===================================================== */

button,
.btn,
.primary-btn,
.start-btn,
.continue-btn,
.submit-btn,
.prove-btn,
.action-btn {
    background: #5B8FF9 !important;
    color: #FFFFFF !important;

    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px;

    box-shadow:
        0 8px 24px rgba(91, 143, 249, 0.20);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

button:hover,
.btn:hover,
.primary-btn:hover,
.start-btn:hover,
.continue-btn:hover,
.submit-btn:hover,
.prove-btn:hover,
.action-btn:hover {
    background: #6FA0FF !important;

    transform: translateY(-2px);

    box-shadow:
        0 12px 30px rgba(91, 143, 249, 0.32);
}

button:active,
.btn:active,
.primary-btn:active,
.start-btn:active,
.continue-btn:active,
.submit-btn:active,
.prove-btn:active,
.action-btn:active {
    transform: translateY(0);
}