/* ============================================================
   FINT — Main Stylesheet
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Core palette — pulled from FINT logo blue */
    --navy:    #0f1c2e;         /* deeper, richer dark */
    --navy2:   #162440;         /* secondary dark surface */
    --navy3:   #1a2d4a;         /* card surface */
    --blue:    #5b9fc4;         /* matches logo pie chart */
    --blue2:   #4287ad;         /* hover / darker */
    --blue-dim: rgba(91,159,196,0.16);
    --white:   #eef2f7;         /* slightly cooler off-white */
    --text:    #c8d8e8;         /* body text — less harsh than white */
    --muted:   #7a96b0;         /* secondary text */
    --border:  rgba(91,159,196,0.14);
    --border2: rgba(91,159,196,0.28);
    --ff-head: 'Syne', sans-serif;
    --ff-body: 'DM Sans', sans-serif;
    --radius:  10px;
    --radius-lg: 16px;
}

html { scroll-behavior: smooth; }

body {
    background: var(--navy);
    color: var(--text);
    font-family: var(--ff-body);
    font-weight: 400;
    line-height: 1.65;
    overflow-x: hidden;
}

/* Subtle noise grain — adds texture, removes flatness */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.028'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* ── LAYOUT ── */
.wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

/* ── TYPOGRAPHY ── */
h1 {
    font-family: var(--ff-head);
    font-size: clamp(38px, 4.8vw, 62px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 20px;
}
h1 span { color: var(--blue); }

h2 {
    font-family: var(--ff-head);
    font-size: clamp(26px, 3.2vw, 42px);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -0.025em;
    color: var(--white);
    margin-bottom: 14px;
}
h2 span { color: var(--blue); }

h3 {
    font-family: var(--ff-head);
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

p { color: var(--text); }

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-family: var(--ff-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    cursor: pointer;
    text-decoration: none;
    transition: all .18s ease;
    white-space: nowrap;
    position: relative;
}
.btn-primary {
    background: var(--blue);
    color: #fff;
    border: 1px solid var(--blue);
    box-shadow: 0 1px 8px rgba(91,159,196,0.2), 0 0 0 0 rgba(91,159,196,0);
}
.btn-primary:hover {
    background: var(--blue2);
    border-color: var(--blue2);
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(91,159,196,0.3);
}
.btn-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-ghost {
    background: transparent;
    color: var(--blue);
    border: 1px solid rgba(91,159,196,0.4);
}
.btn-ghost:hover {
    background: var(--blue-dim);
    border-color: rgba(91,159,196,0.65);
    color: var(--white);
}

/* Nav CTA — pill */
.btn-nav {
    padding: 7px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: var(--blue);
    color: #fff !important;
    border: 1px solid var(--blue);
    box-shadow: 0 1px 8px rgba(91,159,196,0.22);
}
.btn-nav:hover {
    background: var(--blue2);
    border-color: var(--blue2);
    box-shadow: 0 3px 14px rgba(91,159,196,0.35);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 13px 30px;
    font-size: 15px;
    font-weight: 600;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(15,28,46,0.85);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 40px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--white);
}
.logo-mark {
    height: 34px;
    width: auto;
    display: block;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    font-size: 13.5px;
    font-weight: 400;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color .18s;
    position: relative;
}
.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 1px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}
.nav-links a:not(.btn-nav):hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); }

/* Mobile hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--muted);
    border-radius: 2px;
    transition: all .3s;
}

/* ── SECTIONS ── */
section { padding: 108px 0; }

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 18px;
}
.section-tag::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 1px;
    background: var(--blue);
    opacity: 0.7;
}

.section-sub {
    font-size: 16px;
    color: var(--muted);
    max-width: 560px;
    line-height: 1.75;
    margin-top: 8px;
}

/* ── CARDS ── */
.card {
    background: var(--navy3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: border-color .25s, transform .25s;
}
.card:hover {
    border-color: var(--border2);
    transform: translateY(-2px);
}

/* Footer logo spacing */
footer .logo { margin-bottom: 14px; display: inline-flex; }

/* ── FEATURE LIST ── */
.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
}
.feature-list li {
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    line-height: 1.5;
}
.feature-list li::before {
    content: '✓';
    color: var(--blue);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 13px;
}

/* ── PARTNER CHIPS ── */
.partner-chip {
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
    transition: border-color .2s, color .2s;
}
.partner-chip:hover { border-color: var(--border2); color: var(--text); }
.partner-chip.signed {
    background: rgba(91,159,196,0.08);
    border-color: rgba(91,159,196,0.28);
    color: var(--blue);
}
.partners-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

/* ── CTA BANNER ── */
.cta-banner {
    background: linear-gradient(130deg, rgba(91,159,196,0.1) 0%, rgba(91,159,196,0.03) 100%);
    border: 1px solid rgba(91,159,196,0.22);
    border-radius: 20px;
    padding: 60px 56px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(91,159,196,0.14) 0%, transparent 70%);
    pointer-events: none;
}
.cta-banner h2 { font-size: clamp(22px, 2.6vw, 34px); max-width: 460px; }
.cta-banner p { font-size: 15px; color: var(--muted); margin-top: 10px; max-width: 440px; }
.cta-banner-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    z-index: 1;
}

/* ── FOOTER ── */
footer {
    border-top: 1px solid var(--border);
    padding: 52px 0 36px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}
footer .tagline {
    font-size: 13px;
    color: var(--muted);
    margin-top: 10px;
    font-style: italic;
    letter-spacing: 0.01em;
}
footer h4 {
    font-family: var(--ff-head);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 18px;
    color: var(--muted);
}
footer a {
    display: block;
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color .18s;
}
footer a:hover { color: var(--white); }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p { font-size: 12px; color: var(--muted); }
.legal-text {
    font-size: 11px;
    color: rgba(122,150,176,0.55);
    line-height: 1.7;
    max-width: 560px;
    text-align: right;
}

/* ── SCROLL ANIMATIONS ── */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: none; }

.slide-in {
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.slide-in.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .cta-banner { grid-template-columns: 1fr; }
    .cta-banner-actions { align-items: flex-start; }
}

@media (max-width: 768px) {
    .wrap { padding: 0 24px; }
    section { padding: 80px 0; }

    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 66px; left: 0; right: 0;
        background: rgba(15,28,46,0.98);
        backdrop-filter: blur(16px);
        padding: 24px 32px 32px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
    }
    .nav-toggle { display: flex; }

    .cta-banner { padding: 36px 28px; }
    .cta-banner-actions { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .legal-text { text-align: left; }
}
