

/* ==========================================================================
   CODEBARREL IGNITE 1 — GLOBAL STYLESHEET
   ==========================================================================
   Purpose:
   Defines the visual design system, reusable UI styles, page sections,
   responsive layouts, animations, and accessibility preferences.

   Design direction:
   - Dark green and emerald accents for the brand identity.
   - Ivory backgrounds for readable content sections.
   - Monospace typography for technical labels and code-related UI.
   - Responsive layouts for desktop, tablet, and mobile devices.

   Maintenance note:
   Keep shared design tokens in :root so colors and fonts can be updated
   consistently across the entire website.
   ========================================================================== */

:root {
    --brand-dark: #040907;
    --brand-teal: #1FBF90;
    --brand-green: #2F9E5C;
    --bg-primary: #F9F9F6;
    --bg-card: #EFEDE4;
    --bg-dark: #15171A;
    --text-primary: #15171A;
    --text-secondary: #626A65;
    --text-on-dark: #F4F3EF;
    --border-color: #E2E5DE;
    --green-dark: #1E4B2F;
    --mono: "DM Mono", Consolas, monospace;
    --sans: "Manrope", "Segoe UI", Arial, sans-serif;
}


* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

    button:focus-visible, a:focus-visible {
        outline: 3px solid var(--brand-teal);
        outline-offset: 4px;
    }

::selection {
    background: #b6f1d7;
    color: var(--brand-dark);
}

.site-shell {
    overflow: hidden;
}

.site-header {
    height: 82px;
    padding: 0 clamp(22px, 7vw, 112px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--brand-dark);
    color: var(--text-on-dark);
    border-bottom: 1px solid rgba(255,255,255,.09);
    position: relative;
    z-index: 20;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -2px;
}

    .brand-mark span, .brand-name > span {
        color: var(--brand-teal);
    }

.brand-name {
    display: flex;
    flex-direction: column;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -.5px;
    line-height: 1.05;
}

    .brand-name small {
        font: 8px var(--mono);
        letter-spacing: 2px;
        color: #85938B;
        margin-top: 5px;
    }

.desktop-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 42px);
    font-size: 12px;
    color: #C0C9C3;
}

    .desktop-nav > a:not(.nav-cta):hover {
        color: var(--brand-teal);
    }

.nav-cta {
    padding: 12px 17px;
    color: var(--brand-teal);
    border: 1px solid rgba(31,191,144,.55);
    border-radius: 5px;
}

    .nav-cta span {
        padding-left: 8px;
    }

.mobile-menu-button, .mobile-nav {
    display: none;
}

.hero {
    min-height: 650px;
    background: var(--brand-dark);
    color: var(--text-on-dark);
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    padding: 78px clamp(22px, 10vw, 160px) 110px;
    isolation: isolate;
}

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .17;
    background-image: linear-gradient(rgba(125,164,144,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(125,164,144,.12) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(90deg, transparent, black 30%, black 85%, transparent);
}

.hero:after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    right: 4%;
    top: 8%;
    z-index: -1;
    background: radial-gradient(circle, rgba(31,191,144,.12), transparent 68%);
}

.hero-content {
    max-width: 620px;
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font: 10px var(--mono);
    letter-spacing: 1.8px;
    color: #5E6A63;
    text-transform: uppercase;
}

    .eyebrow.light {
        color: #9BAAA1;
    }

.eyebrow-line {
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--brand-green);
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-teal);
    box-shadow: 0 0 12px var(--brand-teal);
}

.program-tag {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 35px;
    color: #C1CBC4;
    font: 10px var(--mono);
    letter-spacing: 1.2px;
}

    .program-tag > span:first-child {
        color: var(--brand-teal);
    }

.tag-divider {
    width: 22px;
    height: 1px;
    background: #45524A;
}

.tag-level {
    border: 1px solid #34473D;
    border-radius: 3px;
    padding: 5px 7px;
    font-size: 9px;
}

h1, h2, h3, p {
    margin-top: 0;
}

.hero h1 {
    font-size: clamp(48px,6vw,82px);
    line-height: 1.02;
    letter-spacing: -5px;
    margin: 22px 0 22px;
    font-weight: 800;
}

