:root {
    --primary-blue: #2563eb;
    --primary-blue-hover: #1d4ed8;
    --primary-blue-light: #dbeafe;
    --background: #ffffff;
    --background-secondary: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Force no horizontal scroll */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

[data-theme="dark"] {
    --background: #0f172a;
    --background-secondary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border: #334155;
    --primary-blue-light: #1e293b;
    --gradient: linear-gradient(135deg, #334155 0%, #1e293b 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Navigation - compact */
.store-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

[data-theme="dark"] .store-nav {
    background: rgba(15, 23, 42, 0.9);
}

.nav-container {
    max-width: 1000px; /* Reduced from 1200 */
    margin: 0 auto;
    padding: 0.75rem 1rem; /* Reduced padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem; /* Reduced */
    color: var(--primary-blue);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.nav-cta {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.5rem 1rem; /* Reduced */
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--primary-blue-hover);
    transform: translateY(-1px);
}

/* Hero - more compact */
.hero-section {
    padding: 5rem 0 3rem; /* Reduced from 8rem 0 4rem */
    background: linear-gradient(180deg, var(--background-secondary) 0%, var(--background) 100%);
}

.hero-container {
    max-width: 1000px; /* Reduced from 1200 */
    margin: 0 auto;
    padding: 0 1rem; /* Reduced padding */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem; /* Reduced from 4rem */
    align-items: center;
}

.hero-content .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-blue-light);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 2.5rem; /* Reduced from 3.5 */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem; /* Reduced */
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.1rem; /* Reduced from 1.25 */
    color: var(--text-secondary);
    margin-bottom: 1.5rem; /* Reduced */
}

.hero-cta {
    display: flex;
    gap: 0.75rem; /* Reduced */
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem; /* Reduced from 1rem 2rem */
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--background-secondary);
    transform: translateY(-2px);
}

/* Dashboard preview - smaller */
.dashboard-preview {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: rotateY(-10deg) rotateX(3deg) scale(0.9); /* Smaller scale */
    transition: transform 0.3s ease;
}

.dashboard-preview:hover {
    transform: rotateY(-10deg) rotateX(2deg) scale(1.02);
}

.preview-header {
    background: var(--background-secondary);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dots {
    display: flex;
    gap: 0.25rem;
}

.dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5f57;
}

.dots span:nth-child(2) {
    background: #ffbd2e;
}

.dots span:nth-child(3) {
    background: #28ca42;
}

.url {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.preview-content {
    display: grid;
    grid-template-columns: 160px 1fr; /* Reduced from 200px */
    height: 240px; /* Reduced from 300px */
}

.preview-sidebar {
    background: var(--background-secondary);
    border-right: 1px solid var(--border);
}

.preview-main {
    padding: 1rem;
}

.preview-card {
    background: var(--background-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    height: 60px;
    margin-bottom: 0.75rem;
}

/* Features - compact */
.features-section {
    padding: 3rem 0; /* Reduced from 4rem */
    background: var(--background);
}

.container {
    max-width: 1000px; /* Reduced from 1200 */
    margin: 0 auto;
    padding: 0 1rem; /* Reduced */
}

.section-header {
    text-align: center;
    margin-bottom: 2rem; /* Reduced from 3rem */
}

.section-header h2 {
    font-size: 2rem; /* Reduced from 2.5 */
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Reduced from 300px */
    gap: 1.5rem; /* Reduced from 2rem */
}

.feature-card {
    background: var(--background-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem; /* Reduced from 2rem */
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px; /* Reduced from 80px */
    height: 60px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem; /* Reduced from 2rem */
    margin: 0 auto 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Pricing - compact */
.pricing-section {
    padding: 3rem 0; /* Reduced from 4rem */
    background: var(--background-secondary);
}

.pricing-toggle {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.toggle-btn {
    padding: 0.75rem 2rem;
    border: 1px solid var(--border);
    background: var(--background);
    color: var(--text-secondary);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Reduced from 300px */
    gap: 1.5rem; /* Reduced from 2rem */
}

.hidden {
    display: none;
}

.pricing-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem; /* Reduced from 2rem */
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 1px var(--primary-blue);
}

.pricing-card.popular {
    border-color: var(--success);
    box-shadow: 0 0 0 1px var(--success);
}

.badge-popular {
    position: absolute;
    top: -10px;
    right: 2rem;
    background: var(--success);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-header p {
    color: var(--text-secondary);
}

.price {
    margin: 2rem 0;
}

.amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.period {
    color: var(--text-secondary);
    font-size: 1rem;
}

.features {
    list-style: none;
    margin-bottom: 2rem;
}

.features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.features i.fa-check {
    color: var(--success);
}

.features i.fa-times {
    color: var(--danger);
}

/* FAQ - compact */
.faq-section {
    padding: 3rem 0; /* Reduced from 4rem */
    background: var(--background);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Reduced from 400px */
    gap: 1.5rem; /* Reduced from 2rem */
}

.faq-item {
    background: var(--background-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem; /* Reduced from 2rem */
}

.faq-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.faq-item p {
    color: var(--text-secondary);
}

/* Footer CTA - compact */
.footer-cta {
    padding: 3rem 0; /* Reduced from 4rem */
    background: var(--primary-blue);
    color: white;
    text-align: center;
}

.footer-cta h2 {
    font-size: 2rem; /* Reduced from 2.5 */
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-primary.large {
    padding: 1rem 2rem; /* Reduced from 1.25rem 2.5rem */
    font-size: 1.125rem;
}

/* Footer */
.store-footer {
    background: var(--background-secondary);
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

/* GitHub Section */
.github-section {
    padding: 4rem 0;
    background: var(--background-secondary);
}

.github-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.github-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    position: relative;
}

.github-icon {
    flex-shrink: 0;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #333, #666);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.github-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.github-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.github-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.github-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.github-actions {
    display: flex;
    gap: 1rem;
}

.github-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.github-btn.primary {
    background: var(--text-primary);
    color: var(--background);
}

.github-btn.secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.github-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.github-features {
    display: grid;
    gap: 1rem;
}

.github-feature {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.github-feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.github-feature i {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.github-feature h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.github-feature p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.75rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .features-grid,
    .pricing-grid,
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .nav-container {
        padding: 0.5rem 0.75rem;
    }
    
    .github-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .github-card {
        flex-direction: column;
        text-align: center;
    }
    
    .github-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .github-actions {
        flex-direction: column;
    }
    
    .github-btn {
        justify-content: center;
    }
}

/* Ensure mobile doesn't overflow */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .brand {
        font-size: 1.1rem;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.8rem;
    }
}

/* Update theme toggle for store */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.theme-toggle:hover {
    background: var(--background-secondary);
    color: var(--text-primary);
}

[data-theme="dark"] .theme-toggle {
    border-color: var(--border);
}

/* Update navigation for theme toggle */
.nav-links .theme-toggle {
    margin-left: auto;
}