:root {
    --primary: #2563eb;
    --secondary: #7c3aed;
    --dark: #1f2937;
    --light: #f9fafb;
    --border: #e5e7eb;
}

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

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

.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
header { text-align: center; margin-bottom: 40px; }
header h1 { font-size: 2.5rem; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.tagline { color: #6b7280; margin-top: 10px; }

.value-props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 30px 0; }
.prop { padding: 20px; background: white; border-radius: 12px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.prop .icon { font-size: 2rem; display: block; margin-bottom: 10px; }

.cta-button { display: inline-block; padding: 14px 40px; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; border: none; border-radius: 50px; font-weight: 600; cursor: pointer; text-decoration: none; }
.cta-button:hover { transform: translateY(-2px); }

.features { background: white; padding: 40px; border-radius: 12px; margin: 40px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.feature-list { list-style: none; }
.feature-list li { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }

/* EDITOR */
.editor-container { display: grid; grid-template-columns: 200px 1fr; gap: 20px; margin: 0 auto; padding: 20px; max-width: 1400px; }

.sidebar { background: white; padding: 20px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); height: fit-content; position: sticky; top: 20px; }
.sidebar h3 { margin: 15px 0 10px; font-size: 0.9rem; color: #6b7280; text-transform: uppercase; }
.template-btn, .add-btn, .action-btn { display: block; width: 100%; padding: 10px; margin-bottom: 8px; border: 1px solid var(--border); background: white; border-radius: 8px; cursor: pointer; text-align: left; font-size: 0.95rem; transition: all 0.2s; }
.template-btn:hover, .add-btn:hover, .action-btn:hover { background: var(--light); border-color: var(--primary); }

.editor { display: grid; grid-template-columns: 1fr 300px; gap: 20px; }

.preview { background: white; padding: 20px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.preview h2 { margin-bottom: 20px; font-size: 1.3rem; }
.email-preview { background: white; border: 1px solid var(--border); min-height: 400px; padding: 20px; border-radius: 8px; margin-bottom: 15px; }
.copy-btn { width: 100%; padding: 12px; background: #10b981; color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; }

.properties { background: white; padding: 20px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.properties h2 { font-size: 1.1rem; margin-bottom: 20px; }
.prop-group { margin-bottom: 15px; }
.prop-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.9rem; }
.prop-group input, .prop-group textarea { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 8px; }

footer { text-align: center; padding: 40px 0; color: #6b7280; margin-top: 60px; border-top: 1px solid var(--border); }

@media (max-width: 900px) {
    .editor { grid-template-columns: 1fr; }
    .value-props { grid-template-columns: 1fr; }
}
