/* ============================================
   LANDING PAGE — Dynamic & Interactive
   ============================================ */

:root {
    /* Logo edoo + coherencia con base.css (--primary #1f5fbf, --bg #f4f7fb) */
    --brand-sky: #3cbdf4;
    --brand: #4384e5;
    --brand-light: #3cbdf4;
    --brand-dark: #3578d4;
    --brand-deeper: #6140cc;
    --purple: #6140cc;
    --purple-light: #8b7dde;
    --purple-dark: #4a32a3;
    --accent: #a338b9;
    --brand-aqua: #15d1e2;
    --gradient-brand: linear-gradient(135deg, #3cbdf4 0%, #4384e5 35%, #6140cc 68%, #a338b9 100%);
    --green: #10b981;
    --orange: #f59e0b;
    --teal: #15d1e2;
    --pink: #ec4899;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; }
.landing-body {
    font-family: 'Figtree', 'Inter', -apple-system, sans-serif;
    color: var(--gray-800);
    background: #f4f7fb;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

/* ---------- Gradient text ---------- */
.gradient-text {
    background: linear-gradient(90deg, #3cbdf4 0%, #4384e5 30%, #6140cc 62%, #a338b9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-0 { transition-delay: 0s; }
.reveal-delay-1 { transition-delay: .15s; }
.reveal-delay-2 { transition-delay: .3s; }

/* ============================================
   NAVBAR
   ============================================ */
.landing-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 14px 0;
    transition: all .35s ease;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    box-shadow: 0 1px 20px rgba(0,0,0,.06);
}
.landing-nav.scrolled {
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    box-shadow: 0 2px 24px rgba(0,0,0,.08);
    padding: 6px 0;
}
.nav-container {
    max-width: 1360px; margin: 0 auto; padding: 0 36px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo-img { height: 44px; width: auto; object-fit: contain; }
.edoo-logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.edoo-logo__img { height: 40px; width: auto; object-fit: contain; }
.edoo-logo--sm .edoo-logo__img { height: 36px; margin: 0; }
.brand-logo {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--gradient-brand);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px; color: #fff;
    box-shadow: 0 4px 16px rgba(97, 64, 204, 0.32);
}
.brand-name { font-weight: 700; font-size: 18px; color: var(--gray-800); }
.nav-links { display: flex; gap: 6px; flex: 1; justify-content: center; }
.nav-link {
    text-decoration: none; font-size: 15px; font-weight: 500; color: var(--gray-600);
    padding: 8px 12px; border-radius: 8px; transition: all .25s; white-space: nowrap;
}
.nav-link:hover { color: var(--brand); background: rgba(67, 132, 229, 0.07); }
.nav-link.active { color: var(--brand); background: rgba(67, 132, 229, 0.1); font-weight: 600; }
.nav-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.nav-btn {
    border: none; cursor: pointer; font-family: inherit;
    font-size: 15px; font-weight: 600; border-radius: 10px; padding: 8px 18px;
    transition: all .25s; display: inline-flex; align-items: center; gap: 6px;
}
.nav-btn.ghost {
    background: none; color: var(--brand);
    border: 2px solid transparent;
    background-image: linear-gradient(#fff, #fff), var(--gradient-brand);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}
.nav-btn.ghost:hover {
    background-image: linear-gradient(var(--gray-50), var(--gray-50)), var(--gradient-brand);
    color: var(--brand);
}
.nav-btn.primary {
    background: var(--gradient-brand);
    color: #fff; box-shadow: 0 4px 16px rgba(97, 64, 204, 0.3);
}
.nav-btn.primary:hover { box-shadow: 0 6px 26px rgba(163, 56, 185, 0.35); transform: translateY(-1px); }
.nav-mobile-toggle { display: none; background: none; border: none; font-size: 20px; color: var(--gray-700); cursor: pointer; }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 120px 24px 100px;
    overflow: hidden;
    background: linear-gradient(170deg, #e8f6fd 0%, #e9eef9 28%, #ebe8f6 52%, #f3edf8 78%, #f4f7fb 100%);
}

/* Animated mesh gradient */
.hero-mesh {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse 60% 50% at 15% 25%, rgba(60, 189, 244, 0.2), transparent),
        radial-gradient(ellipse 50% 60% at 75% 55%, rgba(97, 64, 204, 0.16), transparent),
        radial-gradient(ellipse 45% 45% at 45% 15%, rgba(163, 56, 185, 0.12), transparent);
    animation: meshShift 12s ease-in-out infinite alternate;
}
@keyframes meshShift {
    0% { background-position: 0% 0%, 100% 100%, 50% 0%; }
    100% { background-position: 100% 100%, 0% 0%, 50% 100%; }
}

/* Animated orbs */
.hero-orbs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.orb {
    position: absolute; border-radius: 50%;
    filter: blur(70px); opacity: .4;
}
.orb-1 {
    width: 400px; height: 400px; top: -120px; left: -80px;
    background: linear-gradient(135deg, var(--brand-light), var(--purple-light));
    animation: orbFloat1 10s ease-in-out infinite;
}
.orb-2 {
    width: 350px; height: 350px; top: 15%; right: -100px;
    background: linear-gradient(135deg, var(--purple), var(--brand));
    animation: orbFloat2 14s ease-in-out infinite;
}
.orb-3 {
    width: 280px; height: 280px; bottom: -60px; left: 25%;
    background: linear-gradient(135deg, var(--brand), var(--teal));
    animation: orbFloat3 11s ease-in-out infinite;
}
@keyframes orbFloat1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,80px) scale(1.1); } }
@keyframes orbFloat2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-50px,60px) scale(.9); } }
@keyframes orbFloat3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-50px) scale(1.15); } }

/* Floating icons (z-index above hero content so icons aren’t hidden behind the card) */
.floating-icons { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.float-icon {
    position: absolute;
    width: 46px; height: 46px; border-radius: 12px;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    font-size: 19px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    animation: iconBob 6s ease-in-out infinite;
    transition: transform .3s ease;
}
.fi-1 { top: 14%; left: 2%;  animation-delay: 0s;    color: #2d6bc4; }
.fi-2 { top: 48%; left: 6%;  animation-delay: -1s;   color: #4a32a3; }
.fi-3 { top: 80%; left: 1%;  animation-delay: -2s;   color: #861f95; }
.fi-4 { top: 12%; right: 2%; animation-delay: -0.5s; color: #1d7dd4; font-size: 22px; }
.fi-5 { top: 52%; right: 5%; animation-delay: -3s;   color: #0a9aad; }
.fi-6 { top: 82%; right: 1%; animation-delay: -1.5s; color: #3578d4; }
@keyframes iconBob {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Hero layout */
.hero-container {
    position: relative; z-index: 2;
    max-width: 1200px; width: 100%; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center;
}
.hero-content { max-width: 540px; }

/* Badge */
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.8);
    backdrop-filter: blur(8px);
    padding: 8px 18px; border-radius: 40px;
    font-size: 13px; font-weight: 600; color: var(--brand);
    border: 1px solid rgba(67,132,229,.15);
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(67,132,229,.08);
}
.badge-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(1.3); } }

/* Title */
.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 900; line-height: 1.1;
    letter-spacing: -.03em; margin-bottom: 20px;
}

/* Description */
.hero-desc {
    font-size: 17px; line-height: 1.7; color: var(--gray-600); margin-bottom: 32px;
}
.hero-desc strong { color: var(--gray-800); }
.hero-desc .hero-desc-num {
    font-weight: 800;
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 45%, #c026d3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 2px rgba(99, 102, 241, 0.25));
}

/* Stats */
.hero-stats {
    display: flex; align-items: center; justify-content: center;
    gap: 16px;
    background: rgba(255,255,255,.6);
    backdrop-filter: blur(12px);
    padding: 14px 20px; border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,.8);
    box-shadow: var(--shadow-sm);
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-value { display: flex; align-items: center; justify-content: center; gap: 2px; }
.stat-num { font-size: 28px; font-weight: 800; color: var(--gray-900); line-height: 1; }
.stat-plus { font-size: 20px; font-weight: 800; color: var(--brand); }
/* “+” del contador: gradiente acento (coherente con el hero) */
.stat-plus-accent {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    align-self: center;
    margin-left: 0;
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 45%, #c026d3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 2px rgba(99, 102, 241, 0.25));
}
.stat-label { font-size: 13px; color: var(--gray-500); font-weight: 500; margin-top: 2px; display: block; }
.stat-sep { width: 1px; height: 40px; background: var(--gray-200); }

/* Hero CTA Card */
.hero-cards { display: flex; justify-content: center; }
.hero-card {
    position: relative;
    background: rgba(255,255,255,.6);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 20px;
    padding: 36px 32px 28px;
    box-shadow: 0 8px 40px rgba(0,0,0,.07);
    overflow: hidden;
    width: 100%; max-width: 400px;
    transition: all .4s cubic-bezier(.22,1,.36,1);
}
.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,.1);
}
.hero-card-glow {
    position: absolute; top: -60%; right: -40%;
    width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle, rgba(67,132,229,.12), transparent 70%);
    pointer-events: none;
    z-index: -1;
}
.hero-card-icon {
    width: 52px; height: 52px; border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(67,132,229,.12), rgba(67,132,229,.04));
    color: var(--brand); font-size: 22px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.hero-card-title { font-size: 22px; font-weight: 800; color: var(--gray-900); margin: 0 0 6px; }
