* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f4f6fb;
    color: #333;
}

/* HERO */
.hero {
    background: linear-gradient(135deg, #1e90ff, #004aad);
    color: white;
    text-align: center;
    padding: 90px 20px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 25px;
}

.container {
    max-width: 1100px;
    margin: auto;
}

/* BUTTONS */
.btn {
    padding: 12px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    background: #1e90ff;
    color: white;
    margin: 6px 4px;
}

.btn.primary {
    font-size: 16px;
}

.btn.outline {
    background: transparent;
    border: 2px solid #1e90ff;
    color: #1e90ff;
}

.btn.generate {
    background: #28a745;
}

/* TEMPLATES */
.templates {
    padding: 60px 20px;
    text-align: center;
}

.templates h2 {
    margin-bottom: 40px;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.preview {
    height: 180px;
    background: #e6ecf5;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* WHY */
.why {
    background: white;
    padding: 60px 20px;
}

.why h2 {
    text-align: center;
    margin-bottom: 25px;
}

.why ul {
    list-style: none;
    max-width: 500px;
    margin: auto;
}

.why li {
    margin: 12px 0;
}

/* FOOTER */
footer {
    background: #0b3c6f;
    color: white;
    text-align: center;
    padding: 20px;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 320px;
    text-align: center;
}

.loader {
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top: 4px solid #1e90ff;
    border-radius: 50%;
    margin: 20px auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
