* {
    box-sizing: border-box;
}

body.public-home {
    margin: 0;
    color: #f4fbff;
    background: #05080f;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.55;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 12px 36px;
    background: rgba(5, 8, 15, 0.96);
    border-bottom: 1px solid #00a8ff;
    box-shadow: 0 0 24px rgba(0, 168, 255, 0.18);
}

.site-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: #f4fbff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-logo:hover,
.site-logo:focus {
    color: #7ef6ff;
    text-shadow: 0 0 12px rgba(126, 246, 255, 0.45);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 36px;
}

.site-nav a {
    color: #d6e8f5;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus {
    color: #7ef6ff;
    text-shadow: 0 0 12px rgba(126, 246, 255, 0.45);
}

.home-inner {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
}

.home-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 16px 20px;
    background: #05080f;
}

.home-hero-art {
    display: block;
    width: min(1600px, calc(100% - 32px));
    max-width: 100%;
    height: auto;
}

.home-start,
.home-solution,
.home-path,
.home-safety,
.home-statement,
.home-video {
    padding: 72px 0;
}

.home-start {
    background: #0a1628;
    border-top: 1px solid rgba(0, 168, 255, 0.35);
}

.home-solution {
    background: #07101c;
}

.home-path {
    background: #05080f;
}

.home-safety {
    background: #0b1c2e;
    box-shadow: inset 0 0 80px rgba(0, 168, 255, 0.08);
}

.home-safety .home-inner {
    padding: 28px 28px 28px 32px;
    background: rgba(16, 32, 51, 0.7);
    border: 1px solid rgba(126, 246, 255, 0.28);
    border-left: 4px solid #7ef6ff;
    box-shadow: 0 0 28px rgba(0, 168, 255, 0.12);
}

.home-statement {
    background: #061018;
    border-top: 1px solid rgba(126, 246, 255, 0.28);
    border-bottom: 1px solid rgba(126, 246, 255, 0.28);
}

.home-video {
    background: #0a1628;
}

.home-now-kicker {
    margin: 0 0 12px;
    color: #7ef6ff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.home-start h2,
.home-solution h2,
.home-path h2,
.home-safety h2,
.home-statement h2,
.home-video h2 {
    margin: 0 0 22px;
    color: #ffffff;
    font-size: clamp(1.7rem, 4vw, 2.7rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.03em;
}

.home-start-question,
.home-year-question {
    margin: 0 0 28px;
    color: #f4fbff;
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
    font-weight: 700;
    line-height: 1.35;
}

.teacher-questions {
    display: grid;
    gap: 18px;
    margin: 0 0 36px;
}

.teacher-questions p {
    margin: 0;
    padding: 20px 22px;
    color: #e8f4ff;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 600;
    line-height: 1.4;
    background: #102033;
    border: 1px solid rgba(0, 168, 255, 0.28);
    border-left: 3px solid #00a8ff;
    box-shadow: 0 0 18px rgba(0, 168, 255, 0.08);
}

.home-year-question {
    padding: 28px 24px;
    background: #0d2236;
    border: 1px solid #7ef6ff;
    box-shadow: 0 0 28px rgba(126, 246, 255, 0.12);
}

.home-solution-sub {
    margin: -8px 0 18px;
    color: #7ef6ff;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 800;
    letter-spacing: 0.12em;
}

.home-solution-lead,
.home-safety p,
.home-statement p,
.home-video p,
.home-path-steps p {
    margin: 0 0 28px;
    color: #c5d6e4;
    font-size: 1.08rem;
}

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

.program-group {
    grid-column: span 2;
    padding: 20px 18px;
    background: #102033;
    border: 1px solid rgba(0, 168, 255, 0.28);
    box-shadow: 0 0 16px rgba(0, 168, 255, 0.06);
}

.program-group:nth-child(4),
.program-group:nth-child(5) {
    grid-column: span 3;
}

.program-group h3 {
    margin: 0 0 12px;
    color: #7ef6ff;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.program-group ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.program-group li {
    margin: 0 0 8px;
    color: #f4fbff;
    font-size: 1.02rem;
}

.home-path h2 {
    text-align: center;
    letter-spacing: 0.16em;
    text-shadow: 0 0 22px rgba(126, 246, 255, 0.28);
}

.home-path-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-path-steps li {
    padding: 28px 22px;
    background: #102033;
    border: 1px solid rgba(126, 246, 255, 0.28);
    box-shadow: 0 0 24px rgba(0, 168, 255, 0.1);
}

.home-path-steps h3 {
    margin: 0 0 12px;
    color: #7ef6ff;
    font-size: 1.15rem;
    letter-spacing: 0.16em;
}

.home-path-steps p {
    margin: 0;
}

.home-safety h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.home-statement h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.4rem);
    text-shadow: 0 0 26px rgba(0, 168, 255, 0.28);
}

.home-statement p {
    width: min(760px, 100%);
    margin: 0 auto;
    text-align: center;
}

