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

:root {
    --bg-main: #fcfcfd;
    --primary: #5865F2;
    --primary-dark: #4752C4;
    --primary-light: #EEF0FF;
    --secondary: #EB459E;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --border: #e2e8f0;
    --card-bg: #ffffff;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 40px -15px rgba(88, 101, 242, 0.15);
    --shadow-glow: 0 0 35px rgba(88, 101, 242, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
    font-family: 'Climate Crisis', sans-serif;
    font-weight: 400;
    line-height: 1.1;
    word-wrap: break-word;
    letter-spacing: -0.02em;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 80px;
    background-color: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo img {
    height: 36px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo-text {
    font-family: 'Climate Crisis', sans-serif;
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    position: relative;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.25s ease;
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-cta {
    display: none;
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.hamburger-btn span {
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

.btn-pill {
    background: #ffffff;
    color: #0f172a;
    padding: 12px 28px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.btn-pill:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.25);
}

/* Hero Section */
.hero {
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 40px 140px;
    background: radial-gradient(circle at 50% 10%, #eef2ff 0%, #f0f4ff 50%, #fcfcfd 100%);
    position: relative;
    overflow: hidden;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(88, 101, 242, 0.25);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 28px;
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.1);
    backdrop-filter: blur(8px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #22c55e;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
    font-size: 5.2rem;
    color: var(--text-dark);
    max-width: 1050px;
    margin-bottom: 24px;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero h1 span {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, #7c4dff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 680px;
    margin-bottom: 48px;
    font-weight: 400;
    line-height: 1.7;
}

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

.btn-cta {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 18px 42px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 35px -8px rgba(15, 23, 42, 0.45);
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.link-action {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: 100px;
    transition: all 0.2s ease;
}

.link-action:hover {
    color: var(--primary);
    background-color: rgba(88, 101, 242, 0.06);
}

/* Floating Cards in Hero */
.floating-card {
    position: absolute;
    width: 320px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.floating-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 25px 50px -10px rgba(88, 101, 242, 0.25);
}

.floating-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px;
    background-color: #f8faff;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-left {
    left: 45px;
    top: 38%;
    animation: floatLeft 6s ease-in-out infinite;
}

.card-right {
    right: 45px;
    bottom: 12%;
    animation: floatRight 7s ease-in-out infinite;
}

@keyframes floatLeft {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-12px) rotate(-1deg); }
}

@keyframes floatRight {
    0%, 100% { transform: translateY(0px) rotate(2deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

/* Section Tag */
.section-tag {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 16px;
}

/* Features Section */
.features {
    padding: 120px 80px;
    background-color: #ffffff;
    text-align: center;
}

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

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

.feature-card {
    padding: 48px 36px;
    border-radius: 32px;
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(88, 101, 242, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.f-icon-box {
    width: 68px;
    height: 68px;
    background: var(--primary-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    transition: transform 0.3s ease;
}

.feature-card:hover .f-icon-box {
    transform: scale(1.08);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 14px;
    font-weight: 600;
    color: var(--text-dark);
    font-family: 'Outfit', sans-serif;
}

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

/* Workflow Section (Teacher & Student) */
.teacher-flow {
    padding: 120px 80px;
    background-color: var(--bg-main);
}

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

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

.flow-step:nth-child(even) {
    flex-direction: row-reverse;
}

.flow-content {
    flex: 1;
}

.step-badge {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 14px;
    display: inline-block;
    background-color: var(--primary-light);
    padding: 6px 14px;
    border-radius: 100px;
}

.flow-content h3 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-family: 'Climate Crisis', sans-serif;
}

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

.flow-image {
    flex: 1.3;
    border-radius: 28px;
    background-color: #ffffff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.4s ease;
}

.flow-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.flow-image:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(88, 101, 242, 0.3);
}

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

/* Advanced Tech Stack Section */
.tech-stack {
    padding: 90px 60px;
    background: linear-gradient(135deg, #6366f1 0%, #7c4dff 50%, #4f46e5 100%);
    border-radius: 48px;
    margin: 60px 40px;
    text-align: center;
    box-shadow: 0 25px 60px -15px rgba(99, 102, 241, 0.4);
    position: relative;
    overflow: hidden;
}

.tech-stack::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.tech-stack h2 {
    font-size: 3.4rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.tech-stack .section-tag {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

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

.tech-card {
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 32px 24px;
    border-radius: 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.t-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background-color: #ffffff;
    color: #6366f1;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.tech-card:hover .t-icon {
    transform: scale(1.1) rotate(5deg);
}

.tech-info h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.tech-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    font-weight: 400;
}

.tech-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Purple CTA Section */
.purple-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    padding: 100px 80px;
    text-align: center;
    border-radius: 48px;
    margin: 60px 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

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

.purple-section p {
    font-size: 1.25rem;
    max-width: 750px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.btn-white {
    background-color: #ffffff;
    color: var(--primary);
    padding: 20px 44px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
    background-color: #f8fafc;
}

/* Main Footer */
.main-footer {
    padding: 100px 80px 40px;
    background-color: #090d16;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    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: 20px;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.98rem;
    max-width: 320px;
    line-height: 1.6;
    font-weight: 400;
}

.footer-links h4 {
    font-size: 1.05rem;
    color: #ffffff;
    margin-bottom: 24px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

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

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

.footer-links a {
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.2s ease;
}

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

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

.footer-bottom p {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 400;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 1200px) {
    .navbar {
        padding: 14px 40px;
    }

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

    .floating-card {
        display: none;
    }

    .features,
    .teacher-flow {
        padding: 80px 40px;
    }

    .tech-stack,
    .purple-section {
        padding: 70px 40px;
        margin: 30px 20px;
    }
}

@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 h2 {
        font-size: 2.6rem;
    }

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

@media (max-width: 768px) {
    .navbar {
        padding: 14px 20px;
    }

    .navbar .logo-text {
        display: block;
        font-size: 1.35rem;
    }

    .nav-cta {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 67px;
        left: 0;
        right: 0;
        background: rgba(9, 13, 22, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        flex-direction: column;
        padding: 32px 24px;
        gap: 20px;
        align-items: center;
        text-align: center;
        transform: translateY(-150%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
        z-index: 999;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a:not(.btn-pill) {
        font-size: 1.15rem;
        color: #ffffff;
        width: 100%;
        padding: 10px 0;
    }

    .mobile-cta {
        display: block;
        width: 100%;
        margin-top: 10px;
    }

    .mobile-cta .btn-pill {
        background-color: #ffffff !important;
        color: #0f172a !important;
        justify-content: center;
        width: 100%;
        padding: 14px 28px;
        font-size: 1.05rem;
        font-weight: 600;
    }

    .mobile-cta .btn-pill svg {
        stroke: #0f172a;
    }

    .hero {
        padding: 80px 20px;
    }

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

    .hero p {
        font-size: 1.05rem;
        margin-bottom: 32px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 16px;
        width: 100%;
        max-width: 320px;
    }

    .btn-cta {
        padding: 16px 32px;
        width: 100%;
        justify-content: center;
    }

    .features,
    .teacher-flow {
        padding: 60px 20px;
    }

    .features h2 {
        font-size: 2.4rem;
        margin-bottom: 40px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 32px 24px;
        border-radius: 24px;
    }

    .flow-step {
        flex-direction: column !important;
        gap: 24px;
        margin-bottom: 60px;
    }

    .flow-image {
        width: 100%;
        flex: none;
        border-radius: 20px;
    }

    .flow-content h3 {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .flow-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

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

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

    .tech-card {
        padding: 24px 18px;
    }

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

    .purple-section h2 {
        font-size: 2.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.4rem;
    }

    .hero p {
        font-size: 0.95rem;
    }
}