* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --primary: #8b5cf6; --bg: #0f172a; --bg-card: #1e293b; --bg-input: #334155; --text: #f1f5f9; --text-muted: #94a3b8; --border: #475569; }
body { font-family: -apple-system, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; }
header { text-align: center; margin-bottom: 2rem; }
h1 { font-size: 2.5rem; margin-bottom: 0.5rem; background: linear-gradient(135deg, var(--primary), #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.subtitle { color: var(--text-muted); margin-bottom: 1rem; }
.badges { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.badge { padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.85rem; }
.badge-green { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.badge-purple { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
.editor-card { background: var(--bg-card); border-radius: 1rem; padding: 1rem; margin-bottom: 2rem; border: 1px solid var(--border); }
.toolbar { display: flex; gap: 0.5rem; padding: 0.5rem; background: var(--bg-input); border-radius: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.toolbar button { padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 0.25rem; background: var(--bg-card); color: var(--text); cursor: pointer; font-size: 0.85rem; }
.toolbar button:hover { border-color: var(--primary); }
.toolbar .divider { width: 1px; background: var(--border); margin: 0 0.5rem; }
.editor-area { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; min-height: 500px; }
.pane { display: flex; flex-direction: column; }
.pane-header { padding: 0.5rem 1rem; background: var(--bg-input); border-radius: 0.5rem 0.5rem 0 0; font-weight: 600; font-size: 0.9rem; }
textarea { flex: 1; padding: 1rem; border: 2px solid var(--border); border-radius: 0 0 0.5rem 0.5rem; background: var(--bg-input); color: var(--text); font-family: 'Monaco', monospace; font-size: 0.9rem; resize: none; outline: none; }
textarea:focus { border-color: var(--primary); }
.preview { flex: 1; padding: 1rem; border: 2px solid var(--border); border-radius: 0 0 0.5rem 0.5rem; background: var(--bg-input); overflow-y: auto; }
.preview h1, .preview h2, .preview h3 { margin: 1rem 0 0.5rem; }
.preview h1 { font-size: 2rem; }
.preview h2 { font-size: 1.5rem; }
.preview h3 { font-size: 1.25rem; }
.preview code { background: var(--bg); padding: 0.2rem 0.4rem; border-radius: 0.25rem; font-family: monospace; }
.preview pre { background: var(--bg); padding: 1rem; border-radius: 0.5rem; overflow-x: auto; margin: 1rem 0; }
.preview pre code { background: none; padding: 0; }
.preview ul { margin: 0.5rem 0; padding-left: 1.5rem; }
.preview a { color: var(--primary); }
.features { margin-bottom: 2rem; }
.features h2 { text-align: center; margin-bottom: 1.5rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.feature { background: var(--bg-card); padding: 1.5rem; border-radius: 1rem; border: 1px solid var(--border); text-align: center; }
.feature-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.feature h3 { margin-bottom: 0.5rem; }
.feature p { color: var(--text-muted); font-size: 0.9rem; }
.faq { margin-bottom: 2rem; }
.faq h2 { text-align: center; margin-bottom: 1.5rem; }
.faq-category { margin-bottom: 1.5rem; }
.faq-category-title { font-size: 1.1rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--primary); color: var(--primary); }
.faq-item { background: var(--bg-card); padding: 1.25rem; border-radius: 0.75rem; margin-bottom: 0.75rem; border: 1px solid var(--border); }
.faq-item h4 { margin-bottom: 0.5rem; }
.faq-item p { color: var(--text-muted); font-size: 0.9rem; }
footer { text-align: center; padding: 2rem 0; border-top: 1px solid var(--border); color: var(--text-muted); }
@media (max-width: 768px) { .editor-area { grid-template-columns: 1fr; } h1 { font-size: 2rem; } }
