* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #101828;
}

.site-header {
    height: 78px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.92);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
}

.brand,
.footer-brand {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -1px;
    color: #0f172a;
}

.brand span,
.footer-brand span {
    color: #2563eb;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.top-nav a {
    text-decoration: none;
    color: #475467;
    font-weight: 700;
}

.login-btn {
    background: #0f172a;
    color: #fff !important;
    padding: 11px 20px;
    border-radius: 999px;
}

.hero {
    min-height: 720px;
    padding: 90px 7%;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
    background:
        radial-gradient(circle at 82% 18%, rgba(37,99,235,0.22), transparent 34%),
        radial-gradient(circle at 5% 20%, rgba(14,165,233,0.12), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
}

.eyebrow {
    color: #2563eb;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1.3px;
}

.hero h1 {
    font-size: 64px;
    line-height: 1.02;
    letter-spacing: -2.5px;
    margin: 14px 0 24px;
}

.intro {
    font-size: 21px;
    line-height: 1.65;
    color: #475467;
    max-width: 700px;
}

.hero-actions {
    margin-top: 34px;
    display: flex;
    gap: 16px;
}

.primary-btn,
.secondary-btn {
    display: inline-block;
    padding: 15px 24px;
    border-radius: 13px;
    text-decoration: none;
    font-weight: 900;
}

.primary-btn {
    background: #2563eb;
    color: white;
    box-shadow: 0 15px 35px rgba(37,99,235,0.28);
}

.secondary-btn {
    background: white;
    color: #0f172a;
    border: 1px solid #d0d5dd;
}

.hero-graphic {
    min-height: 470px;
    position: relative;
    border-radius: 34px;
    background:
        linear-gradient(145deg, #0f172a, #1e293b);
    overflow: hidden;
    box-shadow: 0 35px 90px rgba(15,23,42,0.28);
}

.hero-graphic:before {
    content: "";
    position: absolute;
    inset: 38px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 28px;
}

.hero-graphic:after {
    content: "";
    position: absolute;
    width: 290px;
    height: 290px;
    border-radius: 50%;
    background: rgba(37,99,235,0.35);
    filter: blur(20px);
    right: -80px;
    top: -70px;
}

.payment-card {
    position: absolute;
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 24px 55px rgba(0,0,0,0.22);
}

.main-card {
    width: 330px;
    left: 55px;
    top: 95px;
    z-index: 2;
}

.status-pill {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.main-card h3 {
    font-size: 27px;
    margin: 22px 0 8px;
}

.main-card p {
    color: #667085;
}

.amount {
    margin-top: 24px;
    font-size: 38px;
    font-weight: 900;
    color: #0f172a;
}

.amount small {
    font-size: 15px;
    color: #667085;
}

.floating-card {
    position: absolute;
    background: rgba(255,255,255,0.12);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(12px);
    padding: 18px 22px;
    border-radius: 18px;
    font-weight: 900;
    z-index: 3;
}

.card-one {
    right: 50px;
    top: 70px;
}

.card-two {
    right: 80px;
    bottom: 130px;
}

.card-three {
    left: 75px;
    bottom: 60px;
}

.stats-strip {
    margin: -45px 7% 0;
    position: relative;
    z-index: 5;
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 22px 60px rgba(15,23,42,0.08);
    border-radius: 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
}

.stats-strip div {
    padding: 30px;
    border-right: 1px solid #e5e7eb;
}

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

.stats-strip strong {
    display: block;
    font-size: 34px;
    color: #2563eb;
}

.stats-strip span {
    display: block;
    margin-top: 6px;
    color: #667085;
    font-weight: 700;
}

.section {
    padding: 95px 7%;
    background: white;
}

.alt-section {
    background: #f8fafc;
}

.section-heading {
    max-width: 820px;
    margin-bottom: 38px;
}

.section-heading h2 {
    font-size: 44px;
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin: 10px 0 14px;
}

.section-heading p {
    color: #667085;
    font-size: 18px;
    line-height: 1.65;
}

.platform-card {
    background: #0f172a;
    color: white;
    padding: 42px;
    border-radius: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    align-items: center;
    box-shadow: 0 25px 70px rgba(15,23,42,0.2);
}

.platform-card h3 {
    font-size: 32px;
    margin-top: 0;
}

.platform-card p {
    color: #dbeafe;
    line-height: 1.7;
}

.mini-flow {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    padding: 26px;
    border-radius: 22px;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.mini-flow span {
    background: white;
    color: #0f172a;
    padding: 13px 18px;
    border-radius: 12px;
    font-weight: 900;
}

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

.box {
    background: white;
    padding: 30px;
    border-radius: 22px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 45px rgba(15,23,42,0.05);
}

.icon {
    width: 46px;
    height: 46px;
    background: #eff6ff;
    color: #2563eb;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 20px;
}

.box h3,
.step h3 {
    margin-top: 0;
    font-size: 22px;
}

.box p,
.step p {
    color: #667085;
    line-height: 1.6;
}

.workflow-section {
    background: white;
}

.workflow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.step {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    padding: 30px;
    border-radius: 22px;
}

.step span {
    display: inline-block;
    color: #2563eb;
    font-weight: 900;
    margin-bottom: 18px;
}

.cta-section {
    padding: 80px 7%;
    background: #f8fafc;
}

.cta-card {
    background:
        radial-gradient(circle at top right, rgba(37,99,235,0.28), transparent 34%),
        #0f172a;
    color: white;
    padding: 58px;
    border-radius: 32px;
    text-align: center;
}

.cta-card h2 {
    font-size: 42px;
    max-width: 850px;
    margin: 0 auto 18px;
}

.cta-card p {
    color: #dbeafe;
    max-width: 720px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

footer {
    padding: 42px 7%;
    text-align: center;
    background: white;
    border-top: 1px solid #e5e7eb;
}

footer p {
    color: #667085;
    margin-bottom: 8px;
}

footer small {
    color: #98a2b3;
}

@media (max-width: 1000px) {
    .hero,
    .platform-card,
    .grid,
    .workflow,
    .stats-strip {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 44px;
    }

    .top-nav a:not(.login-btn) {
        display: none;
    }

    .stats-strip {
        margin-top: 0;
        border-radius: 0;
    }
}

/* NodePay Admin */
.admin-header {
    min-height: 78px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0f172a;
    color: #ffffff;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-header .brand {
    color: #ffffff;
}

.admin-header nav {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-header nav a {
    color: #dbeafe;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
}

.admin-wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding: 42px;
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 28px;
}

.page-head h1,
.admin-wrap h1 {
    font-size: 42px;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin: 0 0 8px;
}

.muted {
    color: #667085;
    line-height: 1.6;
}

.notice {
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    color: #075985;
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 22px;
    font-weight: 800;
}

.panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 18px 45px rgba(15,23,42,0.05);
}

.panel h2 {
    margin-top: 0;
    font-size: 26px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    display: block;
    font-weight: 900;
    margin-bottom: 8px;
    color: #344054;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 15px;
    background: #ffffff;
    color: #101828;
}

.field textarea {
    min-height: 105px;
    resize: vertical;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th,
.data-table td {
    padding: 13px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: #667085;
    font-weight: 900;
    background: #f8fafc;
}

code {
    display: inline-block;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 4px 7px;
    color: #0f172a;
    max-width: 360px;
    overflow-x: auto;
}

.small-btn {
    border: 0;
    background: #2563eb;
    color: #ffffff;
    border-radius: 10px;
    padding: 8px 10px;
    font-weight: 900;
    cursor: pointer;
    margin: 2px;
}

.small-btn.danger {
    background: #e11d48;
}

.inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.flow-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.flow-row div {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px 18px;
    font-weight: 900;
}

.flow-row span {
    color: #2563eb;
    font-weight: 900;
    font-size: 24px;
}

.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fb;
}

.login-box {
    width: 420px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 38px;
    box-shadow: 0 30px 80px rgba(15,23,42,0.12);
}

.login-brand {
    margin-bottom: 18px;
}

.login-box label {
    display: block;
    font-weight: 900;
    margin: 16px 0 8px;
}

.login-box input {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    padding: 13px;
}

.login-box button {
    width: 100%;
    margin-top: 22px;
    border: 0;
    border-radius: 12px;
    background: #2563eb;
    color: #ffffff;
    padding: 14px;
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 1000px) {
    .admin-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
        padding: 20px 24px;
    }

    .admin-wrap {
        padding: 24px;
    }

    .page-head {
        display: block;
    }

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