.text-gradient {
    background: linear-gradient(95deg,#42D9A3,#8DE6B2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-green {
    color: var(--brand-green);
}

.hero-lead {
    max-width: 490px;
    color: #AAB6AF;
    font-size: 15px;
    line-height: 1.9;
}

.hero-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 24px 0 30px;
}

    .hero-pills span {
        border: 1px solid #2B3931;
        border-radius: 4px;
        color: #B8C5BD;
        font: 10px var(--mono);
        padding: 8px 10px;
    }

.hero-actions, .contact-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 14px 18px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 800;
    transition: transform .2s,background .2s,border-color .2s;
}

    .btn:hover {
        transform: translateY(-2px);
    }

.btn-primary {
    background: var(--brand-teal);
    color: #032017;
    border: 1px solid var(--brand-teal);
}

    .btn-primary:hover {
        background: #5cddb0;
    }

.btn-ghost {
    border: 1px solid #35423A;
    color: #D3DBD5;
}

    .btn-ghost:hover {
        border-color: var(--brand-teal);
    }

.btn-outline-light {
    border: 1px solid #5B6A60;
    color: #F4F3EF;
}

    .btn-outline-light:hover {
        border-color: var(--brand-teal);
    }

.hero-note {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #728078;
    font: 10px var(--mono);
    margin-top: 44px;
}

.note-line {
    width: 28px;
    height: 1px;
    background: var(--brand-green);
}

.hero-visual {
    min-height: 410px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(31,191,144,.18);
    border-radius: 50%;
    transform: rotate(-25deg);
}

.orbit-one {
    width: 390px;
    height: 290px;
}

.orbit-two {
    width: 470px;
    height: 350px;
    transform: rotate(35deg);
}

.code-window {
    width: min(100%,420px);
    background: #0C1510;
    border: 1px solid #304239;
    border-radius: 10px;
    box-shadow: 0 30px 90px #0008;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transform: rotate(1deg);
}

.window-bar {
    height: 43px;
    border-bottom: 1px solid #26352C;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    color: #7F9085;
    font: 9px var(--mono);
}

.window-dots {
    display: flex;
    gap: 5px;
}

    .window-dots i {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #46594C;
    }

        .window-dots i:first-child {
            background: #D77D69
        }

        .window-dots i:nth-child(2) {
            background: #D6B96D
        }

        .window-dots i:nth-child(3) {
            background: #5CB78C
        }

.window-status {
    color: var(--brand-teal);
    font-size: 8px;
}

.code-lines {
    padding: 23px 14px 17px;
    font: clamp(9px,1vw,11px) var(--mono);
    line-height: 2.35;
    color: #CAD4CD;
    white-space: nowrap;
}

.line-no {
    display: inline-block;
    width: 28px;
    color: #536459;
    user-select: none;
}

.code-purple {
    color: #C4A4F2;
}

.code-green {
    color: #73D7A8;
}

.code-yellow {
    color: #F1D17A;
}

.code-orange {
    color: #DFA078;
}

.code-success {
    border-top: 1px solid #26352C;
    margin-top: 15px;
    padding-top: 13px;
    color: #80B99B;
    font-size: 9px;
    white-space: normal;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #174A33;
    color: #80E5B4;
    margin-right: 6px;
}

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #111D16;
    border: 1px solid #30463A;
    border-radius: 7px;
    z-index: 2;
    box-shadow: 0 12px 35px #0005;
}

.float-card-top {
    top: 40px;
    right: -2px;
}

.float-card-bottom {
    bottom: 45px;
    left: -12px;
}

.float-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 5px;
    background: #193A2A;
    color: var(--brand-teal);
    font-size: 20px;
}

.float-card b, .float-card small {
    display: block;
}

.float-card b {
    font-size: 10px;
}

.float-card small {
    color: #8D9A91;
    font-size: 9px;
    margin-top: 4px;
}

.visual-caption {
    position: absolute;
    bottom: 0;
    color: #8B9A90;
    font: 9px var(--mono);
    letter-spacing: 2px;
}

    .visual-caption span {
        color: var(--brand-teal);
        padding: 0 7px;
    }

