/* Enterprise Light Theme - Premium AI Coding Course Landing Page */
/* Design System: Clean, Minimalist, Authoritative (Stripe/Linear/OpenAI inspired) */

/* ===== BASE STYLES ===== */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #FFFFFF;
    color: #0F172A;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.02em;
}

/* ===== CTA BUTTON STYLES ===== */
.cta-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.25);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
}

.cta-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.25);
}

.cta-secondary {
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    color: #0F172A;
    transition: all 0.2s ease;
}

.cta-secondary:hover {
    border-color: #4F46E5;
    color: #4F46E5;
    background: rgba(79, 70, 229, 0.02);
}

/* ===== ENTERPRISE CARD STYLES ===== */
.enterprise-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05);
    transition: all 0.3s ease;
}

.enterprise-card:hover {
    border-color: #CBD5E1;
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.12);
    transform: translateY(-4px);
}

/* ===== BENTO GRID ===== */
.bento-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.bento-item {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.bento-item:hover {
    border-color: #4F46E5;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.1);
}

.bento-item-featured {
    background: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 100%);
    border: 2px solid #4F46E5;
}

/* ===== TECH LOGO STRIP ===== */
.tech-logo {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.tech-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ===== INSTRUCTOR CARD ===== */
.instructor-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 1.5rem;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.instructor-card:hover {
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.12);
}

.instructor-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #F5F7FA;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.1);
}

.instructor-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    border: 4px solid #F5F7FA;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.1);
}

.instructor-photo-placeholder-alt {
    background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
}

/* Glass Card Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.credential-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: #F5F7FA;
    border: 1px solid #E2E8F0;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
}

.credential-badge svg {
    width: 1rem;
    height: 1rem;
}

/* ===== VALUE STACKING PRICING ===== */
.pricing-table {
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    border-radius: 1.5rem;
    overflow: hidden;
}

.pricing-header {
    background: linear-gradient(145deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle gradient overlay for depth */
.pricing-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top center, rgba(79, 70, 229, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.pricing-original {
    text-decoration: line-through;
    color: #94A3B8;
    font-size: 1.25rem;
}

.pricing-current {
    font-size: 3.5rem;
    font-weight: 800;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
}

.pricing-badge {
    display: inline-block;
    background: #059669;
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.75rem;
}

.pricing-features {
    padding: 2rem;
}

.pricing-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #F1F5F9;
}

.pricing-feature-item:last-child {
    border-bottom: none;
}

.pricing-feature-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #059669;
    flex-shrink: 0;
}

/* ===== CHECKOUT FORM ===== */
.checkout-card {
    background: #FFFFFF;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    padding: 3rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #E2E8F0;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #FFFFFF;
}

.form-input:focus {
    outline: none;
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-input::placeholder {
    color: #94A3B8;
}

.security-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
    background: #F8FAFC;
    border-radius: 0.75rem;
    margin-top: 1.5rem;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748B;
    font-size: 0.875rem;
}

.security-badge svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #059669;
}

/* ===== COUNTDOWN TIMER ===== */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.countdown-item {
    text-align: center;
}

.countdown-box {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    min-width: 80px;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05);
}

.countdown-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0F172A;
    line-height: 1;
}

.countdown-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

/* Sleek countdown for hero section */
.countdown-box-sleek {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 0.75rem;
    padding: 0.75rem 1.25rem;
    text-align: center;
    min-width: 70px;
    transition: all 0.3s ease;
}

.countdown-box-sleek:hover {
    border-color: #CBD5E1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.countdown-box-sleek .countdown-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F172A;
    line-height: 1;
}

.countdown-box-sleek .countdown-label {
    font-size: 0.625rem;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* ===== NAVIGATION ===== */
#navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #E2E8F0;
}

#navbar.scrolled {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

nav a {
    position: relative;
    color: #475569;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #0F172A;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4F46E5;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: #CBD5E1;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
}

/* ===== FAQ ACCORDION ===== */
.faq-item {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: #CBD5E1;
}

.faq-header {
    padding: 1.5rem;
    font-weight: 600;
    color: #0F172A;
}

.faq-icon {
    transition: transform 0.3s ease;
    color: #4F46E5;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 1.5rem 1.5rem;
    color: #475569;
    line-height: 1.7;
}