.hero-card-desc { font-size: 14px; color: var(--gray-500); line-height: 1.6; margin: 0 0 22px; }
.hero-main-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 16px; border: none; border-radius: var(--radius);
    background: var(--gradient-brand);
    color: #fff; font-family: inherit; font-size: 16px; font-weight: 700;
    cursor: pointer; transition: all .3s;
    box-shadow: 0 6px 24px rgba(67,132,229,.3);
}
.hero-main-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(67,132,229,.4); }
.hero-card-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 14px 0; color: var(--gray-300); font-size: 13px;
}
.hero-card-divider::before, .hero-card-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--gray-200);
}
.hero-sec-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 12px; border: 1.5px solid var(--gray-200); border-radius: 12px;
    background: #fff; color: var(--gray-600);
    font-family: inherit; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all .2s;
}
.hero-sec-btn:hover { border-color: var(--brand); color: var(--brand); background: rgba(67,132,229,.03); }
.hero-trust {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-top: 18px; padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}
.hero-trust-avatars { display: flex; }
.trust-av {
    width: 26px; height: 26px; border-radius: 50%; margin-left: -6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #fff;
    border: 2px solid #fff;
}
.trust-av:first-child { margin-left: 0; }
.hero-trust-text { font-size: 13px; font-weight: 500; color: var(--gray-400); }

/* Wave */
.hero-wave {
    position: absolute; bottom: -1px; left: 0; right: 0; z-index: 3;
    line-height: 0;
    pointer-events: none;
}
.hero-wave svg { width: 100%; height: auto; }

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 100px 24px; position: relative; }
.section-alt { background: #fff; }
.section-container { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(67,132,229,.08), rgba(97,64,204,.08));
    color: var(--brand); font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    padding: 6px 16px; border-radius: 32px; margin-bottom: 14px;
}
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.section-header h2 .landing-headline-em {
    text-decoration: underline;
    text-decoration-color: #818cf8;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}
.section-sub { font-size: 16px; color: var(--gray-500); margin-top: 10px; }

/* ============================================
   STEPS
   ============================================ */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps-grid.steps-4 { grid-template-columns: repeat(4, 1fr); }
.step-card {
    text-align: center; padding: 40px 24px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all .4s cubic-bezier(.22,1,.36,1);
}
.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(67,132,229,.15);
}
.step-num-circle {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff; font-weight: 800; font-size: 15px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 15px rgba(67,132,229,.3);
}
.step-line { display: none; }
.step-icon {
    width: 64px; height: 64px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin: 0 auto 16px;
    transition: transform .3s;
}
.step-card:hover .step-icon { transform: scale(1.1) rotate(-3deg); }
.step-icon.blue { background: linear-gradient(135deg, rgba(67,132,229,.12), rgba(67,132,229,.04)); color: var(--brand); }
.step-icon.purple { background: linear-gradient(135deg, rgba(97,64,204,.12), rgba(97,64,204,.04)); color: var(--purple); }
.step-icon.orange { background: linear-gradient(135deg, rgba(245,158,11,.12), rgba(245,158,11,.04)); color: var(--orange); }
.step-icon.green { background: linear-gradient(135deg, rgba(16,185,129,.12), rgba(16,185,129,.04)); color: var(--green); }

.step-card:has(.step-icon.blue):hover { border: 4px solid rgba(67,132,229,.5); box-shadow: 0 8px 30px rgba(67,132,229,.18); }
.step-card:has(.step-icon.purple):hover { border: 4px solid rgba(97,64,204,.5); box-shadow: 0 8px 30px rgba(97,64,204,.18); }
.step-card:has(.step-icon.orange):hover { border: 4px solid rgba(245,158,11,.5); box-shadow: 0 8px 30px rgba(245,158,11,.18); }
.step-card:has(.step-icon.green):hover { border: 4px solid rgba(16,185,129,.5); box-shadow: 0 8px 30px rgba(16,185,129,.18); }

.step-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

/* ============================================
   FEATURES
   ============================================ */

/* Highlight cards (big feature showcases) */
.highlights-row { display: flex; flex-direction: column; gap: 24px; margin-bottom: 40px; }
.highlight-card {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
    background: var(--gray-50); border: 1px solid var(--gray-100);
    border-radius: 20px; padding: 36px; overflow: hidden;
    transition: all .4s;
}
.highlight-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.06); transform: translateY(-2px); }
.highlight-card.reverse { direction: rtl; }
.highlight-card.reverse > * { direction: ltr; }
.highlight-info { display: flex; flex-direction: column; gap: 10px; }
.highlight-badge {
    display: inline-flex; align-items: center; gap: 6px; width: fit-content;
    padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 700;
    background: rgba(67,132,229,.08); color: var(--brand);
}
.highlight-badge.purple { background: rgba(97,64,204,.08); color: var(--purple); }
.highlight-badge.green { background: rgba(16,185,129,.08); color: #059669; }
.highlight-info h3 { font-size: 22px; font-weight: 800; color: var(--gray-900); margin: 0; }
.highlight-info p { font-size: 14px; color: var(--gray-500); line-height: 1.7; margin: 0; }

/* Mock UI inside highlights */
.highlight-visual { display: flex; justify-content: center; }
.hl-mock {
    width: 100%; max-width: 360px;
    background: #fff; border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
    overflow: hidden;
}
.hl-mock-bar {
    height: 10px; background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
    display: flex; align-items: center; gap: 4px; padding: 0 10px;
}
.hl-mock-bar::before, .hl-mock-bar::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gray-200); }
.hl-mock-items { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.hl-mock-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 10px;
    background: var(--gray-50); font-size: 13px; font-weight: 600; color: var(--gray-700);
}
.hl-mock-item i { color: var(--brand); font-size: 14px; width: 20px; text-align: center; }
.hl-mock-item span { flex: 1; }
.hl-tag { font-size: 13px; font-weight: 600; color: var(--gray-400); background: var(--gray-100); padding: 4px 8px; border-radius: 6px; }