.hero-bottom {
    position: absolute;
    bottom: 27px;
    left: clamp(22px,10vw,160px);
    right: clamp(22px,10vw,160px);
    display: flex;
    align-items: center;
    gap: 14px;
    color: #6F7D73;
    font: 9px var(--mono);
    letter-spacing: 1px;
}

.scroll-line {
    width: 60px;
    height: 1px;
    background: #35443A;
}

.hero-bottom span:last-child {
    margin-left: auto;
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    padding: 22px clamp(22px,10vw,160px);
    border-bottom: 1px solid var(--border-color);
    background: #F3F3ED;
}

    .trust-strip > div {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        color: #49544D;
        font-size: 11px;
        border-right: 1px solid #DDE0D8;
    }

        .trust-strip > div:last-child {
            border: 0
        }

.strip-icon {
    color: var(--brand-green);
    font-size: 19px;
}

.section {
    padding: 110px clamp(22px,10vw,160px);
}

.section-heading {
    max-width: 700px;
    margin-bottom: 48px;
}

    .section-heading h2, .details-left h2, .parent-content h2, .contact-content h2 {
        font-size: clamp(36px,4.3vw,58px);
        line-height: 1.12;
        letter-spacing: -2.8px;
        margin: 23px 0 17px;
        font-weight: 800;
    }

.section-intro {
    max-width: 560px;
    color: #68716B;
    font-size: 14px;
    line-height: 1.9;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 14px;
}

.feature-card {
    padding: 27px 25px 25px;
    min-height: 260px;
    border: 1px solid #DFE3DA;
    border-radius: 7px;
    background: #FDFDF9;
    display: flex;
    flex-direction: column;
    transition: transform .2s,border-color .2s;
}

    .feature-card:hover {
        transform: translateY(-4px);
        border-color: #8CCEB0;
    }

    .feature-card.featured {
        background: #E8F3E9;
        border-color: #C7E3D0;
    }

.feature-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    background: #E5F3E8;
    color: var(--brand-green);
    border-radius: 7px;
    font-size: 23px;
}

.featured .feature-icon {
    background: #D1EAD9
}

.feature-number {
    font: 11px var(--mono);
    color: #A3ABA3;
}

.feature-card h3 {
    font-size: 20px;
    letter-spacing: -.6px;
    margin: 28px 0 10px;
}

.feature-card p {
    color: #66716A;
    font-size: 12px;
    line-height: 1.85;
    margin-bottom: 22px;
}

.feature-link {
    margin-top: auto;
    font: 9px var(--mono);
    letter-spacing: .7px;
    color: #427A55;
    display: flex;
    justify-content: space-between;
}

.curiosity-banner {
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 19px;
    background: #EDEFE7;
    border-radius: 7px;
    padding: 22px 25px;
}

.curiosity-symbol {
    display: grid;
    place-items: center;
    flex: 0 0 45px;
    height: 45px;
    background: var(--brand-dark);
    color: white;
    border-radius: 6px;
    font-weight: 800;
    font-size: 16px;
}

    .curiosity-symbol span {
        color: var(--brand-teal)
    }

.curiosity-banner strong {
    font-size: 13px;
}

.curiosity-banner p {
    color: #677068;
    font-size: 11px;
    margin: 5px 0 0;
    line-height: 1.6;
}

.text-link {
    margin-left: auto;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 800;
    color: #247D50;
}

    .text-link span {
        padding-left: 8px
    }

.curriculum-section {
    background: var(--brand-dark);
    color: var(--text-on-dark);
    position: relative;
}

    .curriculum-section:before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 50%;
        height: 100%;
        opacity: .12;
        background-image: radial-gradient(#76B894 .7px,transparent .7px);
        background-size: 18px 18px;
        mask-image: linear-gradient(90deg,transparent,black);
        pointer-events: none;
    }

.curriculum-heading {
    position: relative;
}

    .curriculum-heading h2 {
        font-size: clamp(42px,5vw,66px);
    }

    .curriculum-heading .section-intro {
        color: #A2AFA6;
    }

.timeline {
    position: relative;
}

    .timeline:before {
        content: "";
        position: absolute;
        left: 22px;
        top: 25px;
        bottom: 50px;
        width: 1px;
        background: #304237;
    }

