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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

html,
body {
    margin: 0;
    background-color: #f1f5f9;
}

.home-page {
    min-height: 100vh;
    min-height: 100dvh;
    color: #e2e8f0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f1f5f9;
}

/* ── Header ── */
.home-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(18px) saturate(1.45);
    -webkit-backdrop-filter: blur(18px) saturate(1.45);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 4px 24px rgba(0, 0, 0, 0.12);
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        backdrop-filter 0.3s ease;
}

.home-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.home-header.is-light {
    background: rgba(241, 245, 249, 0.68);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border-bottom-color: rgba(203, 213, 225, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 4px 24px rgba(15, 23, 42, 0.06);
}

.home-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #f8fafc;
    text-decoration: none;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    transition: color 0.25s ease;
}

.home-header.is-light .home-brand {
    color: #0f172a;
}

.home-brand img {
    display: block;
    filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.35));
}

.home-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.home-nav a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.home-nav a:hover {
    color: #f1f5f9;
}

.home-header.is-light .home-nav a:not(.home-nav-cta) {
    color: #64748b;
}

.home-header.is-light .home-nav a:not(.home-nav-cta):hover {
    color: #0f172a;
}

.home-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.home-nav-cta:hover {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* ── Hero ── */
.home-hero {
    padding-top: 76px;
    background:
        radial-gradient(ellipse 60% 50% at 20% 0%, rgba(59, 130, 246, 0.18), transparent 55%),
        radial-gradient(ellipse 50% 40% at 80% 20%, rgba(56, 189, 248, 0.1), transparent 50%),
        linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    border-bottom: 1px solid rgba(100, 116, 139, 0.12);
}

.home-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 32px 72px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
    gap: 48px;
    align-items: center;
}

.home-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #93c5fd;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.home-hero h1 {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(2rem, 3.8vw, 3.25rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #f8fafc;
    margin: 0 0 20px;
    max-width: 14ch;
}

.home-hero h1 span {
    background: linear-gradient(135deg, #60a5fa, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-lead {
    max-width: 520px;
    margin: 0 0 32px;
    color: #94a3b8;
    font-size: 1.0625rem;
    line-height: 1.75;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.home-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.home-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.45);
}

.home-btn-secondary {
    background: rgba(30, 41, 59, 0.8);
    color: #e2e8f0;
    border: 1px solid rgba(100, 116, 139, 0.35);
}

.home-btn-secondary:hover {
    border-color: rgba(148, 163, 184, 0.5);
    background: rgba(51, 65, 85, 0.8);
}

/* ── Dashboard mock ── */
.home-dashboard {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 16px;
    padding: 20px;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.home-dashboard-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #94a3b8;
}

.home-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #34d399;
    font-size: 0.75rem;
}

.home-live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px #34d399;
    animation: home-pulse 2s ease infinite;
}

@keyframes home-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.home-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.home-stat {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(100, 116, 139, 0.15);
    border-radius: 10px;
    padding: 12px;
}

.home-stat-label {
    display: block;
    font-size: 0.6875rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.home-stat-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
}

.home-tx-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.home-tx {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(100, 116, 139, 0.12);
    font-size: 0.8125rem;
}

.home-tx-type {
    color: #94a3b8;
}

.home-tx-amount {
    font-weight: 700;
    color: #f1f5f9;
    font-variant-numeric: tabular-nums;
}

.home-tx-status {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 4px;
}

.home-tx--paid .home-tx-status {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
}

.home-tx--pending .home-tx-status {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.home-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 64px;
    padding-top: 8px;
}

.home-chart span {
    flex: 1;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, #3b82f6, rgba(59, 130, 246, 0.2));
    min-height: 12px;
}

