:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --success: #16a34a;
    --danger: #dc2626;
    --text: #111827;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --bg: #f9fafb;
    --card: #ffffff;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.10);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* NAV */
nav {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.nav-brand img { width: 32px; height: 32px; border-radius: 6px; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { padding: 7px 14px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--text-muted); }
.nav-links a:hover { background: var(--bg); color: var(--text); text-decoration: none; }
.nav-links .btn-primary { background: var(--primary); color: #fff; }
.nav-links .btn-primary:hover { background: var(--primary-hover); color: #fff; }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }

/* HERO */
.hero {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
    color: #fff;
    padding: 80px 24px;
    text-align: center;
}
.hero h1 { font-size: clamp(28px, 5vw, 52px); font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.hero p { font-size: clamp(16px, 2vw, 20px); opacity: 0.9; max-width: 560px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 24px; border-radius: var(--radius); font-size: 15px; font-weight: 600; cursor: pointer; border: none; transition: all 0.15s; text-decoration: none; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #f0f4ff; text-decoration: none; color: var(--primary); }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); text-decoration: none; color: #fff; }

/* SECTIONS */
.section { padding: 64px 24px; }
.section-alt { background: var(--card); }
.section-center { text-align: center; }
.section h2 { font-size: clamp(22px, 3vw, 36px); font-weight: 700; margin-bottom: 12px; }
.section .subtitle { color: var(--text-muted); font-size: 17px; max-width: 520px; margin: 0 auto 40px; }
.container { max-width: 1100px; margin: 0 auto; }

/* FEATURES GRID */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
}
.feature-icon { font-size: 32px; margin-bottom: 14px; }
.feature-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 14px; }

/* PRICING */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; max-width: 700px; margin: 0 auto; }
.pricing-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    text-align: center;
}
.pricing-card.featured { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary), var(--shadow-md); }
.pricing-badge { display: inline-block; background: var(--primary); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; margin-bottom: 12px; }
.pricing-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.price { font-size: 40px; font-weight: 800; color: var(--primary); margin: 12px 0 4px; }
.price span { font-size: 16px; font-weight: 400; color: var(--text-muted); }
.pricing-card ul { list-style: none; margin: 20px 0 24px; text-align: left; }
.pricing-card ul li { padding: 5px 0; font-size: 14px; color: var(--text-muted); }
.pricing-card ul li::before { content: '✓ '; color: var(--success); font-weight: 700; }
.btn-primary { background: var(--primary); color: #fff; width: 100%; text-align: center; }
.btn-primary:hover { background: var(--primary-hover); text-decoration: none; color: #fff; }
.btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); width: 100%; text-align: center; }
.btn-secondary:hover { background: var(--border); text-decoration: none; color: var(--text); }

/* STEPS */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; counter-reset: step; }
.step { text-align: center; }
.step-num { width: 48px; height: 48px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; margin: 0 auto 14px; }
.step h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--text-muted); font-size: 14px; }

/* FOOTER */
footer {
    background: #111827;
    color: #9ca3af;
    padding: 40px 24px;
    text-align: center;
    font-size: 14px;
}
footer .footer-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 16px; }
footer .footer-brand img { width: 28px; height: 28px; border-radius: 5px; }
footer .footer-brand span { color: #fff; font-weight: 700; font-size: 16px; }
footer a { color: #9ca3af; }
footer a:hover { color: #fff; }

/* AUTH PAGES */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; }
.auth-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.auth-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-md);
}
.auth-card .logo { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.auth-card .logo img { width: 36px; height: 36px; border-radius: 7px; }
.auth-card .logo span { font-size: 18px; font-weight: 700; }
.auth-card h1 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.auth-card .subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 15px;
    background: var(--card);
    color: var(--text);
    transition: border-color 0.15s;
}
.form-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.password-wrapper { position: relative; }
.password-wrapper input { padding-right: 44px; }
.toggle-password { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 0; display: flex; }
.toggle-password:hover { color: var(--text); }
.btn-full { width: 100%; padding: 11px; font-size: 15px; border-radius: 7px; font-weight: 600; cursor: pointer; border: none; }
.btn-full.primary { background: var(--primary); color: #fff; }
.btn-full.primary:hover { background: var(--primary-hover); }
.btn-full.gray { background: var(--bg); color: var(--text); border: 1px solid var(--border); margin-top: 8px; }
.btn-full.gray:hover { background: var(--border); }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted); }
.auth-footer a { font-weight: 500; }
.error-msg { background: #fef2f2; border: 1px solid #fecaca; color: var(--danger); padding: 10px 14px; border-radius: 7px; font-size: 14px; margin-bottom: 16px; display: none; }
.success-msg { background: #f0fdf4; border: 1px solid #bbf7d0; color: var(--success); padding: 10px 14px; border-radius: 7px; font-size: 14px; margin-bottom: 16px; display: none; }

/* PASSWORD REQUIREMENTS */
.requirements { margin: 6px 0 4px; padding: 0; list-style: none; font-size: 13px; }
.requirements li { padding: 2px 0; color: var(--danger); }
.requirements li.met { color: var(--success); }
.requirements li::before { content: '✗ '; }
.requirements li.met::before { content: '✓ '; }

/* MOBILE NAV */
@media (max-width: 640px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--border); padding: 12px 16px; gap: 4px; box-shadow: var(--shadow-md); }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 10px 12px; }
    .nav-hamburger { display: block; }
    .auth-card { padding: 28px 20px; }
}

/* COMPARE TABLE */
.compare-table { max-width: 700px; margin: 40px auto 0; overflow-x: auto; }
.compare-table table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare-table thead tr { background: var(--primary); color: #fff; }
.compare-table th { padding: 14px 20px; font-size: 15px; font-weight: 600; text-align: center; }
.compare-table th:first-child { text-align: left; }
.compare-table td { padding: 12px 20px; font-size: 14px; border-bottom: 1px solid var(--border); text-align: center; vertical-align: middle; }
.compare-table td:first-child { text-align: left; }
.compare-table td b { display: block; color: var(--text); font-weight: 600; }
.compare-table td span { font-size: 12px; color: var(--text-muted); }
.compare-table td.check { font-size: 18px; }
.compare-table td.cross { font-size: 16px; color: var(--text-muted); }
.compare-table tr.pro-only { background: #f0fdf4; }
.compare-table tr:last-child td { border-bottom: none; }
.badge-preview { background: #28a745; color: #fff; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px; margin-left: 6px; vertical-align: middle; }