.phase {
    display: grid;
    grid-template-columns: 46px minmax(0,1fr) 160px;
    gap: 22px;
    position: relative;
    padding: 0 0 47px;
    margin-bottom: 42px;
    border-bottom: 1px solid #26362C;
}

    .phase:last-child {
        margin-bottom: 0;
    }

.phase-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 1;
}

    .phase-marker span {
        width: 45px;
        height: 45px;
        display: grid;
        place-items: center;
        border: 1px solid #3E5C49;
        border-radius: 50%;
        background: var(--brand-dark);
        color: var(--brand-teal);
        font: 12px var(--mono);
    }

    .phase-marker i {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--brand-teal);
        box-shadow: 0 0 12px #1FBF9066;
    }

.phase-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font: 9px var(--mono);
    letter-spacing: 1.2px;
    color: #92A198;
}

.phase-label {
    border: 1px solid #34443A;
    border-radius: 3px;
    padding: 5px 7px;
    color: #A5C8B1;
}

.phase-content h3 {
    font-size: 36px;
    letter-spacing: -1.5px;
    margin: 18px 0 12px;
}

    .phase-content h3 span {
        color: var(--brand-teal)
    }

.phase-content p {
    color: #A5B0A8;
    max-width: 650px;
    font-size: 12px;
    line-height: 1.9;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 20px;
}

    .tech-tags span {
        padding: 7px 9px;
        border: 1px solid #2D4034;
        background: #0C1710;
        border-radius: 4px;
        color: #B4C4B9;
        font: 9px var(--mono);
    }

.phase-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    color: #75867A;
    font: 8px var(--mono);
    letter-spacing: 1px;
    text-align: right;
}

.phase-big-number {
    font-size: 65px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -4px;
    color: #19291F;
}

.journey-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(9px,2vw,28px);
    margin-top: 55px;
    color: #A8B5AC;
    font: 10px var(--mono);
    letter-spacing: 1.2px;
}

    .journey-line b {
        color: var(--brand-teal);
        font-size: 16px;
    }

.journey-highlight {
    color: var(--brand-teal);
}

.details-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
    background: #F0F1EA;
}

.details-left > p {
    color: #66716A;
    font-size: 13px;
    line-height: 1.95;
    max-width: 480px;
}

.level-card {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 35px;
    padding: 18px;
    border: 1px solid #D8DED3;
    background: #F9F9F6;
    border-radius: 7px;
}

.level-badge {
    display: grid;
    place-items: center;
    width: 47px;
    height: 47px;
    flex: 0 0 47px;
    border-radius: 6px;
    background: var(--brand-dark);
    color: var(--brand-teal);
    font-weight: 800;
}

.level-card small, .level-card strong, .level-card p {
    display: block;
}

.level-card small {
    color: #79847B;
    font: 8px var(--mono);
    letter-spacing: 1px;
}

.level-card strong {
    font-size: 15px;
    margin: 7px 0;
}

    .level-card strong span {
        font-size: 11px;
        color: #69736C;
        font-weight: 500;
    }

