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

:root {
    --bg-primary: #F8FAFC;
    --bg-dark: #0F172A;
    --bg-white: #ffffff;
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
    --accent: #6366F1;
    --accent-hover: #4F46E5;
    --accent-light: #EEF2FF;
}

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === NAVBAR === */
.navbar {
    background: var(--bg-dark);
    padding: 14px 0;
    position: sticky; top: 0;
    z-index: 100;
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand {
    color: #fff;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-icon {
    width: 28px; height: 28px;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}
.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}
.nav-link {
    color: #94A3B8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.nav-link:hover { color: #fff; }

/* === BUTTONS === */
.btn-primary {
    background: var(--accent);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-dark {
    background: var(--bg-dark);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.15s, background 0.2s;
}
.btn-dark:hover { background: #1E293B; transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    color: var(--text-primary) !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid #CBD5E1;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}
.btn-outline:hover { background: #fff; border-color: #94A3B8; }

.btn-lg { padding: 12px 24px; font-size: 15px; }

/* === HERO === */
.hero {
    background: #F8FAFC;
    padding: 80px 24px 70px;
    text-align: center;
    margin: 0 -24px 0;
}
.hero-pill {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent-hover);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === FEATURES === */
.features {
    padding: 80px 0;
    background: #fff;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
}
.features-header {
    text-align: center;
    margin-bottom: 50px;
}
.features-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.features-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.feature-card {
    background: #fff;
    padding: 28px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.feature-card:hover {
    border-color: #CBD5E1;
    transform: translateY(-2px);
}
.feature-icon {
    width: 42px; height: 42px;
    background: var(--accent-light);
    color: var(--accent-hover);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}
.feature-card h3 {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* === FOOTER === */
.footer {
    background: var(--bg-dark);
    color: #94A3B8;
    padding: 32px 0;
    text-align: center;
    font-size: 13px;
    margin: 0 -24px;
}

/* === AUTH === */
.auth-wrap {
    display: flex; justify-content: center;
    padding: 60px 20px;
}
.auth-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 40px;
    width: 100%; max-width: 420px;
}
.auth-card-wide { max-width: 600px; }
.auth-logo {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.auth-logo .brand-icon {
    width: 24px; height: 24px; font-size: 12px;
}
.auth-card h2 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 28px;
    font-size: 1.5rem;
    font-weight: 600;
}
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    transition: all 0.2s;
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.btn-submit {
    width: 100%;
    padding: 12px;
    background: var(--bg-dark);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 6px;
}
.btn-submit:hover { background: #1E293B; }
.auth-footer {
    text-align: center;
    margin-top: 22px;
    font-size: 13px;
    color: var(--text-secondary);
}
.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

/* === ALERTS === */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 14px;
}
.alert-error { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.alert-success { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }

/* === 404 === */
.error-page { text-align: center; padding: 120px 20px; }
.error-page h1 { font-size: 5rem; color: var(--accent); font-weight: 600; }
.error-page h2 { color: var(--text-primary); margin: 10px 0 16px; }
.error-page p { color: var(--text-secondary); margin-bottom: 24px; }
