/* =========================================
   AISTEA – Premium Redesign
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary:      #6C63FF;
    --primary-dark: #4C45CC;
    --secondary:    #00D4FF;
    --green:        #00E676;
    --bg-dark:      #0D1117;
    --gradient:     linear-gradient(135deg, #6C63FF, #00D4FF);
    --font:         'Poppins', sans-serif;
    /* Glassmorphism tokens */
    --glass-bg:     rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-blur:   16px;
    /* Neumorphism tokens */
    --neu-light:    #ffffff;
    --neu-shadow-light: rgba(0, 0, 0, 0.08);
    --neu-shadow-dark:  rgba(0, 0, 0, 0.15);
    /* Glow tokens */
    --glow-primary: rgba(108, 99, 255, 0.6);
    --glow-cyan:    rgba(0, 212, 255, 0.5);
    --glow-green:   rgba(0, 230, 118, 0.5);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: #ffffff; color: #1a1a2e; overflow-x: hidden; }

/* ---- GRADIENT TEXT ---- */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text-light {
    background: linear-gradient(135deg, #ffffff, #b8f0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- SCROLL REVEAL ---- */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 10px 0;
    /* Pure-white background so the logo's grey PNG background
       multiply-blends cleanly without any tint leak from the hero. */
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: padding 0.3s, box-shadow 0.3s, border-color 0.3s, background 0.3s;
}
.navbar.scrolled {
    padding: 7px 0;
    background: #ffffff;
    box-shadow: 0 4px 30px rgba(108, 99, 255, 0.1), 0 1px 3px rgba(0,0,0,0.06);
    border-bottom-color: rgba(108, 99, 255, 0.08);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
/* Logo image */
.logo-img {
    height: 54px;
    width: auto;
    display: block;
    border-radius: 8px;
}
/* Brand lockup — original wordmark PNG.
   The PNG ships with a light grey background. We can't strip that with
   pure CSS, so we (1) brighten the image so the grey lifts close to
   white, then (2) multiply-blend it with the navbar so the remaining
   tint vanishes against a pure-white navbar background. */
.brand-lockup {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s;
}
.brand-lockup:hover { opacity: 0.85; }
.brand-png {
    height: 50px;
    width: auto;
    display: block;
    mix-blend-mode: multiply;
    filter: brightness(1.18) contrast(1.08) saturate(1.1);
}
.footer-logo-svg {
    height: 52px;
    width: auto;
    display: block;
    margin-bottom: 14px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}
.nav-links a {
    text-decoration: none;
    color: #3d3d5c;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--primary); }

.nav-links .nav-cta {
    background: var(--gradient);
    color: white !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(108,99,255,0.45);
    transition: transform 0.3s, box-shadow 0.3s;
}
.nav-links .nav-cta:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 30px rgba(108,99,255,0.55),
        0 0 40px rgba(108, 99, 255, 0.2);
}

.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.menu-btn span {
    display: block;
    width: 25px;
    height: 2.5px;
    background: #1a1a2e;
    border-radius: 2px;
}

/* =========================================
   HERO
   ========================================= */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0D1117 0%, #1a1a3e 45%, #0d2137 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}

/* Particles */
.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
    position: absolute;
    background: rgba(108,99,255,0.65);
    border-radius: 50%;
    animation: float-up linear infinite;
}
@keyframes float-up {
    0%   { transform: translateY(0) scale(1);   opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { transform: translateY(-110px) scale(0); opacity: 0; }
}

.hero-container {
    flex: 1;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 32px 40px;
    gap: 60px;
}

/* Hero text */
.hero-text { flex: 1; color: white; }

.hero-badge {
    display: inline-block;
    background: rgba(108,99,255,0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(108,99,255,0.4);
    color: #b4afff;
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 22px;
    animation: badge-pulse 2.5s ease-in-out infinite;
}
@keyframes badge-pulse {
    0%,100% { box-shadow: 0 0 15px rgba(108,99,255,0.3), 0 0 30px rgba(108,99,255,0.1); }
    50%      { box-shadow: 0 0 30px rgba(108,99,255,0.65), 0 0 60px rgba(108,99,255,0.2), 0 0 80px rgba(0,212,255,0.1); }
}

.hero-text h1 {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 22px;
}
.hero-text p {
    font-size: 18px;
    color: rgba(255,255,255,0.72);
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient);
    color: white;
    padding: 15px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(108,99,255,0.5);
    transition: transform 0.3s, box-shadow 0.3s;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 16px 40px rgba(108,99,255,0.6),
        0 0 50px rgba(108, 99, 255, 0.3),
        0 0 80px rgba(0, 212, 255, 0.15);
}
.btn-arrow { font-size: 18px; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    color: white;
    padding: 15px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255, 255, 255, 0.06);
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.btn-secondary:hover {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.08);
}

.hero-stats { display: flex; align-items: center; gap: 24px; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 28px; font-weight: 800; color: white; line-height: 1.1; }
.stat span { font-size: 12px; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 1px; }
.stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.15); }

/* ---- AI ROBOT ---- */
.hero-visual {
    flex: 0 0 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.ai-robot {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ---- FRIENDLY ROBOT HEAD ---- */
.robot-head {
    position: relative;
    z-index: 5;
    width: 158px;
    height: 158px;
    background: linear-gradient(145deg, #2e2d8e, #1d1c6a);
    border-radius: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(108,99,255,0.6);
    box-shadow:
        0 0 40px rgba(108,99,255,0.3),
        0 12px 40px rgba(0,0,0,0.35),
        inset 0 2px 0 rgba(255,255,255,0.08);
    animation: robot-bounce 3s cubic-bezier(0.36,0.07,0.19,0.97) infinite;
}
@keyframes robot-bounce {
    0%,100% { transform: translateY(0) rotate(-1deg); }
    30%     { transform: translateY(-18px) rotate(1.5deg); }
    55%     { transform: translateY(-14px) rotate(-1deg); }
    75%     { transform: translateY(-8px) rotate(0.5deg); }
}

/* Graduation cap on top */
.robot-cap {
    position: absolute;
    top: -34px;
    left: 50%;
    transform: translateX(-55%);
    font-size: 30px;
    line-height: 1;
    animation: cap-tilt 3s ease-in-out infinite;
    z-index: 6;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.4));
}
@keyframes cap-tilt {
    0%,100% { transform: translateX(-55%) rotate(-6deg); }
    50%      { transform: translateX(-55%) rotate(6deg); }
}

/* Face layout */
.robot-face { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.robot-eyes { display: flex; gap: 20px; }

/* Round friendly eyes */
.robot-eye {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.5);
}
.left-eye  { animation: eye-blink 4.5s ease-in-out infinite; }
.right-eye { animation: eye-blink 4.5s ease-in-out infinite 0.1s; }
@keyframes eye-blink {
    0%,85%,100% { transform: scaleY(1); }
    90%          { transform: scaleY(0.06); }
}

.robot-iris {
    width: 23px;
    height: 23px;
    background: linear-gradient(135deg, #6C63FF, #00D4FF);
    border-radius: 50%;
    position: absolute;
}
.robot-pupil {
    width: 10px;
    height: 10px;
    background: #0d0c2e;
    border-radius: 50%;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.robot-shine {
    width: 7px;
    height: 7px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 8px; left: 9px;
    opacity: 0.85;
}

/* Rosy cheeks */
.robot-cheeks {
    display: flex;
    justify-content: space-between;
    width: 82px;
    margin-top: -6px;
}
.cheek {
    width: 18px;
    height: 11px;
    background: rgba(255, 130, 160, 0.38);
    border-radius: 50%;
}

/* Curved happy smile */
.robot-smile {
    width: 52px;
    height: 14px;
    border-bottom: 4px solid rgba(255,255,255,0.82);
    border-left:   3px solid rgba(255,255,255,0.82);
    border-right:  3px solid rgba(255,255,255,0.82);
    border-top: none;
    border-radius: 0 0 32px 32px;
    margin-top: 2px;
    animation: smile-pulse 3s ease-in-out infinite;
}
@keyframes smile-pulse {
    0%,100% { transform: scaleX(1); }
    50%      { transform: scaleX(1.1); }
}

.robot-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(108,99,255,0.28) 0%, rgba(0, 212, 255, 0.08) 50%, transparent 70%);
    border-radius: 50%;
    animation: glow-pulse 3s ease-in-out infinite;
}
@keyframes glow-pulse {
    0%,100% { transform: scale(1);   opacity: 0.8; }
    50%      { transform: scale(1.25); opacity: 1; }
}

.orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid transparent;
    animation: orbit-spin linear infinite;
}
.orbit-1 { width: 215px; height: 215px; border-color: rgba(108,99,255,0.3);  animation-duration: 8s; }
.orbit-2 { width: 265px; height: 265px; border-color: rgba(0,212,255,0.18); animation-duration: 12s; animation-direction: reverse; }
.orbit-3 { width: 315px; height: 315px; border-color: rgba(0,230,118,0.13); animation-duration: 17s; }
@keyframes orbit-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.floating-icon {
    position: absolute;
    font-size: 24px;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.25));
    animation: float-icon ease-in-out infinite;
    z-index: 6;
}
.icon-1 { top: 8px;  right: 55px; animation-duration: 5.5s; animation-delay: 0s; }
.icon-2 { bottom: 18px; right: 28px; animation-duration: 6.5s; animation-delay: -1.8s; }
.icon-3 { bottom: 28px; left: 28px; animation-duration: 5s;   animation-delay: -0.9s; }
.icon-4 { top: 18px; left: 45px;   animation-duration: 7s;   animation-delay: -3s; }
.icon-5 { top: 45%; right: 5px;   animation-duration: 8.5s; animation-delay: -4.2s; }
@keyframes float-icon {
    0%,100% { transform: translateY(0) rotate(0deg); }
    40%      { transform: translateY(-12px) rotate(6deg); }
    70%      { transform: translateY(8px) rotate(-4deg); }
}