.home-chart span:nth-child(1) { height: 35%; }
.home-chart span:nth-child(2) { height: 55%; }
.home-chart span:nth-child(3) { height: 42%; }
.home-chart span:nth-child(4) { height: 70%; }
.home-chart span:nth-child(5) { height: 48%; }
.home-chart span:nth-child(6) { height: 62%; }
.home-chart span:nth-child(7) { height: 38%; }
.home-chart span:nth-child(8) { height: 80%; }
.home-chart span:nth-child(9) { height: 58%; }
.home-chart span:nth-child(10) { height: 45%; }
.home-chart span:nth-child(11) { height: 72%; }
.home-chart span:nth-child(12) { height: 90%; }

/* ── Metrics bar ── */
.home-metrics {
    background: #1e293b;
    border-bottom: 1px solid rgba(100, 116, 139, 0.12);
}

.home-metrics-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.home-metric strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 4px;
}

.home-metric span {
    font-size: 0.8125rem;
    color: #64748b;
}

/* ── Main sections ── */
.home-main {
    background: #f1f5f9;
    color: #1e293b;
}

.home-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 32px;
    scroll-margin-top: 80px;
}

.home-section--alt {
    background: #e2e8f0;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.home-section--alt .home-section-head,
.home-section--alt .home-partners,
.home-section--alt .home-flow {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
}

.home-section-head {
    text-align: center;
    margin-bottom: 48px;
}

.home-section-kicker {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3b82f6;
    margin: 0 0 12px;
}

.home-section-head h2 {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px;
}

.home-section-desc {
    max-width: 640px;
    margin: 0 auto;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
}

/* ── Platform cards ── */
.home-platform-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.home-platform-card {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 28px 24px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.home-platform-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.1);
}

.home-platform-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #2563eb;
    margin-bottom: 18px;
}

.home-platform-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
}

.home-platform-card p {
    color: #64748b;
    font-size: 0.9375rem;
    line-height: 1.65;
    margin: 0 0 16px;
}

.home-platform-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #e2e8f0;
    padding-top: 14px;
}

.home-platform-card li {
    position: relative;
    padding-left: 16px;
    font-size: 0.8125rem;
    color: #475569;
    line-height: 1.8;
}

.home-platform-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #3b82f6;
}

/* ── Partners ── */
.home-partners {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 48px;
}

.home-partner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #334155;
    text-align: center;
}

/* ── Flow ── */
.home-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.home-flow-step {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 28px 24px;
}

.home-flow-num {
    font-size: 2rem;
    font-weight: 800;
    color: #cbd5e1;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin-bottom: 12px;
    line-height: 1;
}

.home-flow-step h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.home-flow-step p {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

/* ── Trust ── */
.home-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.home-trust-card {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 28px 24px;
    border-left: 4px solid #3b82f6;
}

.home-trust-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
}

.home-trust-card p {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

/* ── CTA ── */
.home-cta {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 72px 32px;
}

.home-cta-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.home-cta h2 {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 12px;
}

.home-cta p {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.7;
    margin: 0;
}

/* ── Footer ── */
.home-footer {
    background: #e2e8f0;
    border-top: 1px solid #cbd5e1;
    padding: 32px 32px 28px;
}

.home-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.home-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #334155;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    font-weight: 800;
}

.home-footer-brand img {
    border-radius: 6px;
}

.home-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.home-footer-nav a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.15s;
}

.home-footer-nav a:hover {
    color: #0f172a;
}

.home-footer-copy {
    margin: 4px 0 0;
    font-size: 0.8125rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .home-hero-inner {
        grid-template-columns: 1fr;
    }

    .home-hero h1 {
        max-width: none;
    }

    .home-platform-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .home-partners {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .home-header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px;
    }

    .home-nav {
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    .home-hero-inner {
        padding: 16px 20px 56px;
    }

    .home-section,
    .home-section--alt .home-section-head,
    .home-section--alt .home-partners,
    .home-section--alt .home-flow {
        padding-left: 20px;
        padding-right: 20px;
    }

    .home-section {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .home-platform-grid,
    .home-flow,
    .home-trust-grid {
        grid-template-columns: 1fr;
    }

    .home-metrics-inner {
        grid-template-columns: 1fr;
        padding: 24px 20px;
    }
}
