/* ============ Header ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 248, 252, 0.78);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease),
        box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px -18px rgba(11, 21, 48, 0.5);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: 4.6rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.brand__mark {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 11px;
    background: var(--surface);
    padding: 3px;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--line);
}

.brand__name {
    font-size: 1.16rem;
}

.brand__name b {
    color: var(--brand);
    font-weight: 800;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav a {
    position: relative;
    padding: 0.5rem 0.9rem;
    border-radius: var(--r-pill);
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--ink-soft);
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav a:hover {
    color: var(--brand-strong);
    background: var(--brand-50);
}

.nav a.is-active {
    color: var(--brand-strong);
    background: var(--brand-50);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 12px;
    color: var(--ink);
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xs);
}

/* Mobile drawer */
.mobile-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(86vw, 22rem);
    background: var(--surface);
    z-index: 90;
    transform: translateX(100%);
    transition: transform 0.42s var(--ease);
    box-shadow: -30px 0 60px -30px rgba(11, 21, 48, 0.4);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mobile-drawer.is-open {
    transform: translateX(0);
}

.mobile-drawer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.mobile-drawer a.m-link {
    padding: 0.85rem 1rem;
    border-radius: var(--r-sm);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.mobile-drawer a.m-link:hover,
.mobile-drawer a.m-link.is-active {
    background: var(--brand-50);
    color: var(--brand-strong);
}

.mobile-drawer .btn {
    margin-top: 1rem;
    justify-content: center;
}

.icon-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface-muted);
    color: var(--ink);
}

.scrim {
    position: fixed;
    inset: 0;
    background: rgba(11, 21, 48, 0.42);
    backdrop-filter: blur(2px);
    z-index: 80;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

.scrim.is-open {
    opacity: 1;
    visibility: visible;
}

/* ============ Hero ============ */
.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 7rem);
    background:
        radial-gradient(60rem 40rem at 12% -10%, rgba(37, 99, 235, 0.13), transparent 60%),
        radial-gradient(46rem 34rem at 100% 0%, rgba(16, 185, 129, 0.12), transparent 55%),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.hero__copy {
    min-width: 0;
}

.hero__title {
    margin-top: 1.3rem;
}

.hero__lead {
    margin-top: 1.4rem;
    font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
    color: var(--ink-muted);
    max-width: 34rem;
}

.hero__cta {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.hero__trust {
    margin-top: 2.2rem;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex-wrap: wrap;
    color: var(--ink-muted);
    font-size: 0.95rem;
}

.hero__trust .avatars {
    display: flex;
}

.hero__trust .avatars span {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2.5px solid var(--surface);
    margin-left: -12px;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    box-shadow: var(--shadow-xs);
}

.hero__trust .avatars span:first-child {
    margin-left: 0;
}

.hero__trust b {
    color: var(--ink);
}

.hero__stars {
    display: inline-flex;
    gap: 2px;
    align-items: center;
    color: var(--spark);
}

/* Hero visual (mini dashboard) */
.hero__visual {
    position: relative;
}

.hero-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    padding: 1.4rem;
    z-index: 2;
}

.hero-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line-soft);
}

.hero-card__head .title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    color: var(--ink);
}

.hero-card__badge {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-strong);
    background: var(--accent-50);
    border: 1px solid #bbf7d0;
    padding: 0.25rem 0.7rem;
    border-radius: var(--r-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.hero-rows {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 1rem;
}

.hero-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0.8rem;
    border-radius: var(--r-sm);
    background: var(--surface-muted);
    border: 1px solid var(--line-soft);
}

.hero-row .mp {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
    flex-shrink: 0;
}

