/* =========================================
   GUEST LANDING PAGE (ENTERPRISE SAAS STYLE)
   ========================================= */

/* --- 1. HERO SECTION & STATS --- */
.landing-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 70vh;
    position: relative;
    padding: 60px 20px 20px 20px;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    color: white;
    letter-spacing: -1px;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #7dd3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 10px 30px rgba(56, 189, 248, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 800px;
    line-height: 1.6;
    margin-bottom: 50px;
    font-weight: 400;
}

.hero-btn-primary {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid var(--blue);
    color: #ffffff !important; /* Force white text */
    padding: 18px 45px;
    border-radius: 40px;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden; /* Strict containment for shimmer */
    display: inline-block;
    transform: translateZ(0); /* Hardware acceleration */
}

.hero-btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -150%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    animation: landingShimmer 5s infinite ease-in-out;
}

@keyframes landingShimmer { 0% { left: -150%; } 20% { left: 150%; } 100% { left: 150%; } }

.hero-btn-primary:hover {
    background: var(--blue);
    color: #0f172a !important; /* Dark text on hover in dark mode */
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.6);
}

/* The Animated Stats Strip */
.stats-strip-container {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    margin-bottom: 80px;
}

.stats-strip {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 20px;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-block {
    text-align: center;
    flex: 1;
    min-width: 220px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 5px;
    text-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
    font-family: 'Playfair Display', serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

/* --- 2. THE ASYMMETRIC 12-COLUMN GRID (Features) --- */
.feature-section {
    padding: 100px 5%;
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 60px;
    align-items: center;
}

.feature-text-col {
    grid-column: span 5;
    z-index: 2;
}

.feature-visual-col {
    grid-column: span 7;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

/* Reversing the layout for alternating sections */
.feature-section.reverse .feature-text-col { grid-column: 8 / span 5; grid-row: 1; }
.feature-section.reverse .feature-visual-col { grid-column: 1 / span 7; grid-row: 1; }

.f-tag {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--blue);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.f-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 25px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.f-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
}

/* --- 3. CLEAN GLASS UTILITIES --- */
/* This fixes the "muddy" look. Pure white, ultra-low opacity, high blur. */
.clean-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    position: relative;
}

.clean-glass::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 300px; height: 300px;
    background: var(--blue);
    filter: blur(120px);
    opacity: 0.15;
    z-index: -1;
    border-radius: 50%;
}

.floating-badge {
    position: absolute;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 15px 25px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: floatBadge 6s ease-in-out infinite;
}

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

/* --- 4. SPECIFIC MOCK STYLES --- */

/* CBT Simulator */
.cbt-top { background: rgba(0,0,0,0.3); padding: 15px 25px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); border-radius: 24px 24px 0 0; margin: -40px -40px 30px -40px; }
.cbt-timer { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); padding: 5px 12px; border-radius: 6px; font-family: monospace; font-size: 1.1rem; font-weight: 700; color: white; }
.cbt-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cbt-btn { aspect-ratio: 1; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; border: 1px solid; }

/* Grammar */
.grammar-mistake { 
    background: rgba(244, 63, 94, 0.05); 
    border: 1px solid rgba(244, 63, 94, 0.2); 
    border-radius: 12px; 
    padding: 50px 20px 20px 20px; /* Increased top padding from 25px to 50px */
    position: relative; 
    margin-top: 30px; 
}
.grammar-ribbon { position: absolute; top: 0; left: 0; width: 100%; text-align: center; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; background: linear-gradient(90deg, rgba(244, 63, 94, 0.03) 0%, rgba(244, 63, 94, 0.15) 50%, rgba(244, 63, 94, 0.03) 100%); color: var(--red); padding: 8px 0; border-bottom: 1px solid rgba(244, 63, 94, 0.3); }

/* Flashcards */
.flashcard-stack { position: relative; width: 100%; height: 250px; display: flex; justify-content: center; align-items: center; }
.f-card { position: absolute; width: 80%; background: rgba(15, 23, 42, 0.9); border: 1px solid rgba(255,255,255,0.15); border-radius: 20px; padding: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); text-align: center; }
.f-card-1 { transform: translateY(30px) scale(0.9) rotate(-3deg); opacity: 0.4; border-top: 4px solid var(--amber); z-index: 1; }
.f-card-2 { transform: translateY(15px) scale(0.95) rotate(2deg); opacity: 0.7; border-top: 4px solid var(--blue); z-index: 2; }
.f-card-main { position: relative; z-index: 3; border-top: 4px solid var(--green); backdrop-filter: blur(10px); }

