:root {
    --red: #EB5C5A;
    --red-soft: #fdeceb;
    --ink: #1c1c1e;
    --charcoal: #333334;
    --muted: #6d6d75;
    --line: #ececee;
    --band: #f6f7f9;
    --radius: 18px;
    --serif: "Playfair Display", Georgia, serif;
    --sans: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* safety net against stray horizontal overflow.
   `clip` rather than `hidden` — `hidden` would make body a scroll container and
   break the sticky header. */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}

img,
video,
canvas,
svg,
iframe {
    max-width: 100%;
}

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--charcoal);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

.nav {
    /* bootstrap ships its own .nav component (display:flex) — reset it here */
    display: block;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--ink);
}

.brand-badge {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
}

.brand-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    gap: 34px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-size: 14.5px;
    font-weight: 500;
    color: #4a4a50;
}

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 9px;
    background: none;
    border: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: var(--ink);
    transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    background: #fff;
}

.mobile-nav.open {
    display: block;
}

.mobile-nav .wrap {
    padding-top: 12px;
    padding-bottom: 20px;
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    color: #4a4a50;
}

.mobile-nav-cta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.mobile-nav-cta a,
.mobile-nav-cta .btn {
    padding: 12px 22px;
}

.mobile-nav-cta .nav-login {
    padding: 12px 0;
}

.nav-login {
    font-size: 14.5px;
    font-weight: 600;
    color: #4a4a50;
}

.nav-signup {
    padding: 9px 20px;
    font-size: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 40px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-red {
    background: var(--red);
    color: #fff;
    box-shadow: 0 8px 20px rgba(235, 92, 90, .28);
}

.btn-red:hover {
    box-shadow: 0 12px 26px rgba(235, 92, 90, .38);
}

.wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
}

footer {
    border-top: 1px solid var(--line);
    padding: 64px 0 40px;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 40px;
}

.foot-brand p {
    color: var(--muted);
    font-size: 14px;
    max-width: 280px;
    margin: 16px 0 0;
}

.foot-col h5 {
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #9a9aa2;
    margin: 0 0 16px;
    font-family: var(--sans);
    font-weight: 700;
}

.foot-col a {
    display: block;
    font-size: 14px;
    color: #55555c;
    margin-bottom: 11px;
}

.foot-col a:hover {
    color: var(--ink);
}

.foot-bottom {
    border-top: 1px solid var(--line);
    margin-top: 48px;
    padding-top: 24px;
    font-size: 13px;
    color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .foot-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    footer {
        padding: 48px 0 32px;
    }
}

@media (max-width: 560px) {
    .wrap {
        padding: 0 20px;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }

    .nav-cta {
        display: none;
    }

    .foot-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .foot-brand p {
        max-width: none;
    }

    .foot-bottom {
        margin-top: 32px;
    }
}