:root {

    --bg: #0a0c10;

    --surface: #111318;

    --surface2: #181b22;

    --border: #1f2330;

    --accent: #00e5a0;

    --accent2: #4f8cff;

    --accent3: #ff5e7e;

    --text: #e8eaf2;

    --text-dim: #7a7f96;

    --text-dimmer: #3a3f56;

    --mono: 'Space Mono', monospace;

    --sans: 'Syne', sans-serif;

}



*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }



html { scroll-behavior: smooth; }



body {

    background: var(--bg);

    color: var(--text);

    font-family: var(--sans);

    min-height: 100vh;

    overflow-x: hidden;

}



/* ── Grid noise overlay ── */

body::before {

    content: '';

    position: fixed;

    inset: 0;

    background-image:

    linear-gradient(rgba(0,229,160,.03) 1px, transparent 1px),

    linear-gradient(90deg, rgba(0,229,160,.03) 1px, transparent 1px);

    background-size: 40px 40px;

    pointer-events: none;

    z-index: 0;

}



/* ── NAV ── */

nav {

    position: fixed;

    top: 0; left: 0; right: 0;

    z-index: 100;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 1.1rem 2.5rem;

    background: rgba(10,12,16,.85);

    backdrop-filter: blur(14px);

    border-bottom: 1px solid var(--border);

}



.nav-logo {

    font-family: var(--mono);

    font-size: 1.25rem;

    font-weight: 700;

    color: var(--accent);

    letter-spacing: -0.03em;

    text-decoration: none;

}

.nav-logo span { color: var(--text-dim); font-weight: 400; }



.nav-links {

    display: flex;

    gap: 2rem;

    list-style: none;

}

.nav-links a {

    font-size: .85rem;

    font-weight: 600;

    letter-spacing: .08em;

    text-transform: uppercase;

    color: var(--text-dim);

    text-decoration: none;

    transition: color .2s;

}

.nav-links a:hover { color: var(--accent); }



.nav-cta {

    background: var(--accent);

    color: #000 !important;

    padding: .45rem 1.1rem;

    border-radius: 4px;

    font-weight: 700 !important;

}

.nav-cta:hover { background: #00ffb0; color: #000 !important; }



/* ── HERO ── */

.hero {

    position: relative;

    z-index: 1;

    min-height: 100vh;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 8rem 2rem 4rem;

    overflow: hidden;

}



/* Glowing orbs */

.hero::after {

    content: '';

    position: absolute;

    width: 700px; height: 700px;

    border-radius: 50%;

    background: radial-gradient(circle, rgba(0,229,160,.12) 0%, transparent 70%);

    top: 50%; left: 50%;

    transform: translate(-50%, -50%);

    pointer-events: none;

}



.hero-badge {

    display: inline-flex;

    align-items: center;

    gap: .5rem;

    font-family: var(--mono);

    font-size: .75rem;

    color: var(--accent);

    border: 1px solid rgba(0,229,160,.3);

    padding: .35rem .9rem;

    border-radius: 99px;

    margin-bottom: 2rem;

    animation: fadeUp .6s ease both;

}

.hero-badge::before {

    content: '';

    width: 6px; height: 6px;

    background: var(--accent);

    border-radius: 50%;

    animation: pulse 2s infinite;

}



@keyframes pulse {

    0%, 100% { opacity: 1; transform: scale(1); }

    50% { opacity: .4; transform: scale(1.4); }

}



.hero h1 {

    font-size: clamp(3rem, 8vw, 6.5rem);

    font-weight: 800;

    line-height: .95;

    letter-spacing: -.04em;

    margin-bottom: 1.5rem;

    animation: fadeUp .7s .1s ease both;

}

.hero h1 em {

    font-style: normal;

    color: var(--accent);

    position: relative;

}



.hero-sub {

    max-width: 540px;

    font-size: 1.1rem;

    color: var(--text-dim);

    line-height: 1.7;

    margin-bottom: 2.5rem;

    animation: fadeUp .7s .2s ease both;

}



.hero-actions {

    display: flex;

    gap: 1rem;

    flex-wrap: wrap;

    justify-content: center;

    animation: fadeUp .7s .3s ease both;

}



.btn {

    font-family: var(--sans);

    font-weight: 700;

    font-size: .9rem;

    padding: .75rem 1.75rem;

    border-radius: 6px;

    cursor: pointer;

    border: none;

    text-decoration: none;

    transition: transform .15s, box-shadow .15s;

}

.btn:hover { transform: translateY(-2px); }

.btn-primary {

    background: var(--accent);

    color: #000;

    box-shadow: 0 0 24px rgba(0,229,160,.3);

}

.btn-primary:hover { box-shadow: 0 0 36px rgba(0,229,160,.5); }

.btn-ghost {

    background: transparent;

    color: var(--text);

    border: 1px solid var(--border);

}

.btn-ghost:hover { border-color: var(--text-dim); }



/* Scroll indicator */

.scroll-hint {

    position: absolute;

    bottom: 2rem;

    left: 50%;

    transform: translateX(-50%);

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: .4rem;

    color: var(--text-dimmer);

    font-family: var(--mono);

    font-size: .7rem;

    animation: fadeIn 1s 1s both;

}

.scroll-hint svg { animation: bounce 1.8s infinite; }



/* ── STATS STRIP ── */

.stats {

    position: relative; z-index: 1;

    display: flex;

    justify-content: center;

    gap: 0;

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);

    background: var(--surface);

}

