/* ==========================================================================
   Design system — light premium fintech
   Loaded on every page. Bootstrap 5 provides layout utilities only; every
   surface, control and piece of type below is ours.
   ========================================================================== */

:root {
    /* Surfaces */
    --bg: #f4f5f8;
    --bg-deep: #eceef3;
    --surface: #ffffff;
    --surface-muted: #fafbfc;
    --surface-sunken: #f6f7f9;

    /* Lines */
    --line: #e7e9ef;
    --line-strong: #d8dbe4;

    /* Type */
    --ink: #101728;
    --ink-soft: #5a6478;
    --ink-faint: #8a92a6;

    /* Brand */
    --brand: #4f46e5;
    --brand-strong: #4338ca;
    --brand-soft: #eef0ff;
    --brand-ring: rgba(79, 70, 229, 0.16);

    /* Semantic */
    --ok: #0f8a5f;
    --ok-soft: #e6f6ef;
    --warn: #b45309;
    --warn-soft: #fdf3e3;
    --bad: #c62828;
    --bad-soft: #fdecec;
    --info: #0369a1;
    --info-soft: #e6f2fb;

    /* Shape */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 22px;

    --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow-sm: 0 1px 3px rgba(16, 24, 40, .07), 0 1px 2px rgba(16, 24, 40, .04);
    --shadow-md: 0 8px 24px -10px rgba(16, 24, 40, .16);
    --shadow-lg: 0 24px 56px -24px rgba(16, 24, 40, .28);

    --sidebar-w: 264px;

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    background-color: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    letter-spacing: -0.006em;
}

h1, h2, h3, h4, h5, h6, .display-title {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.022em;
}

a { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-strong); }

hr { border-color: var(--line); opacity: 1; }

::selection { background: var(--brand-ring); }

.text-muted, .text-secondary { color: var(--ink-soft) !important; }
.text-faint { color: var(--ink-faint) !important; }
.text-brand { color: var(--brand) !important; }
.text-ok { color: var(--ok) !important; }
.text-warn { color: var(--warn) !important; }
.text-bad { color: var(--bad) !important; }

.money { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

.eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

/* ==========================================================================
   App shell
   ========================================================================== */

.app-shell { min-height: 100vh; }

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    z-index: 1045;
    transition: transform .26s cubic-bezier(.4, 0, .2, 1);
}

.app-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 22px 22px 18px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.app-sidebar__brand:hover { color: var(--ink); }

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, var(--brand), #7c6ef6);
    color: #fff;
    font-size: 14px;
    box-shadow: 0 6px 14px -6px rgba(79, 70, 229, .8);
    flex: 0 0 auto;
}

.brand-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }

.app-nav {
    padding: 6px 14px 24px;
    overflow-y: auto;
    flex: 1;
}

.app-nav__label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ink-faint);
    padding: 18px 10px 8px;
}

.app-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    margin-bottom: 2px;
    border-radius: 10px;
    color: var(--ink-soft);
    font-size: 14.2px;
    font-weight: 500;
    transition: background .15s ease, color .15s ease;
}

.app-nav a i { width: 18px; text-align: center; font-size: 14px; color: var(--ink-faint); transition: color .15s ease; }
.app-nav a:hover { background: var(--surface-sunken); color: var(--ink); }
.app-nav a:hover i { color: var(--ink-soft); }

.app-nav a.is-active {
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-weight: 600;
}

.app-nav a.is-active i { color: var(--brand); }

.app-nav__count {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
}

