:root {
  --bg: #0f1117; --ink: #e2e8f0; --muted: #94a3b8;
  --accent: #6366f1; --accent-hover: #818cf8; --surface: #1e2030;
  --border: #2d3148; --success: #16a34a; --danger: #dc2626;
  --radius: 8px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
a { color: var(--accent); text-decoration: none; }
nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem; border-bottom: 1px solid var(--border); }
nav .logo { font-weight: 800; font-size: 1.1rem; color: var(--accent); }
nav .nav-links { display: flex; gap: 1rem; }
nav .nav-links a { color: var(--ink); font-size: 0.9rem; }
nav .nav-links a:hover { color: var(--accent); }
.hero { text-align: center; padding: 4rem 1rem 2rem; }
.hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.5rem; line-height: 1.2; }
.hero p { color: var(--muted); max-width: 600px; margin: 0 auto 1.5rem; font-size: 1.125rem; }
.privacy-badge { display: inline-flex; align-items: center; gap: 0.4rem; background: #1e2030; color: var(--accent); padding: 0.4rem 0.8rem; border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem; border: 1px solid var(--border); }
.cta-buttons { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 0.75rem 1.5rem; border-radius: var(--radius); font-weight: 600; text-decoration: none; cursor: pointer; border: none; font-size: 1rem; transition: background 0.15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
section { padding: 2rem 0; border-top: 1px solid var(--border); }
section h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.features ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.75rem; }
.features li::before { content: '\2713 '; color: var(--success); font-weight: bold; }
.comparison-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; }
.comparison-table th, .comparison-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
.comparison-table th { background: var(--surface); font-weight: 600; }
.comparison-table tr:nth-child(even) { background: var(--surface); }
footer { text-align: center; padding: 2rem 0; color: var(--muted); font-size: 0.875rem; border-top: 1px solid var(--border); margin-top: 2rem; }

/* App Mode */
.app-mode { display: none; }
.app-mode.active { display: flex; flex-direction: column; min-height: 100vh; }
.landing-mode.hidden { display: none; }
.app-header { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.app-header h1 { font-size: 1.125rem; font-weight: 700; }
.app-header .cta-buttons { gap: 0.5rem; }
.app-header .btn { padding: 0.4rem 0.75rem; font-size: 0.875rem; }

/* Generator layout */
.gen-layout { display: flex; flex: 1; gap: 0; }
@media (max-width: 768px) { .gen-layout { flex-direction: column; } }
.gen-sidebar { width: 320px; flex-shrink: 0; border-right: 1px solid var(--border); overflow-y: auto; padding: 1rem; background: var(--surface); }
@media (max-width: 768px) { .gen-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); } }
.gen-sidebar h3 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 1rem 0 0.5rem; }
.gen-sidebar h3:first-child { margin-top: 0; }
.form-group { margin-bottom: 0.75rem; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.25rem; color: var(--muted); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.5rem 0.625rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--ink); font-size: 0.95rem; font-family: inherit; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-hint { font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }
.toggle-row { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.25rem; }
.toggle-row label { font-size: 0.9rem; margin: 0; }
.actions { margin-top: 1rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.gen-preview { flex: 1; overflow-y: auto; padding: 1.5rem; }
.preview-frame { background: #1a1a2e; color: #e2e8f0; border-radius: var(--radius); border: 1px solid var(--border); padding: 1.5rem; width: 100%; font-family: 'Courier New', monospace; font-size: 0.85rem; white-space: pre-wrap; min-height: 200px; }