.level-card p {
    font-size: 10px;
    color: #6F7971;
    margin: 0;
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.stat-card {
    min-height: 180px;
    padding: 23px;
    border: 1px solid #DFE2D8;
    background: #FAFAF6;
    border-radius: 7px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-icon {
    color: var(--brand-green);
    font-size: 22px;
    margin-bottom: 20px;
}

.stat-card strong {
    font-size: 29px;
    line-height: 1.2;
    letter-spacing: -1px;
}

    .stat-card strong small {
        font-size: 14px;
        letter-spacing: 0;
        font-weight: 600;
    }

.stat-card > span:last-child {
    margin-top: auto;
    padding-top: 18px;
    font: 9px var(--mono);
    letter-spacing: 1px;
    color: #778179;
}

.stat-second-line {
    font-size: 20px !important;
}

.stat-green {
    background: #E2F2E5;
    border-color: #CBE5D1;
}

.outcomes-section {
    background: var(--bg-primary);
}

.outcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.outcome-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    padding: 23px;
    border: 1px solid #E1E4DC;
    background: #FCFCF8;
    border-radius: 7px;
    min-height: 145px;
    transition: border-color .2s,transform .2s;
}

    .outcome-card:hover {
        border-color: #8CCEB0;
        transform: translateY(-2px)
    }

.outcome-icon {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    height: 40px;
    background: #E6F3E8;
    border-radius: 6px;
    color: var(--brand-green);
    font-size: 20px;
}

.outcome-card h3 {
    font-size: 14px;
    margin: 2px 0 8px;
}

.outcome-card p {
    font-size: 11px;
    line-height: 1.8;
    color: #69736C;
    margin: 0;
    max-width: 330px;
}

.outcome-arrow {
    margin-left: auto;
    color: #3B9C66;
    font-size: 16px;
}

.parent-section {
    background: #0B1710;
    color: var(--text-on-dark);
    padding: 85px clamp(22px,10vw,160px);
    display: grid;
    grid-template-columns: 100px 1fr 170px;
    gap: 30px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.parent-mark {
    color: #1B3C29;
    font-size: 160px;
    line-height: .8;
    font-weight: 800;
    align-self: start;
}

.parent-content {
    max-width: 680px;
    position: relative;
    z-index: 1;
}

    .parent-content h2 {
        margin: 20px 0 18px;
    }

    .parent-content p {
        color: #A7B5AB;
        font-size: 13px;
        line-height: 1.95;
        max-width: 670px;
        margin: 0;
    }

.parent-decoration {
    display: flex;
    flex-direction: column;
    gap: 9px;
    align-items: flex-end;
    font: 9px var(--mono);
    letter-spacing: 2px;
    color: #567362;
}

    .parent-decoration span:nth-child(2) {
        color: #72C69A
    }

.contact-section {
    background: var(--brand-dark);
    color: var(--text-on-dark);
    padding: 100px clamp(22px,10vw,160px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden;
}

.contact-glow {
    position: absolute;
    right: 10%;
    top: -130px;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle,rgba(31,191,144,.15),transparent 70%);
    pointer-events: none;
}

.contact-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

    .contact-content h2 {
        font-size: clamp(43px,5.4vw,70px);
        margin: 22px 0;
    }

    .contact-content > p {
        color: #A7B4AA;
        font-size: 13px;
        line-height: 1.9;
        max-width: 510px;
        margin-bottom: 27px;
    }

.contact-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    color: #91A095;
    font: 10px var(--mono);
}

    .contact-details a:hover {
        color: var(--brand-teal);
    }

    .contact-details > span {
        width: 4px;
        height: 4px;
        background: var(--brand-teal);
        border-radius: 50%;
    }

.contact-stamp {
    position: relative;
    z-index: 1;
    width: 190px;
    height: 190px;
    flex: 0 0 190px;
    border: 1px solid #294233;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: rotate(9deg);
}

    .contact-stamp:before {
        content: "";
        position: absolute;
        inset: 10px;
        border: 1px dashed #355342;
        border-radius: 50%;
    }

    .contact-stamp span {
        font-size: 46px;
        font-weight: 800;
        letter-spacing: -4px;
    }

    .contact-stamp b {
        font: 10px var(--mono);
        letter-spacing: 3px;
        color: var(--brand-teal);
        margin-top: 3px;
    }

    .contact-stamp small {
        font: 8px var(--mono);
        letter-spacing: 1px;
        color: #8A9A8E;
        margin-top: 8px;
    }

.site-footer {
    background: #020604;
    color: #A2AEA5;
    padding: 28px clamp(22px,7vw,112px) 20px;
}

.footer-top {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-bottom: 23px;
    border-bottom: 1px solid #1E2A22;
}

.footer-brand .brand-name {
    color: #F4F3EF;
}

.footer-top > p {
    font: 10px var(--mono);
    color: #728177;
    margin: 0;
}

.back-top {
    margin-left: auto;
    font-size: 10px;
    color: #B8C4BB;
}

.footer-bottom {
    display: flex;
    align-items: center;
    gap: 25px;
    padding-top: 19px;
    color: #6F7C72;
    font: 9px var(--mono);
}

    .footer-bottom > span:nth-child(2) {
        margin: auto
    }

    .footer-bottom a:hover, .back-top:hover {
        color: var(--brand-teal)
    }

.not-found {
    min-height: 65vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

    .not-found h1 {
        font-size: clamp(36px,5vw,60px);
        letter-spacing: -2px
    }

    .not-found p {
        color: var(--text-secondary)
    }

.boot-screen {
    min-height: 100vh;
    background: var(--brand-dark);
    color: #AAB6AF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font: 11px var(--mono);
    gap: 14px;
}

.boot-mark {
    font: 800 44px var(--sans);
    letter-spacing: -4px;
    color: #F4F3EF
}

    .boot-mark span {
        color: var(--brand-teal)
    }

.boot-screen p {
    animation: pulse 1.4s ease-in-out infinite
}

#blazor-error-ui {
    display: none;
    background: #fff4ce;
    bottom: 0;
    box-shadow: 0 -1px 4px #0002;
    left: 0;
    padding: 12px 18px;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: #332900;
    font-size: 13px;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        float: right
    }

@keyframes pulse {
    50% {
        opacity: .45;
    }
}

@media (min-width:1500px) {
    .hero {
        padding-left: max(160px,calc((100vw - 1220px)/2));
        padding-right: max(160px,calc((100vw - 1220px)/2));
    }
}

@media (max-width:1000px) {
    .hero {
        padding-left: 6vw;
        padding-right: 6vw;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

        .hero h1 {
            letter-spacing: -3px
        }

    .hero-visual {
        transform: scale(.9)
    }

    .hero-bottom {
        left: 6vw;
        right: 6vw
    }

    .section {
        padding: 85px 6vw;
    }

    .details-section {
        gap: 35px
    }

    .parent-section {
        padding: 75px 6vw;
        grid-template-columns: 60px 1fr 100px;
        gap: 20px
    }

    .contact-section {
        padding: 80px 6vw
    }

    .contact-stamp {
        width: 150px;
        height: 150px;
        flex-basis: 150px
    }
}

@media (max-width:720px) {
    .site-header {
        height: 70px;
        padding: 0 22px
    }

    .desktop-nav {
        display: none
    }

    .mobile-menu-button {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: transparent;
        border: 1px solid #34443A;
        border-radius: 5px;
        padding: 11px;
        cursor: pointer
    }

        .mobile-menu-button span {
            width: 18px;
            height: 1px;
            background: #D7E2D9
        }

    .mobile-nav {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        z-index: 19;
        background: #07100A;
        border-bottom: 1px solid #26382D;
        padding: 8px 22px 15px
    }

        .mobile-nav a {
            padding: 14px 0;
            border-bottom: 1px solid #1C2A20;
            color: #D7E2D9;
            font-size: 13px
        }

            .mobile-nav a:last-child {
                color: var(--brand-teal);
                border: 0
            }

    .hero {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 64px 23px 85px;
        gap: 12px
    }

        .hero h1 {
            font-size: clamp(48px,12vw,72px);
            letter-spacing: -3.5px
        }

    .hero-lead {
        font-size: 14px
    }

    .program-tag {
        margin-top: 27px;
        gap: 8px;
        font-size: 9px
    }

    .hero-note {
        margin-top: 30px
    }

    .hero-visual {
        min-height: 340px;
        margin-top: 15px;
        transform: none
    }

    .code-window {
        width: min(100%,400px)
    }

    .orbit-one {
        width: 310px;
        height: 240px
    }

    .orbit-two {
        width: 350px;
        height: 280px
    }

    .float-card-top {
        top: 6px;
        right: -3px
    }

    .float-card-bottom {
        bottom: 30px;
        left: -2px
    }

    .visual-caption {
        bottom: -1px
    }

    .hero-bottom {
        bottom: 20px;
        left: 23px;
        right: 23px
    }

    .trust-strip {
        grid-template-columns: 1fr 1fr;
        gap: 18px 8px;
        padding: 22px
    }

        .trust-strip > div {
            justify-content: flex-start;
            border: 0;
            font-size: 10px
        }

    .section {
        padding: 72px 23px
    }

    .section-heading {
        margin-bottom: 32px
    }

        .section-heading h2, .details-left h2, .parent-content h2 {
            letter-spacing: -1.8px
        }

    .section-intro {
        font-size: 13px
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 10px
    }

    .feature-card {
        min-height: 220px
    }

        .feature-card h3 {
            margin-top: 20px
        }

    .curiosity-banner {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 20px;
        gap: 13px
    }

        .curiosity-banner > div:nth-child(2) {
            flex: 1;
            min-width: 180px
        }

    .text-link {
        margin-left: 58px
    }

    .phase {
        grid-template-columns: 37px minmax(0,1fr);
        gap: 14px;
        padding-bottom: 32px;
        margin-bottom: 30px
    }

    .timeline:before {
        left: 18px
    }

    .phase-marker span {
        width: 37px;
        height: 37px;
        font-size: 10px
    }

    .phase-side {
        display: none
    }

    .phase-meta {
        font-size: 8px;
        gap: 7px
    }

    .phase-content h3 {
        font-size: 30px;
        margin-top: 14px
    }

    .phase-content p {
        font-size: 11px
    }

    .tech-tags span {
        font-size: 8px
    }

    .journey-line {
        gap: 9px;
        font-size: 8px;
        letter-spacing: .5px;
        margin-top: 38px
    }

        .journey-line b {
            font-size: 12px
        }

    .details-section {
        grid-template-columns: 1fr;
        gap: 35px
    }

    .stats-grid {
        gap: 9px
    }

    .stat-card {
        min-height: 155px;
        padding: 18px
    }

        .stat-card strong {
            font-size: 26px
        }

    .outcome-grid {
        grid-template-columns: 1fr
    }

    .outcome-card {
        min-height: 130px;
        padding: 19px;
        gap: 12px
    }

        .outcome-card p {
            font-size: 10px
        }

    .parent-section {
        grid-template-columns: 1fr;
        padding: 65px 23px;
        gap: 10px
    }

    .parent-mark {
        font-size: 90px;
        height: 55px
    }

    .parent-decoration {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 14px;
        margin-top: 22px;
        font-size: 8px
    }

    .contact-section {
        padding: 75px 23px;
        display: block
    }

    .contact-content h2 {
        font-size: clamp(43px,11vw,64px);
        letter-spacing: -2px
    }

    .contact-stamp {
        display: none
    }

    .contact-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        font-size: 9px
    }

        .contact-details > span {
            display: none
        }

    .footer-top {
        flex-wrap: wrap;
        gap: 15px
    }

        .footer-top > p {
            width: 100%;
            order: 3;
            font-size: 9px
        }

    .back-top {
        margin-left: auto
    }

    .footer-bottom {
        flex-wrap: wrap;
        gap: 12px;
        font-size: 8px
    }

        .footer-bottom > span:nth-child(2) {
            margin: 0
        }

        .footer-bottom a {
            margin-left: auto
        }
}

@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important
    }
}

