/* main/static/main/css/caveman.css */

:root {
    --primary: #1E3A8A; /* Dark Blue */
    --primary-light: #3B82F6; /* Bright Blue */
    --secondary: #06B6D4; /* Cyan */
    --accent: #10B981; /* Green */
    --text-primary: #1F2937; /* Dark Gray */
    --text-secondary: #6B7280; /* Medium Gray */
    --text-light: #9CA3AF; /* Light Gray */
    --background: #FFFFFF; /* White */
    --surface: #F8FAFC; /* Off-white */
    --border: #E5E7EB; /* Light border color */
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.25);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section with Background Image */
.hero {
    /*
     * THE IMPORTANT CHANGE IS HERE:
     * We use the --hero-bg-image variable defined in the HTML head.
    */
    background:
        linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(59, 130, 246, 0.8) 100%),
        var(--hero-bg-image) center center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text {
    color: white;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.7;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.stats-text {
    font-size: 0.875rem;
    opacity: 0.8;
}

.stats-avatars {
    display: flex;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid rgba(255, 255, 255, 0.5);
    margin-left: -0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}
.stats-avatars .avatar:first-child {
    margin-left: 0;
}

/* Hero Mockup */
.hero-mockup {
    position: relative;
    perspective: 1200px;
}

.mockup-container {
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.4s ease-out;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
}

.mockup-container:hover {
    transform: rotateY(-5deg) rotateX(2deg) scale(1.02);
}

.mockup-screen {
    background: #1F2937; /* Dark background for the video frame */
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.mockup-image {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.95;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* General Section Styling */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 4rem;
}

/* Features Section */
.features {
    background: var(--background);
}

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

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

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

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

/* Workflow / Educational Section */
.educational {
    background: var(--surface);
}

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

.level-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
.level-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
}

.level-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

/* Testimonials Section */
.testimonials {
    background: var(--background);
}

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

.testimonial-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    position: relative;
}

.testimonial-card::before {
    content: '“';
    font-size: 5rem;
    color: var(--primary-light);
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
    line-height: 1;
    font-family: serif;
    opacity: 0.2;
}

.testimonial-text {
    font-style: italic;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary);
}

/* FAQ Section */
.faq {
    background: var(--surface);
}
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-item summary {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
    position: relative;
    transition: background-color 0.2s ease;
}

.faq-item summary:hover {
    background-color: var(--surface);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-light);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.faq-content p {
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: var(--surface);
    text-align: center;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    .hero-text {
        order: 2;
    }
    .hero-mockup {
        order: 1;
    }
    .hero-cta {
        align-items: center;
        justify-content: center;
    }
    .hero p {
        max-width: 100%;
    }
    .mockup-container, .mockup-container:hover {
        transform: none;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 1rem; }
    .hero { min-height: auto; padding: 6rem 0; }
    section { padding: 4rem 0; }
    .features-grid, .testimonials-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    opacity: 0; /* Start hidden */
    animation: fadeInUp 0.6s ease-out forwards;
}
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }