/* Design tokens */
:root {
    --primary: #4F46E5;
    --primary-light: #818CF8;
    --primary-dark: #3730A3;
    --secondary: #0EA5E9;
    --accent: #10B981;
    --background: #F8FAFC;
    --surface: #FFFFFF;
    --text-primary: #1E293B;
    --text-secondary: #475569;
    --text-tertiary: #64748B;
    --border: #E2E8F0;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-accent: linear-gradient(135deg, var(--accent), var(--secondary));
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
}

/* Import display font for hero (logo-like) */
/* @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;900&display=swap'); */

/* Base Styles */
body {
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 6rem 0 5rem 0;
    background: url('../8617761.jpg') no-repeat center center;
    background-size: cover;
    overflow: hidden;
    min-height: 100vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(14, 165, 233, 0.1));
    z-index: 0;
}

.hero-grid {
    display: block;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
    padding: 1rem 0;
}

.eyebrow {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    display: inline-block;
    background: rgba(255,255,255,0.03);
    padding: 0.45rem 1.75rem;
    border-radius: 999px;
    margin-top: 10%;
}

.hero-content h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: 4rem;
    line-height: 1.05;
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #ffffff 0%, #cfe4ff 40%, #b5d1ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 6px 18px rgba(12,18,45,0.45);
    display: inline-block;
    padding-bottom: 0.25rem;
}

/* CTA prominence tweak */
/* Hero Specific Button Sizing */
.hero-actions .button {
    padding: 1.1rem 2.2rem;
    font-size: 1.1rem;
    border-radius: 14px;
}

.hero-actions .button.primary:hover {
    transform: translateY(-4px) scale(1.02);
}

.hero-actions .button.secondary:hover,
.hero-actions .button.ghost:hover {
    transform: translateY(-4px) scale(1.02);
}

/* Soft backdrop for hero to ensure legibility */
.hero-section { background-attachment: scroll; }
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 0;
    pointer-events: none;
}

/* Slight letter spacing for hero title and smaller size on narrow screens */
.hero-content h1 { letter-spacing: -0.01em; }
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero-content h1,
    .hero-content .eyebrow,
    .hero-content .subtitle,
    .hero-actions .button,
    .hero-viz .viz-card {
        animation: none !important;
        transition: none !important;
    }
}

.hero-content h1 {
    /* moving gradient effect */
    background-image: linear-gradient(90deg, #ffffff 0%, #cfe4ff 40%, #b5d1ff 100%);
    background-size: 200% 100%;
}

.hero-section::before { background-size: 300% 300%; }

.hero-content h1::after {
    content: '';
    display: block;
    height: 4px;
    width: 72px;
    margin-top: 0.75rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(79,70,229,0.95), rgba(14,165,233,0.95));
}

.subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.88);
    margin: auto;
    line-height: 1.6;
    max-width: 60ch;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    justify-content: center;
}

