/* ============================================ */
/* DESIGN TOKENS - CUSTOMIZE YOUR THEME HERE  */
/* ============================================ */

        :root {
    /* === COLOR SCHEME === */
    --primary: #1e40af;      /* Main brand color (buttons, links, headers) */
    --secondary: #7c3aed;    /* Secondary brand color (accents, highlights) */
    --accent: #c2410c;       /* Call-to-action color (CTAs, important buttons) */
    --neutral: #374151;      /* Dark neutral (footer, secondary text) */
    --light: #f8fafc;        /* Light background color */
    
    /* Supporting colors - derived from above */
            --white: #ffffff;
    --text-primary: #111827;   /* Main text color */
    --text-secondary: #6b7280; /* Secondary text color */
    --border: #e5e7eb;         /* Border color */
    
    /* === BORDER RADIUS === */
    --radius-sm: 4px;        /* Small elements (tags, small buttons) */
    --radius: 6px;           /* Standard radius (cards, buttons, inputs) */
    --radius-lg: 12px;       /* Large elements (modals, large cards) */
    --radius-full: 9999px;   /* Fully rounded (pills, avatars) */
    
    /* === TYPOGRAPHY === */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 800;
}

/* ============================================ */
/* BASE STYLES                                 */
/* ============================================ */
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
    font-family: var(--font-family);
            line-height: 1.6;
    color: var(--text-primary);
    background: var(--light);
}

/* ============================================ */
/* HEADER                                      */
/* ============================================ */

.header {
            background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
            max-width: 1200px;
            margin: 0 auto;
    padding: 1rem 2rem;
            display: flex;
    justify-content: space-between;
            align-items: center;
        }
        
.logo {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary);
    margin-top: -7px;
}

.nav-links {
            display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    transition: color 0.2s;
}

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

.auth-buttons {
            display: flex;
    gap: 1rem;
            align-items: center;
}

.auth-buttons span {
    margin-top: 0;
}

/* ============================================ */
/* BUTTONS                                     */
/* ============================================ */

.btn {
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: all 0.2s;
            border: none;
            cursor: pointer;
    display: inline-block;
    font-size: 0.875rem;
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

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

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    border-radius: var(--radius);
}

.btn:hover {
    opacity: 0.9;
}

/* ============================================ */
/* HERO SECTION                                */
/* ============================================ */

.hero {
    background: var(--primary);
            color: var(--white);
    padding: 4rem 2rem;
            text-align: center;
        }
        
.hero-content {
            max-width: 800px;
            margin: 0 auto;
        }
        
.hero h1 {
    font-size: 3.5rem;
    font-weight: var(--font-weight-black);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.create-prompt {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1rem;
            display: flex;
    max-width: 600px;
    margin: 0 auto 2rem;
    border: 1px solid var(--border);
}

.create-prompt input {
            flex: 1;
            border: none;
    outline: none;
    padding: 0.5rem 1rem;
            font-size: 1rem;
    color: var(--text-primary);
}

.create-prompt input::placeholder {
    color: var(--text-secondary);
}

.create-btn {
    background: var(--accent);
    color: var(--white);
            border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-weight: var(--font-weight-semibold);
            cursor: pointer;
    transition: all 0.2s;
}

.create-btn:hover {
    opacity: 0.9;
}

.example-prompts {
            display: flex;
    gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
}

.example-prompt {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
            cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.example-prompt:hover {
    background: rgba(255,255,255,0.3);
}

/* ============================================ */
/* MAIN CONTENT                                */
/* ============================================ */

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

.section {
    margin-bottom: 4rem;
}

.section-header {
            display: flex;
            align-items: center;
    margin-bottom: 2rem;
}

.section-title {
            font-size: 2rem;
    font-weight: var(--font-weight-bold);
    margin-right: 1rem;
}

.view-all {
    margin-left: auto;
    color: var(--primary);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
}

/* ============================================ */
/* DESIGN GRID                                 */
/* ============================================ */

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

.design-card {
            background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
            cursor: pointer;
    transition: all 0.2s;
}

.design-card:hover {
    border-color: var(--primary);
}

.design-image {
    height: 300px;
    background: var(--light);
            position: relative;
    overflow: hidden;
}

.design-image::after {
    content: 'Design Preview';
            position: absolute;
    top: 50%;
            left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-secondary);
    font-size: 1rem;
}

.design-info {
    padding: 0.75rem;
}

.design-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
.design-creator {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
}

.design-price {
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

/* ============================================ */
/* STORE GRID                                  */
/* ============================================ */

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

.store-card {
            background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
            cursor: pointer;
    transition: all 0.2s;
}

.store-card:hover {
    border-color: var(--primary);
}

.store-banner {
    height: 120px;
    background: var(--secondary);
            position: relative;
}

.store-avatar {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: var(--radius);
            position: absolute;
    bottom: -30px;
    left: 1.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.store-info {
    padding: 2.5rem 1.5rem 1.5rem;
}

.store-name {
    font-weight: var(--font-weight-bold);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.store-handle {
    color: var(--primary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-medium);
}

.store-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.store-stats {
            display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ============================================ */
/* CTA SECTION                                 */
/* ============================================ */

.cta-section {
    background: var(--accent);
            color: var(--white);
    padding: 4rem 2rem;
            text-align: center;
    border-radius: var(--radius);
    margin: 4rem 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-black);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ============================================ */
/* FOOTER                                      */
/* ============================================ */

.footer {
    background: var(--neutral);
            color: var(--white);
    padding: 3rem 2rem 2rem;
            text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================ */
/* RESPONSIVE DESIGN                           */
/* ============================================ */

@media (max-width: 768px) {
    .nav {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-links {
            display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .create-prompt {
            flex-direction: column;
        gap: 1rem;
    }

    .example-prompts {
        flex-direction: column;
            align-items: center;
        }
        
    .design-grid,
    .store-grid {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .create-prompt input {
        font-size: 0.875rem;
    }

    .create-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* ============================================ */
/* ANIMATIONS                                  */
/* ============================================ */

@keyframes fadeInUp {
    from {
            opacity: 0;
        transform: translateY(30px);
    }
    to {
            opacity: 1;
        transform: translateY(0);
    }
}

.design-card,
.store-card {
    animation: fadeInUp 0.6s ease-out;
}

.design-card:nth-child(2) { animation-delay: 0.1s; }
.design-card:nth-child(3) { animation-delay: 0.2s; }
.design-card:nth-child(4) { animation-delay: 0.3s; }
/* Signup Modal */
.modal {
    display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
    background: rgba(0, 0, 0, 0.5);
                justify-content: center;
            align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    max-width: 400px;
    width: 90%;
    text-align: center;
            position: relative;
        }
        
.modal-close {
            position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
            border: none;
    font-size: 1.5rem;
            cursor: pointer;
    color: var(--text-secondary);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.modal p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
        }
