:root {
    /* EXACT colors from your React Native app */
    --primary: #9F7AEA;       
    --primary-dark: #6B46C1;   
    --secondary: #2D3748;     
    --background: #1A1B2F;    
    --card-bg: rgba(255, 255, 255, 0.07);
    --surface: rgba(255, 255, 255, 0.1);
    --text: #FFFFFF;          
    --text-secondary: #A0AEC0; 
    --success: #4ADE80;       
    --warning: #FACC15;       
    --error: #F56565;         
    --border: rgba(255,255,255,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Star Background - Matching your app */
.star-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20px 30px, var(--text), transparent),
        radial-gradient(2px 2px at 40px 70px, var(--warning), transparent),
        radial-gradient(1px 1px at 90px 40px, var(--text), transparent),
        radial-gradient(2px 2px at 130px 80px, var(--warning), transparent),
        radial-gradient(1px 1px at 160px 30px, var(--text), transparent),
        radial-gradient(2px 2px at 200px 60px, var(--warning), transparent);
    background-size: 250px 250px;
    opacity: 0.3;
    z-index: -1;
}

/* Container - Matching your app spacing */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header - Matching your app header */
.header {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--text);
    text-align: center;
    margin-bottom: 24px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.header p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-align: center;
}

.subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    display: block;
}

/* Cards - EXACTLY like your React Native cards */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid var(--primary);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(159, 122, 234, 0.3);
}

.card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Features Grid - Like your app layout */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

/* Buttons - Matching your React Native buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 12px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text);
    box-shadow: 0 4px 15px rgba(159, 122, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(159, 122, 234, 0.6);
}

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

/* Screenshots Section */
.screenshots-section {
    margin: 60px 0;
    text-align: center;
}

.screenshots-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

/* Phone Mockups with DARK background */
.phone-mockup {
    text-align: center;
}

.phone-frame {
    background: var(--background);
    border: 2px solid var(--primary);
    border-radius: 24px;
    padding: 12px;
    margin: 0 auto;
    width: 280px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.phone-screen {
    background: var(--background);
    border-radius: 16px;
    height: 500px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
}

.mockup-label {
    margin-top: 16px;
    font-weight: 600;
    color: var(--primary);
    font-size: 16px;
}

/* App Screen Previews - Matching your actual app screens */
.app-screen {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--background);
}

.screen-header {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 18px;
}

/* Notes Screen Preview */
.notes-screen {
    background: var(--background);
}

.note-item {
    background: var(--card-bg);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    border-left: 4px solid var(--primary);
}

.note-title {
    font-weight: 600;
    color: var(--text);
    font-size: 16px;
    margin-bottom: 4px;
}

.note-category {
    display: inline-block;
    background: rgba(159, 122, 234, 0.2);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 8px;
}

.note-preview {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Flashcards Screen Preview */
.flashcards-screen {
    background: var(--background);
    justify-content: center;
    align-items: center;
}

.flashcard-preview {
    background: var(--card-bg);
    border: 1px solid var(--primary);
    border-radius: 16px;
    padding: 32px 20px;
    text-align: center;
    width: 100%;
    max-width: 250px;
}

.flashcard-question {
    color: var(--text);
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 16px;
}

.flashcard-hint {
    color: var(--primary);
    font-size: 14px;
    font-style: italic;
}

/* AI Generation Screen Preview */
.ai-screen {
    background: var(--background);
    justify-content: center;
    align-items: center;
    text-align: center;
}

.ai-generating {
    color: var(--primary);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.ai-progress {
    width: 200px;
    height: 6px;
    background: var(--surface);
    border-radius: 3px;
    overflow: hidden;
    margin: 20px 0;
}

.ai-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 3px;
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 30%; }
    50% { width: 70%; }
    100% { width: 30%; }
}

/* What's New Section */
.whats-new {
    margin: 60px 0;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--primary);
}

.whats-new h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 32px;
    text-align: center;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.feature-item i {
    color: var(--primary);
    font-size: 24px;
    margin-top: 4px;
}

.feature-item strong {
    display: block;
    color: var(--text);
    font-size: 16px;
    margin-bottom: 4px;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

/* Download Section */
.download-section {
    text-align: center;
    margin: 60px 0;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--primary);
}

.download-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary);
}

.download-section p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 60px;
    padding: 32px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
}

/* Screenshot Container */
.screenshot-container {
    text-align: center;
}

/* App Screenshots Styling */
.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

/* Phone frame adjustments for screenshots */
.phone-frame .phone-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Ensure fallback screens are properly sized */
.phone-screen .app-screen {
    width: 100%;
    height: 100%;
    padding: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .header h1 {
        font-size: 36px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .phone-frame {
        width: 220px;
    }
    
    .phone-screen {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .phone-frame {
        width: 200px;
    }
    
    .phone-screen {
        height: 350px;
    }
    
    .btn-large {
        padding: 16px 32px;
        font-size: 18px;
    }
}
