:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #10b981;
    --dark: #1f2937;
    --gray: #6b7280;
    --light: #f3f4f6;
    --white: #ffffff;
}

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

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

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

/* Navbar */
.navbar {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
}

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

.btn-nav {
    background: var(--primary);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

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

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
}

.stats div {
    text-align: center;
}

.num {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
}

/* Templates */
.templates {
    padding: 4rem 0;
    background: var(--light);
}

.templates h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 3rem;
}

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

.template-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.template-card.free {
    border: 2px solid var(--secondary);
}

.preview {
    height: 200px;
    background: var(--light);
    position: relative;
}

/* Preview styles */
.classic-preview {
    background: linear-gradient(to bottom, #2563eb 30%, white 30%);
}
.classic-preview::after {
    content: '';
    position: absolute;
    top: 40%; left: 10%;
    width: 80%; height: 3px;
    background: #333;
}

.modern-preview {
    background: white;
    border-left: 8px solid #10b981;
}

.tech-preview {
    background: #1a1a2e;
    color: white;
}
.tech-preview::after {
    content: '</>';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #00d9ff;
}

.creative-preview {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
}

.exec-preview {
    background: #1f2937;
    border-top: 4px solid #d4af37;
}

.entry-preview {
    background: #e0f2fe;
}
.entry-preview::after {
    content: '🎓';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
}

.health-preview {
    background: #ecfdf5;
}
.health-preview::after {
    content: '⚕';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #10b981;
}

.sales-preview {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.free-badge {
    background: var(--secondary);
}

.template-card h3 {
    padding: 1rem 1rem 0.25rem;
    font-size: 1.1rem;
}

.template-card p {
    color: var(--gray);
    padding: 0 1rem;
    font-size: 0.9rem;
}

.btn-get, .btn-buy {
    width: calc(100% - 2rem);
    margin: 1rem;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

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

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

/* Features */
.features {
    padding: 4rem 0;
    text-align: center;
}

.features h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
}

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

.feature .icon {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 0.5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.close {
    position: absolute;
    top: 1rem; right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal input {
    width: 100%;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border: 2px solid var(--light);
    border-radius: 6px;
    font-size: 1rem;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .stats { flex-direction: column; gap: 2rem; }
    .hero-btns { flex-direction: column; }
    .nav-links { display: none; }
    .template-grid { grid-template-columns: 1fr; }
}
