@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: #fcfcfd;
    --primary: #5865F2;
    --primary-dark: #4752C4;
    --secondary: #EB459E;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border: #eef2f6;
    --dot-color: #e5e7eb;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    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;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 80px;
    background-color: #000000;
    border-bottom: 1px solid #333333;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 38px;
    width: auto;
}

.logo-text {
    font-family: 'Climate Crisis', sans-serif;
    font-size: 1.6rem;
    color: #ffffff;
    font-weight: 500;
    line-height: 0.8;
}

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

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
}

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

.btn-pill {
    background-color: #ffffff;
    color: #000000;
    padding: 12px 32px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-pill:hover {
    background-color: #f0f0f0;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 40px;
    background-color: #f0f4ff;
    position: relative;
    background:
        radial-gradient(circle at 15% 20%, rgba(88, 101, 242, 0.25), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(235, 69, 158, 0.20), transparent 45%),
        #e4e9ff;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 32px;
}

.hero h1 {
    font-size: 5rem;
    color: var(--text-dark);
    max-width: 1000px;
    margin-bottom: 24px;
    line-height: 1.0;
}

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

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin-bottom: 56px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 60px;
}

.btn-cta {
    background-color: #000000;
    color: white;
    padding: 20px 48px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-cta:hover {
    background-color: #333333;
}

.link-action {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
}

/* Floating Cards Simplified */
.floating-card {
    position: absolute;
    width: 320px;
    background-color: #ffffff;
    padding: 14px;
    border-radius: 36px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

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

.card-label {
    display: none;
}

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

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


/* Integrated Logos */
.integrated {
    margin-top: 40px;
    text-align: center;
}

.integrated p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.logo-strip {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

/* Features Section */
.features {
    padding: 120px 80px;
    background-color: white;
    text-align: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(72, 239, 136, 0.25), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(103, 77, 219, 0.2), transparent 45%),
        #e4e9ff;
}

.features h2 {
    font-size: 3.5rem;
    margin-bottom: 60px;
}

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

.feature-card {
    padding: 60px 40px;
    border-radius: 40px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
}

.f-icon-box {
    width: 80px;
    height: 80px;
    background-color: #f8faff;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2.5rem;
}

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    font-weight: 800;
}

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

/* Teacher Flow Section */
.teacher-flow {
    padding: 120px 80px;
}

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

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

.flow-content {
    flex: 1;
}

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

.flow-content h3 {
    font-size: 3.2rem;
    margin-bottom: 24px;
}

.flow-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.flow-image {
    flex: 1.4;
    border-radius: 40px;
    background-color: white;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

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

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

/* Tech Stack */
.tech-stack {
    padding: 80px 40px;
    background-color: #7c4dff;
    border-radius: 60px;
    margin: 40px;
    text-align: center;
}

.tech-stack h2 {
    font-size: 3.2rem;
    margin-bottom: 12px;
    color: white;
}

.tech-stack .section-tag {
    color: white;
    font-weight: 700;
}

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

.tech-card {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 30px 20px;
    border-radius: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.t-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background-color: white;
    color: #7c4dff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.tech-card h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

.tech-card p {
    font-size: 0.85rem;
    color: white;
    line-height: 1.4;
}

.tech-tag {
    display: inline-block;
    background-color: #4BB786;
    color: #ffffff;
    padding: 2px 10px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    margin-top: 10px;
}

/* Footer Section */
.purple-section {
    background-color: var(--primary);
    color: white;
    padding: 100px 80px;
    text-align: center;
    border-radius: 80px;
    margin: 40px;
}

.purple-section h2 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: white;
}

.purple-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
}

.btn-white {
    background-color: white;
    color: var(--primary);
    padding: 18px 40px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    display: inline-block;
}

/* Main Footer */
.main-footer {
    padding: 100px 80px 40px;
    background-color: #000000;
    border-top: 1px solid #333333;
    color: #ffffff;
}

.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: 24px;
}

.footer-brand p {
    color: #cccccc;
    font-size: 1rem;
    max-width: 320px;
    line-height: 1.6;
}

.footer-brand .logo-text {
    color: #ffffff;
}

.footer-links h4 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 32px;
    font-weight: 800;
}

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

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

.footer-links a {
    text-decoration: none;
    color: #cccccc;
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid #333333;
    text-align: center;
}

.footer-bottom p {
    color: #999999;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Mobile Responsiveness Improvements */

@media (max-width: 1200px) {
    .navbar {
        padding: 12px 40px;
    }

    .hero h1 {
        font-size: 4.5rem;
    }

    .floating-card {
        display: none;
    }

    .features,
    .teacher-flow,
    .tech-stack,
    .purple-section {
        padding: 80px 40px;
    }
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }

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

    .flow-step {
        gap: 40px;
        margin-bottom: 80px;
    }

    .flow-content h3 {
        font-size: 2.2rem;
    }

    .tech-stack {
        padding: 50px 20px;
        border-radius: 40px;
        margin: 20px;
    }

    .tech-stack h2 {
        font-size: 2.4rem;
    }

    .tech-grid {
        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: 20px;
    }

    .feature-card {
        padding: 30px 20px;
        border-radius: 30px;
    }

    .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: 40px;
    }

    .tech-stack h2 {
        font-size: 2.4rem;
    }

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

    .tech-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .t-icon {
        margin: 0 auto;
    }

    .tech-tag {
        position: relative;
        top: 0;
        right: 0;
        margin-top: 10px;
        display: inline-block;
    }

    .purple-section {
        padding: 60px 20px;
        margin: 20px;
        border-radius: 40px;
    }

    .purple-section h2 {
        font-size: 2rem;
    }

    .btn-white {
        padding: 16px 32px;
        width: 100%;
    }

    .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;
    }

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

/* ==========================================================
   Mobile Hamburger Nav
   ========================================================== */

/* Hamburger button — hidden on desktop */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-btn.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Full-screen mobile nav overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 88vw);
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    background-color: #ffffff;
    z-index: 1300;
    padding: 24px 28px calc(24px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
}

.mobile-nav.is-open {
    transform: translateX(0);
}

.mobile-nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.mobile-nav-top .logo-text {
    color: var(--text-dark);
}

.mobile-nav-close {
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    padding: 6px;
    display: flex;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 0 auto;
}

.mobile-nav-link {
    position: relative;
    text-decoration: none;
    color: var(--text-dark);
    font-family: 'Climate Crisis', sans-serif;
    font-size: 1.6rem;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-link::before {
    content: attr(data-index);
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.mobile-nav-link:active,
.mobile-nav-link:hover {
    color: var(--primary);
}

.mobile-nav-cta {
    position: sticky;
    bottom: 0;
    flex-shrink: 0;
    margin-top: 20px;
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 16px 24px;
    box-shadow: 0 -12px 18px rgba(255, 255, 255, 0.95);
}

/* Backdrop behind the overlay */
.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1200;
}

.mobile-nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

/* Show the hamburger on mobile, hide the old inline nav-links / CTA pill */
@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .mobile-nav {
        width: 100vw;
        max-width: 100vw;
        right: 0;
    }

    .hero {
        min-height: auto;
    }
}

@media (max-width: 768px) and (max-height: 700px) {
    .mobile-nav {
        padding-top: 16px;
    }

    .mobile-nav-top {
        margin-bottom: 24px;
    }

    .mobile-nav-link {
        font-size: 1.35rem;
        padding: 12px 0;
    }
}