.stat-item {

    flex: 1;

    max-width: 220px;

    padding: 2rem 1.5rem;

    text-align: center;

    border-right: 1px solid var(--border);

}

.stat-item:last-child { border-right: none; }

.stat-num {

    font-family: var(--mono);

    font-size: 2rem;

    font-weight: 700;

    color: var(--accent);

}

.stat-label {

    font-size: .8rem;

    color: var(--text-dim);

    margin-top: .3rem;

    letter-spacing: .05em;

}



/* ── SECTION COMMON ── */

section { position: relative; z-index: 1; padding: 6rem 2rem; }

.section-tag {

    font-family: var(--mono);

    font-size: .72rem;

    color: var(--accent);

    letter-spacing: .15em;

    text-transform: uppercase;

    margin-bottom: 1rem;

}

.section-title {

    font-size: clamp(2rem, 4vw, 3rem);

    font-weight: 800;

    letter-spacing: -.03em;

    line-height: 1.1;

    margin-bottom: 1rem;

}

.section-sub {

    color: var(--text-dim);

    line-height: 1.7;

    max-width: 520px;

}

.container { max-width: 1100px; margin: 0 auto; }



/* ── CURRICULUM ── */

.curriculum { background: var(--bg); }

.curriculum-header { margin-bottom: 3.5rem; }



.modules-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));

    gap: 1.25rem;

}



.module-card {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 10px;

    padding: 1.75rem;

    transition: border-color .25s, transform .25s, box-shadow .25s;

    cursor: pointer;

    position: relative;

    overflow: hidden;

}

.module-card::before {

    content: '';

    position: absolute;

    top: 0; left: 0; right: 0;

    height: 2px;

    background: var(--accent);

    transform: scaleX(0);

    transform-origin: left;

    transition: transform .3s ease;

}

.module-card:hover {

    border-color: rgba(0,229,160,.3);

    transform: translateY(-3px);

    box-shadow: 0 12px 40px rgba(0,0,0,.4);

}

.module-card:hover::before { transform: scaleX(1); }



.module-num {

    font-family: var(--mono);

    font-size: .7rem;

    color: var(--text-dimmer);

    margin-bottom: .75rem;

}

.module-title {

    font-size: 1.05rem;

    font-weight: 700;

    margin-bottom: .6rem;

}

.module-desc {

    font-size: .875rem;

    color: var(--text-dim);

    line-height: 1.6;

    margin-bottom: 1.25rem;

}

.module-tags {

    display: flex;

    flex-wrap: wrap;

    gap: .4rem;

}

.tag {

    font-family: var(--mono);

    font-size: .65rem;

    padding: .2rem .55rem;

    border-radius: 4px;

    background: var(--surface2);

    color: var(--text-dim);

    border: 1px solid var(--border);

}