/* Establish the full-page background and positioning context. */
.not-found-page {
    min-height: 75vh;
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 90px 24px;
    background: var(--brand-dark);
    color: var(--text-on-dark);
}

/* Decorative grid adds subtle technical texture without distracting from
   the error message. It is positioned behind the page content. */
.not-found-grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.13;
    background-image: linear-gradient(rgba(125, 164, 144, 0.15) 1px, transparent 1px), linear-gradient(90deg, rgba(125, 164, 144, 0.15) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient( to bottom, transparent, black 20%, black 80%, transparent );
    pointer-events: none;
}

/* Soft emerald glow provides depth while preserving text contrast. */
.not-found-glow {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: min(700px, 100vw);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient( circle, rgba(31, 191, 144, 0.11), transparent 68% );
    pointer-events: none;
}

/* Keep the content above decorative layers and constrain line lengths. */
.not-found-content {
    width: 100%;
    max-width: 760px;
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Compact technical label that introduces the page identity. */
.not-found-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 11px;
    color: #9BAAA1;
    font: 10px var(--mono);
    letter-spacing: 1.5px;
}

/* Emerald status indicator echoes the landing page's live indicator. */
.not-found-status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--brand-teal);
    box-shadow: 0 0 12px rgba(31, 191, 144, 0.65);
}