/* Lesson mock */
.hl-mock-lesson { padding: 14px; }
.hl-lesson-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 700; color: var(--gray-800);
    margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--gray-100);
}
.hl-lesson-title i { color: var(--purple); }
.hl-lesson-section { margin-bottom: 10px; }
.hl-sec-name { font-size: 13px; font-weight: 600; color: var(--gray-500); margin-bottom: 6px; display: block; }
.hl-sec-items { display: flex; gap: 6px; flex-wrap: wrap; }
.hl-sec-items span {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 600;
    background: var(--gray-50); color: var(--gray-600); border: 1px solid var(--gray-100);
}
.hl-sec-items span i { font-size: 13px; color: var(--brand); }

/* Vista previa: tarjeta Distribución (mismas clases que Resultados en la app) */
.highlight-visual--stack {
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.landing-results-app-snapshot {
    width: 100%;
    max-width: 100%;
}
.landing-results-app-snapshot__card {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}
.landing-results-app-snapshot .results-card {
    min-width: 0;
}

@media (max-width: 768px) {
    .highlight-card { grid-template-columns: 1fr; gap: 20px; }
    .highlight-card.reverse { direction: ltr; }
    .steps-grid.steps-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .steps-grid.steps-4 { grid-template-columns: 1fr; }
}

/* Feature cards (small) */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--gray-50);
    border: 1px solid transparent;
    transition: all .4s cubic-bezier(.22,1,.36,1);
    position: relative;
    overflow: hidden;
}
.feature-card::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: var(--radius);
    opacity: 0;
    background: linear-gradient(135deg, rgba(67,132,229,.04), rgba(97,64,204,.04));
    transition: opacity .4s;
    pointer-events: none;
    z-index: -1;
}
.feature-card:hover { border-color: rgba(67,132,229,.12); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-card:hover::after { opacity: 1; }
.feature-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-bottom: 14px;
    position: relative; z-index: 1;
    transition: transform .3s;
}
.feature-card:hover .feature-icon { transform: scale(1.1); }
.feature-icon.blue { background: linear-gradient(135deg, rgba(67,132,229,.12), rgba(67,132,229,.04)); color: var(--brand); }
.feature-icon.purple { background: linear-gradient(135deg, rgba(97,64,204,.12), rgba(97,64,204,.04)); color: var(--purple); }
.feature-icon.green { background: linear-gradient(135deg, rgba(16,185,129,.12), rgba(16,185,129,.04)); color: var(--green); }
.feature-icon.orange { background: linear-gradient(135deg, rgba(245,158,11,.12), rgba(245,158,11,.04)); color: var(--orange); }
.feature-icon.pink { background: linear-gradient(135deg, rgba(236,72,153,.12), rgba(236,72,153,.04)); color: var(--pink); }
.feature-icon.cyan { background: linear-gradient(135deg, rgba(20,184,166,.12), rgba(20,184,166,.04)); color: var(--teal); }
.feature-icon.teal { background: linear-gradient(135deg, rgba(21,209,226,.14), rgba(21,209,226,.05)); color: #0ea5c9; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; position: relative; z-index: 1; }
.feature-card p { font-size: 13.5px; color: var(--gray-500); line-height: 1.6; position: relative; z-index: 1; }

/* ============================================
   ACTIVITIES CAROUSEL
   ============================================ */
.activities-carousel { overflow-x: hidden; overflow-y: visible; width: 100%; padding: 8px 0; mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.activities-track {
    display: flex; gap: 14px;
    width: max-content;
    animation: scrollTrack 30s linear infinite;
}
.track-reverse { animation: scrollTrackReverse 35s linear infinite; }

@keyframes scrollTrack {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes scrollTrackReverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}
.activities-carousel:hover .activities-track { animation-play-state: paused; }
.act-card {
    flex-shrink: 0;
    display: flex; align-items: center; gap: 10px;
    padding: 14px 22px;
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    font-size: 14px; font-weight: 600; color: var(--gray-700);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    transition: all .3s;
}
.act-card:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.act-card i { font-size: 16px; color: var(--brand); }

/* ============================================
   STUDENT EXPERIENCE
   ============================================ */
.student-exp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.student-exp-card {
    background: #fff;
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: all .3s;
}
.student-exp-card:hover {
    border-color: rgba(67, 132, 229, .25);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(67, 132, 229, .1);
}
.student-exp-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    margin-bottom: 18px;
}
.student-exp-icon.register { background: rgba(59, 130, 246, .1); color: #3b82f6; }
.student-exp-icon.groups { background: rgba(99, 102, 241, .1); color: #6366f1; }
.student-exp-icon.code { background: rgba(168, 85, 247, .1); color: #a855f7; }
.student-exp-icon.device { background: rgba(34, 197, 94, .1); color: #22c55e; }
.student-exp-icon.progress { background: rgba(245, 158, 11, .1); color: #f59e0b; }
.student-exp-icon.announce { background: rgba(239, 68, 68, .1); color: #ef4444; }
.student-exp-card h3 {
    font-size: 17px; font-weight: 700; color: var(--gray-800);
    margin-bottom: 8px;
}
.student-exp-card p {
    font-size: 14px; color: var(--gray-500); line-height: 1.6;
}
@media (max-width: 768px) {
    .student-exp-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .student-exp-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   PRICING
   ============================================ */
/* Pricing toggle */
.pricing-toggle {
    display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 36px;
}
.pricing-toggle-label {
    font-size: 15px; font-weight: 600; color: var(--gray-400); transition: color .3s;
    display: flex; align-items: center; gap: 6px;
}
.pricing-toggle-label#pricing-monthly-label { color: var(--gray-900); }
.pricing-toggle-label.active { color: var(--gray-900); }
.pricing-toggle-label:not(.active) { color: var(--gray-400); }
.pricing-save-badge {
    background: var(--green); color: #fff; font-size: 11px; font-weight: 700;
    padding: 4px 8px; border-radius: 20px; letter-spacing: .02em;
}
.pricing-toggle-switch {
    width: 48px; height: 26px; border-radius: 999px; border: none;
    background: var(--gray-200); cursor: pointer; position: relative;
    transition: background .3s; padding: 0;
    /* Opt out of the global 44px touch-target min-height (base.css), which
       otherwise inflates this switch into a tall blob on phones/tablets. */
    min-height: 26px;
}
.pricing-toggle-switch.active { background: var(--brand); }
.pricing-toggle-thumb {
    position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
    border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15);
    transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.pricing-toggle-switch.active .pricing-toggle-thumb { transform: translateX(22px); }

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }
.pricing-card {
    background: var(--gray-50);
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: all .5s cubic-bezier(.22,1,.36,1);
    will-change: transform;
}
.pricing-card:hover {
    box-shadow: var(--shadow-lg);
}
.pricing-card.popular {
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 8px 40px rgba(67,132,229,.12);
}
.pricing-card.popular:hover { box-shadow: 0 20px 60px rgba(67,132,229,.18); }

.popular-tag {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--gradient-brand);
    color: #fff; font-size: 13px; font-weight: 700;
    padding: 6px 18px; border-radius: 20px;
    display: flex; align-items: center; gap: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(67,132,229,.3);
    animation: shimmerTag 3s ease-in-out infinite;
}
@keyframes shimmerTag {
    0%, 100% { box-shadow: 0 4px 15px rgba(67,132,229,.3); }
    50% { box-shadow: 0 4px 25px rgba(67,132,229,.5), 0 0 15px rgba(97,64,204,.2); }
}

.pricing-header h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.pricing-price { margin-bottom: 20px; }
.price-amount { font-size: 42px; font-weight: 900; letter-spacing: -.03em; color: var(--gray-900); }
.pricing-card.popular .price-amount { color: var(--brand); }
.price-period { font-size: 15px; color: var(--gray-400); font-weight: 500; }

.pricing-features {
    list-style: none; text-align: left; margin-bottom: 24px;
    display: flex; flex-direction: column; gap: 10px;
}
.pricing-features li {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; color: var(--gray-600);
}
.pricing-features i { color: var(--green); font-size: 13px; flex-shrink: 0; }
.pricing-feature-disabled { opacity: .45; }
.pricing-feature-disabled i.fa-xmark { color: var(--gray-400) !important; }
.price-currency { font-size: 24px; font-weight: 700; color: var(--gray-500); vertical-align: super; margin-right: 2px; }
.price-amount { transition: transform .3s, opacity .15s; display: inline-block; }
.pricing-note { text-align: center; margin-top: 28px; font-size: 14px; color: var(--gray-400); }

.pricing-btn {
    width: 100%; padding: 12px; border: none; border-radius: 12px;
    font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
    transition: all .3s;
}
.pricing-btn.primary {
    background: var(--gradient-brand);
    color: #fff; box-shadow: 0 4px 18px rgba(97, 64, 204, 0.28);
}
.pricing-btn.primary:hover { box-shadow: 0 8px 30px rgba(67,132,229,.4); transform: translateY(-2px); }
.pricing-btn.outline {
    background: transparent;
    border: 1.5px solid var(--gray-200);
    color: var(--gray-700);
}
.pricing-btn.outline:hover { border-color: var(--brand); color: var(--brand); background: rgba(67,132,229,.04); }
.pricing-btn.ghost {
    background: var(--gray-100);
    color: var(--gray-700);
}
.pricing-btn.ghost:hover { background: var(--gray-200); }

/* Pro tier */
.pricing-card.pro {
    background: #fff;
    border-color: var(--purple);
    box-shadow: 0 8px 30px rgba(97,64,204,.1);
}
.pricing-card.pro:hover { box-shadow: 0 20px 60px rgba(97,64,204,.15); }
.pricing-card.pro .price-amount { color: var(--purple); }
.pro-tag {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, #6140cc, #a338b9);
    color: #fff; font-size: 13px; font-weight: 700;
    padding: 6px 18px; border-radius: 20px; white-space: nowrap;
    box-shadow: 0 4px 14px rgba(97, 64, 204, 0.32);
    display: flex; align-items: center; gap: 6px;
}
.pricing-btn.pro-btn {
    background: linear-gradient(135deg, #6140cc, #a338b9);
    color: #fff; box-shadow: 0 4px 18px rgba(97, 64, 204, 0.28);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.pricing-btn.pro-btn:hover { box-shadow: 0 8px 30px rgba(97,64,204,.4); transform: translateY(-2px); }

/* ============================================
   FAQ
   ============================================ */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
    align-items: start;
}
.faq-grid > .faq-item {
    min-height: 72px;
}
.faq-item {
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
    overflow: hidden;
}
.faq-item summary span {
    flex: 1;
}
.faq-item:hover {
    border-color: rgba(67,132,229,.22);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.faq-item[open] {
    border-color: rgba(67,132,229,.18);
    box-shadow: 0 4px 20px rgba(67,132,229,.08);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 22px;
    min-height: 72px;
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-800);
    transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { color: var(--brand); }
.faq-item summary .faq-icon {
    font-size: 13px;
    color: var(--brand);
    flex-shrink: 0;
    transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.faq-item[open] summary .faq-icon { transform: rotate(180deg); }
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s cubic-bezier(.22,1,.36,1), padding .3s ease;
    padding: 0 22px;
}
.faq-item[open] .faq-answer {
    grid-template-rows: 1fr;
    padding: 0 22px 20px;
}
.faq-answer p {
    margin: 0;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray-500);
}

/* ============================================
   CTA
   ============================================ */
.cta-section {
    position: relative; padding: 100px 24px; text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1a1240 45%, #241854 100%);
}
.cta-orbs { position: absolute; inset: 0; pointer-events: none; }
.orb-cta-1 {
    position: absolute; width: 400px; height: 400px; border-radius: 50%;
    top: -150px; right: -100px;
    background: radial-gradient(circle, rgba(67,132,229,.25), transparent 70%);
    animation: orbFloat1 8s ease-in-out infinite;
}
.orb-cta-2 {
    position: absolute; width: 300px; height: 300px; border-radius: 50%;
    bottom: -100px; left: -50px;
    background: radial-gradient(circle, rgba(97,64,204,.2), transparent 70%);
    animation: orbFloat2 10s ease-in-out infinite;
}

.cta-content h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; color: #fff; margin-bottom: 12px; letter-spacing: -.02em; }
.cta-content p { font-size: 17px; color: rgba(255,255,255,.6); margin-bottom: 32px; }
.cta-btn-main {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 36px; border: none; border-radius: var(--radius);
    background: var(--gradient-brand);
    color: #fff; font-family: inherit; font-size: 17px; font-weight: 700;
    cursor: pointer; transition: all .3s;
    box-shadow: 0 8px 30px rgba(67,132,229,.3);
}
.cta-btn-main:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(67,132,229,.4); }

/* ============================================
   FOOTER
   ============================================ */
.landing-footer { background: var(--gray-900); padding: 60px 24px 0; color: rgba(255,255,255,.6); }
.footer-container { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 300px; }
.footer-brand .brand-logo { flex-shrink: 0; }
.footer-brand .brand-name { color: #fff; font-weight: 700; font-size: 16px; display: block; }
.footer-brand p { font-size: 13px; line-height: 1.7; margin-top: 4px; }
.footer-links { display: flex; gap: 60px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.footer-col a { text-decoration: none; font-size: 13px; color: rgba(255,255,255,.5); transition: color .2s; }
.footer-col a:hover { color: var(--brand-light); }
.footer-bottom { text-align: center; padding: 20px 0; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.3); }

/* ============================================
   AUTH MODAL (standalone for landing page)
   ============================================ */
.modal {
    position: fixed; inset: 0;
    background: rgba(15,23,42,.75);
    backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center;
    z-index: 200; padding: 16px;
}
.modal.show { display: flex; }
.modal__content {
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 16px; padding: 32px;
    width: min(420px, 92%); position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    animation: modalIn .25s ease-out;
}
@keyframes modalIn { from { opacity:0; transform:scale(.96) translateY(10px); } to { opacity:1; transform:none; } }
.modal__content .icon-button.close {
    position: absolute; top: 14px; right: 14px;
    background: none; border: none; font-size: 18px; color: var(--gray-400);
    cursor: pointer; width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.modal__content .icon-button.close:hover { background: rgba(239, 68, 68, 0.08); color: #ef4444; }
.modal__content .eyebrow {
    font-size: 13px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; color: var(--brand); margin-bottom: 4px;
}
.modal__content h3 { font-size: 1.3rem; font-weight: 700; color: var(--gray-800); margin: 0 0 20px; }
#auth-modal .tabs {
    display: flex; gap: 4px; background: var(--gray-100);
    border-radius: 10px; padding: 4px; margin-bottom: 20px;
}
#auth-modal .tab {
    flex: 1; padding: 10px 16px; border: none; background: transparent;
    border-radius: 8px; font-size: 14px; font-weight: 600;
    color: var(--gray-500); cursor: pointer; transition: all .2s; font-family: inherit;
}
#auth-modal .tab.active { background: #fff; color: var(--gray-800); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
#auth-modal .tab-content { display: none; }
#auth-modal .tab-content.active { display: block; }
#auth-modal .field { margin-bottom: 16px; }
#auth-modal .label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-600); margin-bottom: 6px; }
#auth-modal .auth-consent-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 4px 0 12px;
}
#auth-modal .auth-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    line-height: 1.45;
    color: #475569;
    cursor: pointer;
}
#auth-modal .auth-consent-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    accent-color: #4a7dff;
    cursor: pointer;
}
#auth-modal .auth-consent-label a { color: #4a7dff; text-decoration: none; }
#auth-modal .auth-consent-label a:hover { text-decoration: underline; }
#auth-modal input[type="email"],
#auth-modal input[type="password"],
#auth-modal input[type="text"] {
    width: 100%; padding: 12px 14px; border: 1.5px solid #e2e8f0;
    border-radius: 10px; font-size: 14px; color: var(--gray-800);
    background: var(--gray-50); transition: border-color .2s; box-sizing: border-box;
    font-family: inherit;
}
#auth-modal input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(67,132,229,.1); }
#auth-modal input::-ms-reveal,
#auth-modal input::-ms-clear {
    display: none !important;
}
#auth-modal .password-input-wrapper {
    position: relative;
    display: block;
}
#auth-modal .password-input-wrapper input {
    padding-right: 44px !important;
}
#auth-modal .password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 14px;
    min-height: unset !important;
    min-width: unset !important;
}
#auth-modal .password-toggle:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.08) !important;
}
#auth-modal .password-toggle.active {
    color: #3b82f6;
}
#auth-modal .btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 12px 20px; border: none; border-radius: 10px;
    font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; margin-top: 8px;
    font-family: inherit;
}
#auth-modal .btn.primary { background: var(--gradient-brand); color: #fff; position: relative; min-height: 48px; }
#auth-modal .btn.primary:hover { filter: brightness(1.05); }
#auth-modal .btn.primary .btn-loader {
    display: none; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    font-size: 1.25rem; line-height: 1;
}
#auth-modal .btn.primary.is-loading { pointer-events: none; opacity: 0.92; }
#auth-modal .btn.primary.is-loading .btn-label { visibility: hidden; }
#auth-modal .btn.primary.is-loading .btn-loader { display: flex; }

