@import url('https://fonts.googleapis.com/css2?family=Climate+Crisis&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-main:       #141414;
    --bg-surface:    #1e1e1e;
    --bg-elevated:   #2c2c2c;
    --bg-card:       #252525;

    --accent:        #c8c8c8;
    --accent-bright: #ffffff;
    --accent-dim:    #888888;

    --text-primary:  #f0f0f0;
    --text-muted:    #9a9a9a;
    --text-faint:    #5a5a5a;

    --border:        #2e2e2e;
    --border-light:  #3d3d3d;
    --border-bright: #555555;

    --silver-glow:   rgba(200, 200, 200, 0.08);
    --shadow-deep:   0 8px 40px rgba(0, 0, 0, 0.6);
    --shadow-card:   0 2px 16px rgba(0, 0, 0, 0.4);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Climate Crisis', sans-serif;
    line-height: 1.1;
    word-wrap: break-word;
}

/* ─── SCROLLBAR ────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 3px; }

/* ─── NAVBAR ────────────────────────────────────────── */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 80px;
    background-color: rgba(20, 20, 20, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1);
}

.logo-text {
    font-family: 'Climate Crisis', sans-serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    line-height: 0.9;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.92rem;
    transition: color 0.2s;
    letter-spacing: 0.02em;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.btn-pill {
    background-color: var(--accent);
    color: #141414;
    padding: 11px 28px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-pill:hover {
    background-color: var(--accent-bright);
    transform: scale(1.03);
}

/* ─── HERO ──────────────────────────────────────────── */
.hero {
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 40px;
    background-color: var(--bg-main);
    position: relative;
    overflow: hidden;
}

/* Subtle radial highlight behind hero text */
.hero::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(200,200,200,0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Fine dot-grid texture */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-light);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 32px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 5rem;
    color: var(--text-primary);
    max-width: 1000px;
    margin-bottom: 24px;
    line-height: 1.0;
    position: relative;
    z-index: 1;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 52px;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.btn-cta {
    background-color: var(--accent);
    color: #141414;
    padding: 18px 44px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-cta:hover {
    background-color: var(--accent-bright);
    transform: scale(1.03);
}

.link-action {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-bright);
    padding-bottom: 2px;
    transition: color 0.2s;
}

.link-action:hover {
    color: var(--text-primary);
}

/* ─── FLOATING CARDS ───────────────────────────────── */
.floating-card {
    position: absolute;
    width: 300px;
    background-color: var(--bg-elevated);
    padding: 12px;
    border-radius: 32px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-deep);
    z-index: 1;
}

.floating-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 22px;
}

.card-left  { left: 40px;  top: 50%; }
.card-right { right: 40px; bottom: 15%; }

/* ─── FEATURES ─────────────────────────────────────── */
.features {
    padding: 120px 80px;
    background-color: var(--bg-surface);
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features h2 {
    font-size: 3.5rem;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 52px 36px;
    border-radius: 32px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    transition: border-color 0.25s, transform 0.25s;
    text-align: left;
}

.feature-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-4px);
}

.f-icon-box {
    width: 72px;
    height: 72px;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.97rem;
    line-height: 1.65;
}

/* ─── SECTION TAG ──────────────────────────────────── */
.section-tag {
    color: var(--accent-dim);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 16px;
    display: block;
}

/* ─── TEACHER / STUDENT FLOW ───────────────────────── */
.teacher-flow {
    padding: 120px 80px;
    background-color: var(--bg-main);
}

.flow-container {
    max-width: 1200px;
    margin: 0 auto;
}

.flow-container h2 {
    color: var(--text-primary);
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.flow-content { flex: 1; }

.step-badge {
    color: var(--accent);
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 16px;
    display: block;
}

.flow-content h3 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.flow-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.7;
}

.flow-image {
    flex: 1.4;
    border-radius: 32px;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: border-color 0.25s;
}

.flow-image:hover {
    border-color: var(--border-bright);
}

.flow-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.35s ease;
}

.flow-image:hover img {
    transform: scale(1.02);
}

/* Student journey — slightly lighter surface to distinguish */
#student-journey.teacher-flow {
    background-color: var(--bg-surface) !important;
    border-top: 1px solid var(--border);
}