.app-main {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-topbar h1 {
    font-size: 18px;
    margin: 0;
    font-weight: 700;
}

.app-topbar__sub { font-size: 12.5px; color: var(--ink-faint); margin: 0; }

.app-content { padding: 26px 28px 56px; flex: 1; }

.app-content--narrow { max-width: 940px; }

.sidebar-toggle {
    display: none;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

.sidebar-scrim {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(16, 23, 40, .42);
    z-index: 1040;
}

@media (max-width: 991.98px) {
    .app-sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
    .app-sidebar.is-open { transform: none; }
    .app-main { margin-left: 0; }
    .sidebar-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .sidebar-scrim.is-open { display: block; }
    .app-content { padding: 18px 16px 48px; }
    .app-topbar { padding: 12px 16px; }
}

/* ==========================================================================
   Page header
   ========================================================================== */

.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.page-head h2 { font-size: 24px; margin: 0 0 4px; }
.page-head p { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* ==========================================================================
   Surfaces
   ========================================================================== */

.panel, .card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
}

.panel { overflow: hidden; }

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.panel-head h3 { font-size: 15.5px; margin: 0; font-weight: 700; }
.panel-head p { margin: 2px 0 0; font-size: 12.8px; color: var(--ink-faint); }

.panel-body { padding: 20px; }
.panel-body--flush { padding: 0; }
.panel-foot { padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-muted); }

.panel--accent { border-color: transparent; background: linear-gradient(150deg, #1c1f3a 0%, #2f2a6b 55%, #4338ca 100%); color: #fff; }
.panel--accent h1, .panel--accent h2, .panel--accent h3 { color: #fff; }
.panel--accent .eyebrow { color: rgba(255, 255, 255, .62); }
.panel--accent .panel-head { border-bottom-color: rgba(255, 255, 255, .12); }

/* Stat tiles */

.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-xs);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: box-shadow .18s ease, transform .18s ease;
}

.stat:hover { box-shadow: var(--shadow-sm); }

.stat__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat__label { font-size: 12.6px; color: var(--ink-soft); font-weight: 500; margin: 0; }
.stat__value { font-family: var(--font-display); font-size: 25px; font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.stat__meta { font-size: 12.2px; color: var(--ink-faint); margin: 0; }

.stat__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 13px;
    background: var(--brand-soft);
    color: var(--brand);
    flex: 0 0 auto;
}

.stat__icon--ok { background: var(--ok-soft); color: var(--ok); }
.stat__icon--warn { background: var(--warn-soft); color: var(--warn); }
.stat__icon--bad { background: var(--bad-soft); color: var(--bad); }
.stat__icon--info { background: var(--info-soft); color: var(--info); }

/* Data rows */

.data-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 20px;
    border-bottom: 1px solid var(--line);
}

.data-row:last-child { border-bottom: 0; }
.data-row:hover { background: var(--surface-muted); }

.data-row__title { font-weight: 600; font-size: 14px; margin: 0; }
.data-row__meta { font-size: 12.4px; color: var(--ink-faint); margin: 0; }

/* Definition list */

.facts { display: grid; gap: 10px; margin: 0; }
.facts > div { display: flex; justify-content: space-between; gap: 14px; font-size: 13.6px; }
.facts dt { color: var(--ink-soft); font-weight: 500; }
.facts dd { margin: 0; font-weight: 600; text-align: right; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    --bs-btn-focus-box-shadow: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 16px;
    border: 1px solid transparent;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .1s ease;
}

.btn:active { transform: translateY(1px); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 12px 24px; font-size: 15.5px; border-radius: 12px; }

.btn-brand {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 6px 16px -8px rgba(79, 70, 229, .9);
}

.btn-brand:hover, .btn-brand:focus { background: var(--brand-strong); color: #fff; }
.btn-brand:disabled, .btn-brand.disabled { background: #b9b6ee; box-shadow: none; color: #fff; }

.btn-outline {
    background: var(--surface);
    border-color: var(--line-strong);
    color: var(--ink);
}

.btn-outline:hover { background: var(--surface-sunken); color: var(--ink); border-color: var(--line-strong); }

.btn-soft { background: var(--brand-soft); color: var(--brand-strong); }
.btn-soft:hover { background: #e3e6ff; color: var(--brand-strong); }

.btn-ok { background: var(--ok); color: #fff; }
.btn-ok:hover { background: #0c7550; color: #fff; }
.btn-ok-soft { background: var(--ok-soft); color: var(--ok); }
.btn-ok-soft:hover { background: #d8f0e5; color: var(--ok); }

.btn-bad { background: var(--bad); color: #fff; }
.btn-bad:hover { background: #a91f1f; color: #fff; }
.btn-bad-soft { background: var(--bad-soft); color: var(--bad); }
.btn-bad-soft:hover { background: #fbdede; color: var(--bad); }

.btn-warn-soft { background: var(--warn-soft); color: var(--warn); }
.btn-warn-soft:hover { background: #fbead1; color: var(--warn); }

.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--surface-sunken); color: var(--ink); }

.btn-white { background: #fff; color: var(--brand-strong); }
.btn-white:hover { background: #f2f2ff; color: var(--brand-strong); }

.btn-icon { width: 34px; height: 34px; padding: 0; display: inline-grid; place-items: center; }

/* ==========================================================================
   Badges & chips
   ========================================================================== */

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    background: var(--surface-sunken);
    color: var(--ink-soft);
    white-space: nowrap;
}

.pill--brand { background: var(--brand-soft); color: var(--brand-strong); }
.pill--ok { background: var(--ok-soft); color: var(--ok); }
.pill--warn { background: var(--warn-soft); color: var(--warn); }
.pill--bad { background: var(--bad-soft); color: var(--bad); }
.pill--info { background: var(--info-soft); color: var(--info); }
.pill--dark { background: #1d2333; color: #fff; }

.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.pill--live .pill__dot { animation: pulse-dot 1.6s ease-in-out infinite; }

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .35; transform: scale(.8); }
}

/* ==========================================================================
   Tables
   ========================================================================== */

.table-wrap { overflow-x: auto; }

table.data {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13.8px;
}

table.data thead th {
    background: var(--surface-muted);
    border-bottom: 1px solid var(--line);
    color: var(--ink-faint);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .085em;
    text-transform: uppercase;
    padding: 11px 18px;
    white-space: nowrap;
    text-align: left;
}

table.data tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: var(--surface-muted); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Forms
   ========================================================================== */

.form-label {
    font-size: 12.8px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 6px;
}

.form-control, .form-select {
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    color: var(--ink);
    font-size: 14.2px;
    padding: 10px 13px;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.form-control::placeholder { color: #a9b0c0; }

.form-control:focus, .form-select:focus {
    background: var(--surface);
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-ring);
    color: var(--ink);
}

.form-control:disabled, .form-control[readonly] { background: var(--surface-sunken); color: var(--ink-soft); }

.form-control.is-invalid, .form-select.is-invalid { border-color: var(--bad); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 4px rgba(198, 40, 40, .14); }
.invalid-feedback { font-size: 12.4px; color: var(--bad); }
.form-text { font-size: 12.3px; color: var(--ink-faint); }

.input-group-text {
    background: var(--surface-sunken);
    border: 1px solid var(--line-strong);
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
}

.form-check-input { border-color: var(--line-strong); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { box-shadow: 0 0 0 4px var(--brand-ring); border-color: var(--brand); }

/* Amount field used on the pledge form */

.amount-field {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface-sunken);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    padding: 14px 18px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.amount-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); background: var(--surface); }
.amount-field__symbol { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--ink-faint); }

.amount-field input {
    border: 0;
    background: transparent;
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
    width: 100%;
    padding: 0;
    outline: none;
    font-variant-numeric: tabular-nums;
}

.amount-field input::-webkit-outer-spin-button,
.amount-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amount-field input[type=number] { -moz-appearance: textfield; }

.quick-amounts { display: flex; flex-wrap: wrap; gap: 8px; }

.quick-amounts button {
    border: 1px solid var(--line-strong);
    background: var(--surface);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    transition: all .15s ease;
}

.quick-amounts button:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

/* ==========================================================================
   Progress / meters
   ========================================================================== */

.meter { height: 7px; border-radius: 999px; background: var(--surface-sunken); overflow: hidden; }
.meter__fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #7c6ef6); transition: width .4s ease; }
.meter__fill--ok { background: linear-gradient(90deg, #0f8a5f, #34c48b); }
.meter--light { background: rgba(255, 255, 255, .22); }
.meter--light .meter__fill { background: #fff; }

/* ==========================================================================
   Avatars
   ========================================================================== */

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-weight: 700;
    font-size: 14px;
    overflow: hidden;
    flex: 0 0 auto;
    font-family: var(--font-display);
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 30px; height: 30px; font-size: 12px; }
.avatar--lg { width: 56px; height: 56px; font-size: 20px; }
.avatar--xl { width: 108px; height: 108px; font-size: 38px; }
.avatar--solid { background: linear-gradient(140deg, var(--brand), #7c6ef6); color: #fff; }

.identity { display: flex; align-items: center; gap: 10px; }
.identity__name { font-weight: 600; font-size: 14px; margin: 0; line-height: 1.3; }
.identity__meta { font-size: 12.2px; color: var(--ink-faint); margin: 0; }

/* Notification bell */

.bell-dot {
    position: absolute;
    top: 1px;
    right: 0;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--bad);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--surface);
}

.notice-row {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
}

.notice-row:last-child { border-bottom: 0; }
.notice-row.is-unread { background: var(--brand-soft); }

/* ==========================================================================
   Empty states, notes, timers
   ========================================================================== */

.empty {
    text-align: center;
    padding: 52px 24px;
}

.empty__icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--surface-sunken);
    color: var(--ink-faint);
    display: grid;
    place-items: center;
    font-size: 20px;
    margin: 0 auto 14px;
}

.empty h4 { font-size: 16px; margin: 0 0 6px; }
.empty p { color: var(--ink-soft); font-size: 13.8px; margin: 0 auto; max-width: 420px; }

.note {
    display: flex;
    gap: 11px;
    padding: 13px 15px;
    border-radius: var(--r-md);
    font-size: 13.5px;
    background: var(--surface-sunken);
    color: var(--ink-soft);
    border: 1px solid var(--line);
}

.note i { margin-top: 2px; }
.note--brand { background: var(--brand-soft); border-color: #dfe2ff; color: var(--brand-strong); }
.note--ok { background: var(--ok-soft); border-color: #cfeadd; color: #0b6d4b; }
.note--warn { background: var(--warn-soft); border-color: #f6e3c4; color: var(--warn); }
.note--bad { background: var(--bad-soft); border-color: #f6d5d5; color: var(--bad); }

.timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
    padding: 7px 14px;
    border-radius: 10px;
    background: var(--warn-soft);
    color: var(--warn);
}

.timer--urgent { background: var(--bad-soft); color: var(--bad); }

/* ==========================================================================
   Steps
   ========================================================================== */

.steps { display: grid; gap: 18px; }

.step { display: flex; gap: 14px; }

.step__num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand-strong);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 13px;
    flex: 0 0 auto;
    font-family: var(--font-display);
}

.step h5 { font-size: 14.5px; margin: 3px 0 3px; }
.step p { font-size: 13.4px; color: var(--ink-soft); margin: 0; }

/* ==========================================================================
   Bootstrap component overrides
   ========================================================================== */

.modal-content {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header, .modal-footer { border-color: var(--line); padding: 16px 20px; }
.modal-title { font-size: 16px; font-weight: 700; }
.modal-body { padding: 20px; }

.dropdown-menu {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    padding: 6px;
    font-size: 14px;
}

.dropdown-item { border-radius: 8px; padding: 8px 10px; color: var(--ink-soft); font-weight: 500; }
.dropdown-item:hover { background: var(--surface-sunken); color: var(--ink); }
.dropdown-divider { border-color: var(--line); }

.page-link {
    color: var(--ink-soft);
    border-color: var(--line);
    font-size: 13.5px;
    padding: 7px 13px;
}

.page-item.active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-link:hover { background: var(--surface-sunken); color: var(--ink); border-color: var(--line); }
.page-item.disabled .page-link { color: #b8bece; background: var(--surface); border-color: var(--line); }

.toast { border-radius: var(--r-md); box-shadow: var(--shadow-md); border: 0; }

.accordion-item { background: transparent; border: 1px solid var(--line); border-radius: var(--r-md) !important; margin-bottom: 10px; overflow: hidden; }
.accordion-button { background: var(--surface); color: var(--ink); font-weight: 600; font-size: 15px; padding: 16px 18px; box-shadow: none !important; }
.accordion-button:not(.collapsed) { background: var(--brand-soft); color: var(--brand-strong); }
.accordion-body { color: var(--ink-soft); font-size: 14px; padding: 4px 18px 18px; }

.swiper-pagination-bullet { background: var(--line-strong); opacity: 1; }
.swiper-pagination-bullet-active { background: var(--brand); }

/* ==========================================================================
   Marketing site
   ========================================================================== */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
}

.site-nav a.nav-link { color: var(--ink-soft); font-weight: 500; font-size: 14.4px; }
.site-nav a.nav-link:hover { color: var(--ink); }

.hero { padding: 76px 0 64px; }

.hero h1 {
    font-size: clamp(2.4rem, 5.2vw, 3.9rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
}

.hero p.lead { font-size: 17.5px; color: var(--ink-soft); max-width: 540px; }

.hero-visual {
    background: linear-gradient(155deg, #171a33 0%, #2e2a68 52%, #4338ca 100%);
    border-radius: var(--r-xl);
    padding: 30px;
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.glass-card {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--r-md);
    padding: 16px 18px;
    backdrop-filter: blur(6px);
}

.section { padding: 72px 0; }
.section--tint { background: var(--surface); border-block: 1px solid var(--line); }

.section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.035em; }

.feature {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 26px;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}

.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.feature__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 16px;
    margin-bottom: 16px;
}

.quote {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 22px;
    height: 100%;
}

.quote p { font-size: 14.2px; color: var(--ink-soft); margin: 0 0 16px; }

.cta-band {
    background: linear-gradient(140deg, #1b1e38 0%, #322c72 55%, #4f46e5 100%);
    border-radius: var(--r-xl);
    padding: 56px 40px;
    text-align: center;
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta-band p { color: rgba(255, 255, 255, .76); max-width: 560px; margin: 12px auto 26px; }

.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 28px; margin-top: 72px; }
.site-footer h6 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.site-footer a { color: var(--ink-soft); font-size: 14px; display: inline-block; padding: 4px 0; }
.site-footer a:hover { color: var(--brand); }

.social-dot {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--line);
    display: inline-grid;
    place-items: center;
    color: var(--ink-soft);
    margin-right: 8px;
}

.social-dot:hover { background: var(--brand-soft); color: var(--brand); border-color: transparent; }

/* Auth pages */

.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
.auth-wrap--split { grid-template-columns: 1fr 1fr; }

.auth-aside {
    background: linear-gradient(160deg, #14172c 0%, #2c2765 55%, #4338ca 100%);
    color: #fff;
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-aside h2 { color: #fff; font-size: 2rem; letter-spacing: -0.035em; }
.auth-aside p { color: rgba(255, 255, 255, .72); }

.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 440px; }

@media (max-width: 991.98px) {
    .auth-wrap--split { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
}

/* Utilities */

.stack-sm > * + * { margin-top: 8px; }
.stack > * + * { margin-top: 16px; }
.divider-y { height: 1px; background: var(--line); margin: 18px 0; }
.rounded-xl { border-radius: var(--r-lg) !important; }
.shadow-soft { box-shadow: var(--shadow-md) !important; }
.fs-13 { font-size: 13px !important; }
.fs-12 { font-size: 12.4px !important; }
.lh-tight { line-height: 1.35 !important; }
.max-w-sm { max-width: 520px; }
.max-w-md { max-width: 720px; }

/* Branding ---------------------------------------------------------------- */

/* Wide logos sit inline instead of inside the square mark. */
.brand-logo {
    height: 30px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    display: block;
}

.auth-aside .brand-logo { max-width: 200px; }

/* Logo above the auth card — the only branding on screens under 992px. */
.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 26px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 19px;
    color: var(--ink);
    text-decoration: none;
}

.auth-brand:hover { color: var(--ink); }

.auth-brand img {
    height: 46px;
    width: auto;
    max-width: 230px;
    object-fit: contain;
}

@media (max-width: 575.98px) {
    .auth-brand img { height: 38px; max-width: 190px; }
}