/* Hero wave */
.hero-wave { line-height: 0; }
.hero-wave svg { display: block; width: 100%; }

/* =========================================
   MARQUEE
   ========================================= */
.marquee-section {
    background: var(--gradient);
    overflow: hidden;
    padding: 13px 0;
}
.marquee-track {
    display: flex;
    gap: 45px;
    animation: marquee-scroll 22s linear infinite;
    white-space: nowrap;
}
.marquee-track span { color: white; font-weight: 600; font-size: 14px; letter-spacing: 0.4px; }
@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* =========================================
   SECTION COMMON
   ========================================= */
.section-container { max-width: 1200px; margin: 0 auto; padding: 0 32px; text-align: center; }
section { padding: 90px 0; }

.section-label {
    display: inline-block;
    background: linear-gradient(135deg, rgba(108,99,255,0.1), rgba(0,212,255,0.1));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(108,99,255,0.25);
    color: var(--primary);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 14px;
    box-shadow: 0 0 12px rgba(108, 99, 255, 0.08);
    transition: box-shadow 0.3s;
}
.section-label:hover {
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.15);
}
section h2 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 14px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}
.section-sub {
    font-size: 17px;
    color: #777;
    max-width: 580px;
    margin: 0 auto 52px;
    line-height: 1.7;
}

/* =========================================
   FEATURES
   ========================================= */
