/* ==========================================================================
   Design System / CSS Variables
   ========================================================================== */
:root {
    --ink: #1a1a2e;
    --ink-light: #4a4a68;
    --muted: #8888a0;
    --bg: #f7f8fc;
    --card-bg: #ffffff;
    --border: #e6e6f0;
    --accent: #4361ee;
    --accent-dark: #3242b3;
    --radius: 14px;
    --shadow-sm: 0 2px 8px rgba(20, 20, 50, 0.06);
    --shadow-md: 0 8px 24px rgba(20, 20, 50, 0.08);
    --shadow-lg: 0 16px 40px rgba(20, 20, 50, 0.12);
}
.brand-icon {
    height: 28px;
    width: 28px;
    vertical-align: middle;
    margin-right: 6px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ==========================================================================
   Top Navigation
   ========================================================================== */
.topnav {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

.topnav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
main {
    position: relative;
    z-index: 1;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ink);
}

.brand span { color: var(--accent); }

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--ink-light);
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Page Header (used across pages)
   ========================================================================== */
.page-header {
    text-align: center;
    padding: 56px 24px 40px;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.page-header p {
    color: var(--ink-light);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ==========================================================================
   Alerts
   ========================================================================== */
.alert {
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.92rem;
    font-weight: 500;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    text-align: center;
    padding: 32px 24px;
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 60px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 640px) {
    .page-header h1 { font-size: 1.7rem; }
}