.home-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at center, rgba(0, 168, 255, 0.14), transparent 48%),
        #07111d;
    border: 1px solid #00a8ff;
    box-shadow: 0 0 32px rgba(0, 168, 255, 0.16);
}

.dev-placeholder {
    margin: 0;
    padding: 0 24px;
    color: #7ef6ff;
    text-align: center;
    letter-spacing: 0.08em;
}

.public-page-note {
    margin: 32px 0 0;
    color: #c5d6e4;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.school-gateway,
.school-portal {
    padding: 64px 0 80px;
}

.school-gateway-kicker,
.school-portal-kicker {
    margin: 0 0 12px;
    color: #7ef6ff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.school-gateway h1,
.school-portal h1 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.school-gateway .public-page-note,
.school-portal .public-page-note {
    margin: 0 0 8px;
}

.school-gateway-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: min(420px, 100%);
    margin-top: 28px;
}

.school-gateway-form label {
    color: #d6e8f5;
    font-weight: 700;
}

.school-gateway-form select,
.school-gateway-form input[type="password"],
.school-gateway-form button {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    font-weight: 700;
}

.school-gateway-form select,
.school-gateway-form input[type="password"] {
    color: #f4fbff;
    background: #05080f;
    border: 1px solid rgba(0, 168, 255, 0.45);
}

.school-gateway-form button {
    color: #05080f;
    background: #00a8ff;
    border: 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.school-gateway-form button:hover,
.school-gateway-form button:focus {
    background: #7ef6ff;
}

.school-teacher-help {
    margin: 0;
    color: #9bb4c8;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.school-gateway-status {
    margin: 18px 0 0;
    color: #ffd6d6;
    font-weight: 700;
}

.school-portal-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 36px 0 0;
}

.school-portal-card {
    display: flex;
    flex-direction: column;
    min-height: 260px;
    padding: 32px 28px;
    background: #0a1628;
    border: 1px solid rgba(0, 168, 255, 0.4);
    box-shadow: 0 0 28px rgba(0, 168, 255, 0.12);
}

.school-portal-card-teacher {
    background: #102033;
    border-color: rgba(126, 246, 255, 0.42);
}

.school-portal-card h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.school-portal-card p {
    flex: 1;
    margin: 0 0 28px;
    color: #c5d6e4;
    font-size: 1.15rem;
    line-height: 1.45;
}

.school-portal-action {
    display: block;
    padding: 14px 16px;
    color: #05080f;
    background: #00a8ff;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.school-portal-action:hover,
.school-portal-action:focus {
    background: #7ef6ff;
}

.school-portal-action-teacher {
    background: #7ef6ff;
}

.school-portal-action-teacher:hover,
.school-portal-action-teacher:focus {
    background: #00a8ff;
    color: #05080f;
}

.school-classroom {
    display: grid;
    gap: 28px;
    margin-top: 28px;
}

.school-course-panel {
    padding: 24px;
    background: #0a1628;
    border: 1px solid rgba(0, 168, 255, 0.35);
}

.school-course-panel h2 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 1.4rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.school-lab-row,
.school-lab-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid rgba(0, 168, 255, 0.2);
}

.school-lab-row:first-of-type,
.school-lab-card:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.school-lab-copy p {
    margin: 0;
    color: #7ef6ff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.school-lab-copy h3 {
    margin: 4px 0 0;
    color: #f4fbff;
    font-size: 1.05rem;
    font-weight: 700;
}

.school-lab-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d6e8f5;
    font-weight: 700;
    white-space: nowrap;
}

.school-lab-toggle input {
    width: auto;
}

.school-lab-open {
    display: inline-block;
    padding: 10px 14px;
    color: #05080f;
    background: #00a8ff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.school-lab-open[aria-disabled="true"] {
    color: #7a8b99;
    background: #102033;
    pointer-events: none;
}

.school-sign-out {
    margin-top: 28px;
    padding: 12px 18px;
    color: #05080f;
    background: #7ef6ff;
    border: 0;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.school-sign-out:hover,
.school-sign-out:focus {
    background: #00a8ff;
}

.school-back-link {
    display: inline-block;
    margin-top: 28px;
    color: #7ef6ff;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
}

.school-back-link:hover,
.school-back-link:focus {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(126, 246, 255, 0.45);
}

@media (max-width: 800px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 16px 16px;
        gap: 14px;
    }

    .site-nav {
        justify-content: flex-start;
        gap: 10px 22px;
    }

    .program-groups,
    .home-path-steps {
        grid-template-columns: 1fr;
    }

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

    .home-hero {
        padding: 10px 8px 16px;
    }

    .home-hero-art {
        width: calc(100% - 8px);
    }

    .home-start,
    .home-solution,
    .home-path,
    .home-safety,
    .home-statement,
    .home-video {
        padding: 48px 0;
    }

    .school-portal-choices {
        grid-template-columns: 1fr;
    }
}