.hero-prep-section{max-width:1200px;margin:4rem auto;padding:0 1.5rem;text-align:center}
.hero-prep-title{font-size:clamp(2.25rem,5vw,3.25rem);font-weight:900;background:linear-gradient(135deg,var(--primary-dark) 0%,var(--primary) 50%,var(--secondary) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;margin-bottom:1.25rem;letter-spacing:-0.03em;line-height:1.1;filter:drop-shadow(0 2px 4px rgba(0,0,0,0.05))}
.hero-prep-description{font-size:1.125rem;color:var(--text-secondary);max-width:800px;margin:0 auto 3.5rem;line-height:1.6}
.hero-prep-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2.5rem;margin-bottom:4rem}
.hero-prep-card{background:var(--surface);padding:2.5rem 2rem;border-radius:var(--radius-lg);border:1px solid var(--primary-light);box-shadow:0 20px 40px rgba(0,0,0,0.08);text-decoration:none;text-align:left;transition:all 0.4s cubic-bezier(0.165,0.84,0.44,1);display:flex;flex-direction:column;position:relative;overflow:hidden;z-index:1;transform:translateY(-10px)}
.hero-prep-card::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(135deg,rgba(79,70,229,0.02),rgba(14,165,233,0.02));z-index:-1;opacity:1;transition:opacity 0.3s ease}
.hero-prep-card:hover{transform:translateY(-18px) scale(1.02);box-shadow:0 30px 60px rgba(79,70,229,0.15);border-color:var(--primary);background:#fff}
.hero-prep-card:hover::before{opacity:1;background:linear-gradient(135deg,rgba(79,70,229,0.05),rgba(14,165,233,0.05))}
.hero-prep-icon{width:3.5rem;height:3.5rem;border-radius:14px;background:var(--gradient-primary);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:1.5rem;margin-bottom:1.5rem;box-shadow:0 8px 20px rgba(79,70,229,0.25);transition:transform 0.4s ease;transform:scale(1.1) rotate(5deg)}
.hero-prep-card:hover .hero-prep-icon{transform:scale(1.2) rotate(10deg);box-shadow:0 12px 25px rgba(79,70,229,0.35)}
.hero-prep-card h3{font-size:1.35rem;font-weight:800;color:var(--primary);margin-bottom:0.85rem;line-height:1.3;transition:color 0.3s ease}
.hero-prep-card:hover h3{color:var(--primary-dark)}
.hero-prep-card p{font-size:1rem;color:var(--text-secondary);line-height:1.6;margin-bottom:1.5rem;flex-grow:1}
.prep-card-cta{font-size:0.95rem;font-weight:700;color:var(--primary);display:flex;align-items:center;gap:0.75rem;margin-top:auto;transition:gap 0.3s ease}
.prep-card-cta i{transition:transform 0.3s ease;transform:translateX(3px)}
.hero-prep-card:hover .prep-card-cta{gap:1rem;color:var(--primary-dark)}
.hero-prep-card:hover .prep-card-cta i{transform:translateX(8px)}
.hero-keywords{display:flex;flex-wrap:wrap;justify-content:center;gap:1rem;list-style:none;padding:0;margin-top:2rem}
.hero-keywords a{text-decoration:none;font-size:0.9rem;font-weight:700;color:var(--text-secondary);background:var(--surface);border:1.5px solid var(--border);padding:0.75rem 1.5rem;border-radius:100px;transition:all 0.3s cubic-bezier(0.4,0,0.2,1);display:inline-flex;align-items:center;gap:0.7rem;box-shadow:0 4px 6px rgba(0,0,0,0.02)}
.hero-keywords a i{font-size:0.85rem;color:var(--primary-light);transition:transform 0.3s ease}
.hero-keywords a:hover{background:var(--surface);border-color:var(--primary);color:var(--primary);transform:translateY(-4px) scale(1.04);box-shadow:0 10px 20px rgba(79,70,229,0.12)}
.hero-keywords a:hover i{transform:scale(1.2) rotate(-10deg);color:var(--primary)}
@media(max-width:1024px){.hero-prep-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:768px){.hero-prep-grid{grid-template-columns:1fr}.hero-prep-section{margin:2rem auto}.hero-prep-card{padding:1.5rem}}

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.button.primary {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

.button.accent {
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
}

.button.accent:hover {
    background: linear-gradient(135deg, #34d399 0%, #60a5fa 100%);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
    color: white;
}

/* Shimmer ripple effect for accent button */
.button.accent::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(20deg);
    transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.button.accent:hover::after {
    left: 150%;
}

.hero-login-btn {
    /* removed border to match primary button's cleaner look */
}

@media (max-width: 640px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .button {
        width: 100%;
        justify-content: center;
    }
}

/* Shimmer ripple effect */
.button.primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: rotate(20deg);
    transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.button.primary:hover::after {
    left: 150%;
}

.button.secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.button.ghost {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.button.ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.button.large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.trust-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-tertiary);
    flex-wrap: wrap;
}

.trust-badge {
    font-size: 0.875rem;
    font-weight: 500;
}

.separator {
    color: var(--border);
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: var(--background);
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20%, 1fr)); /* Adjusted minmax for better card sizing */
    gap: 2rem;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr; /* Stack items on mobile */
    }
}

.feature-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
}

/* How Section */
.how-section {
    padding: 6rem 0;
    background: var(--surface);
}

