:root {
    --ink: #101827;
    --muted: #667085;
    --line: #e6ebf3;
    --paper: #ffffff;
    --soft: #f4f7fb;
    --primary: #5b3df5;
    --primary-dark: #322185;
    --cyan: #0ea5e9;
    --green: #11b981;
    --orange: #f59e0b;
    --rose: #f43f5e;
    --shadow: 0 22px 60px rgba(28, 38, 68, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--soft);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.top-strip {
    color: #dce5ff;
    background: #111827;
    font-size: 13px;
}

.strip-grid {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.strip-grid span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.main-nav {
    position: sticky;
    z-index: 40;
    top: 0;
    border-bottom: 1px solid rgba(230, 235, 243, 0.9);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
}

.nav-grid {
    display: grid;
    min-height: 82px;
    align-items: center;
    grid-template-columns: auto 1fr auto;
    gap: 26px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #fff;
    border-radius: 16px;
    background: linear-gradient(135deg, #5b3df5, #0ea5e9);
    box-shadow: 0 14px 32px rgba(91, 61, 245, 0.25);
    font-weight: 900;
}

.brand-link strong {
    display: block;
    font-family: Poppins, sans-serif;
    font-size: 18px;
    line-height: 1;
}

.brand-link small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    color: #41516d;
    font-size: 14px;
    font-weight: 700;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    transition: 0.22s ease;
}

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

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #5b3df5, #7c3aed);
    box-shadow: 0 14px 28px rgba(91, 61, 245, 0.28);
}

.btn-light {
    color: var(--ink);
    border-color: var(--line);
    background: #fff;
}

.btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.12);
}

.btn-large {
    min-height: 52px;
    padding-inline: 22px;
}

.btn-full {
    width: 100%;
}

.hero-section {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.55), transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(245, 158, 11, 0.34), transparent 24%),
        linear-gradient(135deg, #111827 0%, #22205e 42%, #5b3df5 100%);
}

.hero-slider {
    position: relative;
    min-height: 650px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transform: translateX(34px);
    transition: 0.55s ease;
}

.hero-slide.active {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

.hero-grid {
    display: grid;
    align-items: center;
    grid-template-columns: 1.04fr 0.96fr;
    gap: 54px;
    padding: 82px 0 110px;
}

.eyebrow,
.section-kicker,
.section-heading span {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 8px 12px;
    color: #4230c9;
    border-radius: 999px;
    background: #eef2ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy .eyebrow {
    color: #c7d2fe;
    background: rgba(255, 255, 255, 0.13);
}

.hero-copy h1 {
    max-width: 760px;
    margin: 18px 0;
    font-family: Poppins, sans-serif;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 0.96;
    letter-spacing: 0;
}

.hero-copy p {
    max-width: 630px;
    margin: 0;
    color: #d9e6ff;
    font-size: 18px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-visual {
    min-height: 420px;
}

.device-shell {
    max-width: 520px;
    margin-left: auto;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(20px);
}

.device-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 16px;
}

.device-toolbar span {
    width: 12px;
    height: 12px;
    border-radius: 99px;
    background: #fff;
    opacity: 0.45;
}

.device-toolbar b {
    margin-left: auto;
    color: #e6edff;
    font-size: 12px;
}

.wallet-card {
    padding: 26px;
    border-radius: 24px;
    background: linear-gradient(135deg, #10b981, #0ea5e9);
}

.wallet-card small,
.wallet-card em {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    font-style: normal;
}

.wallet-card strong {
    display: block;
    margin: 10px 0;
    font-family: Poppins, sans-serif;
    font-size: 36px;
}

.service-grid-mini {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.service-grid-mini span,
.flow-board span,
.brand-stack div {
    display: flex;
    min-height: 74px;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.13);
    font-weight: 800;
}

.flow-board,
.brand-stack {
    display: grid;
    gap: 18px;
    max-width: 520px;
    margin-left: auto;
    padding: 28px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(20px);
}

.flow-board i {
    justify-self: center;
    color: #fbbf24;
}

.brand-stack div:nth-child(1) { background: rgba(14, 165, 233, 0.2); }
.brand-stack div:nth-child(2) { background: rgba(16, 185, 129, 0.2); }
.brand-stack div:nth-child(3) { background: rgba(245, 158, 11, 0.2); }
.brand-stack div:nth-child(4) { background: rgba(244, 63, 94, 0.2); }

.slider-controls {
    position: absolute;
    left: 50%;
    bottom: 36px;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.slider-controls button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.slider-controls button.active {
    width: 36px;
    background: #fff;
}

.stats-section {
    transform: translateY(-36px);
}

.stats-grid {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--paper);
    box-shadow: var(--shadow);
    grid-template-columns: repeat(4, 1fr);
}

.stats-grid div {
    padding: 28px;
    border-right: 1px solid var(--line);
}

.stats-grid div:last-child {
    border-right: 0;
}

.stats-grid strong {
    display: block;
    color: var(--primary);
    font-family: Poppins, sans-serif;
    font-size: 32px;
}

.stats-grid span {
    color: var(--muted);
    font-weight: 700;
}

.section {
    padding: 70px 0;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-heading h2,
.platform-grid h2,
.register-grid h2 {
    margin: 16px 0 10px;
    font-family: Poppins, sans-serif;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: 0;
}

.section-heading p,
.platform-grid p,
.register-grid p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.services-grid,
.api-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.service-card,
.api-card,
.platform-card,
.register-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--paper);
    box-shadow: 0 12px 30px rgba(28, 38, 68, 0.06);
}

.service-card {
    padding: 24px;
}

.service-card i,
.api-card i {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: #fff;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
}

.service-card:nth-child(3n) i { background: linear-gradient(135deg, var(--green), var(--cyan)); }
.service-card:nth-child(4n) i { background: linear-gradient(135deg, var(--orange), var(--rose)); }

.service-card h3,
.api-card h3 {
    margin: 18px 0 8px;
    font-family: Poppins, sans-serif;
    font-size: 18px;
}

.service-card p,
.api-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.platform-section {
    background:
        linear-gradient(135deg, rgba(91, 61, 245, 0.09), rgba(14, 165, 233, 0.09)),
        #fff;
}

.platform-grid,
.register-grid {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr 0.84fr;
    gap: 34px;
}

.feature-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.feature-list span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #34435d;
    font-weight: 800;
}

