:root {
    --bg-dark: #020617;
    --primary-cyan: #22D3EE;
    --primary-blue: #3B82F6;
    --primary-purple: #A855F7;
    --primary-orange: #F97316;
    --gradient: linear-gradient(135deg, #22D3EE, #A855F7, #F97316);
    --gradient-coude: linear-gradient(135deg, #22D3EE, #3B82F6);
    --gradient-school: linear-gradient(135deg, #A855F7, #F97316);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: #F9FAFB;
    overflow-x: hidden;
    line-height: 1.5;
}

#particles {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
}

/* --- NAVBAR --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center; padding: 15px 8%;
    position: fixed; width: 100%; z-index: 100; top: 0;
    background: rgba(2, 6, 23, 0.85); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.logo-container { display: flex; align-items: center; gap: 12px; }
.nav-logo { width: 38px; height: 38px; }
.brand-wrapper { display: flex; flex-direction: column; }
.brand-name { font-weight: 800; font-size: 1.4rem; letter-spacing: 1px; line-height: 1; }
.brand-tag { font-size: 0.65rem; color: var(--primary-cyan); text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }

.nav-links { list-style: none; display: flex; gap: 25px; align-items: center; }
.nav-links a { text-decoration: none; color: #cbd5e1; transition: 0.3s; font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: white; text-shadow: 0 0 10px rgba(34, 211, 238, 0.6); }

.btn-nav {
    background: var(--gradient); padding: 8px 22px; border-radius: 50px;
    color: white !important; font-weight: 600; box-shadow: 0 4px 15px rgba(34, 211, 238, 0.2);
    transition: transform 0.3s, box-shadow 0.3s !important;
}
.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4); }

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: space-between;
    padding: 120px 8% 60px; position: relative; gap: 40px;
}

.hero-content { max-width: 52%; z-index: 2; }

.badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border: 1px solid rgba(34, 211, 238, 0.4);
    color: var(--primary-cyan); border-radius: 30px; font-size: 0.85rem; font-weight: 600;
    margin-bottom: 24px; background: rgba(34, 211, 238, 0.08); backdrop-filter: blur(10px);
}

h1 { font-size: 3.4rem; line-height: 1.15; margin-bottom: 20px; font-weight: 800; }
.gradient-text {
    background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.cursor { animation: blink 1s infinite; font-weight: 300; color: var(--primary-cyan); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-content p { color: #94a3b8; font-size: 1.15rem; margin-bottom: 35px; max-width: 540px; line-height: 1.6; }
.hero-content p strong { color: #f8fafc; }

.cta-group { display: flex; gap: 15px; margin-bottom: 45px; flex-wrap: wrap; }

.btn-primary {
    background: white; color: black; padding: 14px 32px; border-radius: 12px;
    font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 10px; transition: 0.3s;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(255,255,255,0.3); }

.btn-secondary {
    padding: 14px 32px; border-radius: 12px; font-weight: 600; text-decoration: none;
    color: white; border: 1px solid rgba(255,255,255,0.2); transition: 0.3s;
    display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.03);
}
.btn-secondary:hover { border-color: var(--primary-cyan); background: rgba(34, 211, 238, 0.1); transform: translateY(-3px); }

.stats-row { display: flex; gap: 40px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 25px; }
.stat strong { display: block; font-size: 1.7rem; font-weight: 800; color: #fff; }
.stat span { font-size: 0.8rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

/* --- HERO VISUAL & MOCKUP --- */
.hero-visual { width: 44%; display: flex; justify-content: center; position: relative; }

.glow-bg {
    position: absolute; width: 340px; height: 340px; background: var(--gradient);
    filter: blur(120px); opacity: 0.35; animation: pulse 4s infinite alternate;
}

.phone-wrapper { display: flex; flex-direction: column; align-items: center; gap: 15px; z-index: 5; }

.app-switcher-tabs {
    display: flex; background: rgba(15, 23, 42, 0.8); border: 1px solid var(--glass-border);
    padding: 5px; border-radius: 30px; gap: 5px; backdrop-filter: blur(10px);
}
.tab-btn {
    border: none; background: transparent; color: #94a3b8; padding: 8px 16px;
    border-radius: 20px; font-size: 0.8rem; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; gap: 6px; transition: 0.3s; font-family: 'Outfit', sans-serif;
}
.tab-btn.active {
    background: var(--gradient); color: white; box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.phone-frame {
    width: 290px; height: 570px; background: #000; border-radius: 44px;
    border: 6px solid #1e293b; position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 30px rgba(34, 211, 238, 0.15); animation: float 6s ease-in-out infinite;
}
.notch {
    width: 110px; height: 24px; background: #000; position: absolute; top: 0; left: 50%;
    transform: translateX(-50%); border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; z-index: 10;
}
.screen {
    width: 100%; height: 100%; background: #070d19; border-radius: 38px;
    overflow: hidden; padding: 45px 16px 20px; position: relative;
}

.screen-view {
    display: none; flex-direction: column; gap: 14px; opacity: 0; transition: opacity 0.4s ease; height: 100%;
}
.screen-view.active { display: flex; opacity: 1; }

.app-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.app-badge { font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 12px; }
.coude-badge { background: rgba(34, 211, 238, 0.2); color: var(--primary-cyan); border: 1px solid rgba(34, 211, 238, 0.3); }
.school-badge { background: rgba(168, 85, 247, 0.2); color: var(--primary-purple); border: 1px solid rgba(168, 85, 247, 0.3); }

.user-pill { font-size: 0.65rem; color: #f97316; background: rgba(249, 115, 22, 0.15); padding: 3px 8px; border-radius: 10px; font-weight: 600; }
.user-pill.status-ok { color: #10b981; background: rgba(16, 185, 129, 0.15); }

.app-card {
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px; padding: 14px; font-size: 0.8rem; text-align: left;
}
.card-tag { font-size: 0.65rem; color: var(--primary-cyan); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; margin-bottom: 4px; }
.app-card h4 { font-size: 0.9rem; color: #fff; margin-bottom: 6px; font-weight: 700; }
.app-card p { font-size: 0.75rem; color: #94a3b8; line-height: 1.3; }

.avatar-group { display: flex; gap: -5px; margin-top: 10px; }
.avatar {
    width: 24px; height: 24px; border-radius: 50%; background: var(--gradient-coude);
    display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: bold; color: white;
    border: 2px solid #070d19;
}

.app-card.mini { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(34, 211, 238, 0.05); }
.app-card.mini.alert { background: rgba(168, 85, 247, 0.08); border-color: rgba(168, 85, 247, 0.2); }
.app-card.mini i { color: var(--primary-cyan); font-size: 0.9rem; }
.app-card.mini.alert i { color: var(--primary-purple); }

.schedule-list { list-style: none; margin-top: 8px; font-size: 0.75rem; }
.schedule-list li { display: flex; gap: 10px; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.05); color: #cbd5e1; }
.schedule-list li span { color: var(--primary-orange); font-weight: bold; }

.app-action-btn {
    margin-top: auto; background: var(--gradient-coude); padding: 10px; text-align: center;
    border-radius: 12px; font-weight: 700; font-size: 0.8rem; color: white; cursor: pointer;
}
.app-action-btn.school { background: var(--gradient-school); }

/* --- SECTION HEADERS --- */
.section-header { text-align: center; max-width: 650px; margin: 0 auto 60px; }
.sub-title { font-size: 0.8rem; font-weight: 700; color: var(--primary-cyan); letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 8px; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; }
.section-header p { color: #94a3b8; font-size: 1.05rem; }

/* --- ECOSYSTEM SECTION --- */
.ecosystem-section { padding: 90px 8%; position: relative; }
.ecosystem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 35px; }

.eco-card {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px); border-radius: 24px; padding: 40px 35px;
    display: flex; flex-direction: column; transition: all 0.4s ease; position: relative; overflow: hidden;
}
.eco-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: var(--gradient-coude); opacity: 0.8;
}
#schoollink::before { background: var(--gradient-school); }

.eco-card:hover {
    transform: translateY(-8px); border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px rgba(34, 211, 238, 0.15);
}
#schoollink:hover { border-color: rgba(168, 85, 247, 0.4); box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px rgba(168, 85, 247, 0.15); }

.eco-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.eco-icon {
    width: 60px; height: 60px; border-radius: 18px; background: var(--gradient-coude);
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: white;
    box-shadow: 0 8px 20px rgba(34, 211, 238, 0.3);
}
.school-icon { background: var(--gradient-school); box-shadow: 0 8px 20px rgba(168, 85, 247, 0.3); }

.eco-pill {
    font-size: 0.75rem; font-weight: 700; color: var(--primary-cyan); background: rgba(34, 211, 238, 0.1);
    padding: 6px 14px; border-radius: 20px; border: 1px solid rgba(34, 211, 238, 0.2);
    display: inline-flex; align-items: center; gap: 6px;
}
.eco-pill.status-live {
    color: #10b981; background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.3);
}
.eco-pill.status-live i { font-size: 0.55rem; color: #10b981; animation: pulse 2s infinite; }
.eco-pill.status-dev {
    color: #f59e0b; background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.3);
}
.eco-pill.status-dev i { font-size: 0.75rem; color: #f59e0b; }
.school-pill { color: var(--primary-purple); background: rgba(168, 85, 247, 0.1); border-color: rgba(168, 85, 247, 0.2); }

.eco-card h3 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; color: #fff; }
.eco-tagline { color: #cbd5e1; font-size: 1rem; margin-bottom: 25px; line-height: 1.5; font-weight: 500; }

.eco-features { list-style: none; margin-bottom: 35px; display: flex; flex-direction: column; gap: 14px; }
.eco-features li { display: flex; gap: 12px; font-size: 0.95rem; color: #94a3b8; line-height: 1.4; }
.eco-features li i { color: var(--primary-cyan); font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }
#schoollink .eco-features li i { color: var(--primary-purple); }
.eco-features li strong { color: #f8fafc; }

.btn-eco {
    margin-top: auto; padding: 14px 25px; border-radius: 12px; text-decoration: none; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: 0.3s;
}
.coude-btn { background: var(--gradient-coude); color: white; box-shadow: 0 6px 20px rgba(34, 211, 238, 0.25); }
.school-btn { background: var(--gradient-school); color: white; box-shadow: 0 6px 20px rgba(168, 85, 247, 0.25); }
.btn-eco:hover { transform: translateY(-3px); opacity: 0.95; }

/* --- FEATURES SECTION --- */
.features-section { padding: 90px 8%; text-align: center; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; margin-top: 30px; }

.glass {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px); border-radius: 20px; padding: 35px 25px; transition: 0.3s;
}
.glass:hover {
    border-color: var(--primary-cyan); transform: translateY(-6px); box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}
.feature-card i {
    font-size: 2.4rem; margin-bottom: 20px; background: var(--gradient);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; display: inline-block;
}
.feature-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; color: #fff; }
.feature-card p { color: #94a3b8; font-size: 0.95rem; line-height: 1.5; }

/* --- NEWSLETTER SECTION --- */
.newsletter-section { margin: 60px 8%; text-align: center; position: relative; overflow: hidden; padding: 50px 30px; }
.newsletter-section::before {
    content:''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(168,85,247,0.12) 0%, transparent 70%); z-index: -1;
}
.newsletter-content h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; }
.newsletter-content p { color: #94a3b8; font-size: 1.05rem; max-width: 550px; margin: 0 auto; }

.email-form { display: flex; gap: 12px; max-width: 460px; margin: 30px auto 0; flex-wrap: wrap; }
.email-form input {
    flex: 1; min-width: 220px; padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.6); color: white; outline: none; font-family: 'Outfit', sans-serif; font-size: 0.95rem;
}
.email-form input:focus { border-color: var(--primary-cyan); box-shadow: 0 0 15px rgba(34, 211, 238, 0.2); }
.email-form button {
    padding: 14px 26px; border-radius: 12px; border: none; background: var(--gradient);
    color: white; font-weight: 700; cursor: pointer; transition: 0.3s; font-family: 'Outfit', sans-serif;
}
.email-form button:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4); }

/* --- DOWNLOAD SECTION --- */
.download-section { padding: 80px 8%; text-align: center; }
.download-section h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 8px; }
.download-section p { color: #94a3b8; font-size: 1rem; }
.grid-downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-top: 40px; }
.dl-card i { font-size: 2.2rem; margin-bottom: 12px; color: #fff; }
.dl-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.btn-dl.disabled {
    background: transparent; border: 1px solid rgba(255,255,255,0.15); color: #64748b; padding: 6px 16px;
    border-radius: 8px; font-size: 0.8rem; margin-top: 5px; cursor: not-allowed; font-weight: 600;
}

/* --- FOOTER --- */
footer { text-align: center; padding: 50px 8%; border-top: 1px solid var(--glass-border); font-size: 0.95rem; color: #64748b; }
.footer-content { display: flex; flex-direction: column; gap: 15px; align-items: center; }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.footer-brand p { color: #94a3b8; font-size: 0.9rem; }
.footer-brand strong { color: var(--primary-cyan); }

/* --- ANIMATIONS & REVEAL --- */
@keyframes float { 0%, 100% {transform: translateY(0);} 50% {transform: translateY(-12px);} }
@keyframes pulse { 0% {opacity:0.25;} 100% {opacity:0.5;} }

.reveal { opacity: 0; transform: translateY(35px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero { flex-direction: column; text-align: center; padding-top: 130px; }
    .hero-content { max-width: 100%; }
    .hero-content p { margin-left: auto; margin-right: auto; }
    h1 { font-size: 2.8rem; }
    .hero-visual { width: 100%; margin-top: 20px; }
    .cta-group { justify-content: center; }
    .stats-row { justify-content: center; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    h1 { font-size: 2.3rem; }
    .ecosystem-grid { grid-template-columns: 1fr; }
    .eco-card { padding: 30px 22px; }
    .phone-frame { width: 270px; height: 530px; }
}