.how-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.how-card {
    position: relative;
    padding: 2rem;
    background: var(--background);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.step {
    position: absolute;
    top: -1rem;
    left: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.how-card h3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Quiz Section */
.quiz-section {
    padding: 6rem 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.quiz-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.quiz-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.quiz-section .button.primary {
    background: white;
    color: var(--primary);
}

.quiz-section .button.secondary {
    background: transparent;
    border-color: white;
    color: white;
}

/* Get Started Section */
.get-started-section {
    padding: 6rem 0;
    text-align: center;
    background: var(--surface);
}

.get-started-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.get-started-section p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 768px;
    margin: 0 auto 2rem;
}

/* Hero Illustration */
.hero-illustration {
    position: relative;
    height: 400px;
}

.mock-card {
    position: absolute;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.card-a {
    width: 280px;
    height: 320px;
    top: 0;
    right: 0;
    background: var(--gradient-primary);
    z-index: 3;
    transform: rotate(5deg);
}

.card-b {
    width: 280px;
    height: 320px;
    top: 20px;
    right: 20px;
    background: var(--surface);
    border: 2px solid var(--border);
    z-index: 2;
    transform: rotate(-5deg);
}

.card-c {
    width: 280px;
    height: 320px;
    top: 40px;
    right: 40px;
    background: var(--background);
    border: 2px solid var(--border);
    z-index: 1;
    transform: rotate(-15deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .trust-row {
        justify-content: center;
    }

    .hero-illustration {
        height: 300px;
        margin-top: 2rem;
    }

    .mock-card {
        right: 50%;
        transform: translateX(50%) !important;
    }

    .card-b {
        top: 10px;
    }

    .card-c {
        top: 20px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.125rem;
    }

    .features-section h2,
    .how-section h2,
    .quiz-section h2,
    .get-started-section h2 {
        font-size: 2rem;
    }

    .stat-value {
        font-size: 2.5rem;
    }

    .button {
        width: 100%;
        justify-content: center;
    }
}

/* Animation removed */


/* ═══════════════════════════════════════════════════════════ */
/*  QUIZ SHOWCASE SECTION — Premium Design                    */
/* ═══════════════════════════════════════════════════════════ */
.quiz-showcase-section {
    padding: 6rem 0;
    background: linear-gradient(170deg, #0f0c29 0%, #1a1145 35%, #302b63 65%, #24243e 100%);
    position: relative;
    overflow: hidden;
    contain: layout style paint;
    transform: translateZ(0);
}

/* Subtle background pattern */
.quiz-showcase-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 10%, rgba(168, 85, 247, 0.08) 0%, transparent 40%);
    z-index: 0;
    pointer-events: none;
}

/* Grid lines removed for performance */

.quiz-showcase-section .container {
    position: relative;
    z-index: 1;
}

/* Section Header */
.quiz-showcase-header {
    text-align: center;
    margin-bottom: 4rem;
}

.quiz-showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;

}

.quiz-showcase-badge i {
    color: #fbbf24;
    font-size: 0.9rem;
}

.quiz-showcase-header h2 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.gradient-text {
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 30%, #c084fc 60%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.quiz-showcase-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.15rem;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Main Grid */
.quiz-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 3.5rem;
}

/* Feature Cards */
.quiz-showcase-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.qf-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    will-change: transform;
}

.qf-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(129, 140, 248, 0.3);
    transform: translateX(8px) translateZ(0);
}

.qf-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
    transition: transform 0.3s ease;
}

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

.qf-content h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.qf-content p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

/* ── Quiz Mockup Visual ── */
.quiz-showcase-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.quiz-mockup {
    width: 100%;
    max-width: 420px;
    border-radius: 24px;
    overflow: hidden;
    background: #1e1b4b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    transform: translateZ(0);
}

.quiz-mockup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #fbbf24; }
.mockup-dot.green { background: #22c55e; }

.mockup-title {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
    font-weight: 600;
    margin-left: auto;
    letter-spacing: 0.04em;
}

.quiz-mockup-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mockup-question-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    padding: 0.3rem 0.9rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    width: fit-content;
    letter-spacing: 0.04em;
}

.mockup-question {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
}

.mockup-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mockup-option {
    padding: 0.7rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mockup-option.correct {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.4);
    color: #86efac;
    font-weight: 600;
}

.mockup-option.correct i {
    float: right;
    margin-top: 2px;
    color: #22c55e;
}

.mockup-option.incorrect {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    font-weight: 600;
}

.mockup-option.incorrect i {
    float: right;
    margin-top: 2px;
    color: #ef4444;
}