/* Auth loading overlay (landing) */
.auth-loading-overlay {
    position: absolute; inset: 0; background: #fff; z-index: 50;
    display: flex; align-items: center; justify-content: center;
    border-radius: inherit; animation: authOverlayIn 0.3s ease;
}
@keyframes authOverlayIn { from { opacity: 0; } to { opacity: 1; } }
.auth-loading-content {
    display: flex; flex-direction: column; align-items: center; gap: 22px;
    animation: authContentIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes authContentIn {
    from { opacity: 0; transform: translateY(16px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-loading-logo { position: relative; width: 80px; height: 80px; display: grid; place-items: center; }
.auth-loading-ring {
    position: absolute; inset: 0; border: 3.5px solid #e8ecf8;
    border-top-color: var(--brand); border-right-color: var(--brand-aqua);
    border-radius: 50%; animation: authRingSpin 0.9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes authRingSpin { to { transform: rotate(360deg); } }
.auth-loading-icon { font-size: 1.6rem; color: var(--brand); z-index: 1; animation: authIconPulse 2s ease-in-out infinite; }
@keyframes authIconPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
}
.auth-loading-label { font-weight: 700; font-size: 1.05rem; color: var(--gray-800); margin: 0; }
.auth-loading-dots { display: flex; gap: 7px; }
.auth-loading-dots span {
    width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
    animation: authDotBounce 1.4s ease-in-out infinite;
}
.auth-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.auth-loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes authDotBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
    30% { transform: translateY(-10px); opacity: 1; }
}

.forgot-password-link {
    display: block; text-align: center; margin-top: 10px;
    font-size: 13px; color: var(--brand); text-decoration: none; cursor: pointer;
}
.forgot-password-link:hover { text-decoration: underline; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1440px) {
    .float-icon { width: 38px; height: 38px; font-size: 15px; opacity: .6; }
    .fi-1, .fi-2, .fi-3 { left: 0.5%; }
    .fi-4, .fi-5, .fi-6 { right: 0.5%; }
}

@media (max-width: 1200px) {
    .float-icon { display: none !important; }
    .floating-icons { display: none !important; }
}

@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content { max-width: 600px; margin: 0 auto; }
    .hero-cards { justify-content: center; }
    .hero-card { max-width: 400px; }
    .hero-stats { justify-content: center; flex-wrap: wrap; }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .float-icon { display: none !important; }
    .hero-orbs { opacity: 0.5; }
    section { padding: 60px 20px; }
}

@media (max-width: 1024px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 16px; box-shadow: var(--shadow-md); border-radius: 0 0 16px 16px; gap: 4px; z-index: 100; }
    .nav-links.show { display: flex; }
    .nav-mobile-toggle { display: block; }
}

@media (max-width: 768px) {
    .nav-btn.ghost { display: inline-flex; font-size: 13px; padding: 8px 12px; min-height: 44px; }
    .nav-btn.primary { font-size: 13px; padding: 8px 12px; min-height: 44px; }
    .nav-container { padding: 0 16px; }

    .hero { padding: 100px 16px 60px; min-height: auto; }
    .hero-container { gap: 32px; }
    .hero-cards { justify-content: center; }
    .hero-card { max-width: 100%; }
    .hero-title { font-size: 2.2rem; line-height: 1.2; }
    .hero-subtitle { font-size: 1rem; }

    section { padding: 50px 16px; }
    .section-title { font-size: 1.8rem; }
    .section-subtitle { font-size: 0.95rem; }
    .steps-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
    .faq-grid { grid-template-columns: 1fr; }

    .footer-container { flex-direction: column; text-align: center; }
    .footer-links { gap: 32px; justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
    .hero { padding: 90px 14px 50px; }
    .hero-title { font-size: 1.7rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .hero-stats { flex-direction: column; gap: 10px; padding: 14px; }
    .stat-sep { display: none; }
    .hero-card { padding: 20px; }
    
    .nav-container { padding: 0 12px; }
    .nav-btn.primary { padding: 8px 14px; font-size: 13px; min-height: 44px; }
    .nav-btn.ghost { min-height: 44px; }
    .brand-logo-img { height: 32px; }
    .edoo-logo__img { height: 32px; }
    
    section { padding: 40px 14px; }
    .section-title { font-size: 1.5rem; }
    .feature-card { padding: 20px; }
    .pricing-card { padding: 24px 18px; }
    .step-card { padding: 20px; }
    .price-amount { font-size: 32px; }
    
    .highlight-card { padding: 24px 16px; gap: 16px; }
    .student-exp-card { padding: 20px; }

    .modal__content { padding: 20px; }

    .faq-item summary { padding: 16px 14px; }
    .faq-answer { padding: 0 14px; }
    .faq-item[open] .faq-answer { padding: 0 14px 16px; }
}

@media (max-width: 480px) {
    .nav-actions .nav-btn.ghost {
        display: inline-flex;
        font-size: 13px;
        padding: 8px 14px;
        min-height: 44px;
        background: #f1f5f9;
        border-radius: 8px;
        color: #1e293b;
    }
    .nav-actions .nav-btn.primary {
        font-size: 13px;
        padding: 8px 14px;
        min-height: 44px;
    }
    .nav-actions .nav-btn.primary i {
        display: none;
    }
}

@media (max-width: 360px) {
    .hero-title { font-size: 1.5rem; }
}

/* ============================================
   INTERACTIVE DEMO SECTION
   ============================================ */
.demo-section {
    position: relative;
    overflow: hidden;
    padding-top: 60px;
    padding-bottom: 60px;
    background: linear-gradient(180deg, #fff 0%, #f0f4ff 30%, #ebe8f6 70%, #f8fafc 100%);
}
.demo-section .section-header { margin-bottom: 36px; }
.demo-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(60,189,244,.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(97,64,204,.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(163,56,185,.05) 0%, transparent 60%);
    pointer-events: none;
}

/* Topic Pills Bar */
/* Step Indicators */
.demo-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 8px;
}
.demo-step-dot {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--gray-100);
    border: 2.5px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--gray-400);
    transition: all .4s;
    flex-shrink: 0;
}
.demo-step-dot.active {
    background: var(--gradient-brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 4px 16px rgba(67,132,229,.3);
}
.demo-step-dot.done {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}
.demo-step-line {
    width: 80px;
    height: 3px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}
.demo-step-line-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-brand);
    border-radius: 4px;
    transition: width .6s ease;
}
.demo-steps-labels {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 20px;
}
.demo-step-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-400);
    transition: color .3s;
}
.demo-step-label.active { color: var(--brand); }
.demo-step-label.done { color: var(--green); }