.hero-row .mp-wb {
    background: linear-gradient(135deg, #cb11ab, #7c2ae8);
}
.hero-row .mp-oz {
    background: linear-gradient(135deg, #1a6dff, #005bff);
}
.hero-row .mp-ym {
    background: linear-gradient(135deg, #ffcc00, #fc3f1d);
    color: #1a1a1a;
}

.hero-row .grow {
    flex: 1;
    min-width: 0;
}

.hero-row .grow .lbl {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
}

.hero-row .grow .sub {
    display: block;
    font-size: 0.78rem;
    color: var(--ink-faint);
}

.hero-row .amount {
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.hero-card__foot {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-card__foot .label {
    font-size: 0.85rem;
    color: var(--ink-muted);
}

.hero-card__foot .value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.hero-chip {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    padding: 0.7rem 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    color: var(--ink);
    font-size: 0.9rem;
    z-index: 3;
}

.hero-chip .ic {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    color: #fff;
}

.hero-chip--tl {
    top: -1.1rem;
    left: -1.3rem;
    animation: float 6s var(--ease) infinite;
}

.hero-chip--br {
    bottom: -1.2rem;
    right: -1rem;
    animation: float 7s var(--ease) infinite reverse;
}

.hero__blob {
    position: absolute;
    inset: -8% -6% -8% 4%;
    background: linear-gradient(150deg, rgba(37, 99, 235, 0.16), rgba(16, 185, 129, 0.14));
    filter: blur(40px);
    border-radius: 40% 60% 62% 38% / 49% 41% 59% 51%;
    z-index: 0;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ============ Logos strip ============ */
.logos {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.logos__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(1rem, 4vw, 3rem);
    padding-block: 1.6rem;
}

.logos__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-faint);
    letter-spacing: 0.02em;
}

.mp-pill {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink-soft);
    font-size: 1.05rem;
    opacity: 0.85;
    transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
    white-space: nowrap;
}

.mp-pill:hover {
    opacity: 1;
    color: var(--ink);
}

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

/* ============ Footer ============ */
.site-footer {
    background:
        radial-gradient(50rem 30rem at 80% -20%, rgba(37, 99, 235, 0.22), transparent 60%),
        var(--brand-night);
    color: #cbd5e1;
    padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: start;
}

.site-footer h3 {
    color: #fff;
    font-size: 1.55rem;
    margin-bottom: 0.85rem;
}

.site-footer p {
    color: #94a3b8;
    margin-bottom: 1.4rem;
    max-width: 22rem;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
    font-weight: 700;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.footer-contact a,
.footer-contact span {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #cbd5e1;
    transition: color 0.2s var(--ease);
}

.footer-contact a:hover {
    color: #fff;
}

.footer-contact .ic {
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: 0.7rem;
}

.footer-social a {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    transition: transform 0.25s var(--ease), background 0.25s var(--ease),
        color 0.25s var(--ease);
}

.footer-social a:hover {
    transform: translateY(-3px);
    background: var(--brand);
    color: #fff;
    border-color: transparent;
}

.footer-social svg {
    width: 24px;
    height: 24px;
}

.footer-bottom {
    margin-top: clamp(2.2rem, 5vw, 3.2rem);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #94a3b8;
}

.footer-bottom .brand__name {
    color: #fff;
    font-size: 1rem;
}

/* ============ Reveal animation ============ */
.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    will-change: opacity, transform;
}

.js .reveal.is-in {
    opacity: 1;
    transform: none;
}

.reveal[data-delay="1"] {
    transition-delay: 0.08s;
}
.reveal[data-delay="2"] {
    transition-delay: 0.16s;
}
.reveal[data-delay="3"] {
    transition-delay: 0.24s;
}
.reveal[data-delay="4"] {
    transition-delay: 0.32s;
}
.reveal[data-delay="5"] {
    transition-delay: 0.4s;
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
    .hero__grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero__visual {
        max-width: 30rem;
        margin-inline: auto;
        width: 100%;
        min-width: 0;
        order: 2;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-col--lead {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    .header-actions .btn {
        display: none;
    }
    .menu-toggle {
        display: inline-flex;
    }
}

@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-chip--tl {
        left: -0.3rem;
        padding: 0.55rem 0.7rem;
        font-size: 0.82rem;
    }
    .hero-chip--br {
        right: -0.3rem;
        padding: 0.55rem 0.7rem;
        font-size: 0.82rem;
    }
    .hero-card {
        padding: 1.05rem;
    }
    .hero-card__head .title {
        font-size: 0.95rem;
        gap: 0.4rem;
    }
    .hero-card__badge {
        font-size: 0.68rem;
        padding: 0.2rem 0.5rem;
    }
    .hero-row {
        padding: 0.6rem 0.65rem;
        gap: 0.6rem;
    }
    .hero-row .mp {
        width: 34px;
        height: 34px;
    }
    .hero-row .grow .lbl,
    .hero-row .grow .sub {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .hero-row .amount {
        font-size: 0.9rem;
    }
    .hero-card__foot .value {
        font-size: 1.15rem;
    }
}
