﻿/* Home page styles */
:root {
    --bg: #061a2b;
    --bg-soft: #0d2740;
    --surface: rgba(255, 255, 255, 0.08);
    --surface-strong: rgba(255, 255, 255, 0.14);
    --text: #edf4ff;
    --muted: #9eb4d6;
    --line: rgba(255, 255, 255, 0.15);
    --aqua: #3de4d3;
    --lime: #b9f56a;
    --orange: #ff9a3d;
    --max-width: 1160px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow: 0 24px 60px rgba(2, 10, 20, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 20%, rgba(61, 228, 211, 0.15), transparent 36%),
        radial-gradient(circle at 82% 15%, rgba(255, 154, 61, 0.17), transparent 34%),
        radial-gradient(circle at 60% 80%, rgba(185, 245, 106, 0.12), transparent 30%),
        linear-gradient(135deg, #05101d 0%, #0a2238 52%, #06192b 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.2;
    z-index: -1;
}

.topbar-wrap {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(4, 15, 27, 0.7);
    border-bottom: 1px solid var(--line);
}

.topbar {
    width: min(var(--max-width), calc(100% - 28px));
    margin: 0 auto;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 700;
    letter-spacing: 0.3px;
    font-size: clamp(1.1rem, 2.6vw, 1.28rem);
}

.brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: conic-gradient(from 200deg, var(--orange), var(--lime), var(--aqua), var(--orange));
    box-shadow: 0 0 28px rgba(61, 228, 211, 0.45);
}

.menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: 0.22s ease;
}

.menu a:hover {
    color: var(--text);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.06);
}

.menu-cta {
    color: #062332;
    text-decoration: none;
    font-weight: 700;
    background: linear-gradient(90deg, var(--aqua), var(--lime));
    padding: 10px 16px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(61, 228, 211, 0.26);
    transition: transform 0.2s ease;
}

.menu-cta:hover {
    transform: translateY(-1px);
}

.menu-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 10px;
    padding: 7px 10px;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    width: min(var(--max-width), calc(100% - 28px));
    margin: 0 auto 14px auto;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(7, 21, 37, 0.94);
}

.mobile-menu a {
    display: block;
    padding: 11px 12px;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
}

main {
    width: min(var(--max-width), calc(100% - 28px));
    margin: 20px auto 46px auto;
}

.hero {
    position: relative;
    border: 1px solid var(--line);
    border-radius: clamp(20px, 3vw, 34px);
    overflow: hidden;
    padding: clamp(28px, 6vw, 72px);
    background:
        linear-gradient(145deg, rgba(13, 39, 64, 0.85), rgba(4, 17, 30, 0.88)),
        repeating-linear-gradient(-24deg, rgba(255, 255, 255, 0.02) 0 12px, transparent 12px 24px);
    box-shadow: var(--shadow);
    isolation: isolate;
}

.hero::after {
    content: "";
    position: absolute;
    width: 440px;
    height: 440px;
    right: -170px;
    top: -180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(61, 228, 211, 0.24), transparent 68%);
    z-index: -1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--aqua);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.hero h1 {
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.02em;
    font-size: clamp(2rem, 7vw, 4.8rem);
    margin: 16px 0 14px 0;
    max-width: 12ch;
}

.hero p {
    max-width: 62ch;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.12rem);
    line-height: 1.64;
    margin: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.btn {
    text-decoration: none;
    font-weight: 700;
    border-radius: 12px;
    padding: 12px 17px;
    transition: 0.2s ease;
}

.btn-main {
    color: #07212f;
    background: linear-gradient(90deg, var(--aqua), var(--lime));
    box-shadow: 0 10px 28px rgba(61, 228, 211, 0.27);
}

.btn-main:hover {
    transform: translateY(-2px);
}

.btn-ghost {
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-stats {
    margin-top: 30px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat {
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    padding: 14px;
}

.stat strong {
    display: block;
    font-size: clamp(1.2rem, 3vw, 1.7rem);
    font-family: "Bricolage Grotesque", sans-serif;
}

.stat span {
    color: var(--muted);
    font-size: 0.9rem;
}

.section {
    margin-top: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 4vw, 34px);
    background: linear-gradient(165deg, rgba(13, 39, 64, 0.66), rgba(7, 23, 40, 0.78));
    box-shadow: var(--shadow);
}

.section-head {
    display: flex;
    gap: 14px;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.section h2 {
    margin: 0;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: clamp(1.4rem, 4vw, 2.1rem);
    letter-spacing: -0.02em;
}

.section p {
    margin: 0;
    color: var(--muted);
}

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

.card {
    border-radius: 15px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    padding: 15px;
    display: flex;
    flex-direction: column;
    min-height: 194px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.45s ease, transform 0.45s ease, border-color 0.2s ease;
}

.card.show {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    border-color: rgba(185, 245, 106, 0.55);
}

.tag {
    width: fit-content;
    border-radius: 999px;
    border: 1px solid rgba(61, 228, 211, 0.45);
    background: rgba(61, 228, 211, 0.15);
    color: var(--aqua);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.card h3 {
    margin: 13px 0 9px 0;
    font-size: 1.07rem;
    line-height: 1.3;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.55;
    flex-grow: 1;
}

.card a {
    margin-top: 14px;
    color: var(--lime);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.93rem;
}

.card a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.support {
    margin-top: 34px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 154, 61, 0.45);
    background: linear-gradient(140deg, rgba(255, 154, 61, 0.16), rgba(13, 39, 64, 0.78));
    padding: clamp(24px, 5vw, 36px);
    box-shadow: var(--shadow);
}

.support h2 {
    margin: 0 0 10px 0;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.support p {
    margin: 0;
    max-width: 62ch;
    color: var(--muted);
    line-height: 1.6;
}

.support-links {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#grades-7-9,
#grades-10-11,
#support {
    scroll-margin-top: 90px;
}

.support-links a {
    text-decoration: none;
    font-weight: 700;
    border-radius: 12px;
    padding: 10px 14px;
}

.support-mail {
    color: #092535;
    background: linear-gradient(90deg, var(--orange), #ffd669);
}

.support-home {
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.06);
}

footer {
    width: min(var(--max-width), calc(100% - 28px));
    margin: 18px auto 28px auto;
    color: rgba(237, 244, 255, 0.68);
    font-size: 0.9rem;
}

.hero [data-anim] {
    opacity: 0;
    transform: translateY(26px);
    animation: rise 0.7s ease forwards;
}

.hero [data-anim="2"] {
    animation-delay: 0.1s;
}

.hero [data-anim="3"] {
    animation-delay: 0.22s;
}

.hero [data-anim="4"] {
    animation-delay: 0.32s;
}

@keyframes rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1050px) {
    .card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .menu {
        display: none;
    }

    .menu-cta {
        display: none;
    }

    .menu-btn {
        display: inline-block;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 590px) {
    .topbar {
        height: 68px;
    }

    #grades-7-9,
    #grades-10-11,
    #support {
        scroll-margin-top: 78px;
    }

    .section {
        padding: 18px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .card {
        min-height: auto;
    }
}