/* File Picker Cards */
.demo-resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 560px;
    margin: 0 auto;
}
.demo-resource-card {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(10px);
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 10px;
    cursor: pointer;
    transition: all .3s cubic-bezier(.22,1,.36,1);
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.demo-resource-card:hover {
    border-color: var(--brand);
    background: #f8fafc;
    box-shadow: 0 8px 24px rgba(59,130,246,.15);
    transform: translateY(-2px);
}
.demo-resource-preview {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
    background: #fef2f2;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.demo-resource-preview i {
    font-size: 28px;
    color: #dc2626;
}
.demo-resource-preview.ppt {
    background: #fff7ed;
}
.demo-resource-preview.ppt i {
    color: #ea580c;
}
.demo-resource-preview.youtube {
    background: #fef2f2;
}
.demo-resource-preview.youtube i {
    color: #dc2626;
}
.demo-resource-label {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--gray-800);
    margin-bottom: 4px;
}
.demo-resource-type {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
}

/* Demo Container */
.demo-container {
    position: relative;
    min-height: 280px;
}

@media (max-width: 768px) {
    .demo-steps-labels { gap: 24px; }
    .demo-step-line { width: 50px; }
    .demo-resource-grid { max-width: 100%; }
}
@media (max-width: 480px) {
    .demo-step-dot { width: 30px; height: 30px; font-size: 12px; }
    .demo-step-line { width: 36px; }
    .demo-steps-labels { gap: 12px; font-size: 12px; }
}