/* ─── TECH STACK ───────────────────────────────────── */
.tech-stack {
    padding: 80px 60px;
    background-color: var(--bg-elevated);
    border-radius: 48px;
    border: 1px solid var(--border-light);
    margin: 40px;
    text-align: center;
}

.tech-stack h2 {
    font-size: 3rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.tech-stack .section-tag {
    color: var(--accent-dim);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.tech-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 28px 20px;
    border-radius: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transition: border-color 0.25s, transform 0.25s;
}

.tech-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-3px);
}

.t-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-bright);
    color: var(--accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.tech-info h4 {
    font-size: 1.05rem;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    margin-bottom: 6px;
}

.tech-info p {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.tech-tag {
    display: inline-block;
    background-color: var(--bg-elevated);
    color: var(--accent);
    border: 1px solid var(--border-bright);
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ─── CTA SECTION ──────────────────────────────────── */
.purple-section {
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 100px 80px;
    text-align: center;
    border-radius: 48px;
    margin: 40px;
    position: relative;
    overflow: hidden;
}

/* Subtle glow */
.purple-section::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(200,200,200,0.07) 0%, transparent 65%);
    pointer-events: none;
}

.purple-section h2 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.purple-section p {
    font-size: 1.15rem;
    max-width: 720px;
    margin: 0 auto 40px;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.btn-white {
    background-color: var(--accent);
    color: #141414;
    padding: 18px 44px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.05rem;
    display: inline-block;
    position: relative;
    z-index: 1;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-white:hover {
    background-color: var(--accent-bright);
    transform: scale(1.03);
}

/* ─── FOOTER ───────────────────────────────────────── */
.main-footer {
    padding: 100px 80px 40px;
    background-color: #0d0d0d;
    border-top: 1px solid var(--border);
    color: var(--text-primary);
}

.main-footer .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto 80px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo img {
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 300px;
    line-height: 1.65;
}

.footer-links h4 {
    font-size: 0.8rem;
    color: var(--accent-dim);
    margin-bottom: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Outfit', sans-serif;
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 14px; }

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.93rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-faint);
    font-size: 0.88rem;
}

/* ─── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 1200px) {
    .navbar { padding: 12px 40px; }
    .hero h1 { font-size: 4.2rem; }
    .floating-card { display: none; }
    .features, .teacher-flow { padding: 80px 40px; }
    .tech-stack, .purple-section { padding: 80px 40px; }
}

@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .flow-step { gap: 40px; margin-bottom: 80px; }
    .flow-content h3 { font-size: 2.2rem; }
    .tech-stack { padding: 50px 20px; border-radius: 32px; margin: 20px; }
    .tech-stack h2 { font-size: 2.4rem; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); margin-top: 30px; }
}

@media (max-width: 768px) {
    .navbar .logo-text { display: none; }
    .navbar { padding: 10px 20px; }
    .nav-links { display: none; }
    .hero { padding: 60px 20px; }
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1rem; margin-bottom: 32px; }
    .hero-actions { flex-direction: column; gap: 16px; }
    .btn-cta { padding: 16px 32px; width: 100%; justify-content: center; }
    .features, .teacher-flow { padding: 80px 20px; }
    .features h2 { font-size: 2.4rem; margin-bottom: 40px; }
    .feature-grid { grid-template-columns: 1fr; gap: 16px; }
    .feature-card { padding: 30px 20px; border-radius: 24px; }
    .flow-step { flex-direction: column !important; gap: 20px; margin-bottom: 60px; }
    .flow-image { width: 100%; flex: none; border-radius: 20px; }
    .flow-content h3 { font-size: 1.8rem; margin-bottom: 12px; }
    .flow-content p { font-size: 1rem; margin-bottom: 20px; }
    .tech-stack { padding: 60px 20px; margin: 20px; border-radius: 28px; }
    .tech-stack h2 { font-size: 2rem; }
    .tech-grid { grid-template-columns: 1fr; }
    .tech-card { padding: 20px; }
    .purple-section { padding: 60px 20px; margin: 20px; border-radius: 32px; }
    .purple-section h2 { font-size: 2rem; }
    .btn-white { padding: 16px 32px; width: 100%; text-align: center; }
    .main-footer { padding: 60px 20px 30px; }
    .main-footer .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; margin-bottom: 40px; }
    .footer-brand p { max-width: 100%; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 0.95rem; }
}