/* Small separator between the brand name and system label. */
.not-found-divider {
    width: 24px;
    height: 1px;
    background: #405247;
}

/* Oversized 404 number acts as the main visual focal point. */
.not-found-code {
    margin: 35px 0 12px;
    color: #F4F3EF;
    font-size: clamp(110px, 23vw, 210px);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.09em;
}

    /* Highlight the middle digit with the brand's emerald gradient. */
    .not-found-code span {
        background: linear-gradient(135deg, #42D9A3, #8DE6B2);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
    }

/* Error identifier uses monospace typography for a technical appearance. */
.not-found-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 28px 0 18px;
    color: var(--brand-teal);
    font: 10px var(--mono);
    letter-spacing: 1.5px;
}

/* Short accent line reinforces the section's visual hierarchy. */
.not-found-label-line {
    width: 24px;
    height: 1px;
    background: var(--brand-green);
}

/* Main message uses the same bold typography as the landing page headings. */
.not-found-content h1 {
    margin: 0;
    font-size: clamp(35px, 5.5vw, 58px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -2.5px;
}

    /* Emerald highlight draws attention to the second line of the heading. */
    .not-found-content h1 span {
        color: var(--brand-teal);
    }

/* Supporting text is deliberately narrower for comfortable reading. */
.not-found-description {
    max-width: 480px;
    margin: 22px auto 0;
    color: #AAB6AF;
    font-size: 14px;
    line-height: 1.9;
}

/* Align navigation actions and allow them to wrap on narrow screens. */
.not-found-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

/* Primary action provides a clear route back to the homepage. */
.not-found-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 46px;
    padding: 13px 18px;
    border: 1px solid var(--brand-teal);
    border-radius: 5px;
    background: var(--brand-teal);
    color: #032017;
    font-size: 12px;
    font-weight: 800;
    transition: background 0.2s ease, transform 0.2s ease;
}

    /* Keep hover feedback subtle and consistent with other site buttons. */
    .not-found-home-button:hover {
        background: #5C DDB0;
        background: #5CDDB0;
        transform: translateY(-2px);
    }