/* Panels */
.demo-panel {
    display: none;
    animation: demoPanelIn .5s cubic-bezier(.22,1,.36,1);
}
.demo-panel.active { display: block; }
@keyframes demoPanelIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* AI Animation */
.demo-ai-container {
    text-align: center;
    padding: 40px 20px;
    position: relative;
    transition: all .5s;
}
.demo-ai-container.hide {
    opacity: 0;
    transform: scale(.95);
    pointer-events: none;
    position: absolute;
    width: 100%;
}
.demo-ai-brain {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(67,132,229,.1), rgba(97,64,204,.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--purple);
    position: relative;
}
.demo-ai-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--brand);
    border-right-color: var(--purple);
    animation: aiRingSpin 1.5s linear infinite;
}
.demo-ai-ring-2 {
    inset: -16px;
    border-top-color: var(--accent);
    border-right-color: var(--brand-sky);
    animation-direction: reverse;
    animation-duration: 2s;
    opacity: .5;
}
@keyframes aiRingSpin { to { transform: rotate(360deg); } }

.demo-ai-status h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 16px;
    transition: opacity .3s;
}
.demo-ai-progress {
    width: 280px;
    height: 6px;
    background: var(--gray-100);
    border-radius: 6px;
    margin: 0 auto;
    overflow: hidden;
}
.demo-ai-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-brand);
    border-radius: 6px;
    transition: width .1s linear;
}

/* Particles */
.demo-ai-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.demo-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--brand);
    opacity: 0;
    animation: particleFloat 2s ease-in-out infinite;
}
.demo-particle:nth-child(odd) { background: var(--purple); }
.demo-particle:nth-child(3n) { background: var(--accent); width: 3px; height: 3px; }
@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(0) scale(0); }
    30% { opacity: .6; }
    100% { opacity: 0; transform: translateY(-80px) scale(1.5); }
}

/* Activity Grid */
.demo-grid-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 24px;
}
.demo-grid-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 900px;
    margin: 0 auto;
}
.demo-act-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    background: rgba(255,255,255,.8);
    backdrop-filter: blur(10px);
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all .3s cubic-bezier(.22,1,.36,1);
    text-align: center;
}
.demo-act-card:hover {
    border-color: var(--brand);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(67,132,229,.12);
}
.demo-act-card:active { transform: translateY(-2px) scale(.98); }
.demo-act-card:focus-visible, .demo-resource-card:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.demo-act-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--type-color, var(--brand)) 12%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--type-color, var(--brand));
    transition: transform .3s;
}
.demo-act-card:hover .demo-act-icon { transform: scale(1.1) rotate(-3deg); }

.demo-act-card span {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
}

/* Step 3: Play Area */
.demo-play-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
}
.demo-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    background: #fff;
    color: var(--gray-600);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.demo-back-btn:hover { border-color: var(--brand); color: var(--brand); }

.demo-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--gray-500);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0;
    margin-bottom: 8px;
    transition: color .2s;
}
.demo-back-link:hover { color: var(--brand); }

.demo-play-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 8px;
}
.demo-play-title i { color: var(--brand); }

.demo-play-area {
    background: rgba(255,255,255,.6);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    padding: 32px;
    min-height: 300px;
}

/* Check button */
.demo-check-btn {
    display: block;
    width: fit-content;
    margin: 24px auto 0;
    padding: 12px 32px;
    background: var(--gradient-brand);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all .3s;
    box-shadow: 0 4px 16px rgba(67,132,229,.25);
}
.demo-check-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(67,132,229,.35);
}

/* Score Overlay */
.demo-score-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    z-index: 10;
    align-items: center;
    justify-content: center;
}
.demo-score-overlay.show { display: flex; }

.demo-score-card {
    text-align: center;
    padding: 40px;
    position: relative;
    animation: scoreCardIn .5s cubic-bezier(.22,1,.36,1);
}
@keyframes scoreCardIn {
    from { opacity: 0; transform: scale(.8) translateY(20px); }
    to { opacity: 1; transform: none; }
}

.demo-score-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    top: -10px;
    border-radius: 2px;
    animation: confettiFall 2s ease-out forwards;
}
@keyframes confettiFall {
    0% { opacity: 1; transform: translateY(0) rotate(0deg); }
    100% { opacity: 0; transform: translateY(400px) rotate(720deg); }
}

.demo-score-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}
.demo-score-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.demo-score-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    color: var(--gray-800);
}

.demo-score-card h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 4px;
}
.demo-score-sub {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 28px;
}

.demo-score-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.demo-score-btn {
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all .3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.demo-score-btn.primary {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 4px 16px rgba(67,132,229,.3);
}
.demo-score-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(67,132,229,.4); }
.demo-score-btn.secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}
.demo-score-btn.secondary:hover { background: var(--gray-200); }

/* ---- Activity-specific styles ---- */

/* Question text */
.demo-q-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.demo-q-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(67,132,229,.1), rgba(97,64,204,.1));
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Multiple Choice */
.demo-mc { max-width: 600px; margin: 0 auto; }
.demo-mc-q { margin-bottom: 24px; }
.demo-mc-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-mc-opt {
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    color: var(--gray-700);
    cursor: pointer;
    transition: all .2s;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}