.feature-list i {
    color: var(--green);
}

.platform-card {
    padding: 18px;
}

.timeline-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
}

.timeline-row:last-child {
    border-bottom: 0;
}

.timeline-row b {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #fff;
    border-radius: 16px;
    background: var(--primary);
}

.timeline-row span {
    font-weight: 800;
}

.api-section {
    background: #0f172a;
}

.api-grid {
    grid-template-columns: repeat(3, 1fr);
}

.api-card {
    padding: 30px;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.api-card p {
    color: #cbd5e1;
}

.register-card {
    display: grid;
    gap: 14px;
    padding: 24px;
}

.register-card small {
    color: var(--muted);
    line-height: 1.6;
}

.site-footer {
    color: #d6deef;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 32px;
    padding: 56px 0;
}

.footer-brand .brand-mark {
    box-shadow: none;
}

.site-footer p,
.site-footer span,
.site-footer a {
    color: #aebbd0;
}

.site-footer h4 {
    margin: 0 0 16px;
    color: #fff;
    font-family: Poppins, sans-serif;
}

.site-footer a,
.site-footer span {
    display: block;
    margin-bottom: 10px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

@media (max-width: 1000px) {
    .nav-grid {
        grid-template-columns: auto auto;
    }

    .mobile-menu-btn {
        display: block;
        justify-self: end;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .nav-links.open {
        display: grid;
        grid-column: 1 / -1;
        justify-content: stretch;
        gap: 0;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: #fff;
    }

    .nav-links.open a {
        padding: 12px;
    }

    .hero-grid,
    .platform-grid,
    .register-grid {
        grid-template-columns: 1fr;
    }

    .device-shell,
    .flow-board,
    .brand-stack {
        margin-left: 0;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .api-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .top-strip {
        display: none;
    }

    .hero-slider {
        min-height: 760px;
    }

    .hero-grid {
        padding-top: 48px;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .services-grid,
    .stats-grid,
    .service-grid-mini {
        grid-template-columns: 1fr;
    }

    .stats-section {
        transform: none;
        padding-top: 20px;
    }
}


/* Dynamic branding / admin-managed landing sliders */
.brand-logo-image{
    width:48px;height:48px;border-radius:12px;display:grid;place-items:center;
    background:#fff;border:1px solid rgba(15,23,42,.08);overflow:hidden
}
.brand-logo-image img{width:100%;height:100%;object-fit:contain;padding:3px}
.brand-image-slide{
    position:relative;
    background-image:var(--brand-slide-image);
    background-size:cover;
    background-position:center;
    isolation:isolate;
}
.brand-image-slide .brand-slide-overlay{
    position:absolute;inset:0;z-index:-1;
    background:linear-gradient(90deg,rgba(8,15,35,.88) 0%,rgba(22,30,65,.70) 48%,rgba(34,38,90,.30) 100%);
}
.brand-image-slide .hero-copy{color:#fff;max-width:720px}
.brand-image-slide .hero-copy h1,
.brand-image-slide .hero-copy p{color:#fff}
.brand-image-slide .eyebrow{
    color:#fff;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22)
}