.tag.accent { color: var(--accent); border-color: rgba(0,229,160,.25); background: rgba(0,229,160,.06); }

.tag.blue { color: var(--accent2); border-color: rgba(79,140,255,.25); background: rgba(79,140,255,.06); }



.module-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 1.25rem;

    padding-top: 1rem;

    border-top: 1px solid var(--border);

    font-size: .78rem;

    color: var(--text-dimmer);

    font-family: var(--mono);

}

.module-footer .preview-link {

    color: var(--accent);

    font-size: .7rem;

    opacity: 0;

    transition: opacity .2s;

}

.module-card:hover .preview-link { opacity: 1; }



/* ── CODE PREVIEW ── */

.preview-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.preview-inner {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 4rem;

    align-items: center;

}

@media (max-width: 768px) { .preview-inner { grid-template-columns: 1fr; } }



.code-window {

    background: #0d0f14;

    border: 1px solid var(--border);

    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 24px 60px rgba(0,0,0,.5);

}

.code-titlebar {

    display: flex;

    align-items: center;

    gap: .5rem;

    padding: .75rem 1rem;

    background: var(--surface2);

    border-bottom: 1px solid var(--border);

}

.dot { width: 10px; height: 10px; border-radius: 50%; }

.dot-r { background: #ff5f56; }

.dot-y { background: #ffbd2e; }

.dot-g { background: #27c93f; }

.code-filename {

    margin-left: .5rem;

    font-family: var(--mono);

    font-size: .72rem;

    color: var(--text-dimmer);

}

.code-body {

    padding: 1.5rem;

    font-family: var(--mono);

    font-size: .82rem;

    line-height: 1.9;

    overflow-x: auto;

}

.kw { color: #ff79c6; }

.fn { color: #50fa7b; }

.st { color: #f1fa8c; }

.cm { color: #6272a4; }

.nm { color: var(--accent2); }

.op { color: #ff79c6; }

.num { color: #bd93f9; }



/* ── FEATURES ── */

.features { background: var(--bg); }

.features-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));

    gap: 1.5rem;

    margin-top: 3.5rem;

}

.feature-card {

    padding: 1.75rem;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: var(--surface);

}

.feature-icon {

    width: 44px; height: 44px;

    border-radius: 8px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 1.3rem;

    margin-bottom: 1rem;

}

.feature-icon.green { background: rgba(0,229,160,.1); }

.feature-icon.blue  { background: rgba(79,140,255,.1); }

.feature-icon.pink  { background: rgba(255,94,126,.1); }

.feature-icon.yellow{ background: rgba(255,210,0,.1); }

.feature-title { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }

.feature-desc { font-size: .87rem; color: var(--text-dim); line-height: 1.65; }



/* ── CTA BANNER ── */

.cta-banner {

    background: linear-gradient(135deg, rgba(0,229,160,.08), rgba(79,140,255,.08));

    border-top: 1px solid rgba(0,229,160,.15);

    border-bottom: 1px solid rgba(79,140,255,.15);

    text-align: center;

    padding: 5rem 2rem;

}

.cta-banner h2 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 1rem; }

.cta-banner p { color: var(--text-dim); margin-bottom: 2rem; }



/* ── FOOTER ── */

footer {

    background: var(--surface);

    border-top: 1px solid var(--border);

    padding: 3rem 2rem;

    text-align: center;

    font-family: var(--mono);

    font-size: .75rem;

    color: var(--text-dimmer);

}

footer span { color: var(--accent); }



/* ── ANIMATIONS ── */

@keyframes fadeUp {

    from { opacity: 0; transform: translateY(24px); }

    to   { opacity: 1; transform: translateY(0); }

}

@keyframes fadeIn {

    from { opacity: 0; } to { opacity: 1; }

}

@keyframes bounce {

    0%, 100% { transform: translateY(0); }

    50% { transform: translateY(6px); }

}



/* ── SCROLL REVEAL ── */

.reveal {

    opacity: 0;

    transform: translateY(28px);

    transition: opacity .6s ease, transform .6s ease;

}

.reveal.visible {

    opacity: 1;

    transform: translateY(0);

}