.demo-mc-opt:hover { border-color: var(--brand); background: rgba(67,132,229,.03); }
.demo-mc-opt.selected { border-color: var(--brand); background: rgba(67,132,229,.08); color: var(--brand); font-weight: 600; }
.demo-mc-opt.correct { border-color: var(--green); background: rgba(16,185,129,.08); color: #059669; }
.demo-mc-opt.wrong { border-color: #ef4444; background: rgba(239,68,68,.06); color: #dc2626; text-decoration: line-through; }
.demo-mc-opt:disabled { cursor: default; opacity: .85; }

/* Question header */
.demo-q-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.demo-q-num { width: 32px; height: 32px; border-radius: 50%; background: var(--gradient-brand); color: #fff; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.demo-q-text { font-size: 16px; font-weight: 600; color: var(--gray-800); line-height: 1.5; padding-top: 4px; }

/* MC option letters */
.demo-opt-letter { width: 28px; height: 28px; border-radius: 50%; background: var(--gray-100); color: var(--gray-600); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.demo-opt-text { flex: 1; }
.demo-mc-opt.selected .demo-opt-letter { background: var(--brand); color: #fff; }
.demo-mc-opt.correct .demo-opt-letter { background: var(--green); color: #fff; }
.demo-mc-opt.wrong .demo-opt-letter { background: #ef4444; color: #fff; }

/* True/False */
.demo-tf { max-width: 600px; margin: 0 auto; }
.demo-tf-item { margin-bottom: 20px; }
.demo-tf-btns { display: flex; gap: 10px; }
.demo-tf-btn {
    flex: 1;
    padding: 12px;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.demo-tf-btn:hover { border-color: var(--brand); }
.demo-tf-btn.selected { border-color: var(--brand); background: rgba(67,132,229,.08); color: var(--brand); }
.demo-tf-btn.correct { border-color: var(--green); background: rgba(16,185,129,.08); color: #059669; }
.demo-tf-btn.wrong { border-color: #ef4444; background: rgba(239,68,68,.06); color: #dc2626; }
.demo-tf-btn:disabled { cursor: default; }

/* Fill Blanks */
.demo-fb { max-width: 600px; margin: 0 auto; }
.demo-fb-text {
    font-size: 16px;
    line-height: 2.2;
    color: var(--gray-700);
}
.demo-blank-input {
    display: inline-block;
    width: 140px;
    padding: 4px 10px;
    border: 2px dashed var(--brand);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--gray-800);
    background: rgba(67,132,229,.04);
    text-align: center;
    transition: all .2s;
    vertical-align: middle;
}
.demo-blank-input:focus { outline: none; border-style: solid; background: #fff; box-shadow: 0 0 0 3px rgba(67,132,229,.1); }
.demo-blank-input.correct { border-color: var(--green); background: rgba(16,185,129,.08); border-style: solid; }
.demo-blank-input.wrong { border-color: #ef4444; background: rgba(239,68,68,.06); border-style: solid; }
.demo-blank-hint {
    display: inline-block;
    font-size: 12px;
    color: var(--green);
    font-weight: 600;
    margin-left: 4px;
}

/* Pairing */
.demo-pairing { max-width: 700px; margin: 0 auto; }
.demo-pair-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.demo-pair-header-icon { font-size: 24px; color: var(--brand); }
.demo-pair-header h3 { font-size: 16px; font-weight: 700; color: var(--gray-800); margin: 0; }
.demo-pair-header p { font-size: 13px; color: var(--gray-500); margin: 2px 0 0; }
.demo-pair-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.demo-pair-left, .demo-pair-right { display: flex; flex-direction: column; gap: 10px; }
.demo-pair-col-label { font-size: 13px; font-weight: 700; color: var(--gray-500); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.demo-pair-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.demo-pair-item {
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: all .25s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.demo-pair-item:hover { border-color: var(--brand); }
.demo-pair-item.selected { border-color: var(--brand); background: rgba(67,132,229,.08); box-shadow: 0 0 0 3px rgba(67,132,229,.1); }
.demo-pair-item.correct { border-color: var(--green); background: rgba(16,185,129,.08); }
.demo-pair-item.wrong { border-color: #ef4444; background: rgba(239,68,68,.06); }

/* Sequencing */
.demo-seq { max-width: 600px; margin: 0 auto; }
.demo-seq-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.demo-seq-header-icon { font-size: 24px; color: var(--brand); }
.demo-seq-header h3 { font-size: 16px; font-weight: 700; color: var(--gray-800); margin: 0; }
.demo-seq-header p { font-size: 13px; color: var(--gray-500); margin: 2px 0 0; }
.demo-seq-list { display: flex; flex-direction: column; gap: 8px; }
.demo-seq-slot { display: flex; align-items: center; gap: 8px; transition: all .25s; }
.demo-seq-slot.dragging { opacity: .5; }
.demo-seq-slot.correct .demo-seq-item { border-color: var(--green); background: rgba(16,185,129,.06); }
.demo-seq-slot.wrong .demo-seq-item { border-color: #ef4444; background: rgba(239,68,68,.04); }
.demo-seq-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    cursor: grab;
    transition: all .25s;
    user-select: none;
    flex: 1;
}
.demo-seq-item:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }

.demo-seq-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.demo-seq-text { flex: 1; font-size: 14px; font-weight: 500; color: var(--gray-700); }
.demo-seq-controls { display: flex; flex-direction: column; gap: 2px; }
.demo-seq-handle { color: var(--gray-400); font-size: 14px; margin-left: 4px; }
.demo-seq-arrow {
    width: 24px;
    height: 20px;
    border: none;
    background: var(--gray-100);
    border-radius: 4px;
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all .2s;
}
.demo-seq-arrow:hover { background: var(--brand); color: #fff; }

/* Flashcards */
.demo-flash { text-align: center; max-width: 500px; margin: 0 auto; }
.demo-flash-progress {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-400);
    margin-bottom: 20px;
}
.demo-flash-card {
    perspective: 800px;
    cursor: pointer;
    height: 220px;
    margin-bottom: 24px;
}
.demo-flash-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform .6s cubic-bezier(.22,1,.36,1);
    transform-style: preserve-3d;
}
.demo-flash-card.flipped .demo-flash-inner { transform: rotateY(180deg); }
.demo-flash-front, .demo-flash-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.demo-flash-front {
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    border: 2px solid var(--gray-200);
}
.demo-flash-front span {
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-800);
}
.demo-flash-hint {
    font-size: 13px;
    color: var(--gray-400);
    margin-top: 12px;
}
.demo-flash-back {
    background: var(--gradient-brand);
    color: #fff;
    transform: rotateY(180deg);
}
.demo-flash-back span {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
}
.demo-flash-label { font-size: 12px; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.demo-flash-back .demo-flash-label { color: rgba(255,255,255,.7); }
.demo-flash-nav { display: flex; justify-content: center; gap: 12px; }
.demo-flash-respond { display: flex; justify-content: center; gap: 12px; margin-bottom: 16px; }
.demo-flash-btn {
    padding: 10px 20px;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.demo-flash-btn:hover { border-color: var(--brand); color: var(--brand); }
.demo-flash-btn:disabled { opacity: .4; cursor: default; }
.demo-flash-btn.primary {
    background: var(--gradient-brand);
    color: #fff;
    border-color: transparent;
}
.demo-flash-btn.primary:hover { box-shadow: 0 4px 16px rgba(67,132,229,.3); }
.demo-flash-btn.knew { border-color: var(--green); color: var(--green); }
.demo-flash-btn.knew:hover { background: rgba(16,185,129,.08); }
.demo-flash-btn.didnt { border-color: #ef4444; color: #ef4444; }
.demo-flash-btn.didnt:hover { background: rgba(239,68,68,.06); }

/* Drag & Drop */
.demo-dd { max-width: 700px; margin: 0 auto; }
.demo-dd-pool { margin-bottom: 16px; }
.demo-dd-pool h4 { font-size: 14px; font-weight: 600; color: var(--gray-600); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.demo-dd-bank {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
    background: var(--gray-50);
    border: 2px dashed var(--gray-200);
    border-radius: 12px;
    min-height: 52px;
    justify-content: center;
}
.demo-dd-placeholder { font-size: 13px; color: var(--gray-400); font-style: italic; padding: 8px; text-align: center; }
.demo-dd-item {
    padding: 10px 16px;
    background: #fff;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: grab;
    transition: all .2s;
    user-select: none;
}
.demo-dd-item:hover { border-color: var(--brand); }
.demo-dd-item.dragging { opacity: .5; }
.demo-dd-item.dd-selected { border-color: var(--brand); background: rgba(67,132,229,.08); box-shadow: 0 0 0 3px rgba(67,132,229,.1); }
.demo-dd-item.correct { border-color: var(--green); background: rgba(16,185,129,.08); color: #059669; }
.demo-dd-item.wrong { border-color: #ef4444; background: rgba(239,68,68,.06); color: #dc2626; }

.demo-dd-zones { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.demo-dd-zone {
    border-radius: 12px;
    overflow: hidden;
}
.demo-dd-zone h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-700);
    padding: 12px 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 12px 12px 0 0;
    text-align: center;
}
.demo-dd-drop {
    min-height: 100px;
    padding: 12px;
    border: 2px dashed var(--gray-200);
    border-top: none;
    border-radius: 0 0 12px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
    transition: all .2s;
}
.demo-dd-drop.drag-over {
    border-color: var(--brand);
    background: rgba(67,132,229,.04);
}

/* Crossword */
.demo-cw { max-width: 700px; margin: 0 auto; }
.demo-cw-layout { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.demo-cw-grid {
    display: grid;
    gap: 2px;
}
.demo-cw-cell {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--gray-200);
    border-radius: 4px;
    text-align: center;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    color: var(--gray-800);
    text-transform: uppercase;
    transition: all .2s;
    position: relative;
}
.demo-cw-cell.empty { border: none; background: transparent; }
.demo-cw-num { position: absolute; top: 1px; left: 2px; font-size: 8px; font-weight: 700; color: var(--brand); line-height: 1; z-index: 1; }
.demo-cw-input {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    text-align: center;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    color: var(--gray-800);
    text-transform: uppercase;
    outline: none;
}
.demo-cw-input:focus { outline: none; }
.demo-cw-cell:focus-within { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(67,132,229,.15); }
.demo-cw-input.correct { color: #059669; }
.demo-cw-input.wrong { color: #dc2626; }

.demo-cw-clues h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 12px;
}
.demo-cw-group { margin-bottom: 16px; }
.demo-cw-group strong {
    font-size: 13px;
    color: var(--brand);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}
.demo-cw-clue {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.6;
    padding-left: 8px;
    border-left: 2px solid var(--gray-100);
    margin-bottom: 6px;
}

/* Timeline */
.demo-timeline { max-width: 600px; margin: 0 auto; }
.demo-tl-header { margin-bottom: 20px; }
.demo-tl-header h3 { font-size: 18px; font-weight: 700; color: var(--gray-800); display: flex; align-items: center; gap: 8px; margin: 0; }
.demo-tl-header p { font-size: 14px; color: var(--gray-500); margin: 4px 0 0; }
.demo-tl-container { position: relative; padding-left: 40px; }
.demo-tl-container::before { content: ''; position: absolute; left: 19px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--brand), #8b5cf6); border-radius: 1px; }
.demo-tl-slot { position: relative; margin-bottom: 16px; display: flex; align-items: flex-start; }
.demo-tl-date-col { position: absolute; left: -40px; top: 12px; }
.demo-tl-node { width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--brand); }
.demo-tl-event-card { flex: 1; background: #fff; border: 1.5px solid var(--gray-200); border-radius: 12px; padding: 16px; transition: all .2s; }
.demo-tl-event-card.correct { border-color: var(--green); background: rgba(16,185,129,.06); }
.demo-tl-event-card.wrong { border-color: #ef4444; background: rgba(239,68,68,.04); }
.demo-tl-date-badge { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, rgba(67,132,229,.1), rgba(139,92,246,.08)); color: var(--brand); font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 10px; }
.demo-tl-select { width: 100%; padding: 10px 12px; border: 1.5px solid var(--gray-200); border-radius: 8px; font-family: inherit; font-size: 14px; color: var(--gray-700); background: #fff; cursor: pointer; transition: border-color .2s; }
.demo-tl-select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px rgba(67,132,229,.1); }

/* Mark Words */
.demo-mw { max-width: 700px; margin: 0 auto; }
.demo-mw-inst { font-size: 15px; font-weight: 600; color: var(--gray-700); margin-bottom: 16px; }
.demo-mw-text { font-size: 16px; line-height: 2.2; color: var(--gray-700); }
.demo-mw-word {
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all .2s;
    border-bottom: 2px solid transparent;
}
.demo-mw-word:hover { background: rgba(67,132,229,.08); }
.demo-mw-word.selected { background: rgba(67,132,229,.15); border-bottom-color: var(--brand); color: var(--brand); font-weight: 600; }
.demo-mw-word.correct { background: rgba(16,185,129,.15); border-bottom-color: var(--green); color: var(--green); }
.demo-mw-word.missed { background: rgba(239,68,68,.1); border-bottom-color: #ef4444; }
.demo-mw-word.wrong { background: rgba(239,68,68,.15); border-bottom: 2px solid #ef4444; color: #ef4444; text-decoration: line-through; }
.demo-mw-hint { margin-top: 12px; font-size: 13px; color: var(--gray-500); display: flex; align-items: center; gap: 6px; }

/* Reading Comprehension */
.demo-reading { max-width: 700px; margin: 0 auto; }
.demo-reading-header { margin-bottom: 16px; }
.demo-reading-header h3 { font-size: 18px; font-weight: 700; color: var(--gray-800); display: flex; align-items: center; gap: 8px; }
.demo-reading-passage {
    background: rgba(255,255,255,.7);
    border: 1.5px solid var(--gray-100);
    border-radius: 12px;
    padding: 20px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 24px;
}
.demo-reading-qs { margin-top: 8px; }
.demo-reading-qs-title { font-size: 16px; font-weight: 700; color: var(--gray-800); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }

/* Open Questions */
.demo-openq { max-width: 700px; margin: 0 auto; }
.demo-openq-item { margin-bottom: 20px; }
.demo-openq-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(67,132,229,.08); color: var(--brand); font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; }
.demo-openq-label { font-size: 13px; font-weight: 600; color: var(--gray-600); margin-bottom: 4px; display: block; }
.demo-openq-input-wrap { margin-top: 8px; }
.demo-openq-note { font-size: 12px; color: var(--gray-400); margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.demo-openq-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: border-color .2s;
    margin-top: 8px;
}
.demo-openq-textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px rgba(67,132,229,.1); }
.demo-openq-textarea.empty { border-color: #ef4444; }

/* ---- Demo Responsive ---- */
@media (max-width: 768px) {
    .demo-grid-cards { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .demo-resource-grid { grid-template-columns: 1fr 1fr; }
    .demo-act-card { padding: 14px 8px; }
    .demo-act-icon { width: 36px; height: 36px; font-size: 16px; }
    .demo-act-card span { font-size: 12px; }

    .demo-play-area { padding: 20px 16px; }
    .demo-mc-opts { grid-template-columns: 1fr; }
    .demo-pair-cols { grid-template-columns: 1fr; gap: 10px; }
    .demo-dd-zones { grid-template-columns: 1fr; }
    .demo-cw-layout { grid-template-columns: 1fr; }
    .demo-cw-cell { width: 30px; height: 30px; font-size: 12px; }
    .demo-cw-input { font-size: 12px; }

    .demo-score-actions { flex-direction: column; align-items: center; }
    .demo-score-btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .demo-cw-cell { width: 26px; height: 26px; font-size: 11px; }
    .demo-cw-input { font-size: 11px; }
    .demo-flash-card { height: 180px; }
    .demo-flash-front span { font-size: 18px; }
    .demo-flash-back span { font-size: 14px; }
}