/* Analytics */
.analytics-donut { width: 180px; height: 180px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 40px rgba(0,0,0,0.3); background: conic-gradient(#10b981 0deg 180deg, #38bdf8 180deg 280deg, #8b5cf6 280deg 340deg, #f43f5e 340deg 360deg); }
.analytics-donut-inner { width: 140px; height: 140px; border-radius: 50%; background: rgba(15, 23, 42, 0.95); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.leg-item { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: rgba(255,255,255,0.8); }

/* Mini UI Options (For Drills) */
.mock-opt { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 18px 25px; border-radius: 12px; margin-top: 12px; font-size: 1.05rem; display: flex; align-items: center; gap: 15px; color: rgba(255,255,255,0.9); }
.mock-opt.correct { background: rgba(16, 185, 129, 0.1); border-color: var(--green); color: var(--green); }

/* --- 5. PRICING TEASE --- */
.pricing-tease-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1200px; margin: 50px auto; }
.pricing-mini-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 30px; text-align: center; backdrop-filter: blur(10px); transition: transform 0.3s; }
.pricing-mini-card:hover { transform: translateY(-10px); border-color: var(--blue); box-shadow: 0 20px 40px rgba(56, 189, 248, 0.15); }

/* --- 6. SCROLL REVEAL ANIMATIONS --- */
.reveal-up { opacity: 0; transform: translateY(50px); transition: all 0.9s cubic-bezier(0.165, 0.84, 0.44, 1); }
.reveal-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* --- 7. LIGHT MODE OVERRIDES --- */
html.light-mode .hero-title { 
    background: none; 
    color: #0f172a; 
    text-shadow: none; 
}
html.light-mode .text-gradient {
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 8px 20px rgba(2, 132, 199, 0.25);
}

html.light-mode .hero-subtitle { color: #334155; }
html.light-mode .hero-btn-primary { background: #0284c7; color: #ffffff !important; border-color: #0369a1; box-shadow: 0 10px 30px rgba(2, 132, 199, 0.3); }
html.light-mode .hero-btn-primary:hover { background: #0369a1; color: #ffffff !important; }

html.light-mode .stats-strip-container { background: rgba(255, 255, 255, 0.7); border-color: rgba(0, 0, 0, 0.08); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
html.light-mode .stat-number { color: #0f172a; text-shadow: none; }
html.light-mode .stat-divider { background: rgba(0,0,0,0.1); }

html.light-mode .f-title { color: #0f172a; }
html.light-mode .f-desc { color: #475569; }

/* Clean Glass Light Mode */
html.light-mode .clean-glass { background: rgba(255, 255, 255, 0.8); border-color: rgba(0, 0, 0, 0.1); box-shadow: 0 30px 60px rgba(0,0,0,0.05); color: #0f172a; }
html.light-mode .floating-badge { background: rgba(255, 255, 255, 0.95); border-color: rgba(0, 0, 0, 0.1); color: #0f172a; box-shadow: 0 15px 35px rgba(0,0,0,0.1); }

/* Mocks Light Mode */
html.light-mode .cbt-top { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.1); }
html.light-mode .cbt-timer { background: white; color: #0f172a; border-color: rgba(0,0,0,0.1); }
html.light-mode .grammar-mistake { background: rgba(225, 29, 72, 0.05); border-color: rgba(225, 29, 72, 0.2); }
html.light-mode .grammar-ribbon { background: linear-gradient(90deg, rgba(225,29,72,0.03) 0%, rgba(225,29,72,0.15) 50%, rgba(225,29,72,0.03) 100%); color: #e11d48; }
html.light-mode .mock-mistake-wrong { color: #9f1239; text-decoration: line-through; }
html.light-mode .mock-mistake-right { color: #065f46; }
html.light-mode .f-card { background: rgba(255,255,255,0.95); border-color: rgba(0,0,0,0.1); color: #0f172a; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
html.light-mode .flashcard-stack .f-card-main p {
    color: #475569 !important; 
}
html.light-mode .analytics-donut-inner { background: white; }
html.light-mode .leg-item { color: #334155; }
html.light-mode .mock-opt { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.1); color: #334155; }

html.light-mode .pricing-mini-card { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.1); color: #0f172a; }

/* RESPONSIVE */
@media (max-width: 1100px) {
    .feature-section { grid-template-columns: 1fr; gap: 50px; text-align: center; }
    .feature-text-col, .feature-visual-col, .feature-section.reverse .feature-text-col, .feature-section.reverse .feature-visual-col { grid-column: span 1; }
    .f-tag { margin: 0 auto 20px auto; }
    .pricing-tease-grid { grid-template-columns: 1fr; max-width: 500px; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .stat-block { min-width: 40%; margin-bottom: 20px; }
    .stat-divider { display: none; }
    .cbt-grid { grid-template-columns: repeat(4, 1fr); }
    .floating-badge { display: none; /* Hide floating elements on mobile to prevent overflow */ }
}

/* FIX 1: Restore the colored top borders on Light Mode flashcards */
html.light-mode .f-card-1 { border-top-color: var(--amber); }
html.light-mode .f-card-2 { border-top-color: var(--blue); }
html.light-mode .f-card-main { border-top-color: var(--green); }

/* FIX 2: Restore the green border, text, and SVG tick for the correct drill option */
html.light-mode .mock-opt.correct {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    color: #065f46;
}

/* FIX 3: Override the inline white text inside the Analytics Donut so it's visible in Light Mode */
html.light-mode .analytics-donut-inner span:first-child {
    color: #0f172a !important; /* The 92% */
}
html.light-mode .analytics-donut-inner span:last-child {
    color: #64748b !important; /* The 'Retention' subtext */
}