/* Timer Bar */
.mockup-timer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.timer-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    overflow: hidden;
}

.timer-fill {
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    border-radius: 100px;
    animation: timerPulse 3s ease-in-out infinite;
    will-change: opacity;
}

@keyframes timerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.mockup-timer span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Participant Avatars */
.mockup-participants {
    display: flex;
    align-items: center;
    gap: 0;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.participant-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    border: 2px solid rgba(30, 27, 75, 0.9);
    margin-left: -8px;
}

.participant-avatar:first-child { margin-left: 0; }

.participant-avatar.more {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    font-weight: 800;
    font-size: 0.65rem;
}

.participant-label {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.78rem;
    font-weight: 500;
    margin-left: 0.75rem;
}

/* Floating Badges */
.quiz-float-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: 14px;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 2;
    will-change: transform;
}

.badge-top {
    top: -10px;
    right: -10px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
    animation: floatBadge 3s ease-in-out infinite;
}

.badge-bottom {
    bottom: 60px;
    left: -35px;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fde68a;
    animation: floatBadge 3s ease-in-out infinite 1.5s;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* CTA Row */
.quiz-showcase-cta {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.quiz-host-btn {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%) !important;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4) !important;
    border: none !important;
    padding: 1.1rem 2.5rem !important;
    border-radius: 16px !important;
    font-size: 1.1rem !important;
}

.quiz-host-btn:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 18px 40px rgba(99, 102, 241, 0.5) !important;
}

.quiz-join-btn {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    padding: 1.1rem 2.5rem !important;
    border-radius: 16px !important;
    font-size: 1.1rem !important;
}

.quiz-join-btn:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3) !important;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .quiz-showcase-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .quiz-showcase-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .quiz-showcase-section {
        padding: 4rem 0;
    }
    .quiz-showcase-header h2 {
        font-size: 2rem;
    }
    .quiz-showcase-header p {
        font-size: 1rem;
    }
    .qf-card {
        padding: 1.15rem;
    }
    .qf-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 1rem;
    }
    .quiz-mockup {
        max-width: 360px;
    }
    .quiz-float-badge.badge-top {
        top: -5px;
        right: 5px;
    }
    .quiz-float-badge.badge-bottom {
        bottom: 10px;
        left: 5px;
    }
    .quiz-showcase-cta {
        flex-direction: column;
        align-items: center;
    }
    .quiz-host-btn, .quiz-join-btn {
        width: 100% !important;
        max-width: 340px;
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .quiz-mockup {
        max-width: 100%;
    }
    .mockup-question {
        font-size: 1rem;
    }
    .mockup-option {
        font-size: 0.82rem;
        padding: 0.6rem 0.85rem;
    }
}


.teachers-section .split-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.teachers-section .card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 2rem; /* Adjust padding as needed */
}

.teachers-section .card h3 {
    margin-bottom: 0.5rem;
}

.teachers-section .card p {
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Allow paragraph to take available space */
}

.teachers-section .card .btn {
    width: auto; /* Allow buttons to size naturally */
    align-self: stretch; /* Make buttons fill the width of the card */
}

@media (max-width: 768px) {
    .teachers-section .card .btn {
        width: 100%; /* Full width buttons on small screens */
    }
    .btn {
        margin: auto;
    }
}

/* Enhanced Hover effects for buttons in the teachers-section */
.teachers-section .card .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-dark)); /* A more dynamic gradient */
    transform: translateY(-2px);color: white;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4); /* Enhanced shadow */
}

.teachers-section .card .btn-outline:hover {
   
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.3); /* Shadow for outline */
}

.teachers-section .card .btn-secondary:hover {
    background: var(--primary-color); /* Use primary color for secondary hover */
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4); /* Enhanced shadow */
}

.teachers-section .card .btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: all var(--transition-normal); /* Ensure smooth transition */
}

.teachers-section .card .btn-ghost:hover {
    /* background: var(--primary-light); Light primary background on hover */
    color: var(--white);
     background: linear-gradient(135deg, var(--primary), var(--primary-light));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.home-reviews-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.home-reviews-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 3.5rem;
}

.home-reviews-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.home-reviews-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.6;
}

.home-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.home-review-card {
    background: var(--surface);
    border: 1px solid rgba(79, 70, 229, 0.1);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: all 0.3s ease;
}

