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

:root {
    /* Colors - Purple Theme */
    --primary: #6A49F2;
    --primary-light: #8B7EE5;
    --primary-lighter: #A99EEB;
    --primary-dark: #5437C7;
    --primary-darker: #3E2799;

    /* Background Colors */
    --bg-primary: #F5F3FF;
    --bg-secondary: #FAF9FE;
    --bg-white: #FFFFFF;
    --bg-gray: #F5F5F5;

    /* Text Colors */
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;

    /* Gradients */
    --gradient: linear-gradient(135deg, #6A49F2 0%, #8B7EE5 100%);
    --gradient-hover: linear-gradient(135deg, #5437C7 0%, #6A49F2 100%);

    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 80px 20px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo-icon {
    font-size: 28px;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
}

.mockup-screenshot {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 28px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.btn-primary {
    background: var(--gradient);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(106, 73, 242, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    padding: 10px 24px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

/* Hero Section */
.hero {
    padding: 150px 20px 80px;
    background: linear-gradient(135deg, #F5F3FF 0%, #FAF9FE 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

/* Hero APK Download Section */
.hero-apk-download {
    margin-bottom: 60px;
}

.btn-apk-download {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-apk-download:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.apk-icon {
    font-size: 32px;
}

.apk-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.apk-label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.apk-version {
    font-size: 18px;
    font-weight: 700;
}

.beta-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #EF4444;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    letter-spacing: 0.5px;
}

.apk-note {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Phone Mockup */
.phone-mockup {
    width: 280px;
    height: auto;
    background: #1F2937;
    border-radius: 36px;
    padding: 10px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    margin: 0 auto;
}

.phone-screen {
    width: 100%;
    height: auto;
    background: white;
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-content {
    padding: 40px 16px 20px;
}

/* Enhanced Lesson Card - Fiverr/Upwork Style */
.mockup-lesson-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(106, 73, 242, 0.12);
    border: 1px solid rgba(106, 73, 242, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mockup-lesson-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(106, 73, 242, 0.18);
}

.lesson-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #6A49F2 0%, #8B7EE5 100%);
    color: #FFFFFF;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.badge-icon {
    font-size: 14px;
}

.lesson-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.lesson-icon-wrapper {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(106, 73, 242, 0.1) 0%, rgba(139, 126, 229, 0.15) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lesson-icon {
    font-size: 32px;
}

.lesson-info {
    flex: 1;
}

.lesson-title {
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 4px;
}

.lesson-type {
    font-size: 13px;
    color: #6B7280;
    font-weight: 500;
}

.lesson-description {
    font-size: 14px;
    color: #4B5563;
    line-height: 1.6;
    margin-bottom: 16px;
}

.lesson-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding: 12px;
    background: #F9FAFB;
    border-radius: 12px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #374151;
    font-weight: 600;
}

.stat-icon {
    font-size: 16px;
}

.lesson-progress {
    margin-bottom: 16px;
}

.progress-bar {
    height: 8px;
    background: #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6A49F2 0%, #8B7EE5 100%);
    border-radius: 8px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: #6B7280;
    font-weight: 600;
    text-align: right;
}

.lesson-button {
    width: 100%;
    background: linear-gradient(135deg, #6A49F2 0%, #8B7EE5 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lesson-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(106, 73, 242, 0.3);
}

.lesson-button:active {
    transform: translateY(0);
}

.button-arrow {
    font-size: 18px;
    font-weight: 700;
}

/* Sections */
section {
    padding: var(--section-padding);
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 20px;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

/* Features Section */
.features {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--bg-gray);
    padding: 40px;
    border-radius: 16px;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    background: var(--bg-primary);
}

.steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    align-items: flex-start;
}

.step-number {
    min-width: 80px;
    height: 80px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 800;
}

.step-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Patterns Section */
.patterns {
    background: white;
}

.pattern-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.pattern-category {
    text-align: center;
    padding: 40px;
    background: var(--bg-gray);
    border-radius: 16px;
}

.category-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.category-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.category-count {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 16px;
}

.category-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Download Section */
.download {
    background: var(--gradient);
    color: white;
}

.download .section-title,
.download .section-subtitle {
    color: white;
}

.download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    color: var(--text-primary);
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.download-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.download-icon {
    font-size: 40px;
}

.download-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.download-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.download-store {
    font-size: 20px;
    font-weight: 700;
}

.download-note {
    text-align: center;
    opacity: 0.9;
    font-style: italic;
}

/* Footer */
.footer {
    background: #1F2937;
    color: white;
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-tagline {
    color: #9CA3AF;
    margin-top: 12px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 700;
}

.footer-column a {
    display: block;
    color: #9CA3AF;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #374151;
    color: #9CA3AF;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-title {
        font-size: 42px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pattern-categories {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 36px;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeIn 0.6s ease-out backwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }

/* Pattern Learning Mockup Styles */
.mockup-content.pattern-learning {
    padding: 20px 16px;
    background: #F5F5F5;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.mockup-header-title {
    font-size: 22px;
    font-weight: 800;
    color: #1A1A1A;
}

.mockup-header-subtitle {
    font-size: 13px;
    color: #6B7280;
    margin-top: 2px;
}

.mockup-progress-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #E8E5FF;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    justify-content: center;
}

.mockup-progress-circle .progress-icon {
    font-size: 16px;
}

.mockup-progress-circle .progress-text {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
}

/* Focus Card */
.mockup-focus-card {
    background: white;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(106, 73, 242, 0.08);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.focus-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.focus-badge .focus-icon {
    font-size: 12px;
}

.focus-badge .focus-text {
    font-size: 11px;
    font-weight: 700;
    color: #EF4444;
    letter-spacing: 0.5px;
}

/* Chart in Mockup */
.mockup-chart {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    height: 100px;
    padding: 16px 12px;
    background: linear-gradient(180deg, rgba(106, 73, 242, 0.02) 0%, rgba(106, 73, 242, 0.06) 100%);
    border-radius: 12px;
    margin-bottom: 12px;
}

.chart-bar {
    width: 18px;
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
}

.chart-bar.green {
    background: linear-gradient(180deg, #22C55E 0%, #16A34A 100%);
}

.chart-bar.red {
    background: linear-gradient(180deg, #EF4444 0%, #DC2626 100%);
}

/* Level Badge */
.level-badge {
    display: inline-block;
    background: #1F2937;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

/* Pattern Info */
.pattern-info {
    margin-bottom: 10px;
}

.pattern-name {
    font-size: 18px;
    font-weight: 800;
    color: #1A1A1A;
    margin-bottom: 2px;
}

.pattern-category {
    font-size: 12px;
    color: #6B7280;
}

/* XP Badge */
.xp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #FEF3C7;
    color: #D97706;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    align-self: flex-start;
}

.xp-badge .xp-icon {
    font-size: 14px;
}

/* Start Button */
.start-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gradient);
    color: white;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    margin-top: auto;
}

.start-button .start-icon {
    font-size: 14px;
}

/* Explore More */
.explore-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
}

.explore-more .explore-icon {
    font-size: 14px;
}

.explore-more .explore-arrow {
    font-size: 10px;
}

/* Download Section Beta Badge */
.download-btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.download-btn-active {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}

.download-btn-active:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.download-btn-active .download-label,
.download-btn-active .download-store {
    color: white;
}

.coming-soon-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #9CA3AF;
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.beta-badge-dl {
    background: #EF4444;
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    margin-left: 8px;
}