.features {
    background: #ffffff;
    position: relative;
    overflow: hidden;
}
.features::before {
    content: '';
    position: absolute;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(108,99,255,0.055) 0%, transparent 65%);
    border-radius: 50%;
    top: -260px; right: -180px;
    pointer-events: none;
}
.features::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,212,255,0.04) 0%, transparent 65%);
    border-radius: 50%;
    bottom: -150px; left: -100px;
    pointer-events: none;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    text-align: left;
    position: relative;
    z-index: 1;
}
.feature-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 32px 26px 28px;
    border-radius: 20px;
    box-shadow:
        6px 6px 16px var(--neu-shadow-light),
        -4px -4px 12px rgba(255, 255, 255, 0.9),
        0 6px 24px rgba(0,0,0,0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    border-radius: 0 0 4px 4px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.feature-grid .feature-card:nth-child(1)::before { background: linear-gradient(90deg,#6C63FF,#8b85ff); }
.feature-grid .feature-card:nth-child(2)::before { background: linear-gradient(90deg,#00B4D8,#00D4FF); }
.feature-grid .feature-card:nth-child(3)::before { background: linear-gradient(90deg,#00C896,#00E676); }
.feature-grid .feature-card:nth-child(4)::before { background: linear-gradient(90deg,#FF6B6B,#FF8E8E); }
.feature-grid .feature-card:nth-child(5)::before { background: linear-gradient(90deg,#FFB347,#FFCF72); }
.feature-grid .feature-card:nth-child(6)::before { background: linear-gradient(90deg,#7B61FF,#A08AFF); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 2px 0 #6C63FF,
        0 24px 50px rgba(108,99,255,0.15),
        0 0 30px rgba(108, 99, 255, 0.08),
        inset 0 0 30px rgba(108, 99, 255, 0.03);
    border-color: rgba(108,99,255,0.25);
}

.feature-icon {
    width: 60px; height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 18px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow:
        4px 4px 10px var(--neu-shadow-light),
        -3px -3px 8px rgba(255, 255, 255, 0.8);
}
.feature-card:hover .feature-icon {
    box-shadow:
        inset 3px 3px 8px var(--neu-shadow-light),
        inset -2px -2px 6px rgba(255, 255, 255, 0.7);
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-4deg); }
.feature-grid .feature-card:nth-child(1) .feature-icon { background: rgba(108,99,255,0.10); }
.feature-grid .feature-card:nth-child(2) .feature-icon { background: rgba(0,180,216,0.10); }
.feature-grid .feature-card:nth-child(3) .feature-icon { background: rgba(0,200,150,0.10); }
.feature-grid .feature-card:nth-child(4) .feature-icon { background: rgba(255,107,107,0.10); }
.feature-grid .feature-card:nth-child(5) .feature-icon { background: rgba(255,179,71,0.10); }
.feature-grid .feature-card:nth-child(6) .feature-icon { background: rgba(123,97,255,0.10); }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: #1a1a2e; }
.feature-card p  { font-size: 14px; color: #666; line-height: 1.7; }

/* =========================================
   HOW IT WORKS
   ========================================= */
.how-it-works {
    background: #fafbff;
    background-image: radial-gradient(rgba(108,99,255,0.07) 1px, transparent 1px);
    background-size: 30px 30px;
    position: relative;
}

.steps {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 52px;
}
.step { flex: 1; min-width: 190px; max-width: 210px; text-align: center; }
.step-num {
    width: 64px; height: 64px;
    background: var(--gradient);
    color: white;
    font-size: 20px;
    font-weight: 800;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow:
        0 8px 28px rgba(108,99,255,0.38),
        0 0 20px rgba(108, 99, 255, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.25);
    position: relative;
    transition: box-shadow 0.3s ease;
}
.step:hover .step-num {
    box-shadow:
        0 8px 28px rgba(108,99,255,0.5),
        0 0 40px rgba(108, 99, 255, 0.35),
        0 0 60px rgba(0, 212, 255, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.25);
}
.step-num::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 2px dashed rgba(108,99,255,0.22);
    border-radius: 26px;
    pointer-events: none;
}
.step-content h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-content p  { font-size: 14px; color: #666; line-height: 1.65; }
.step-arrow { font-size: 22px; color: var(--primary); margin-top: 24px; flex-shrink: 0; opacity: 0.3; }

/* =========================================
   TEACHERS
   ========================================= */
.teachers {
    background: linear-gradient(160deg, #0d0f1e 0%, #111330 40%, #0d1a2e 100%);
}
.teachers .section-label {
    background: rgba(108,99,255,0.15);
    border-color: rgba(108,99,255,0.4);
    color: #b4afff;
}
.teachers h2 { color: white; }
.teachers .section-sub { color: rgba(255,255,255,0.5); }

.teacher-cards {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 50px;
}
.teacher-card {
    position: relative;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    width: 295px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 20px 50px rgba(0,0,0,0.35),
        0 0 1px rgba(108, 99, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
    overflow: hidden;
    text-align: left;
    color: white;
}
.teacher-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient);
}
.teacher-card.featured {
    background: rgba(108,99,255,0.1);
    border: 1px solid rgba(0,212,255,0.4);
    box-shadow:
        0 20px 60px rgba(0,212,255,0.15),
        0 0 0 1px rgba(0,212,255,0.15),
        0 0 40px rgba(0, 212, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}
.teacher-card:hover {
    transform: translateY(-12px);
    border-color: rgba(108,99,255,0.55);
    box-shadow:
        0 32px 70px rgba(0,0,0,0.4),
        0 0 50px rgba(108,99,255,0.25),
        0 0 80px rgba(108,99,255,0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.teacher-card.featured:hover {
    transform: scale(1.05) translateY(-12px);
    box-shadow:
        0 32px 70px rgba(0,212,255,0.2),
        0 0 60px rgba(0,212,255,0.3),
        0 0 100px rgba(0,212,255,0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.teacher-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(108,99,255,0.06), transparent 60%);
    pointer-events: none;
}
.featured-badge {
    position: absolute;
    top: 14px; right: 14px;
    background: var(--gradient);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: 0.8px;
}
.teacher-badge {
    display: inline-block;
    background: rgba(108,99,255,0.18);
    color: #b4afff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 10px;
    border: 1px solid rgba(108,99,255,0.35);
    letter-spacing: 0.5px;
}
/* ---- Teacher image power frame ---- */
.teacher-img-wrap {
    margin-bottom: 18px;
}
.teacher-img-frame {
    position: relative;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    box-shadow:
        0 0 0 1.5px rgba(108,99,255,0.35),
        0 0 22px rgba(108,99,255,0.18),
        0 10px 30px rgba(0,0,0,0.18);
    transition: box-shadow 0.4s ease;
}
.teacher-card:hover .teacher-img-frame {
    box-shadow:
        0 0 0 2px rgba(108,99,255,0.7),
        0 0 40px rgba(108,99,255,0.38),
        0 14px 40px rgba(108,99,255,0.2);
}

.cyan-frame {
    box-shadow:
        0 0 0 1.5px rgba(0,212,255,0.4),
        0 0 24px rgba(0,212,255,0.2),
        0 10px 30px rgba(0,0,0,0.2);
}
.teacher-card:hover .cyan-frame {
    box-shadow:
        0 0 0 2px rgba(0,212,255,0.8),
        0 0 45px rgba(0,212,255,0.42),
        0 14px 40px rgba(0,212,255,0.22);
}

.green-frame {
    box-shadow:
        0 0 0 1.5px rgba(0,230,118,0.35),
        0 0 22px rgba(0,230,118,0.16),
        0 10px 30px rgba(0,0,0,0.18);
}
.teacher-card:hover .green-frame {
    box-shadow:
        0 0 0 2px rgba(0,230,118,0.75),
        0 0 42px rgba(0,230,118,0.38),
        0 14px 40px rgba(0,230,118,0.2);
}

.teacher-img-frame img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: top center;
    border-radius: 0;
    display: block;
    transition: transform 0.5s ease, filter 0.4s ease;
    filter: brightness(0.95) contrast(1.05);
}
.teacher-card:hover .teacher-img-frame img {
    transform: scale(1.04);
    filter: brightness(1.06) contrast(1.08) saturate(1.1);
}

/* Gradient overlay — only tints the very bottom edge, face stays clear */
.img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 70%,
        rgba(10,10,30,0.45) 100%
    );
    pointer-events: none;
    transition: opacity 0.4s;
}
.teacher-card:hover .img-overlay { opacity: 0.8; }

.cyan-overlay {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 70%,
        rgba(0,20,30,0.45) 100%
    );
}
.green-overlay {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 70%,
        rgba(0,20,10,0.45) 100%
    );
}

/* Scan line sweep — very subtle, doesn't wash out the face */
.img-scan {
    position: absolute;
    left: 0; right: 0;
    top: -60%;
    height: 40%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(108,99,255,0.08) 50%,
        transparent 100%
    );
    pointer-events: none;
    animation: scan-sweep 4s linear infinite;
}
.cyan-scan {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0,212,255,0.09) 50%,
        transparent 100%
    );
    animation-delay: -1.4s;
}
.green-scan {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0,230,118,0.08) 50%,
        transparent 100%
    );
    animation-delay: -2.7s;
}
@keyframes scan-sweep {
    0%   { top: -50%; }
    100% { top: 110%; }
}

/* HUD status bar — sits BELOW the image, never over the face */
.img-hud {
    background: rgba(8, 10, 22, 0.92);
    backdrop-filter: blur(10px);
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(108,99,255,0.35);
    border-top: none;
    border-radius: 0 0 16px 16px;
}
.cyan-hud  { border-color: rgba(0,212,255,0.4);   border-top: none; }
.green-hud { border-color: rgba(0,230,118,0.35);  border-top: none; }

.hud-dot {
    width: 7px;
    height: 7px;
    background: #6C63FF;
    border-radius: 50%;
    box-shadow: 0 0 8px #6C63FF;
    flex-shrink: 0;
    animation: hud-blink 1.6s ease-in-out infinite;
}
.cyan-dot  { background: #00D4FF; box-shadow: 0 0 8px #00D4FF; }
.green-dot { background: #00E676; box-shadow: 0 0 8px #00E676; }
@keyframes hud-blink {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

.hud-label {
    font-size: 10px;
    color: rgba(255,255,255,0.82);
    font-weight: 700;
    letter-spacing: 1.3px;
    font-family: 'Courier New', monospace;
    flex: 1;
}
.hud-id {
    font-size: 10px;
    color: rgba(255,255,255,0.35);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.8px;
}

/* Corner tech brackets */
.img-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    pointer-events: none;
}
.img-corner.tl { top: 9px;    left: 9px;   border-top: 2px solid rgba(108,99,255,0.9); border-left: 2px solid rgba(108,99,255,0.9); border-radius: 3px 0 0 0; }
.img-corner.tr { top: 9px;    right: 9px;  border-top: 2px solid rgba(108,99,255,0.9); border-right: 2px solid rgba(108,99,255,0.9); border-radius: 0 3px 0 0; }
.img-corner.bl { bottom: 9px; left: 9px;   border-bottom: 2px solid rgba(108,99,255,0.9); border-left: 2px solid rgba(108,99,255,0.9); border-radius: 0 0 0 3px; }
.img-corner.br { bottom: 9px; right: 9px;  border-bottom: 2px solid rgba(108,99,255,0.9); border-right: 2px solid rgba(108,99,255,0.9); border-radius: 0 0 3px 0; }

.cyan-frame .img-corner  { border-color: rgba(0,212,255,0.85) !important; }
.green-frame .img-corner { border-color: rgba(0,230,118,0.85) !important; }
.teacher-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: white; }
.teacher-card p  { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 14px; }
.teacher-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.teacher-tags span {
    background: rgba(108,99,255,0.15);
    border: 1px solid rgba(108,99,255,0.3);
    color: #b4afff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 50px;
}
.teacher-card.featured .teacher-tags span {
    background: rgba(0,212,255,0.12);
    border-color: rgba(0,212,255,0.3);
    color: #80eeff;
}

/* =========================================
   SPLIT SECTION (Students / Parents)
   ========================================= */
.split-section { background: #1a1a2e; padding: 80px 20px; }

.split-container {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: start;
}
.split-panel {
    padding: 40px 36px;
    border-radius: 24px;
    color: white;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.split-panel:hover {
    transform: translateY(-6px);
}
.students-panel {
    background: linear-gradient(145deg, rgba(30, 45, 90, 0.8), rgba(21, 35, 74, 0.8));
    border: 1px solid rgba(108,99,255,0.3);
    box-shadow:
        0 20px 50px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.students-panel:hover {
    box-shadow:
        0 24px 60px rgba(0,0,0,0.35),
        0 0 40px rgba(108, 99, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.parents-panel {
    background: linear-gradient(145deg, rgba(26, 53, 40, 0.8), rgba(18, 39, 30, 0.8));
    border: 1px solid rgba(0,230,118,0.3);
    box-shadow:
        0 20px 50px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.parents-panel:hover {
    box-shadow:
        0 24px 60px rgba(0,0,0,0.35),
        0 0 40px rgba(0, 230, 118, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.panel-icon { font-size: 46px; margin-bottom: 14px; }
.split-panel h2 { font-size: 24px; margin-bottom: 24px; text-align: left; }
.split-panel ul { list-style: none; padding: 0; }
.split-panel li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    font-size: 15px;
    color: rgba(255,255,255,0.82);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.split-panel li:last-child { border-bottom: none; }
.check { flex-shrink: 0; }

.split-divider { display: flex; align-items: center; justify-content: center; padding-top: 110px; }
.split-circle {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 20px;
    box-shadow:
        0 0 30px rgba(108,99,255,0.55),
        0 0 60px rgba(108, 99, 255, 0.2),
        0 0 80px rgba(0, 212, 255, 0.1);
    animation: split-glow 3s ease-in-out infinite;
}
@keyframes split-glow {
    0%, 100% { box-shadow: 0 0 30px rgba(108,99,255,0.55), 0 0 60px rgba(108,99,255,0.2); }
    50% { box-shadow: 0 0 40px rgba(108,99,255,0.7), 0 0 80px rgba(108,99,255,0.3), 0 0 100px rgba(0,212,255,0.15); }
}

/* =========================================
   TRUST
   ========================================= */
.trust-section {
    background: white;
    position: relative;
    overflow: hidden;
}
.trust-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(108,99,255,0.055) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 16px;
    position: relative;
    z-index: 1;
}
.trust-item {
    padding: 32px 22px 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        6px 6px 14px var(--neu-shadow-light),
        -4px -4px 10px rgba(255, 255, 255, 0.85),
        0 4px 20px rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.trust-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    border-radius: 0;
}
.trust-grid .trust-item:nth-child(1)::before { background: linear-gradient(90deg,#6C63FF,#8b85ff); }
.trust-grid .trust-item:nth-child(2)::before { background: linear-gradient(90deg,#00B4D8,#00D4FF); }
.trust-grid .trust-item:nth-child(3)::before { background: linear-gradient(90deg,#00C896,#00E676); }
.trust-grid .trust-item:nth-child(4)::before { background: linear-gradient(90deg,#7B61FF,#00D4FF); }
.trust-item:hover {
    transform: translateY(-7px);
    box-shadow:
        0 20px 50px rgba(108,99,255,0.12),
        0 0 30px rgba(108, 99, 255, 0.06),
        inset 3px 3px 8px var(--neu-shadow-light),
        inset -2px -2px 6px rgba(255, 255, 255, 0.6);
    border-color: rgba(108,99,255,0.2);
}
.trust-icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 16px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow:
        4px 4px 10px var(--neu-shadow-light),
        -3px -3px 8px rgba(255, 255, 255, 0.8);
}
.trust-item:hover .trust-icon { transform: scale(1.1) rotate(-5deg); }
.trust-grid .trust-item:nth-child(1) .trust-icon { background: rgba(108,99,255,0.09); }
.trust-grid .trust-item:nth-child(2) .trust-icon { background: rgba(0,180,216,0.09); }
.trust-grid .trust-item:nth-child(3) .trust-icon { background: rgba(0,200,150,0.09); }
.trust-grid .trust-item:nth-child(4) .trust-icon { background: rgba(123,97,255,0.09); }
.trust-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: #1a1a2e; }
.trust-item p  { font-size: 14px; color: #666; line-height: 1.55; }

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials {
    background: #ffffff;
    position: relative;
    overflow: hidden;
}
.testimonials::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(108,99,255,0.05) 0%, transparent 65%);
    border-radius: 50%;
    bottom: -200px; right: -150px;
    pointer-events: none;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
    text-align: left;
    position: relative;
    z-index: 1;
}
.testimonial-card {
    background: rgba(250, 251, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    padding: 32px 28px 26px;
    border-radius: 20px;
    box-shadow:
        5px 5px 14px var(--neu-shadow-light),
        -3px -3px 10px rgba(255, 255, 255, 0.8),
        0 4px 20px rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}
.testimonial-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 24px; right: 24px;
    height: 3px;
    background: var(--gradient);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transition: transform 0.35s ease;
}
.testimonial-card:hover::after { transform: scaleX(1); }
.testimonial-card:hover {
    transform: translateY(-7px);
    box-shadow:
        0 22px 55px rgba(108,99,255,0.12),
        0 0 30px rgba(108, 99, 255, 0.06);
    border-color: rgba(108,99,255,0.2);
}

.quote-mark {
    position: absolute;
    top: 12px; right: 20px;
    font-size: 80px;
    font-family: Georgia, serif;
    color: rgba(108,99,255,0.07);
    line-height: 1;
    pointer-events: none;
}
.featured-testimonial {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.9), rgba(36, 26, 68, 0.9));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(108,99,255,0.4);
    color: white;
    box-shadow:
        0 8px 40px rgba(108,99,255,0.2),
        0 0 40px rgba(108, 99, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.featured-testimonial::after { background: linear-gradient(90deg, #6C63FF, #00D4FF); }
.featured-testimonial .quote-mark { color: rgba(255,255,255,0.07); }
.featured-testimonial p { color: rgba(255,255,255,0.88) !important; }

.stars { font-size: 14px; margin-bottom: 14px; letter-spacing: 1px; }
.testimonial-card p {
    font-size: 15px;
    line-height: 1.75;
    color: #444;
    margin-bottom: 22px;
    font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
    width: 46px; height: 46px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow:
        0 4px 14px rgba(108,99,255,0.3),
        0 0 20px rgba(108, 99, 255, 0.15);
}
.featured-testimonial .author-avatar { background: rgba(255,255,255,0.15); box-shadow: none; }
.testimonial-author strong { display: block; font-size: 14px; font-weight: 700; }
.testimonial-author span  { font-size: 12px; color: #aaa; }
.featured-testimonial .testimonial-author span { color: rgba(255,255,255,0.5); }

/* =========================================
   PRICING
   ========================================= */
.pricing {
    background: #fafbff;
    background-image: radial-gradient(rgba(108,99,255,0.06) 1px, transparent 1px);
    background-size: 30px 30px;
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 980px;
    margin: 52px auto 0;
    align-items: stretch;
}
/* School-plan card: small note under the CTA explaining the contact-form route. */
.school-plan-note {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    margin-top: 12px !important;
    line-height: 1.5;
    font-style: italic;
    text-align: center;
}
.school-plan-card .popular-ribbon {
    background: linear-gradient(135deg, #00D4FF, #6C63FF);
    box-shadow:
        0 4px 14px rgba(0, 212, 255, 0.4),
        0 0 20px rgba(0, 212, 255, 0.2);
    animation: school-ribbon-glow 2.4s ease-in-out infinite;
}
@keyframes school-ribbon-glow {
    0%, 100% { box-shadow: 0 4px 14px rgba(0,212,255,0.4), 0 0 20px rgba(0,212,255,0.2); }
    50% { box-shadow: 0 4px 22px rgba(0,212,255,0.6), 0 0 36px rgba(0,212,255,0.3), 0 0 50px rgba(108,99,255,0.15); }
}
.price-card {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 24px;
    padding: 36px 30px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        6px 6px 16px var(--neu-shadow-light),
        -4px -4px 12px rgba(255, 255, 255, 0.85),
        0 4px 24px rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    text-align: left;
}
.price-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 24px 60px rgba(108,99,255,0.14),
        0 0 30px rgba(108, 99, 255, 0.06);
    border-color: rgba(108,99,255,0.22);
}
.price-card.popular {
    background: linear-gradient(165deg, rgba(26, 26, 46, 0.92), rgba(36, 26, 68, 0.92));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(108,99,255,0.6);
    box-shadow:
        0 8px 40px rgba(108,99,255,0.25),
        0 0 50px rgba(108, 99, 255, 0.12),
        0 0 80px rgba(0, 212, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: white;
    transform: scale(1.05);
}
.price-card.popular:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow:
        0 24px 60px rgba(108,99,255,0.3),
        0 0 60px rgba(108, 99, 255, 0.2),
        0 0 100px rgba(0, 212, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.popular-ribbon {
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 20px;
    border-radius: 50px;
    letter-spacing: 0.8px;
    white-space: nowrap;
    box-shadow:
        0 4px 14px rgba(108, 99, 255, 0.4),
        0 0 20px rgba(108, 99, 255, 0.2);
    animation: ribbon-glow 2s ease-in-out infinite;
}
@keyframes ribbon-glow {
    0%, 100% { box-shadow: 0 4px 14px rgba(108,99,255,0.4), 0 0 20px rgba(108,99,255,0.2); }
    50% { box-shadow: 0 4px 20px rgba(108,99,255,0.6), 0 0 35px rgba(108,99,255,0.3), 0 0 50px rgba(0,212,255,0.1); }
}
.plan-icon { font-size: 36px; margin-bottom: 14px; display: block; }
.price-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }

.price {
    font-size: 38px;
    font-weight: 800;
    margin: 10px 0;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.price-card.popular .price {
    background: linear-gradient(135deg, #fff, #b0eeff);
    -webkit-background-clip: text;
    background-clip: text;
}
.price span { font-size: 15px; font-weight: 400; opacity: 0.55; }

.plan-tagline { font-size: 13px; color: #888; margin-bottom: 18px !important; }
.price-card.popular .plan-tagline { color: rgba(255,255,255,0.45); }

.price-card ul { list-style: none; padding: 0; margin: 18px 0; }
.price-card li {
    padding: 9px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(0,0,0,0.055);
    color: #444;
}
.price-card.popular li { color: rgba(255,255,255,0.82); border-bottom-color: rgba(255,255,255,0.09); }
.price-card li.disabled { color: #bbb; text-decoration: line-through; }
.price-card.popular li.disabled { color: rgba(255,255,255,0.28); }

.plan-btn {
    display: inline-block;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 2px solid rgba(108,99,255,0.28);
    background: transparent;
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 18px;
    transition: background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s;
    font-family: var(--font);
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}
.plan-btn:hover {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    box-shadow:
        0 8px 25px rgba(108,99,255,0.4),
        0 0 30px rgba(108, 99, 255, 0.2);
}
.popular-btn {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(108,99,255,0.42);
}
.popular-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 35px rgba(108,99,255,0.52),
        0 0 40px rgba(108, 99, 255, 0.25),
        0 0 60px rgba(0, 212, 255, 0.1);
}

/* =========================================
   FAQ
   ========================================= */
.faq { background: #ffffff; }

.faq-list { max-width: 780px; margin: 50px auto 0; text-align: left; }

.faq-item {
    background: rgba(250, 251, 255, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    margin-bottom: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.3s, border-color 0.3s;
    box-shadow:
        4px 4px 12px var(--neu-shadow-light),
        -3px -3px 8px rgba(255, 255, 255, 0.7);
}
.faq-item:hover {
    box-shadow:
        0 8px 30px rgba(108,99,255,0.1),
        0 0 20px rgba(108, 99, 255, 0.04);
    border-color: rgba(108,99,255,0.2);
}
.faq-item.open {
    border-color: rgba(108,99,255,0.3);
    box-shadow:
        0 8px 30px rgba(108,99,255,0.12),
        0 0 20px rgba(108, 99, 255, 0.06),
        inset 0 0 20px rgba(108, 99, 255, 0.02);
}

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    font-weight: 600;
    font-size: 16px;
    gap: 14px;
    user-select: none;
}
.faq-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: rgba(108,99,255,0.08);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 400;
    transition: background 0.3s, color 0.3s;
    line-height: 1;
}
.faq-item.open .faq-icon { background: var(--gradient); color: white; }

.faq-a {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    font-size: 15px;
    color: #555;
    line-height: 1.72;
    transition: max-height 0.4s ease, padding 0.35s ease;
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 24px 20px; }

/* =========================================
   CTA
   ========================================= */
.cta {
    background: linear-gradient(135deg, #0D1117 0%, #1a1a3e 55%, #0d2137 100%);
    color: white;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.cta-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(108,99,255,0.22), rgba(0, 212, 255, 0.06) 50%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: cta-glow-pulse 4s ease-in-out infinite;
}
@keyframes cta-glow-pulse {
    0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}
.cta-badge {
    display: inline-block;
    background: rgba(108,99,255,0.18);
    border: 1px solid rgba(108,99,255,0.45);
    color: #b4afff;
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}
.cta h2 { font-size: 46px; font-weight: 900; margin-bottom: 16px; line-height: 1.2; }
.cta p {
    font-size: 18px;
    color: rgba(255,255,255,0.68);
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.65;
}
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }

.btn-cta-primary {
    padding: 17px 38px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(108,99,255,0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: var(--font);
}
.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 16px 40px rgba(108,99,255,0.6),
        0 0 50px rgba(108, 99, 255, 0.3),
        0 0 80px rgba(0, 212, 255, 0.15);
}

.btn-cta-secondary {
    padding: 17px 38px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
    font-family: var(--font);
}
.btn-cta-secondary:hover {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.08);
}

.cta-note { font-size: 13px !important; color: rgba(255,255,255,0.38) !important; margin: 0 !important; }

/* =========================================
   FOOTER
   ========================================= */
footer { background: #060a12; color: rgba(255,255,255,0.6); padding: 64px 32px 28px; }

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand img { height: 48px; margin-bottom: 14px; filter: brightness(0) invert(1) opacity(0.75); display: block; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.42); }

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h4 { color: white; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.footer-links a { color: rgba(255,255,255,0.46); text-decoration: none; font-size: 14px; transition: color 0.3s; }
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
    max-width: 1100px;
    margin: 26px auto 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.26);
}

/* =========================================
   IMPACT BANNER
   ========================================= */
.impact-banner {
    position: relative;
    min-height: 520px;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}
.impact-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    filter: grayscale(0.2) brightness(0.6) contrast(1.05);
    transform: scale(1.02);
    transition: transform 8s ease;
}
.impact-banner:hover .impact-bg-img {
    transform: scale(1.06);
}
.impact-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(13,17,23,0.55) 0%, rgba(13,17,23,0.3) 40%, rgba(13,17,23,0.65) 100%),
        linear-gradient(to right,  rgba(13,17,23,0.5) 0%, transparent 30%, transparent 70%, rgba(13,17,23,0.5) 100%);
    pointer-events: none;
}
.impact-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 780px;
    padding: 0 32px;
}
.impact-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    margin-bottom: 18px;
    padding: 6px 16px;
    background: rgba(108,99,255,0.22);
    border: 1px solid rgba(108,99,255,0.45);
    border-radius: 50px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.impact-quote {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 36px;
    color: white;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.impact-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}
.impact-stat strong {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: white;
    line-height: 1.1;
}
.impact-stat span {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.impact-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    flex-shrink: 0;
}

/* Capability strip — design-intent metrics, not user counts */
.impact-capability-strip {
    margin: 24px auto 0;
    max-width: 760px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.cap-metric {
    text-align: center;
    flex: 1;
    min-width: 130px;
}
.cap-metric strong {
    display: block;
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 30%, #b8f0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}
.cap-metric span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    letter-spacing: 0.4px;
    line-height: 1.3;
    display: block;
}
.cap-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}
@media (max-width: 640px) {
    .cap-divider { display: none; }
    .impact-capability-strip { gap: 14px; padding: 16px; }
    .cap-metric { min-width: 45%; }
}

/* =========================================
   GALLERY STRIP
   ========================================= */
.gallery-strip {
    background: #0d0f1e;
    padding: 80px 0 0;
}
.gallery-header {
    text-align: center;
    padding: 0 32px;
    margin-bottom: 48px;
}
.gallery-header .section-label {
    background: rgba(108,99,255,0.14);
    border-color: rgba(108,99,255,0.35);
    color: #b4afff;
}
.gallery-header h2     { color: white; }
.gallery-header .section-sub { color: rgba(255,255,255,0.45); margin-bottom: 0; }

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1.15fr 1fr;
    grid-template-rows: 340px;
    gap: 3px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    align-items: end;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
    cursor: pointer;
    height: 300px;
    align-self: end;
}
.gallery-tall {
    height: 340px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.55s ease, filter 0.45s ease;
    filter: grayscale(0.15) brightness(0.82) contrast(1.06);
}
.gallery-item:hover img {
    transform: scale(1.06);
    filter: grayscale(0) brightness(0.95) contrast(1.08) saturate(1.1);
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10,10,20,0.85) 0%,
        rgba(10,10,20,0.2) 45%,
        transparent 100%
    );
    pointer-events: none;
    transition: opacity 0.4s;
}
.gallery-item:hover .gallery-overlay {
    opacity: 0.7;
}
.gallery-label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
}
.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot-purple { background: #6C63FF; box-shadow: 0 0 8px #6C63FF; }
.dot-cyan   { background: #00D4FF; box-shadow: 0 0 8px #00D4FF; }
.dot-green  { background: #00E676; box-shadow: 0 0 8px #00E676; }

/* frame glow on hover per column */
.gallery-item:nth-child(1):hover,
.gallery-item:nth-child(4):hover {
    box-shadow:
        0 0 0 1.5px rgba(108,99,255,0.6),
        0 -10px 40px rgba(108,99,255,0.2),
        0 0 60px rgba(108, 99, 255, 0.12);
}
.gallery-item:nth-child(2):hover {
    box-shadow:
        0 0 0 1.5px rgba(0,212,255,0.6),
        0 -10px 40px rgba(0,212,255,0.18),
        0 0 60px rgba(0, 212, 255, 0.1);
}
.gallery-item:nth-child(3):hover {
    box-shadow:
        0 0 0 1.5px rgba(0,230,118,0.5),
        0 -10px 40px rgba(0,230,118,0.15),
        0 0 60px rgba(0, 230, 118, 0.08);
}

/* =========================================
   SUBJECTS
   ========================================= */
.subjects {
    background: #ffffff;
    position: relative;
    overflow: hidden;
}
.subjects::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,212,255,0.05) 0%, transparent 65%);
    border-radius: 50%;
    top: -150px; left: -100px;
    pointer-events: none;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}
.subject-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 18px;
    padding: 22px 10px 16px;
    text-align: center;
    cursor: default;
    box-shadow:
        5px 5px 12px var(--neu-shadow-light),
        -3px -3px 8px rgba(255, 255, 255, 0.8);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}
.subject-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    transform: scaleX(0);
    transition: transform 0.3s;
    border-radius: 0;
}
.subjects-grid .subject-card:nth-child(1)::after,
.subjects-grid .subject-card:nth-child(6)::after { background: linear-gradient(90deg,#6C63FF,#8b85ff); }
.subjects-grid .subject-card:nth-child(2)::after,
.subjects-grid .subject-card:nth-child(7)::after { background: linear-gradient(90deg,#00B4D8,#00D4FF); }
.subjects-grid .subject-card:nth-child(3)::after,
.subjects-grid .subject-card:nth-child(8)::after { background: linear-gradient(90deg,#00C896,#00E676); }
.subjects-grid .subject-card:nth-child(4)::after,
.subjects-grid .subject-card:nth-child(9)::after { background: linear-gradient(90deg,#FF6B6B,#FF8E8E); }
.subjects-grid .subject-card:nth-child(5)::after,
.subjects-grid .subject-card:nth-child(10)::after { background: linear-gradient(90deg,#FFB347,#FFCF72); }
.subject-card:hover::after { transform: scaleX(1); }
.subject-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 14px 36px rgba(108,99,255,0.12),
        0 0 20px rgba(108, 99, 255, 0.05);
    border-color: rgba(108,99,255,0.2);
}
.subject-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: rgba(108,99,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow:
        3px 3px 8px var(--neu-shadow-light),
        -2px -2px 6px rgba(255, 255, 255, 0.7);
}
.subject-card:hover .subject-icon {
    box-shadow:
        inset 3px 3px 6px var(--neu-shadow-light),
        inset -2px -2px 4px rgba(255, 255, 255, 0.6);
}
.subject-card:hover .subject-icon { transform: scale(1.1); }
.subjects-grid .subject-card:nth-child(1) .subject-icon,
.subjects-grid .subject-card:nth-child(6) .subject-icon { background: rgba(108,99,255,0.09); }
.subjects-grid .subject-card:nth-child(2) .subject-icon,
.subjects-grid .subject-card:nth-child(7) .subject-icon { background: rgba(0,180,216,0.09); }
.subjects-grid .subject-card:nth-child(3) .subject-icon,
.subjects-grid .subject-card:nth-child(8) .subject-icon { background: rgba(0,200,150,0.09); }
.subjects-grid .subject-card:nth-child(4) .subject-icon,
.subjects-grid .subject-card:nth-child(9) .subject-icon { background: rgba(255,107,107,0.09); }
.subjects-grid .subject-card:nth-child(5) .subject-icon,
.subjects-grid .subject-card:nth-child(10) .subject-icon { background: rgba(255,179,71,0.09); }
.subject-card span { font-size: 12px; font-weight: 700; color: #333; letter-spacing: 0.2px; }
.subjects-note {
    font-size: 13px;
    color: #aaa;
    margin-top: 10px;
    font-style: italic;
}

/* =========================================
   CHAT PREVIEW
   ========================================= */
.chat-preview {
    background: linear-gradient(160deg, #0d0f1e 0%, #111330 50%, #0d1a2e 100%);
    padding: 90px 0;
}
.chat-preview-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.chat-preview-text .section-label {
    background: rgba(108,99,255,0.15);
    border-color: rgba(108,99,255,0.4);
    color: #b4afff;
}
.chat-preview-text h2 { color: white; text-align: left; font-size: 36px; margin-bottom: 16px; }
.chat-preview-text p  { color: rgba(255,255,255,0.6); font-size: 16px; line-height: 1.72; margin-bottom: 28px; text-align: left; }

.chat-highlights { list-style: none; padding: 0; }
.chat-highlights li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.8);
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.chat-highlights li:last-child { border-bottom: none; }
.ch-dot {
    width: 8px; height: 8px;
    background: var(--gradient);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(108,99,255,0.6);
}

/* Chat window mockup */
.chat-window {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 30px 80px rgba(0,0,0,0.4),
        0 0 0 1px rgba(108,99,255,0.15),
        0 0 50px rgba(108, 99, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: box-shadow 0.4s ease;
}
.chat-window:hover {
    box-shadow:
        0 30px 80px rgba(0,0,0,0.45),
        0 0 0 1px rgba(108,99,255,0.2),
        0 0 70px rgba(108, 99, 255, 0.12),
        0 0 100px rgba(0, 212, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.chat-header {
    background: rgba(108,99,255,0.15);
    border-bottom: 1px solid rgba(108,99,255,0.2);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.chat-avatar-ai {
    position: relative;
    width: 40px; height: 40px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}
.ai-status {
    position: absolute;
    bottom: -2px; right: -2px;
    width: 10px; height: 10px;
    background: #00E676;
    border-radius: 50%;
    border: 2px solid #0d0f1e;
    box-shadow: 0 0 6px #00E676;
}
.chat-header-info strong { display: block; color: white; font-size: 14px; }
.chat-header-info span   { font-size: 12px; color: rgba(255,255,255,0.45); }

.chat-body {
    padding: 18px 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 360px;
    overflow-y: auto;
}
.chat-body::-webkit-scrollbar { width: 4px; }
.chat-body::-webkit-scrollbar-track { background: transparent; }
.chat-body::-webkit-scrollbar-thumb { background: rgba(108,99,255,0.3); border-radius: 2px; }

.chat-msg { display: flex; }
.ai-msg   { justify-content: flex-start; }
.student-msg { justify-content: flex-end; }

.msg-bubble {
    max-width: 82%;
    padding: 11px 15px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.65;
}
.ai-msg .msg-bubble {
    background: rgba(108,99,255,0.18);
    border: 1px solid rgba(108,99,255,0.25);
    color: rgba(255,255,255,0.88);
    border-bottom-left-radius: 4px;
}
.student-msg .msg-bubble {
    background: rgba(0,212,255,0.14);
    border: 1px solid rgba(0,212,255,0.2);
    color: rgba(255,255,255,0.85);
    border-bottom-right-radius: 4px;
}

.chat-typing {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 4px 0 4px 4px;
}
.chat-typing span {
    width: 7px; height: 7px;
    background: rgba(108,99,255,0.5);
    border-radius: 50%;
    animation: typing-bounce 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
    0%,80%,100% { transform: translateY(0); opacity: 0.4; }
    40%          { transform: translateY(-6px); opacity: 1; }
}

.chat-input-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid rgba(108,99,255,0.15);
    background: rgba(0,0,0,0.2);
}
.chat-input-text {
    flex: 1;
    font-size: 13px;
    color: rgba(255,255,255,0.3);
    font-family: var(--font);
}
.chat-send {
    width: 34px; height: 34px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(108,99,255,0.4);
    transition: transform 0.2s;
}
.chat-send:hover { transform: scale(1.1); }

/* =========================================
   COMPARISON TABLE
   ========================================= */
.comparison { background: #ffffff; }

.compare-table {
    max-width: 820px;
    margin: 50px auto 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        6px 6px 18px var(--neu-shadow-light),
        -4px -4px 12px rgba(255, 255, 255, 0.8),
        0 4px 30px rgba(0,0,0,0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.compare-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    background: #1a1a2e;
    padding: 18px 24px;
    text-align: center;
    gap: 8px;
    align-items: center;
}
.compare-col { color: white; font-size: 15px; font-weight: 700; }
.aistea-col  { color: #b4afff; }
.tuition-col { color: rgba(255,255,255,0.45); }
.col-logo    { font-size: 24px; display: block; margin-bottom: 4px; }

.compare-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 14px 24px;
    background: white;
    border-bottom: 1px solid #f0f2ff;
    text-align: center;
    align-items: center;
    transition: background 0.2s;
    gap: 8px;
}
.compare-row:last-child { border-bottom: none; }
.compare-row:hover { background: #f8f9ff; }
.compare-row:nth-child(odd) { background: #fafbff; }
.compare-row:nth-child(odd):hover { background: #f4f6ff; }

.compare-feature {
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.compare-val {
    font-size: 15px;
    font-weight: 700;
    padding: 4px 0;
}
.compare-val.yes     { color: #00C853; }
.compare-val.no      { color: #EF5350; }
.compare-val.partial { color: #FF9800; font-size: 12px; font-weight: 600; }

/* =========================================
   STATS BANNER
   ========================================= */
.stats-banner {
    background: linear-gradient(135deg, #0d1117 0%, #131630 50%, #0d1a2e 100%);
    padding: 64px 32px;
    position: relative;
    overflow: hidden;
}
.stats-bg-blob {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(108,99,255,0.13) 0%, transparent 65%);
    pointer-events: none;
}
.stats-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    position: relative;
    z-index: 1;
}
.stat-block {
    text-align: center;
    flex: 1;
    padding: 24px 16px;
    border-radius: 16px;
    transition: background 0.3s, box-shadow 0.3s;
}
.stat-block:hover {
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 30px rgba(108, 99, 255, 0.1);
}
.stat-num {
    font-size: 52px;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 30%, #b8f0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 10px;
    font-family: var(--font);
    letter-spacing: -1px;
}
.stat-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}
.stat-rule {
    width: 1px;
    height: 64px;
    background: rgba(255,255,255,0.08);
    flex-shrink: 0;
}

/* =========================================
   SCROLL-TO-TOP BUTTON
   ========================================= */
.scroll-top-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    transform: translateY(16px) scale(0.8);
    transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
    z-index: 998;
    box-shadow: 0 4px 20px rgba(108,99,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-family: var(--font);
}
.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.scroll-top-btn:hover {
    box-shadow:
        0 8px 32px rgba(108,99,255,0.6),
        0 0 40px rgba(108, 99, 255, 0.3),
        0 0 60px rgba(0, 212, 255, 0.15);
    transform: translateY(-3px) scale(1.08);
}

/* =========================================
   ECOSYSTEM TRIAD
   ========================================= */
.ecosystem {
    background: #f5f0fa;
    padding: 90px 0 60px;
    position: relative;
    overflow: hidden;
}
.ecosystem::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(108,99,255,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
.eco-label { color: var(--primary) !important; }
.eco-sub { color: #777 !important; }

/* ---- Stage ---- */
.eco-stage {
    position: relative;
    max-width: 820px;
    height: 640px;
    margin: 10px auto 0;
}

/* ---- Large colorful overlapping blobs (triangle fill) ---- */
.eco-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    animation: blob-breathe 6s ease-in-out infinite;
}
.blob-green {
    width: 380px; height: 380px;
    background: radial-gradient(circle at 60% 40%, rgba(76, 215, 140, 0.4) 0%, rgba(76, 215, 140, 0.08) 60%, transparent 80%);
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}
.blob-pink {
    width: 360px; height: 360px;
    background: radial-gradient(circle at 40% 60%, rgba(255, 107, 157, 0.35) 0%, rgba(255, 107, 157, 0.07) 60%, transparent 80%);
    bottom: 60px;
    left: 80px;
    animation-delay: -2s;
}
.blob-purple {
    width: 360px; height: 360px;
    background: radial-gradient(circle at 40% 40%, rgba(108, 99, 255, 0.3) 0%, rgba(108, 99, 255, 0.06) 60%, transparent 80%);
    bottom: 60px;
    right: 80px;
    animation-delay: -4s;
}
@keyframes blob-breathe {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50%      { transform: scale(1.08); opacity: 1; }
}
.blob-green { animation-name: blob-breathe-center; }
@keyframes blob-breathe-center {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.85; }
    50%      { transform: translateX(-50%) scale(1.08); opacity: 1; }
}

/* ---- SVG Lines ---- */
.eco-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}
.eco-line {
    opacity: 0.7;
}
.eco-line-center {
    animation: dash-drift 3s linear infinite;
}
@keyframes dash-drift {
    to { stroke-dashoffset: -20; }
}

/* ---- CENTER HUB ---- */
.eco-center {
    position: absolute;
    top: 47%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    z-index: 10;
}
.eco-center-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid transparent;
    animation: eco-ring-spin linear infinite;
}
.eco-center-ring.ring-outer {
    width: 178px; height: 178px;
    border-color: rgba(108,99,255,0.2);
    border-style: dashed;
    animation-duration: 25s;
}
.eco-center-ring.ring-inner {
    width: 158px; height: 158px;
    border-color: rgba(0,212,255,0.18);
    border-style: dotted;
    animation-duration: 18s;
    animation-direction: reverse;
}
@keyframes eco-ring-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.eco-center-core {
    position: absolute;
    inset: 0;
    background: white;
    border-radius: 50%;
    border: 3px solid rgba(108,99,255,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    box-shadow:
        0 8px 32px rgba(108,99,255,0.15),
        0 0 0 6px rgba(108,99,255,0.05),
        0 0 60px rgba(108,99,255,0.08);
    animation: center-glow 4s ease-in-out infinite;
    z-index: 5;
}
@keyframes center-glow {
    0%, 100% {
        box-shadow:
            0 8px 32px rgba(108,99,255,0.15),
            0 0 0 6px rgba(108,99,255,0.05),
            0 0 60px rgba(108,99,255,0.08);
    }
    50% {
        box-shadow:
            0 8px 40px rgba(108,99,255,0.22),
            0 0 0 8px rgba(108,99,255,0.06),
            0 0 80px rgba(108,99,255,0.12);
    }
}
.eco-core-logo {
    width: 88px;
    height: auto;
    display: block;
    /* Same trick as the navbar: brighten + multiply so the PNG's
       grey background blends into the white centre core. */
    mix-blend-mode: multiply;
    filter: brightness(1.18) contrast(1.08) saturate(1.1);
}

/* ---- NODES ---- */
.eco-node {
    position: absolute;
    z-index: 8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transition: transform 0.4s ease;
}

/* Positioning — triangle vertices */
.eco-student {
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
}
.eco-school {
    bottom: 15px;
    left: 20px;
}
.eco-parent {
    bottom: 15px;
    right: 20px;
}

/* Circle avatars — like the reference image */
.eco-node-circle {
    width: 90px; height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.4s, box-shadow 0.4s;
}
.eco-node:hover .eco-node-circle {
    transform: scale(1.1);
}
.eco-node-emoji {
    font-size: 38px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.student-circle {
    background: white;
    border: 3px solid rgba(76, 215, 140, 0.5);
    box-shadow:
        0 6px 24px rgba(76, 215, 140, 0.2),
        0 0 0 6px rgba(76, 215, 140, 0.08),
        0 0 40px rgba(76, 215, 140, 0.08);
}
.eco-node:hover .student-circle {
    box-shadow:
        0 8px 30px rgba(76, 215, 140, 0.3),
        0 0 0 8px rgba(76, 215, 140, 0.1),
        0 0 60px rgba(76, 215, 140, 0.12);
}
.school-circle {
    background: white;
    border: 3px solid rgba(255, 107, 157, 0.5);
    box-shadow:
        0 6px 24px rgba(255, 107, 157, 0.18),
        0 0 0 6px rgba(255, 107, 157, 0.08),
        0 0 40px rgba(255, 107, 157, 0.06);
}
.eco-node:hover .school-circle {
    box-shadow:
        0 8px 30px rgba(255, 107, 157, 0.28),
        0 0 0 8px rgba(255, 107, 157, 0.1),
        0 0 60px rgba(255, 107, 157, 0.1);
}
.parent-circle {
    background: white;
    border: 3px solid rgba(108, 99, 255, 0.45);
    box-shadow:
        0 6px 24px rgba(108, 99, 255, 0.18),
        0 0 0 6px rgba(108, 99, 255, 0.06),
        0 0 40px rgba(108, 99, 255, 0.06);
}
.eco-node:hover .parent-circle {
    box-shadow:
        0 8px 30px rgba(108, 99, 255, 0.28),
        0 0 0 8px rgba(108, 99, 255, 0.1),
        0 0 60px rgba(108, 99, 255, 0.1);
}

/* Node info card */
.eco-node-info {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 14px 18px 12px;
    text-align: center;
    width: 180px;
    box-shadow:
        4px 4px 12px rgba(0,0,0,0.06),
        -3px -3px 8px rgba(255,255,255,0.9);
    transition: box-shadow 0.4s, transform 0.4s;
}
.eco-node:hover .eco-node-info {
    transform: translateY(-4px);
    box-shadow:
        0 12px 30px rgba(0,0,0,0.08),
        0 0 20px rgba(108,99,255,0.05);
}
.eco-node-info h4 {
    font-size: 15px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.2;
    margin-bottom: 6px;
}
.eco-node-info p {
    font-size: 11px;
    color: #888;
    line-height: 1.5;
    margin: 0;
}

/* Edge labels — positioned on triangle sides */
.eco-edge-label {
    position: absolute;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.06);
    color: #666;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 50px;
    z-index: 6;
    pointer-events: none;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
    animation: edge-float 5s ease-in-out infinite;
}
.edge-left {
    top: 50%;
    left: 70px;
    transform: translateY(-50%);
    border-color: rgba(255, 107, 157, 0.2);
    animation-delay: 0s;
}
.edge-bottom {
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    border-color: rgba(0,212,255,0.2);
    animation-delay: -1.7s;
}
.edge-right {
    top: 50%;
    right: 70px;
    transform: translateY(-50%);
    border-color: rgba(108,99,255,0.2);
    animation-delay: -3.3s;
}
@keyframes edge-float {
    0%, 100% { opacity: 0.7; }
    50%      { opacity: 1; }
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .feature-grid    { grid-template-columns: repeat(2, 1fr); }
    .trust-grid      { grid-template-columns: repeat(2, 1fr); }
    .split-container { grid-template-columns: 1fr; max-width: 580px; }
    .split-divider   { padding-top: 0; }
    .footer-container{ grid-template-columns: 1fr 1fr; }
    .hero-text h1    { font-size: 42px; }
    .hero-visual     { flex: 0 0 320px; }
}

@media (max-width: 768px) {
    .hero-container  { flex-direction: column; text-align: center; padding-top: 40px; }
    .hero-text p     { margin: 0 auto 28px; }
    .hero-buttons    { justify-content: center; }
    .hero-stats      { justify-content: center; }
    .hero-visual     { flex: none; }
    .hero-text h1    { font-size: 30px; }

    .nav-links {
        display: none;
        position: fixed;
        top: 68px; left: 0; right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(0,0,0,0.08);
        box-shadow: 0 8px 30px rgba(0,0,0,0.1);
        padding: 22px 32px;
        gap: 16px;
        align-items: flex-start;
    }
    .nav-links a { color: #1a1a2e; }
    .nav-links.open { display: flex; }
    .menu-btn { display: flex; }

    section h2         { font-size: 28px; }
    .feature-grid      { grid-template-columns: 1fr; }
    .testimonial-grid  { grid-template-columns: 1fr; }
    .pricing-grid      { grid-template-columns: 1fr; max-width: 380px; }
    .price-card.popular{ transform: none; }
    .price-card.popular:hover { transform: translateY(-8px); }
    .steps             { flex-direction: column; align-items: center; }
    .step-arrow        { transform: rotate(90deg); margin: 0; }
    .trust-grid        { grid-template-columns: repeat(2, 1fr); }
    .cta h2            { font-size: 28px; }
    .footer-container  { grid-template-columns: 1fr; }
    .footer-brand      { text-align: center; }
    .footer-logo-svg   { margin: 0 auto 12px; }
    .teacher-card.featured { transform: none; }
    .teacher-card.featured:hover { transform: translateY(-10px); }

    .subjects-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-container { flex-wrap: wrap; gap: 32px; }
    .stat-rule { display: none; }
    .stat-block { min-width: 40%; }
    .stat-num { font-size: 38px; }

    .chat-preview-container { grid-template-columns: 1fr; gap: 40px; }
    .chat-preview-text h2 { text-align: center; font-size: 28px; }
    .chat-preview-text p  { text-align: center; }
    .chat-highlights { max-width: 480px; margin: 0 auto; }

    .compare-header,
    .compare-row { grid-template-columns: 2fr 1fr 1fr; padding: 12px 16px; }
    .compare-feature { font-size: 13px; }

    .impact-quote { font-size: 26px; }
    .impact-stats  { gap: 20px; }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 260px 260px;
        padding: 0 20px;
    }
    .gallery-item, .gallery-tall { height: 100%; border-radius: 12px; }

    /* Ecosystem — KEEP the triangle animation, just scale the stage down.
       SVG paths use a fixed viewBox so they reflow naturally. */
    .eco-stage {
        height: 540px;
        max-width: 560px;
        padding: 0 12px;
    }
    .blob-green  { width: 290px; height: 290px; top: 30px; }
    .blob-pink   { width: 270px; height: 270px; bottom: 50px; left: 30px; }
    .blob-purple { width: 270px; height: 270px; bottom: 50px; right: 30px; }
    .eco-center  { width: 110px; height: 110px; }
    .eco-center-ring.ring-outer { width: 142px; height: 142px; }
    .eco-center-ring.ring-inner { width: 124px; height: 124px; }
    .eco-core-logo { width: 70px; }
    .eco-node-info { width: 160px; padding: 12px 14px 10px; }
    .eco-node-info h4 { font-size: 13px; }
    .eco-node-info p  { font-size: 10.5px; }
    .eco-node-circle { width: 72px; height: 72px; }
    .eco-node-emoji  { font-size: 30px; }
    .eco-student { top: 0; }
    .eco-school  { bottom: 10px; left: 10px; }
    .eco-parent  { bottom: 10px; right: 10px; }
    .edge-left   { left: 30px; }
    .edge-right  { right: 30px; }
    .eco-edge-label { font-size: 10px; padding: 4px 10px; }
}

/* =========================================
   MOBILE-ONLY POLISH (≤ 640px)
   Desktop layout untouched. These rules tighten section padding,
   font sizes, and grid layouts so the full page fits cleanly on
   phones without horizontal scroll or clipped content.
   ========================================= */
@media (max-width: 640px) {
    /* Prevent any element from causing horizontal scroll */
    html, body { overflow-x: hidden; max-width: 100vw; }
    img, svg, video { max-width: 100%; height: auto; }

    /* Tighter section vertical rhythm — 90px → 56px on phones */
    section { padding: 56px 0; }
    .section-container { padding: 0 18px; }

    /* Headings scale down so they don't dominate the viewport */
    section h2 { font-size: 24px; line-height: 1.25; }
    .hero-text h1 { font-size: 26px; line-height: 1.2; }
    .section-sub { font-size: 14px; margin: 0 auto 32px; padding: 0 6px; }

    /* Hero — tighten badge, stats, buttons */
    .hero-badge { font-size: 11px; padding: 6px 14px; }
    .hero-text p { font-size: 15px; line-height: 1.65; margin-bottom: 24px; }
    .hero-buttons { gap: 10px; margin-bottom: 28px; }
    .btn-primary, .btn-secondary { padding: 13px 22px; font-size: 14px; }
    .hero-stats { gap: 14px; flex-wrap: wrap; }
    .stat strong { font-size: 18px; }
    .stat span { font-size: 10px; letter-spacing: 0.5px; }
    .stat-divider { display: none; }

    /* Cinematic hero image — smaller frame, no perspective */
    .cinematic-hero { min-height: 280px; }
    .ch-frame { width: 92%; }

    /* Marquee — slower, smaller text */
    .marquee-track span { font-size: 12px; }
    .marquee-section { padding: 10px 0; }

    /* Feature cards — full width, less internal padding */
    .feature-card { padding: 22px 18px 20px; }
    .feature-card h3 { font-size: 16px; }
    .feature-card p { font-size: 13px; }

    /* Subjects — 2 columns instead of 3 to keep tap targets sized */
    .subjects-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .subject-card { padding: 16px 8px 12px; }

    /* Trust grid — single column on small phones */
    .trust-grid { grid-template-columns: 1fr; gap: 14px; }

    /* Steps — already vertical, but tighten spacing */
    .step { max-width: 100%; }

    /* Teacher cards — full width */
    .teacher-card { width: 100%; max-width: 320px; }

    /* Pricing — 'popular' card no longer scaled, school card naturally
       sits last and gets full width */
    .pricing-grid { gap: 22px; }
    .price-card { padding: 28px 22px; }
    .price-card.popular { transform: none; }
    .price-card.popular:hover { transform: translateY(-6px); }
    .school-plan-note { font-size: 10px; }

    /* FAQ */
    .faq-q { padding: 16px 18px; font-size: 14px; }
    .faq-a { font-size: 13.5px; }
    .faq-item.open .faq-a { padding: 0 18px 16px; }

    /* CTA */
    .cta h2 { font-size: 24px; }
    .cta p { font-size: 14px; margin-bottom: 24px; }
    .btn-cta-primary, .btn-cta-secondary { padding: 14px 26px; font-size: 14px; }

    /* Comparison table — reduce padding, smaller font, hide some columns? Keep all but compact */
    .compare-header, .compare-row { padding: 10px 12px; gap: 4px; }
    .compare-feature { font-size: 12px; }
    .compare-val { font-size: 13px; }
    .compare-val.partial { font-size: 10px; }
    .col-logo { font-size: 18px; }
    .compare-col { font-size: 12px; }

    /* Impact banner — full text fits */
    .impact-banner { min-height: auto; padding: 60px 0; }
    .impact-quote { font-size: 22px; line-height: 1.35; }
    .impact-content { padding: 0 18px; }
    .impact-stats { flex-wrap: wrap; gap: 18px; }
    .impact-divider { display: none; }
    .impact-stat strong { font-size: 22px; }
    .impact-capability-strip { padding: 14px 12px; gap: 10px; flex-direction: column; }
    .cap-divider { display: none; }
    .cap-metric { min-width: 100%; }
    .cap-metric strong { font-size: 22px; }

    /* Chat preview — tighter */
    .chat-preview { padding: 60px 0; }
    .chat-preview-container { gap: 30px; padding: 0 18px; }
    .chat-window { box-shadow: 0 16px 40px rgba(0,0,0,0.35); }
    .chat-body { max-height: 320px; padding: 14px 12px; }
    .msg-bubble { font-size: 13px; padding: 10px 12px; max-width: 88%; }

    /* Gallery — single column on small phones to actually see faces */
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 220px 220px 220px 220px;
        gap: 10px;
        padding: 0 18px;
    }
    .gallery-item, .gallery-tall { height: 100%; border-radius: 14px; }

    /* Stats banner */
    .stats-banner { padding: 48px 18px; }
    .stat-num { font-size: 32px; }
    .stat-block { padding: 16px 8px; }

    /* Footer — single column, centered */
    .footer-container { gap: 28px; }
    .footer-links { text-align: center; }
    .footer-bottom { font-size: 11px; padding: 0 18px; }

    /* Split panels — single column, less padding */
    .split-section { padding: 56px 16px; }
    .split-panel { padding: 28px 22px; }
    .split-panel h2 { font-size: 22px; }

    /* Testimonials */
    .testimonial-card { padding: 24px 22px; }
    .testimonial-card p { font-size: 14px; }

    /* Ecosystem — keep the animated triangle, just shrink everything
       so it fits comfortably on a phone. SVG lines reflow via viewBox. */
    .eco-stage {
        height: 460px;
        max-width: 380px;
        padding: 0 8px;
    }
    .blob-green  { width: 220px; height: 220px; top: 20px; }
    .blob-pink   { width: 200px; height: 200px; bottom: 30px; left: 0; }
    .blob-purple { width: 200px; height: 200px; bottom: 30px; right: 0; }
    .eco-center  { width: 84px; height: 84px; top: 48%; }
    .eco-center-ring.ring-outer { width: 112px; height: 112px; }
    .eco-center-ring.ring-inner { width: 96px; height: 96px; }
    .eco-core-logo { width: 52px; }
    .eco-node-info {
        width: 130px;
        padding: 8px 10px 8px;
        border-radius: 12px;
    }
    .eco-node-info h4 { font-size: 11px; line-height: 1.2; margin-bottom: 4px; }
    .eco-node-info p  { font-size: 9.5px; line-height: 1.4; }
    .eco-node-circle { width: 56px; height: 56px; border-width: 2px; }
    .eco-node-emoji  { font-size: 24px; }
    .eco-node { gap: 8px; }
    .eco-student { top: 0; }
    .eco-school  { bottom: 0; left: 0; }
    .eco-parent  { bottom: 0; right: 0; }
    /* Hide edge labels at this size — too cramped */
    .eco-edge-label { display: none; }

    /* School-focused sections (defined inline in <head>) — tighten */
    .schools-band, .school-reasons, .inside-school,
    .rollout, .white-label, .school-demo { padding: 56px 16px; }
    .schools-band .schools-grid,
    .inside-school .inside-grid,
    .white-label .wl-grid,
    .school-demo .demo-grid { gap: 28px; }
    .schools-headline { font-size: 24px !important; }
    .schools-bullets li { font-size: 14px; }
    .schools-roi { gap: 10px; margin-top: 36px; }
    .roi-card { padding: 14px 10px; }
    .roi-card strong { font-size: 20px; }

    .reasons-grid, .rollout-steps, .wl-points,
    .inside-collage { gap: 12px; }
    .reason-card { padding: 22px 18px; }
    .rollout-card { padding: 18px; }

    /* School demo form — single column rows */
    .school-demo form { padding: 22px 18px; }
    .school-demo form .row { grid-template-columns: 1fr; }
    .school-demo form input, .school-demo form select, .school-demo form textarea {
        font-size: 16px; /* prevents iOS zoom on focus */
        padding: 12px 14px;
    }

    /* Logo navbar — make sure menu button is reachable */
    .nav-container { padding: 0 18px; }
    .brand-png { height: 40px !important; max-width: 140px !important; }

    /* Scroll-to-top — smaller, sits above WhatsApp button */
    .scroll-top-btn { width: 42px; height: 42px; font-size: 18px; bottom: 24px; right: 16px; }

    /* Reduce particle / animation noise on mobile (perf + visual) */
    .hero-particles { opacity: 0.3; }
    .orbit { display: none; }
    .floating-icon { font-size: 18px; }
}

/* =========================================
   EXTRA-SMALL PHONES (≤ 380px)
   ========================================= */
@media (max-width: 380px) {
    .hero-text h1 { font-size: 22px; }
    section h2 { font-size: 20px; }
    .nav-container { padding: 0 14px; }
    .section-container { padding: 0 14px; }
    .btn-primary, .btn-secondary { padding: 12px 18px; font-size: 13px; }
    .impact-quote { font-size: 19px; }
    .compare-feature { font-size: 11px; }
    .compare-val { font-size: 12px; }

    /* Ecosystem — tightest fit for smallest phones */
    .eco-stage {
        height: 420px;
        max-width: 340px;
    }
    .blob-green  { width: 190px; height: 190px; top: 15px; }
    .blob-pink   { width: 175px; height: 175px; bottom: 25px; left: -5px; }
    .blob-purple { width: 175px; height: 175px; bottom: 25px; right: -5px; }
    .eco-center  { width: 72px; height: 72px; }
    .eco-center-ring.ring-outer { width: 96px; height: 96px; }
    .eco-center-ring.ring-inner { width: 84px; height: 84px; }
    .eco-core-logo { width: 44px; }
    .eco-node-info {
        width: 112px;
        padding: 6px 8px;
    }
    .eco-node-info h4 { font-size: 10px; }
    .eco-node-info p  { font-size: 8.5px; line-height: 1.35; }
    .eco-node-circle { width: 48px; height: 48px; }
    .eco-node-emoji  { font-size: 20px; }
}

/* Respect users who request reduced motion — kill heavy animations */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
