*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg: #ffffff;
    --bg-alt: #f8f9fb;
    --text: #111827;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --radius: 10px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---- NAV ---- */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 700; font-size: 1.25rem; text-decoration: none; color: var(--text); }
.logo span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-size: .9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn-primary { background: var(--primary); color: #fff; border-radius: var(--radius); padding: 10px 20px; }
.nav-links a.btn-primary:hover { background: var(--primary-hover); color: #fff; }

/* ---- BUTTONS ---- */
.btn {
    display: inline-block; padding: 10px 20px; border-radius: var(--radius);
    font-weight: 600; font-size: .9rem; text-decoration: none; text-align: center;
    transition: all .15s ease; cursor: pointer; border: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { color: var(--primary); }
.btn-outline { border: 2px solid var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---- HERO ---- */
.hero { padding: 80px 0 60px; text-align: center; }
.hero h1 { font-size: 3rem; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.hero-sub { margin: 20px auto 0; max-width: 560px; color: var(--text-muted); font-size: 1.15rem; }
.hero-cta { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-note { font-size: .8rem; color: var(--text-muted); }
.hero-preview { margin-top: 56px; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.preview-card {
    text-align: left; background: var(--bg-alt); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px; width: 340px;
}
.preview-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.avatar {
    width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-weight: 600; font-size: .8rem; color: #fff;
}
.a1 { background: #6366f1; }
.a2 { background: #ec4899; }
.preview-header strong { font-size: .9rem; }
.preview-header .time { display: block; font-size: .75rem; color: var(--text-muted); }
.preview-body p { font-size: .85rem; margin-bottom: 4px; color: var(--text-muted); }
.preview-body strong { color: var(--text); }

/* ---- FEATURES ---- */
.features { padding: 80px 0; background: var(--bg-alt); }
.features h2 { text-align: center; font-size: 2rem; margin-bottom: 48px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px;
}
.feature-icon { font-size: 1.6rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { font-size: .9rem; color: var(--text-muted); }

/* ---- PRICING ---- */
.pricing { padding: 80px 0; }
.pricing h2 { text-align: center; font-size: 2rem; margin-bottom: 48px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.price-card {
    background: var(--bg-alt); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px; text-align: center; position: relative;
}
.price-card.popular { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.popular-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #fff; font-size: .75rem; font-weight: 600;
    padding: 4px 14px; border-radius: 20px;
}
.price-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.price { font-size: 2.4rem; font-weight: 700; margin-bottom: 20px; }
.price span { font-size: .9rem; font-weight: 400; color: var(--text-muted); }
.price-card ul { list-style: none; margin-bottom: 24px; }
.price-card li { padding: 6px 0; font-size: .9rem; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.price-card li:last-child { border: none; }
.price-card .btn { margin-top: auto; }

/* ---- FOOTER ---- */
.footer { padding: 48px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
.footer-brand p { margin-top: 8px; font-size: .8rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 56px; }
.footer-links h4 { font-size: .85rem; margin-bottom: 12px; }
.footer-links a { display: block; font-size: .85rem; color: var(--text-muted); text-decoration: none; margin-bottom: 6px; }
.footer-links a:hover { color: var(--primary); }

/* ---- AUTH PAGES ---- */
.auth-wrapper {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: var(--bg-alt); padding: 24px;
}
.auth-card {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 40px; width: 100%; max-width: 420px;
}
.auth-card h1 { font-size: 1.5rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-muted); font-size: .9rem; margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 6px; }
.form-group input {
    width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px;
    font-size: .9rem; font-family: inherit; outline: none; transition: border-color .15s;
}
.form-group input:focus { border-color: var(--primary); }
.auth-footer { margin-top: 20px; text-align: center; font-size: .85rem; color: var(--text-muted); }
.auth-footer a { color: var(--primary); text-decoration: none; font-weight: 500; }
.divider {
    display: flex; align-items: center; gap: 12px; margin: 20px 0;
    font-size: .8rem; color: var(--text-muted);
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ---- DASHBOARD ---- */
.dash-shell { display: flex; min-height: 100vh; }
.dash-sidebar {
    width: 240px; background: #1e1b4b; color: #fff; padding: 24px 20px;
    display: flex; flex-direction: column;
}
.dash-sidebar .logo span { color: #a5b4fc; }
.dash-sidebar .logo { color: #fff; margin-bottom: 32px; }
.dash-nav a {
    display: block; padding: 10px 14px; border-radius: 8px; color: #c7d2fe;
    text-decoration: none; font-size: .9rem; margin-bottom: 4px; transition: background .15s;
}
.dash-nav a:hover, .dash-nav a.active { background: rgba(255,255,255,.1); color: #fff; }
.dash-main { flex: 1; padding: 32px 40px; background: var(--bg-alt); }
.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.dash-header h1 { font-size: 1.5rem; }
.user-pill {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg); border: 1px solid var(--border); border-radius: 50px; padding: 6px 16px 6px 6px;
}
.user-pill .avatar { width: 32px; height: 32px; font-size: .7rem; }
.update-cards { display: flex; flex-direction: column; gap: 16px; }
.update-card {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
}
.update-card .meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.update-card .meta .time { font-size: .75rem; color: var(--text-muted); }
.update-card p { font-size: .9rem; color: var(--text-muted); margin-bottom: 4px; }
.empty-state {
    text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 16px; }

/* ---- LEGAL ---- */
.legal { max-width: 720px; margin: 0 auto; padding: 40px 24px 80px; }
.legal h1 { font-size: 2rem; margin-bottom: 8px; }
.legal .updated { color: var(--text-muted); font-size: .85rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.2rem; margin: 28px 0 10px; }
.legal p, .legal li { font-size: .95rem; color: var(--text-muted); margin-bottom: 12px; }
.legal ul { padding-left: 20px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .nav-links { gap: 12px; }
    .footer-inner { flex-direction: column; }
    .dash-sidebar { display: none; }
}
