/* ============================================================
   CHOZ DESIGN SYSTEM
   ============================================================ */
:root {
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --text: #1a1a1a;
    --text-muted: #6b7280;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --border: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --radius: 12px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[data-theme="dark"] {
    --bg: #0a0a0a;
    --bg-alt: #1a1a1a;
    --text: #f9fafb;
    --text-muted: #9ca3af;
    --border: #2d2d2d;
    --card: #1a1a1a;
    --shadow: 0 1px 3px rgba(0,0,0,0.3);
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

/* NAVBAR */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}
.nav-container {
    max-width: 1200px; margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
}
.logo {
    font-size: 1.5rem; font-weight: 800;
    color: var(--primary); text-decoration: none;
    letter-spacing: -0.5px;
}
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.nav-links a:hover { color: var(--text); }

/* BUTTONS */
.btn {
    padding: 0.7rem 1.5rem; border-radius: var(--radius);
    border: none; cursor: pointer; font-size: 0.9rem;
    font-weight: 600; transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-google { background: white; color: #333; border: 1px solid var(--border); width: 100%; margin-top: 0.5rem; }

/* HERO */
.hero {
    text-align: center; padding: 5rem 1.5rem;
    max-width: 800px; margin: 0 auto;
}
.hero h1 { font-size: 3rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; }

/* CATEGORIES */
.categories { padding: 3rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.categories h2 { font-size: 1.8rem; margin-bottom: 2rem; }
.category-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}
.category-card {
    padding: 2rem 1rem; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--card);
    text-align: center; cursor: pointer; transition: all 0.2s;
}
.category-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.category-card .icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.category-card .name { font-weight: 600; }

/* COMPARISON */
.comparison-section { padding: 2rem 1.5rem; max-width: 1000px; margin: 0 auto; }
.comparison-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.badge { background: #dcfce7; color: #166534; padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.8rem; }
.options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.option-card {
    padding: 1.5rem; border-radius: var(--radius);
    border: 2px solid var(--border); background: var(--card);
}
.option-card h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.option-card .attr-row { display: flex; justify-content: space-between; padding: 0.3rem 0; font-size: 0.9rem; }
.option-card .attr-row .label { color: var(--text-muted); }
.option-card .attr-row .value { font-weight: 600; }

/* PRIORITY */
.priority-section { margin-top: 2rem; }
.priority-list { display: flex; flex-direction: column; gap: 0.5rem; margin: 1rem 0; }
.priority-item {
    padding: 0.8rem 1rem; border-radius: 8px;
    border: 1px solid var(--border); background: var(--card);
    display: flex; justify-content: space-between; align-items: center;
    cursor: grab;
}
.priority-item .drag-handle { color: var(--text-muted); }

/* REVEAL */
.reveal-section { padding: 2rem 1.5rem; max-width: 800px; margin: 0 auto; }
.reveal-card {
    padding: 2rem; border-radius: var(--radius);
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white; text-align: center;
}
.reveal-card h2 { font-size: 2rem; margin-bottom: 1rem; }
.why-section {
    margin-top: 1.5rem; padding: 1.5rem;
    background: rgba(255,255,255,0.1); border-radius: var(--radius);
    text-align: left;
}
.reveal-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 1.5rem; }

/* DASHBOARD */
.dashboard { padding: 2rem 1.5rem; max-width: 1000px; margin: 0 auto; }
.dashboard-tabs { display: flex; gap: 0.5rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem; overflow-x: auto; }
.tab {
    padding: 0.7rem 1.2rem; border: none; background: none;
    color: var(--text-muted); cursor: pointer; font-weight: 500;
    border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* MODAL */
.modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center; z-index: 200;
}
.modal.hidden { display: none; }
.modal-content {
    background: var(--card); padding: 2rem; border-radius: var(--radius);
    width: 100%; max-width: 400px; position: relative;
}
.modal-close {
    position: absolute; top: 1rem; right: 1rem;
    background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text);
}
.modal-content form { display: flex; flex-direction: column; gap: 1rem; margin: 1rem 0; }
.modal-content input {
    padding: 0.8rem; border-radius: 8px; border: 1px solid var(--border);
    background: var(--bg); color: var(--text); font-size: 1rem;
}

/* FOOTER */
.footer {
    text-align: center; padding: 3rem 1.5rem;
    border-top: 1px solid var(--border); color: var(--text-muted);
    font-size: 0.9rem;
}
.footer-links { display: flex; gap: 1.5rem; justify-content: center; margin-top: 1rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; }

/* UTILITIES */
.hidden { display: none !important; }
.theme-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; }

@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .nav-links { gap: 0.8rem; }
    .nav-links a { font-size: 0.8rem; }
    .hero-actions { flex-direction: column; }
}
