/* CSS Variables */
:root {
    --primary: #E85D3D;
    --primary-hover: #d14d2e;
    --secondary: #2D3748;
    --background: #FDF8F6;
    --surface: #FFFFFF;
    --surface-hover: #F7FAFC;
    --text-primary: #1A202C;
    --text-secondary: #4A5568;
    --text-muted: #718096;
    --border: #E2E8F0;
    --success: #48BB78;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn svg {
    width: 16px;
    height: 16px;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 14px 24px;
    font-size: 15px;
}

.btn-large svg {
    width: 18px;
    height: 18px;
}

/* Navigation */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 32px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 36px;
    height: 36px;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-trust {
    display: flex;
    gap: 16px;
}

.nav-trust span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-muted);
}

.nav-trust svg {
    width: 14px;
    height: 14px;
    color: var(--success);
}

/* Hero Section - 40/60 Split */
.hero {
    display: grid;
    grid-template-columns: 40% 60%;
}

.hero-left {
    display: flex;
    flex-direction: column;
    padding: 40px 40px 40px 48px;
}

.hero-content {
    margin-bottom: 32px;
}

.hero-badge {
    display: inline-flex;
    align-self: flex-start;
    background: linear-gradient(135deg, #48BB78 0%, #38A169 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.hero-title .highlight {
    color: var(--primary);
}

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

/* Hero Actions - Side by side */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-divider {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.arrow-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    animation: bounce-right 1.5s ease-in-out infinite;
}

@keyframes bounce-right {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* Hero Features */
.hero-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.feature-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: #FFF5F3;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.feature-text h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.feature-text p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Hero Right - Templates */
.hero-right {
    background: var(--surface);
    border-left: 1px solid var(--border);
}

.templates-container {
    padding: 24px;
}

.templates-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.templates-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.templates-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-btn {
    padding: 6px 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 50px;
    font-weight: 500;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 8px;
}

.template-card {
    background: var(--background);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.template-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.template-preview {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.template-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.template-card:hover .template-overlay {
    opacity: 1;
}

.template-overlay span {
    color: white;
    font-weight: 600;
    font-size: 11px;
    padding: 6px 12px;
    background: var(--primary);
    border-radius: var(--radius-sm);
}

.template-info {
    padding: 8px 10px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.template-info h4 {
    font-size: 12px;
    font-weight: 600;
}

/* Footer */
.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 32px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-left {
        padding: 24px;
        border-bottom: 1px solid var(--border);
    }

    .hero-right {
        border-left: none;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    .arrow-icon {
        display: none;
    }

    .templates-container {
        max-height: 50vh;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 16px;
    }

    .nav-trust {
        display: none;
    }

    .hero-left {
        padding: 20px 16px;
    }

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

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .action-divider {
        display: none;
    }

    .templates-container {
        padding: 16px;
    }

    .templates-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

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

    .footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 12px 16px;
    }
}