.home-review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.08);
    border-color: rgba(79, 70, 229, 0.2);
}

.home-review-stars {
    color: #f59e0b;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.home-review-feedback {
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0;
    font-style: italic;
    font-size: 1.05rem;
}

.home-review-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.035);
}

.home-reviewer-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.home-reviewer-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4f46e5, #0ea5e9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

.home-review-footer strong {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1rem;
}

.home-review-footer span {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    font-weight: 500;
}

.home-reviews-actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.home-review-empty {
    text-align: center;
    padding: 4rem;
    background: var(--surface);
    border-radius: 24px;
    border: 1px dashed var(--border);
    color: var(--text-tertiary);
    font-style: italic;
}

/* Styles for keywords and highlights in CTA section */

/* Styles for keywords and highlights in CTA section */
.cta-section .highlight {
    color: var(--secondary); /* Use a distinct color for highlights */
    font-weight: 700;
}

.cta-section .keyword {
    font-weight: 600;
    color: var(--primary); /* Use primary color for keywords */
}

/* Further enhance CTA card layout */
.cta-card {
    padding: 3rem; /* Increase padding for a more spacious look */
    border-radius: var(--radius-xl); /* Larger border-radius */
    background: var(--surface); /* Ensure a clean background */
    box-shadow: var(--shadow-lg); /* More prominent shadow */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem; /* Space between elements */
}

.cta-card h2 {
    font-size: 2.8rem; /* Larger heading */
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.cta-card p {
    max-width: 800px; /* Limit paragraph width for readability */
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 0; /* Reset default paragraph margin */
}

.cta-actions {
    margin-top: 1.5rem; /* Add space above buttons */
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-actions .button.ghost {
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.cta-actions .button.ghost:hover {
    background: rgba(79, 70, 229, 0.05);
    border-color: var(--primary-light);
    color: var(--primary);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.1);
}

@media (max-width: 768px) {
    .cta-card {
        padding: 2rem;
        gap: 1rem;
    }

    .cta-card h2 {
        font-size: 2rem;
    }

    .cta-card p {
        font-size: 1rem;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions .button {
        width: 100%;
    }
}

/* Hero Stats Section Styling */
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    justify-content: center; /* Center align on smaller screens */
}

.hero-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 1.5rem;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    min-width: 150px; /* Ensure a minimum width for each stat */
}

.hero-stats .stat-item strong {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.hero-stats .stat-item span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-stats .stat-item {
        width: 100%;
        max-width: 250px; /* Limit width on very small screens */
        margin: 0 auto;
    }
}

/* Initial hidden state for scroll animations */
.animate-hidden {
    opacity: 1;
}

/* Animation classes (example: fade-in-up) */
.fade-in-up {
    opacity: 1;
}

.slide-in-left {
    opacity: 1;
}

.slide-in-right {
    opacity: 1;
}

/* Add to Home Screen prompt styles */
.a2hs-prompt {
    position: fixed;
    left: 0; right: 0; bottom: 20px;
    display: flex;
    justify-content: center;
    z-index: 2000;
    pointer-events: none;
}

.a2hs-prompt .a2hs-card {
    pointer-events: auto;
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    max-width: 640px;
    width: calc(100% - 2rem);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.a2hs-icon { font-size: 1.5rem; }
.a2hs-text { flex: 1; }
.a2hs-actions { display: flex; gap: 0.5rem; }
.a2hs-actions .a2hs-primary,
.a2hs-actions .a2hs-secondary {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0.9rem;
    font-weight: 600;
    background: white;
}
.a2hs-actions .a2hs-primary { background: var(--primary); color: white; border-color: transparent; }

.a2hs-open { opacity: 1; transform: translateY(0); }
.a2hs-prompt { opacity: 0; transform: translateY(20px); transition: opacity 240ms ease, transform 240ms ease; }

@media (prefers-reduced-motion: reduce) {
    .a2hs-prompt, .a2hs-card { transition: none !important; animation: none !important; }
}

/* PC Screens: Center text vertically within the fixed height hero section */
@media (min-width: 992px) {
    .hero-section {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-top: 4rem; /* Adjusted to balance visually with the negative margin-top set on the parent */
    }
    .hero-grid {
        width: 100%;
    }
}