/* Secondary action remains visually quieter than the primary button. */
.not-found-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 46px;
    padding: 13px 18px;
    border: 1px solid #35423A;
    border-radius: 5px;
    color: #D3DBD5;
    font-size: 12px;
    font-weight: 700;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

    /* Highlight the secondary action on hover. */
    .not-found-secondary-button:hover {
        border-color: var(--brand-teal);
        color: var(--brand-teal);
        transform: translateY(-2px);
    }

/* Technical footer label visually closes the error-page composition. */
.not-found-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin-top: 70px;
    color: #728078;
    font: 9px var(--mono);
    letter-spacing: 1px;
}

/* Flexible separator fills the space between the footer labels. */
.not-found-footer-line {
    width: 45px;
    height: 1px;
    background: #35443A;
}

/* --------------------------------------------------------------------------
   Mobile adjustments
   Reduce oversized typography and spacing on narrow screens.
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
    .not-found-page {
        min-height: 70vh;
        padding: 75px 22px;
    }

    .not-found-eyebrow {
        gap: 8px;
        font-size: 8px;
        letter-spacing: 1px;
    }

    .not-found-code {
        margin-top: 38px;
        font-size: clamp(105px, 31vw, 160px);
    }

    .not-found-content h1 {
        font-size: clamp(34px, 9vw, 46px);
        letter-spacing: -1.8px;
    }

    .not-found-description {
        font-size: 13px;
    }

    .not-found-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .not-found-home-button,
    .not-found-secondary-button {
        width: 100%;
    }

    .not-found-footer {
        gap: 8px;
        margin-top: 52px;
        font-size: 8px;
        letter-spacing: 0.5px;
    }

    .not-found-footer-line {
        width: 22px;
    }
}

/* Respect reduced-motion preferences for visitors who disable animations. */
@media (prefers-reduced-motion: reduce) {
    .not-found-home-button,
    .not-found-secondary-button {
        transition: none;
    }
}

.mobile-nav[hidden] {
    display: none !important;
}