/* ================================================================
   PayFusion — Homepage Stylesheet
   By ACBIZ GLOBAL
   Fonts: Syne (display) + DM Sans (body)
   Design inspiration: Stripe / Adyen / Airwallex / Checkout.com —
   restrained gradient mesh, confident type scale, live data bar.
================================================================ */

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

/* Design tokens (colors, type, radius, spacing) now live in design-system.css, loaded before this file in every layout. */
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--dark);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
}

/* ── Utilities ── */
.gradient-text {
    background: linear-gradient(135deg, #00e0a8 0%, #22b8ff 55%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section-label {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 14px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}
.section-sub {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 56px;
}

/* ══════════ NAV ══════════ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    padding: 0;
    transition: background .3s, box-shadow .3s, border-color .3s;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(6, 13, 26, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: rgba(255,255,255,0.07);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 18px 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-size: 19px; font-weight: 700;
    color: var(--text); text-decoration: none; letter-spacing: -0.01em;
}
.logo-icon { color: var(--brand); font-size: 20px; }
.nav-logo strong { color: var(--brand); font-weight: 800; }
.nav-links { display: flex; gap: 34px; }
.nav-links a {
    color: var(--text-muted); text-decoration: none; font-size: 14.5px; font-weight: 500;
    transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.btn-nav-ghost, .btn-nav-outline, .btn-nav-solid {
    font-family: var(--font-body); font-size: 14px; font-weight: 600;
    padding: 9px 18px; border-radius: 9px; text-decoration: none;
    transition: all .2s; display: inline-flex; align-items: center;
}
.btn-nav-ghost { color: var(--text-muted); }
.btn-nav-ghost:hover { color: var(--text); }
.btn-nav-outline { color: var(--text); border: 1px solid rgba(255,255,255,0.14); }
.btn-nav-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-nav-solid { background: var(--brand); color: #04140f; font-weight: 700; }
.btn-nav-solid:hover { background: #00e0a8; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,200,150,0.25); }

.nav-burger {
    display: none; flex-direction: column; gap: 5px; background: none; border: none;
    cursor: pointer; padding: 8px; z-index: 210;
}
.nav-burger span { width: 22px; height: 2px; background: var(--text); transition: all .3s; border-radius: 2px; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
    display: none; position: fixed; top: 0; right: -100%; width: min(320px, 84vw); height: 100vh;
    background: var(--dark-2); border-left: 1px solid rgba(255,255,255,0.08);
    flex-direction: column; padding: 90px 28px 28px; gap: 6px; transition: right .3s ease; z-index: 205;
    box-shadow: -20px 0 60px rgba(0,0,0,0.4);
}
.nav-mobile.open { right: 0; }
.nav-mobile a {
    color: var(--text); text-decoration: none; font-size: 16px; font-weight: 500; padding: 13px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-mobile .mobile-cta {
    margin-top: 14px; background: var(--brand); color: #04140f; font-weight: 700; text-align: center;
    padding: 13px; border-radius: 10px; border-bottom: none;
}

/* ══════════ HERO ══════════ */
.hero { position: relative; padding: 168px 24px 100px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.mesh { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.mesh-1 { width: 560px; height: 560px; top: -180px; left: -120px; background: radial-gradient(circle, #00c896, transparent 70%); }
.mesh-2 { width: 480px; height: 480px; top: -60px; right: -160px; background: radial-gradient(circle, #2299ff, transparent 70%); opacity: 0.4; }
.mesh-3 { width: 420px; height: 420px; bottom: -220px; left: 30%; background: radial-gradient(circle, #a78bfa, transparent 70%); opacity: 0.3; }
.grid-lines {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

.hero-inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; text-align: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(0,200,150,0.09); border: 1px solid rgba(0,200,150,0.25);
    color: var(--brand); font-size: 13px; font-weight: 600;
    padding: 7px 16px; border-radius: 99px; margin-bottom: 28px;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px rgba(0,200,150,0.2); animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-headline {
    font-family: var(--font-display); font-weight: 800;
    font-size: clamp(40px, 6.4vw, 74px); line-height: 1.04; letter-spacing: -0.02em;
    margin-bottom: 26px;
}
.hero-sub {
    font-size: clamp(16px, 1.7vw, 19px); color: var(--text-muted);
    max-width: 620px; margin: 0 auto 38px;
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

.btn-hero-primary, .btn-hero-ghost {
    font-family: var(--font-body); font-size: 15.5px; font-weight: 700;
    padding: 14px 28px; border-radius: 11px; text-decoration: none;
    display: inline-flex; align-items: center; gap: 9px; transition: all .2s;
}
.btn-hero-primary { background: var(--brand); color: #04140f; box-shadow: 0 10px 30px rgba(0,200,150,0.28); }
.btn-hero-primary:hover { background: #00e0a8; transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,200,150,0.36); }
.btn-hero-ghost { color: var(--text); border: 1px solid rgba(255,255,255,0.14); }
.btn-hero-ghost:hover { border-color: rgba(255,255,255,0.32); background: rgba(255,255,255,0.04); }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-ghost-light:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.08); }

.hero-trust {
    display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap;
    font-size: 13.5px; color: var(--text-muted);
}

/* ── Dashboard mockup ── */
.hero-mockup { position: relative; z-index: 1; max-width: 1000px; margin: 64px auto 0; perspective: 1400px; }
.mockup-window {
    background: var(--dark-2); border: 1px solid rgba(255,255,255,0.09); border-radius: 16px;
    overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.03);
    transform: rotateX(3deg);
}
.mockup-bar {
    display: flex; align-items: center; gap: 8px; padding: 13px 18px;
    background: var(--dark-3); border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.mockup-url {
    margin: 0 auto; font-size: 12px; color: var(--text-muted); font-family: 'SF Mono','Fira Code',monospace;
    background: rgba(255,255,255,0.04); padding: 4px 14px; border-radius: 6px;
}
.mockup-body { display: flex; min-height: 420px; }
.m-sidebar {
    width: 190px; flex-shrink: 0; background: rgba(255,255,255,0.015);
    border-right: 1px solid rgba(255,255,255,0.06); padding: 20px 14px;
}
.m-logo { font-family: var(--font-display); font-weight: 700; font-size: 14px; margin-bottom: 22px; color: var(--brand); }
.m-nav-item {
    font-size: 12.5px; color: var(--text-muted); padding: 9px 12px; border-radius: 8px; margin-bottom: 3px;
}
.m-nav-item.active { background: rgba(0,200,150,0.1); color: var(--brand); font-weight: 600; }
.m-content { flex: 1; padding: 26px 30px; min-width: 0; }
.m-header { margin-bottom: 22px; }
.m-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin-bottom: 3px; }
.m-subtitle { font-size: 12.5px; color: var(--text-muted); }
.m-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.m-stat {
    background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 11px; padding: 14px 16px;
}
.m-stat-label { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.m-stat-val { font-family: var(--font-display); font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.m-stat-tag { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; display: inline-block; }
.m-stat-tag.up { background: rgba(0,200,150,0.12); color: var(--brand); }
.m-stat-tag.neutral { background: rgba(255,255,255,0.07); color: var(--text-muted); }
.m-chart-area {
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 11px; padding: 18px 20px; margin-bottom: 20px;
}
.m-chart-label { font-size: 11.5px; color: var(--text-muted); margin-bottom: 16px; }
.m-bars { display: flex; align-items: flex-end; gap: 10px; height: 110px; }
.m-bar {
    flex: 1; background: linear-gradient(180deg, rgba(0,200,150,0.5), rgba(0,200,150,0.08));
    border-radius: 5px 5px 0 0; position: relative; min-height: 6px;
}
.m-bar.active { background: linear-gradient(180deg, #00e0a8, rgba(0,200,150,0.15)); }
.m-bar span { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 9.5px; color: var(--text-muted); }
.m-gateways { }
.m-gw-label { font-size: 11.5px; color: var(--text-muted); margin-bottom: 12px; }
.m-gw-list { display: flex; flex-wrap: wrap; gap: 8px; }
.m-gw {
    font-size: 12px; font-weight: 600; padding: 7px 13px; border-radius: 8px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
    color: var(--text-muted); display: flex; align-items: center; gap: 7px;
}
.m-gw.active { color: var(--text); border-color: rgba(0,200,150,0.25); }
.gw-status { font-size: 9.5px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: rgba(0,200,150,0.15); color: var(--brand); }
.gw-status.off { background: rgba(255,255,255,0.07); color: var(--text-muted); }

/* ══════════ LIVE STATS BAR (DB-driven) ══════════ */
.stats-bar {
    position: relative; z-index: 1;
    border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06);
    background: linear-gradient(180deg, rgba(0,200,150,0.03), transparent);
    padding: 44px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-block {
    text-align: center; opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s;
}
.stat-block.visible { opacity: 1; transform: none; }
.stat-val {
    font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); font-weight: 800;
    letter-spacing: -0.01em; margin-bottom: 6px;
}
.stat-plus { color: var(--brand); }
.stat-label { font-size: 13px; color: var(--text-muted); }

/* ══════════ LOGOS / GATEWAYS (DB-driven) ══════════ */
.logos-strip { padding: 56px 0 60px; position: relative; z-index: 1; }
.logos-inner { max-width: 1000px; margin: 0 auto; padding: 0 24px; text-align: center; }
.logos-label { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.logos-track { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.logo-chip {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-weight: 700; font-size: 14.5px;
    padding: 11px 20px; border-radius: 11px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    color: var(--text); transition: all .2s;
}
.logo-chip:hover { border-color: var(--gw-color, var(--brand)); color: var(--gw-color, var(--brand)); transform: translateY(-2px); }
.logo-chip-icon { font-size: 16px; line-height: 1; }
.logo-chip.more { color: var(--text-muted); font-weight: 500; border-style: dashed; }

/* ══════════ FEATURES ══════════ */
.features { padding: 70px 0 110px; position: relative; z-index: 1; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat-card {
    background: var(--dark-2); border: 1px solid rgba(255,255,255,0.07); border-radius: 16px;
    padding: 28px; transition: border-color .25s, transform .25s, box-shadow .25s;
    opacity: 0; transform: translateY(16px);
}
.feat-card.visible { opacity: 1; transform: none; transition: border-color .25s, transform .6s, box-shadow .25s, opacity .6s; }
.feat-card:hover { border-color: rgba(0,200,150,0.28); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0,0,0,0.3); }
.feat-large { grid-column: span 2; }
.feat-right { }
.feat-icon {
    width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 21px; background: rgba(0,200,150,0.1); margin-bottom: 18px;
}
.feat-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feat-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.65; }
.feat-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.feat-tags span {
    font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 99px;
    background: rgba(0,200,150,0.09); color: var(--brand); border: 1px solid rgba(0,200,150,0.2);
}
.feat-code {
    margin-top: 20px; background: #050a14; border: 1px solid rgba(255,255,255,0.08);
    border-radius: 11px; overflow: hidden;
}
.code-bar {
    display: flex; align-items: center; gap: 7px; padding: 10px 14px;
    background: rgba(255,255,255,0.025); border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 11.5px; color: var(--text-muted);
}
.cd { width: 8px; height: 8px; border-radius: 50%; }
.cd.r { background: #ff5f57; } .cd.y { background: #febc2e; } .cd.g { background: #28c840; }
.feat-code pre { padding: 16px 18px; overflow-x: auto; }
.feat-code code { font-family: 'SF Mono','Fira Code',monospace; font-size: 12.5px; color: #7ee6c4; line-height: 1.7; }

/* ══════════ HOW IT WORKS ══════════ */
.how { padding: 40px 0 110px; position: relative; z-index: 1; }
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; gap: 20px; }
.step {
    opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s;
}
.step.visible { opacity: 1; transform: none; }
.step-num {
    font-family: var(--font-display); font-size: 34px; font-weight: 800;
    color: transparent; -webkit-text-stroke: 1.5px rgba(0,200,150,0.4); margin-bottom: 14px;
}
.step-body h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step-body p { font-size: 14.5px; color: var(--text-muted); line-height: 1.65; }
.step-divider { color: rgba(255,255,255,0.15); font-size: 22px; padding-top: 8px; }

/* ══════════ COMPLIANCE ══════════ */
.compliance { padding: 0 0 110px; position: relative; z-index: 1; }
.compliance-card {
    display: flex; gap: 36px; align-items: flex-start;
    background: linear-gradient(135deg, rgba(0,200,150,0.08), rgba(34,153,255,0.04));
    border: 1px solid rgba(0,200,150,0.2); border-radius: 22px; padding: 48px;
    opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s;
}
.compliance-card.visible { opacity: 1; transform: none; }
.compliance-icon { font-size: 44px; flex-shrink: 0; }
.compliance-body h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.compliance-body p { font-size: 15.5px; color: var(--text-muted); line-height: 1.7; margin-bottom: 22px; max-width: 640px; }
.compliance-body strong { color: var(--text); }
.compliance-list { display: flex; flex-direction: column; gap: 11px; list-style: none; }
.compliance-list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text); }
.compliance-list li span { color: var(--brand); font-weight: 700; }

/* ══════════ CTA ══════════ */
.cta-section { padding: 0 0 120px; position: relative; z-index: 1; }
.cta-card {
    position: relative; overflow: hidden; text-align: center;
    background: linear-gradient(135deg, #04241b 0%, #062d2f 55%, #051c33 100%);
    border-radius: 26px; padding: 76px 32px; border: 1px solid rgba(0,200,150,0.25);
}
.orb { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.orb-cta-1 { width: 340px; height: 340px; top: -140px; left: -80px; background: radial-gradient(circle, rgba(0,200,150,0.5), transparent 70%); }
.orb-cta-2 { width: 300px; height: 300px; bottom: -160px; right: -60px; background: radial-gradient(circle, rgba(34,153,255,0.4), transparent 70%); }
.cta-card h2 { position: relative; font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 14px; }
.cta-card p { position: relative; font-size: 16.5px; color: rgba(255,255,255,0.75); max-width: 480px; margin: 0 auto 32px; }
.cta-btns { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ══════════ FOOTER ══════════ */
.footer-main { border-top: 1px solid rgba(255,255,255,0.07); padding: 60px 0 0; position: relative; z-index: 1; }
.footer-inner {
    max-width: 1160px; margin: 0 auto; padding: 0 24px 48px;
    display: flex; justify-content: space-between; gap: 60px; flex-wrap: wrap;
}
.footer-brand { max-width: 280px; }
.footer-logo {
    display: flex; align-items: center; gap: 8px; font-family: var(--font-display);
    font-size: 18px; font-weight: 700; margin-bottom: 14px;
}
.footer-brand p { font-size: 13.5px; color: var(--text-muted); margin-bottom: 4px; }
.footer-by strong { color: var(--text); }
.footer-links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06); padding: 22px 24px;
    max-width: 1160px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: var(--text-muted);
}
.sandbox-badge { color: #fbbf24; font-weight: 600; }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-cta .btn-nav-ghost, .nav-cta .btn-nav-outline { display: none; }
    .nav-burger { display: flex; }
    .nav-mobile { display: flex; }

    .mockup-body { flex-direction: column; }
    .m-sidebar { width: 100%; display: flex; gap: 6px; overflow-x: auto; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); padding: 14px; }
    .m-logo { display: none; }
    .m-nav-item { white-space: nowrap; }
    .m-stats { grid-template-columns: 1fr 1fr; }

    .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
    .features-grid { grid-template-columns: 1fr; }
    .feat-large { grid-column: span 1; }
    .steps { grid-template-columns: 1fr; gap: 32px; }
    .step-divider { display: none; }
    .compliance-card { flex-direction: column; padding: 32px; }
}

@media (max-width: 560px) {
    .hero { padding: 128px 20px 70px; }
    .hero-trust { gap: 12px 16px; }
    .m-stats { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-inner { flex-direction: column; gap: 36px; }
    .footer-links { gap: 36px; }
}
