/* SMPF Neutral White Theme — 2026-08-25 */
/* Clean, minimal, professional. Warm whites, soft grays, minimal accents. */

:root {
    --bg-primary: #fafaf9;
    --bg-card: #ffffff;
    --bg-hover: #f5f5f4;
    --text-primary: #1c1917;
    --text-secondary: #78716c;
    --text-muted: #a8a29e;
    --border: #e7e5e4;
    --border-light: #f5f5f4;
    --accent: #0c4a6e;
    --accent-hover: #075985;
    --success: #15803d;
    --error: #b91c1c;
    --warning: #b45309;
    --radius: 10px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.04);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --max-width: 960px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ─── Typography ─────────────────────────────────────────────────────────── */

h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--text-secondary); }

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

/* ─── Layout ─────────────────────────────────────────────────────────────── */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

/* ─── Navigation ─────────────────────────────────────────────────────────── */

.nav {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-brand:hover { text-decoration: none; }

.nav-links a {
    margin-left: 28px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover { color: var(--text-primary); text-decoration: none; }

/* ─── Hero ───────────────────────────────────────────────────────────────── */

.hero {
    text-align: center;
    padding: 100px 24px 80px;
    max-width: 680px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--text-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--text-secondary);
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    text-decoration: none;
}

.btn-link {
    display: inline-block;
    padding: 6px 16px;
    background: var(--text-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.btn-link:hover { background: var(--text-secondary); text-decoration: none; }

/* ─── Cards ──────────────────────────────────────────────────────────────── */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
}

.card h2, .card h3 { margin-top: 0; }

/* ─── Forms ──────────────────────────────────────────────────────────────── */

label {
    display: block;
    margin: 16px 0 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

input, textarea, select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: border-color 0.15s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--text-muted);
}

button[type="submit"], .btn-submit {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background: var(--text-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
}

button[type="submit"]:hover { background: var(--text-secondary); }

/* ─── Auth pages ─────────────────────────────────────────────────────────── */

.auth-box {
    max-width: 420px;
    margin: 60px auto;
}

.auth-box .card { padding: 36px; }

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-header h1 { font-size: 1.5rem; margin-bottom: 4px; }
.auth-header p { margin: 0; font-size: 0.9rem; }

/* ─── Connector rows ─────────────────────────────────────────────────────── */

.connector-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.connector-row:last-child { border-bottom: none; }

.status-connected {
    color: var(--success);
    font-weight: 600;
    font-size: 0.9rem;
}

.status-not { color: var(--text-muted); font-size: 0.9rem; }

/* ─── Dashboard nav ──────────────────────────────────────────────────────── */

.dashboard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.dashboard-nav a {
    margin-left: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.dashboard-nav a:hover { color: var(--text-primary); }

/* ─── Alerts ─────────────────────────────────────────────────────────────── */

.error {
    color: var(--error);
    background: #fef2f2;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 12px;
}

.success {
    color: var(--success);
    background: #f0fdf4;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 12px;
}

/* ─── Grid / Features ────────────────────────────────────────────────────── */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-hover);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 14px;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */

.footer {
    text-align: center;
    padding: 40px 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-light);
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .hero h1 { font-size: 2rem; }
    .hero { padding: 60px 20px 50px; }
    .section { padding: 50px 0; }
    .nav-links a { margin-left: 16px; font-size: 0.85rem; }
    .card { padding: 20px; }
}
