/* ══════════════════════════════════════
   LANDING PAGE SPECIFIC STYLES
   ══════════════════════════════════════ */

.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Hero Section --- */
.landing-hero {
    text-align: center;
    padding: 160px 20px 100px;
    background: radial-gradient(circle at 50% 30%, rgba(59, 130, 246, 0.15), transparent 70%);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .landing-hero {
    background: radial-gradient(circle at 50% 30%, rgba(59, 130, 246, 0.08), transparent 60%);
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: 32px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .landing-badge {
    background: rgba(255, 255, 255, 0.6);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(59, 130, 246, 0.4);
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(59, 130, 246, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.landing-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #b0c4de 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .landing-title {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: initial;
    color: #0f172a;
    /* Solid darkest slate for maximum contrast */
    text-shadow: none;
}

/* Dynamic Text Texture (Changed to Blue per user request) */
.dynamic-green {
    background: linear-gradient(-45deg,
            #2563eb,
            /* Royal Blue */
            #60a5fa,
            /* Lighter Blue */
            #1d4ed8,
            /* Darker Blue */
            #93c5fd
            /* Very Light Blue */
        );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine-flow 4s ease infinite;
    display: inline-block;
    font-weight: 900;
    padding-bottom: 2px;
}

/* Light Mode: Ensure strong contrast with Blue */
[data-theme="light"] .dynamic-green {
    background: linear-gradient(-45deg,
            #1e40af,
            /* Dark Blue */
            #3b82f6,
            /* Primary Blue */
            #172554,
            /* Navy */
            #2563eb
            /* Royal Blue */
        );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes shine-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.landing-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

[data-theme="light"] .landing-subtitle {
    color: #334155;
    /* Darker slate for readability against light bg */
    font-weight: 500;
}

.landing-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.btn-primary-lg {
    padding: 18px 36px;
    font-size: 1.1rem;
    background: var(--accent-primary);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-primary-lg:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.5);
}

.btn-secondary-lg {
    padding: 18px 36px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

[data-theme="light"] .btn-secondary-lg {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--border-subtle);
    color: var(--text-main);
}

.btn-secondary-lg:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

[data-theme="light"] .btn-secondary-lg:hover {
    background: #f1f5f9;
}

/* --- Hero Visual (Macbook Mockup) --- */
.hero-visual-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    perspective: 2000px;
}

.hero-dashboard-mockup {
    background: var(--bg-surface);
    border-radius: 16px;
    border: 1px solid var(--border-highlight);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 50px 100px -20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: rotateX(5deg);
    transition: transform 0.5s ease;
    position: relative;
}

[data-theme="light"] .hero-dashboard-mockup {
    background: #ffffff;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.05),
        0 40px 80px -20px rgba(0, 0, 0, 0.15);
    border-color: #e2e8f0;
}

.hero-dashboard-mockup:hover {
    transform: rotateX(0deg) scale(1.02);
}

.mockup-bar {
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

[data-theme="light"] .mockup-bar {
    background: #f8fafc;
    border-bottom-color: #e2e8f0;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red {
    background: #ff5f56;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #27c93f;
}

.mockup-screen {
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    background: var(--bg-deep);
}

[data-theme="light"] .mockup-screen {
    background: #f1f5f9;
}

/* Mockup Content Styling */
.mockup-bg {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1e293b, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

[data-theme="light"] .mockup-bg {
    background: radial-gradient(circle at center, #f8fafc, #e2e8f0);
}

.mockup-icon {
    font-size: 5rem;
    color: var(--accent-primary);
    opacity: 0.8;
}

.mockup-text {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.float-card {
    position: absolute;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-main);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .float-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #334155;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.delay-0 {
    top: 20%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.delay-1 {
    top: 30%;
    right: 20%;
    animation: float 5s ease-in-out infinite 1s;
}

.delay-2 {
    bottom: 20%;
    right: 10%;
    animation: float 6s ease-in-out infinite 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* --- Feature Section --- */
.landing-section {
    padding: 140px 0;
    border-top: 1px solid var(--border-subtle);
}

.section-badge {
    color: var(--accent-secondary);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: block;
}

.section-head {
    text-align: center;
    margin-bottom: 100px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-head h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-main);
}

.section-head p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.6;
}

.feature-grid-alt {
    display: flex;
    flex-direction: column;
    gap: 160px;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse .feature-content {
    direction: ltr;
    /* Reset text direction */
}

.feature-content h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-main);
}

.feature-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.feature-check-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    color: var(--text-main);
}

.check-icon-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Feature Visuals */
.feature-visual-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    direction: ltr;
}

[data-theme="light"] .feature-visual-box {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.05);
}

/* Visual Gradients */
.gradient-1 {
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

.gradient-2 {
    background: linear-gradient(135deg, #2a1b0e, #1c1917);
}

.gradient-3 {
    background: linear-gradient(135deg, #1e1b4b, #0f172a);
}

[data-theme="light"] .gradient-1 {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}

[data-theme="light"] .gradient-2 {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

[data-theme="light"] .gradient-3 {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
}

.visual-content-mock {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Search Visual */
.mock-search-bar {
    width: 80%;
    height: 60px;
    background: var(--bg-surface);
    border: 1px solid var(--border-highlight);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

[data-theme="light"] .mock-search-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.mock-result-card {
    width: 80%;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 10px;
}

[data-theme="light"] .mock-result-card {
    background: rgba(59, 130, 246, 0.1);
    border-color: transparent;
}

/* --- Process Section --- */
.process-section {
    padding: 120px 0;
    background: linear-gradient(to bottom, transparent, rgba(59, 130, 246, 0.05), transparent);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.step-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 40px 30px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

[data-theme="light"] .step-card {
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.step-number {
    font-size: 6rem;
    font-weight: 900;
    color: var(--bg-tertiary);
    -webkit-text-stroke: 1px var(--border-subtle);
    position: absolute;
    top: -10px;
    right: 10px;
    opacity: 0.5;
    line-height: 1;
}

[data-theme="light"] .step-number {
    color: #f1f5f9;
    -webkit-text-stroke: 1px #cbd5e1;
}

/* --- CTA Section --- */
.landing-cta {
    padding: 120px 0 160px;
    text-align: center;
}

.cta-container {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.8), rgba(30, 30, 50, 0.9));
    border: 1px solid var(--border-highlight);
    border-radius: 32px;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .cta-container {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    /* Contrast dark box for CTA even in light mode */
    color: white;
}

.cta-container p {
    color: #94a3b8 !important;
    /* Force light gray text on the dark CTA box */
}

.cta-container h2 {
    color: white !important;
}

.cta-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15), transparent 70%);
    pointer-events: none;
}

/* --- Responsive --- */
@media (max-width: 900px) {

    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .feature-check-list {
        align-items: center;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════
   NEW FEATURE: Logo Marquee
   ══════════════════════════════════════ */
.logo-marquee-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-marquee-track {
    display: flex;
    gap: 80px;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
}

.logo-marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    font-size: 2.5rem;
    color: var(--text-muted);
    opacity: 0.4;
    transition: all 0.3s;
    cursor: pointer;
}

.marquee-item:hover {
    color: var(--accent-primary);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ══════════════════════════════════════
   NEW FEATURE: Floating AI Tutor (Enhanced Visuals)
   ══════════════════════════════════════ */
.ai-tutor-widget {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;
}

.ai-tutor-widget>* {
    pointer-events: auto;
}

/* Animations */
@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

@keyframes float-widget {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* 1. Toggle Button (Larger & More vibrant) */
.ai-tutor-btn {
    width: 72px;
    /* Increased size */
    height: 72px;
    border-radius: 50%;
    /* Vibrant Gradient */
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    /* Deep Glow Shadow */
    box-shadow:
        0 10px 25px rgba(37, 99, 235, 0.5),
        inset 0 2px 5px rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: float-widget 4s ease-in-out infinite;
}

/* Outer Pulse Ring */
.ai-tutor-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(59, 130, 246, 0.4);
    border-radius: 50%;
    z-index: -1;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.ai-tutor-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.7);
}

.ai-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ef4444;
    color: white;
    font-size: 0.8rem;
    font-weight: 800;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 2. Hint Tooltip */
.ai-tutor-hint {
    background: white;
    color: #1e293b;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 4px;
    position: relative;
    animation: float-widget 4s ease-in-out infinite reverse;
    transform-origin: bottom right;
    white-space: nowrap;
}

.ai-tutor-hint::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 28px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-bottom-right-radius: 3px;
}

[data-theme="dark"] .ai-tutor-hint {
    background: #1e293b;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .ai-tutor-hint::after {
    background: #1e293b;
}

/* Chat Window */
.ai-chat-window {
    width: 380px;
    height: 600px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transform: scale(0.8) translateY(40px) translateX(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 20px;
}

.ai-chat-window.active {
    transform: scale(1) translateY(0) translateX(0);
    opacity: 1;
    pointer-events: all;
}

[data-theme="light"] .ai-chat-window {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

/* Chat Header */
.ai-chat-header {
    padding: 16px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-violet));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.ai-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.ai-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.ai-status {
    font-size: 0.75rem;
    opacity: 0.8;
}

.ai-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.ai-close-btn:hover {
    color: white;
}

/* Chat Body */
.ai-chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(0, 0, 0, 0.02);
}

.chat-msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.chat-msg.ai {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    border-top-left-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .chat-msg.ai {
    background: white;
    border-color: #e2e8f0;
}

/* Input Area */
.ai-chat-input-area {
    padding: 16px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    gap: 10px;
    background: var(--bg-surface);
}

[data-theme="light"] .ai-chat-input-area {
    background: #f8fafc;
}

.ai-input {
    flex: 1;
    padding: 10px 16px;
    border-radius: 100px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-deep);
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s;
}

[data-theme="light"] .ai-input {
    background: white;
    border-color: #cbd5e1;
}

.ai-input:focus {
    border-color: var(--accent-primary);
}

.ai-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.ai-send-btn:hover {
    transform: scale(1.1);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* User Message Styling */
.chat-msg.user {
    align-self: flex-end;
    background: var(--accent-primary);
    color: white;
    border-top-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}