body { -webkit-font-smoothing: antialiased; }

/* Material UI Liquid Glass Effect */
.glass-panel {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}
.dark .glass-panel {
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.glass-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dark .glass-card {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.1);
}
.dark .glass-card:hover {
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.3);
}

.demo-label {
    display: block;
    color: #253574;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.dark .demo-label { color: #fff; }
.demo-label span { color: #ee5425; }
.demo-label small { color: #64748b; font-weight: 500; }
.demo-input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.75);
    padding: 0.75rem 1rem;
    color: #1e293b;
    font-weight: 500;
    outline: none;
}
.dark .demo-input { background: rgba(15, 23, 42, 0.55); color: #f8fafc; border-color: rgba(255, 255, 255, 0.15); }
.demo-input:focus { border-color: #ee5425; box-shadow: 0 0 0 3px rgba(238, 84, 37, 0.12); }
.demo-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    cursor: pointer;
}
.dark .demo-check { background: rgba(15, 23, 42, 0.45); }
.demo-check:has(input:checked) { border-color: #ee5425; background: rgba(238, 84, 37, 0.1); color: #ee5425; }
.demo-check input { width: 1.1rem; height: 1.1rem; accent-color: #ee5425; }
.demo-button { border-radius: 0.75rem; padding: 0.75rem 1.25rem; font-weight: 800; transition: transform 0.2s ease, background 0.2s ease; }
.demo-button:hover { transform: translateY(-2px); }
.demo-button.primary { background: #253574; color: #fff; box-shadow: 0 8px 18px rgba(37, 53, 116, 0.2); }
.demo-button.primary:hover { background: #1d2a60; }
.demo-button.secondary { border: 1px solid #253574; color: #253574; }
.dark .demo-button.secondary { border-color: #fff; color: #fff; }
.demo-form-step { display: none; border: 0; padding: 0; margin: 0; }
.demo-form-step.active { display: block; }
.demo-step-indicator { display: flex; align-items: center; gap: 0.45rem; color: #94a3b8; font-size: 0.8rem; font-weight: 700; }
.demo-step-indicator b { display: flex; width: 2rem; height: 2rem; align-items: center; justify-content: center; border-radius: 999px; background: #e2e8f0; color: #64748b; }
.demo-step-indicator.active { color: #253574; }
.demo-step-indicator.active b { background: #ee5425; color: #fff; }
.demo-error { min-height: 1.25rem; color: #dc2626; font-size: 0.875rem; font-weight: 600; margin-top: 0.5rem; }

/* Slightly smaller display type keeps headings prominent without dominating the page. */
.home-page h1.text-4xl {
    font-size: 2.25rem !important;
}
.home-page h2.text-3xl,
.home-page h3.text-3xl {
    font-size: 1.75rem !important;
}
.home-page #modes h3.text-2xl,
.home-page #courses h4.text-2xl {
    font-size: 1.25rem !important;
}
.home-page #courses > div > .grid > .glass-card h3.text-3xl,
.home-page #courses .glass-panel h3.text-3xl {
    font-size: 1.5rem !important;
}
.home-page #contact h2.text-3xl,
.home-page #contact h3.text-2xl {
    font-size: 1.5rem !important;
}
.demo-page h1.text-4xl {
    font-size: 2.25rem !important;
}
.demo-page legend.text-2xl,
.demo-page #demoSuccess h2.text-2xl {
    font-size: 1.5rem !important;
}

@media (max-width: 640px) {
    .demo-step-indicator span { display: none; }
    .demo-step-indicator b { width: 1.75rem; height: 1.75rem; }
}

/* Compact home page spacing keeps the full experience easier to scan. */
.home-page > section {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}
.home-page > section:first-of-type {
    padding-top: 7rem !important;
    padding-bottom: 2rem !important;
}
.home-page section > div > .text-center {
    margin-bottom: 1.5rem !important;
}
.home-page section > div > .text-center p {
    margin-top: 0.5rem !important;
}
.home-page .hero-placeholder {
    min-height: 0;
}
.home-page .glass-card.p-8 {
    padding: 1.25rem !important;
}
.home-page .glass-card.p-6 {
    padding: 1.25rem !important;
}
.home-page #modes .glass-card {
    padding: 1.5rem !important;
}
.home-page #modes .glass-card > div {
    margin-bottom: 0.75rem !important;
}
.home-page #modes h3 {
    margin-bottom: 0.5rem !important;
}
.home-page #courses > div > .grid {
    gap: 1.25rem !important;
}
.home-page #courses .glass-panel {
    padding: 1.5rem !important;
}
.home-page #courses .mt-12 {
    margin-top: 2rem !important;
}
.home-page #courses .glass-panel .mb-8 {
    margin-bottom: 1.25rem !important;
}
.home-page #courses .glass-panel .p-6 {
    padding: 1rem !important;
}
.home-page > section:has(.fa-mobile-screen-button),
.home-page > section:has(.fa-map-marked-alt) {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}
.home-page section:has(.fa-mobile-screen-button) .glass-panel,
.home-page section:has(.fa-map-marked-alt) .glass-panel {
    padding: 1.5rem !important;
}
.home-page > section:has(.fa-quote-left) {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}
.home-page #contact .p-8,
.home-page #contact .p-12 {
    padding: 1.5rem !important;
}
.home-page #contact .space-y-8 {
    row-gap: 1.5rem !important;
}

@media (max-width: 640px) {
    .home-page > section:first-of-type {
        padding-top: 6.25rem !important;
    }
    .home-page > section {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    .home-page h1.text-4xl {
        font-size: 2rem !important;
    }
    .home-page h2.text-3xl,
    .home-page h3.text-3xl {
        font-size: 1.5rem !important;
        line-height: 1.15 !important;
    }
    .home-page #modes .glass-card {
        padding: 1.25rem !important;
    }
    .home-page #modes .w-16 {
        width: 3.25rem !important;
        height: 3.25rem !important;
    }
    .home-page #modes .text-3xl {
        font-size: 1.5rem !important;
    }
    .home-page section:has(.fa-mobile-screen-button) .glass-panel,
    .home-page section:has(.fa-map-marked-alt) .glass-panel {
        padding: 1.25rem !important;
    }
    .demo-page h1.text-4xl {
        font-size: 2rem !important;
    }
    .demo-page legend.text-2xl,
    .demo-page #demoSuccess h2.text-2xl {
        font-size: 1.35rem !important;
    }
}

@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.animate-bounce-slow {
    animation: bounce-slow 3s ease-in-out infinite;
}

.badge-glow {
    animation: glow-pulse 2s ease-in-out infinite;
}
@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 8px rgba(249, 115, 22, 0.6);
        background: linear-gradient(135deg, #f97316, #ea580c);
    }
    50% {
        box-shadow: 0 0 24px rgba(249, 115, 22, 0.9), 0 0 48px rgba(249, 115, 22, 0.3);
        background: linear-gradient(135deg, #ea580c, #dc2626);
    }
}