/* ===== HERO SECTION CODE EDITOR ===== */
.code-editor-mockup {
    background: #1E293B;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.3);
}

.code-editor-header {
    background: #0F172A;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-editor-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-editor-dot.red { background: #EF4444; }
.code-editor-dot.yellow { background: #F59E0B; }
.code-editor-dot.green { background: #10B981; }

.code-editor-body {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #E2E8F0;
}

.code-line {
    display: flex;
    gap: 1rem;
}

.code-line-number {
    color: #475569;
    user-select: none;
}

.code-keyword { color: #818CF8; }
.code-string { color: #34D399; }
.code-comment { color: #64748B; }
.code-function { color: #60A5FA; }

/* ===== STATS SECTION ===== */
.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: #0F172A;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: #64748B;
    margin-top: 0.5rem;
}

/* ===== SCROLL ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Scroll-triggered fade-in animations */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays for grid items */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Enhanced card hover lift effect */
.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.15);
}

/* Pulse animation for live indicators */
@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.live-indicator {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.live-dot {
    position: relative;
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.live-dot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #22c55e;
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
}

/* Progress bar styles */
.progress-bar-container {
    background: #E2E8F0;
    border-radius: 9999px;
    overflow: hidden;
    height: 8px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f97316 0%, #ea580c 100%);
    border-radius: 9999px;
    transition: width 1s ease-out;
}

/* Trust badge styles */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid #E2E8F0;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    color: #475569;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.trust-badge-item svg {
    width: 1rem;
    height: 1rem;
    color: #22c55e;
}

.trust-badge-divider {
    width: 1px;
    height: 1rem;
    background: #E2E8F0;
}

/* Popular badge for pricing */
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* Money-back guarantee box */
.guarantee-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 0.75rem;
    margin-top: 1.5rem;
}

.guarantee-box svg {
    width: 2.5rem;
    height: 2.5rem;
    color: #22c55e;
    flex-shrink: 0;
}

.guarantee-box-content h4 {
    font-weight: 700;
    color: #166534;
    margin-bottom: 0.25rem;
}

.guarantee-box-content p {
    font-size: 0.875rem;
    color: #15803d;
}

/* Enhanced form input states */
.form-input-wrapper {
    position: relative;
}

.form-input-wrapper .form-input {
    padding-right: 2.5rem;
}

.form-input-wrapper .input-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.form-input-wrapper .input-icon.valid {
    color: #22c55e;
    opacity: 1;
}

.form-input-wrapper .input-icon.invalid {
    color: #ef4444;
    opacity: 1;
}

.form-input:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.form-input.valid {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-input.invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Social proof indicator styles */
.social-proof-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid #E2E8F0;
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #475569;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* Crossed-out price enhancement */
.price-original {
    position: relative;
    color: #94A3B8;
    font-size: 1.25rem;
}

.price-original::after {
    content: '';
    position: absolute;
    left: -5%;
    top: 50%;
    width: 110%;
    height: 2px;
    background: #ef4444;
    transform: rotate(-5deg);
}

/* ===== SUBTLE FLOATING ANIMATION ===== */
@keyframes subtleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-subtle-float {
    animation: subtleFloat 4s ease-in-out infinite;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F5F7FA;
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* ===== FOCUS STYLES ===== */
a:focus, button:focus {
    outline: 2px solid #4F46E5;
    outline-offset: 2px;
}

/* ===== SKIP NAVIGATION ===== */
.skip-nav-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #4F46E5;
    color: white;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.3s ease;
}

.skip-nav-link:focus {
    top: 0;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 640px) {
    h1 {
        line-height: 1.2;
    }

    .countdown-box {
        min-width: 65px;
        padding: 1rem;
    }

    .countdown-value {
        font-size: 1.75rem;
    }

    .checkout-card {
        padding: 1.5rem;
    }
}

/* ===== REDUCED MOTION PREFERENCES ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .animate-in {
        opacity: 1;
        transform: none;
    }

    .live-dot::before {
        animation: none;
    }

    .animate-subtle-float {
        animation: none;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    nav, #countdown, .cta-primary, .cta-secondary {
        display: none;
    }
}
