:root {
    --bg: #0a0e1a;
    --surface: #111827;
    --border: #1e293b;
    --accent-a: #3b82f6;
    --accent-b: #10b981;
    --accent-a-glow: rgba(59, 130, 246, .2);
    --accent-b-glow: rgba(16, 185, 129, .2);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --purple: #8b5cf6;
    --radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.top-bar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 14px 0; position: sticky; top: 0; z-index: 100; }
.top-bar .container { display: flex; align-items: center; gap: 16px; }
.logo { color: var(--purple); font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.page-title { color: var(--text-muted); font-size: .85rem; flex: 1; }
.back-link { color: var(--text-muted); text-decoration: none; font-size: .85rem; }
.back-link:hover { color: var(--purple); }

.hero { text-align: center; padding: 48px 0 32px; }
.hero h1 { font-size: 2.2rem; margin-bottom: 8px; background: linear-gradient(135deg, var(--accent-a), var(--accent-b)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.subtitle { color: var(--text-muted); font-size: 1.05rem; }

.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 768px) { .compare-grid { grid-template-columns: 1fr; } }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.panel-a { border-top: 3px solid var(--accent-a); }
.panel-b { border-top: 3px solid var(--accent-b); }
.panel-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.panel-badge { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; color: white; }
.badge-a { background: var(--accent-a); }
.badge-b { background: var(--accent-b); }
.panel h2 { font-size: 1rem; }
.panel h3 { font-size: 1rem; margin-bottom: 16px; color: var(--purple); }

textarea {
    width: 100%; padding: 14px; background: var(--bg); border: 1px solid var(--border);
    border-radius: 8px; color: var(--text); font-size: .9rem; font-family: 'SF Mono', monospace;
    resize: vertical; line-height: 1.6; transition: border-color .2s, box-shadow .2s;
}
textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(139,92,246,.2); }

.action-bar { text-align: center; padding: 28px 0; }
.btn-analyze {
    padding: 14px 48px; background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
    color: white; border: none; border-radius: 8px; font-size: 1.05rem; font-weight: 600;
    cursor: pointer; transition: transform .15s, box-shadow .2s;
}
.btn-analyze:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(59,130,246,.3); }

.results-section { padding-bottom: 48px; }
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.result-card.full-width { grid-column: 1 / -1; }
@media (max-width: 768px) { .results-grid { grid-template-columns: 1fr; } }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: .85rem; }
th { color: var(--text-muted); font-weight: 500; }
.col-a { color: var(--accent-a); }
.col-b { color: var(--accent-b); }

.techniques-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.technique-item { padding: 10px 14px; background: var(--bg); border-radius: 8px; font-size: .8rem; display: flex; align-items: center; gap: 8px; }
.technique-item .check { color: var(--accent-b); }
.technique-item .miss { color: var(--text-muted); opacity: .4; }

.suggestions-list { display: flex; flex-direction: column; gap: 10px; }
.suggestion { padding: 12px 16px; background: var(--bg); border-radius: 8px; border-left: 3px solid var(--purple); font-size: .85rem; line-height: 1.5; }

.score-comparison { display: flex; flex-direction: column; gap: 12px; }
.score-bar { display: flex; align-items: center; gap: 12px; }
.score-label { font-weight: 700; font-size: 1rem; min-width: 20px; }
.bar { flex: 1; height: 32px; background: var(--bg); border-radius: 6px; overflow: hidden; }
.fill { height: 100%; border-radius: 6px; transition: width .8s ease; display: flex; align-items: center; padding-left: 12px; font-size: .75rem; font-weight: 600; color: white; }
.fill-a { background: linear-gradient(90deg, var(--accent-a), #60a5fa); }
.fill-b { background: linear-gradient(90deg, var(--accent-b), #34d399); }
.score-value { font-weight: 700; font-size: 1.1rem; min-width: 40px; text-align: right; }

.site-footer { padding: 24px 0; border-top: 1px solid var(--border); text-align: center; }
.site-footer p { font-size: .8rem; color: var(--text-muted); }
.site-footer a { color: var(--purple); text-decoration: none; }