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

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

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

/* Header */
header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

.logo h1 {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.tagline {
    color: var(--gray);
    font-size: 14px;
}

nav a {
    text-decoration: none;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-template {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

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

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.template-buttons {
    display: flex;
    gap: 8px;
}

.btn-template {
    background: var(--accent-color);
    color: white;
    flex: 1;
    text-align: center;
    font-size: 14px;
    padding: 10px 20px;
}

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

.btn-download {
    background: #10b981;
}

.btn-download:hover {
    background: #059669;
}

.btn-download::before {
    content: '⬇ ';
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Templates Section */
.templates {
    padding: 80px 0;
}

.templates h3 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark);
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.template-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.template-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.template-preview {
    height: 250px;
    background: var(--light);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-content {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Template Preview Styles */
.preview-header {
    height: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.preview-hero {
    height: 80px;
    background: var(--border);
    margin: 10px;
    border-radius: 4px;
}

.preview-grid, .preview-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px;
}

.preview-box, .product-card {
    background: var(--border);
    height: 50px;
    border-radius: 4px;
}

.preview-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px;
}

.gallery-item {
    background: var(--border);
    height: 70px;
    border-radius: 4px;
}

.preview-cta {
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-box {
    width: 80%;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 4px;
}

.preview-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px;
}

.feature-item {
    background: var(--border);
    height: 40px;
    border-radius: 4px;
}

.preview-posts {
    padding: 10px;
}

.post-item {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.post-image {
    width: 60px;
    height: 40px;
    background: var(--border);
    border-radius: 4px;
}

.post-text {
    flex: 1;
    background: var(--border);
    border-radius: 4px;
}

.preview-sections {
    padding: 10px;
}

.section-bar {
    height: 35px;
    background: var(--border);
    margin-bottom: 8px;
    border-radius: 4px;
}

/* Template Info */
.template-info {
    padding: 24px;
}

.template-info h4 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--dark);
}

.template-info p {
    color: var(--gray);
    margin-bottom: 16px;
    font-size: 15px;
}

.template-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: var(--light);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border);
}

/* Features Section */
.features {
    background: white;
    padding: 80px 0;
}

.features h3 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark);
}

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

.feature {
    text-align: center;
    padding: 30px;
}

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

.feature h4 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--dark);
}

.feature p {
    color: var(--gray);
    font-size: 15px;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta h3 {
    font-size: 36px;
    margin-bottom: 16px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h4, .footer-links h4, .footer-info h4 {
    font-size: 20px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--gray);
}

.footer-links ul, .footer-info ul {
    list-style: none;
}

.footer-links li, .footer-info li {
    margin-bottom: 10px;
}

.footer-links a, .footer-info a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover, .footer-info a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: var(--gray);
}

.footer-bottom a {
    color: var(--accent-color);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .hero h2 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .templates h3, .features h3, .cta h3 {
        font-size: 28px;
    }

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

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

@media (max-width: 480px) {
    .btn-primary, .btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
    }

    .hero {
        padding: 50px 0;
    }

    .templates, .features, .cta {
        padding: 50px 0;
    }
}