/* Home — research-aligned trust palette (Alberts 2011, Lee & Rao 2010, Koo & Suk 2019)
   Cool blue primary · white/off-white surfaces · high-contrast slate text */
.page-home,
.page-home * {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.page-home {
    --trust-bg: #ffffff;
    --trust-bg-subtle: #f8fafc;
    --trust-primary: #1d4ed8;
    --trust-primary-hover: #1e40af;
    --trust-primary-soft: #eff6ff;
    --trust-primary-border: #bfdbfe;
    --trust-navy: #1e3a8a;
    --trust-text: #0f172a;
    --trust-text-muted: #64748b;
    --trust-text-label: #94a3b8;
    --trust-border: #e2e8f0;
    --trust-success: #059669;
    --trust-shadow: rgba(30, 58, 138, 0.08);
    --trust-radius: 12px;
    --trust-radius-lg: 16px;
    --trust-ease: cubic-bezier(0.22, 1, 0.36, 1);

    background: var(--trust-bg-subtle);
    color: var(--trust-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html:has(.page-home) {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html:has(.page-home) {
        scroll-behavior: auto;
    }

    .page-home *,
    .page-home *::before,
    .page-home *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.page-home .responsive-wrapper {
    background: transparent;
    position: relative;
    z-index: 1;
}

.page-home .home-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.page-home .home-bg__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
    animation: homeFloat 14s ease-in-out infinite;
}

.page-home .home-bg__orb--btc {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, #bfdbfe 0%, transparent 70%);
    top: -120px;
    left: -80px;
    opacity: 0.28;
}

.page-home .home-bg__orb--eth {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, #93c5fd 0%, transparent 70%);
    top: 20%;
    right: -100px;
    animation-delay: -4s;
    opacity: 0.22;
}

.page-home .home-bg__orb--blue {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #dbeafe 0%, transparent 70%);
    bottom: -180px;
    left: 30%;
    animation-delay: -8s;
    opacity: 0.35;
}

.page-home .home-bg__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 20%, transparent 70%);
}

@keyframes homeFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(24px, -18px) scale(1.05); }
    66% { transform: translate(-16px, 12px) scale(0.95); }
}

.page-home .container {
    max-width: 1180px;
    padding: 0 24px;
}

.page-home .responsive-head {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--trust-border);
    box-shadow: 0 1px 3px var(--trust-shadow);
}

.page-home header {
    align-items: center;
}

.page-home .logo {
    height: 36px;
    filter: none;
}

.page-home .current-items {
    gap: 12px;
}

.page-home .current-items > .item {
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--trust-bg);
    border: 1px solid var(--trust-border);
    box-shadow: 0 1px 2px var(--trust-shadow);
    transition: border-color 0.2s var(--trust-ease), box-shadow 0.2s var(--trust-ease);
}

.page-home .current-items > .item::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--trust-success);
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.page-home .current-items > .item:has(.current:not(.wait))::before {
    opacity: 1;
    animation: homePulse 2.5s ease-in-out infinite;
}

.page-home .current-items > .item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-home .current-items > .item:hover {
    border-color: var(--trust-primary-border);
    box-shadow: 0 4px 12px var(--trust-shadow);
}

.page-home .current-items > .item > img {
    width: 24px;
    height: 24px;
}

.page-home .current-items .current {
    position: relative;
}

.page-home .current-items .current > p,
.page-home .current-items .current > p > span {
    color: var(--trust-text) !important;
    -webkit-text-fill-color: var(--trust-text) !important;
    font-size: 15px;
    font-weight: 700;
}

.page-home .current-items .current > span {
    color: var(--trust-success) !important;
    -webkit-text-fill-color: var(--trust-success) !important;
    font-size: 13px;
    font-weight: 600;
}

.page-home .current-items .current > span.dec {
    color: var(--trust-text-muted) !important;
    -webkit-text-fill-color: var(--trust-text-muted) !important;
}

.page-home .current.wait::before {
    display: none;
}

.page-home .current.wait::after {
    display: none;
}

.page-home .current.wait {
    opacity: 0.55;
}

.page-home .current:not(.wait) {
    opacity: 1;
}

.page-home .responsive-main > .item {
    padding-bottom: 0;
}

.page-home .home-stats-zone {
    margin-top: 80px;
    position: relative;
    padding-bottom: 24px;
}

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

.page-home .home-section-head h2 {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--trust-text);
    margin: 0 0 8px;
}

.page-home .home-section-head p {
    font-size: 15px;
    color: var(--trust-text-muted);
    margin: 0;
}

.page-home .home-stats-zone .info-bottom {
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

/* Activity feed — clean fintech table */
.page-home .home-activity {
    margin-top: 28px;
}

.page-home .home-activity__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 0 4px;
}

.page-home .home-activity__header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--trust-text);
    margin: 0;
    letter-spacing: -0.01em;
}

.page-home .home-activity__live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--trust-success);
}

.page-home .home-activity__live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--trust-success);
    animation: homePulse 2s ease-in-out infinite;
}

.page-home .home-activity__list {
    border-radius: var(--trust-radius-lg);
    background: var(--trust-bg);
    border: 1px solid var(--trust-border);
    box-shadow: 0 2px 12px var(--trust-shadow);
    overflow: hidden;
}

.page-home .home-activity__row {
    display: grid;
    grid-template-columns: 28px 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--trust-border);
    font-size: 13px;
    animation: homeActivityIn 0.4s var(--trust-ease);
}

.page-home .home-activity__row:last-child {
    border-bottom: none;
}

.page-home .home-activity__row img {
    width: 22px;
    height: 22px;
    display: block;
}

.page-home .home-activity__addr {
    color: var(--trust-text-muted);
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-home .home-activity__amount {
    font-weight: 700;
    color: var(--trust-text);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.page-home .home-activity__status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.page-home .home-activity__status--done {
    background: #ecfdf5;
    color: var(--trust-success);
}

.page-home .home-activity__status--pending {
    background: var(--trust-primary-soft);
    color: var(--trust-primary);
}

@keyframes homeActivityIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-home .info-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding-top: 48px;
}

.page-home .info-head {
    align-items: flex-start;
    text-align: left;
}

/* Profile row */
.page-home .home-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.page-home .home-profile__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.page-home .home-profile__name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    font-weight: 700;
    color: var(--trust-text);
    letter-spacing: -0.02em;
}

.page-home .home-verified {
    width: 20px;
    height: 20px;
    padding: 3px;
    border-radius: 50%;
    background: var(--trust-primary);
    color: #fff;
    flex-shrink: 0;
}

.page-home .home-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 8px;
    border-radius: 999px;
    background: var(--trust-primary-soft);
    border: 1px solid var(--trust-primary-border);
    color: var(--trust-primary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0;
}

.page-home .home-badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--trust-success);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.18);
    animation: homePulse 2s ease-in-out infinite;
}

@keyframes homePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.9); }
}

.page-home .image-creator {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--trust-bg);
    box-shadow: 0 4px 20px var(--trust-shadow), 0 0 0 2px var(--trust-primary-border);
    margin-bottom: 0;
}

.page-home .image-creator > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-home .info-head-content {
    margin: 0 0 28px;
    align-items: flex-start;
    gap: 16px;
}

.page-home .info-head-content > h1 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-align: left;
    color: var(--trust-text);
    background: none;
    -webkit-text-fill-color: var(--trust-text);
    margin: 0;
}

.page-home .home-h1__lead {
    font-size: 0.72em;
    font-weight: 700;
    color: var(--trust-text-muted);
    letter-spacing: -0.01em;
}

.page-home .home-h1__amount {
    display: block;
}

.page-home .home-h1__amount em {
    font-style: normal;
    color: var(--trust-primary);
}

.page-home .home-h1__sep {
    color: var(--trust-text-label);
    font-weight: 600;
}

.page-home .info-head-content > p,
.page-home .home-lead {
    text-align: left;
    color: var(--trust-text-muted);
    font-size: 17px;
    line-height: 1.65;
    max-width: 460px;
    margin: 0;
}

/* Trust micro-signals */
.page-home .home-trust-bar {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin: 0 0 28px;
    padding: 0;
}

.page-home .home-trust-bar li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    color: var(--trust-text-muted);
}

.page-home .home-trust-bar svg {
    width: 16px;
    height: 16px;
    color: var(--trust-primary);
    flex-shrink: 0;
}

.page-home .info-head-action {
    gap: 14px;
    flex-wrap: wrap;
}

.page-home .button-a {
    min-width: 180px;
    padding: 14px 22px;
    border-radius: var(--trust-radius);
    border: none;
    font-weight: 600;
    box-shadow: 0 2px 8px var(--trust-shadow);
    transition: transform 0.2s var(--trust-ease), box-shadow 0.2s var(--trust-ease), background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.page-home .button-a:focus-visible {
    outline: 2px solid var(--trust-primary);
    outline-offset: 3px;
}

.page-home .button-a .btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.page-home .button-a .btn-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.9;
    transition: transform 0.2s var(--trust-ease);
    color: #ffffff;
}

.page-home .button-a .btn-arrow path {
    stroke: currentColor;
}

.page-home .button-a.type-b .btn-arrow {
    color: var(--trust-primary);
}

.page-home .button-a:hover .btn-arrow {
    transform: translateX(3px);
}

.page-home .button-a > p {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.page-home .button-a:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.page-home .button-a.type-a {
    background: var(--trust-primary);
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.28);
}

.page-home .button-a.type-a:hover {
    background: var(--trust-primary-hover);
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.32);
}

.page-home .button-a.type-b {
    background: var(--trust-bg);
    border: 1.5px solid var(--trust-primary);
    box-shadow: 0 2px 8px var(--trust-shadow);
}

.page-home .button-a.type-b > p {
    color: var(--trust-primary);
}

.page-home .button-a.type-b:hover {
    background: var(--trust-primary-soft);
    box-shadow: 0 4px 14px var(--trust-shadow);
}

.page-home .info-video {
    max-width: none;
    margin: 0;
    position: relative;
}

.page-home .info-video__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 5px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.page-home .info-video__badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    animation: homePulse 1.8s ease-in-out infinite;
}

.page-home .info-video::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.25), rgba(30, 58, 138, 0.15));
    z-index: -1;
}

.page-home .info-video > video {
    width: 100%;
    border-radius: 18px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--trust-bg-subtle);
    box-shadow: 0 16px 40px var(--trust-shadow);
    border: 1px solid var(--trust-border);
}

.page-home .info-bottom {
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.page-home .info-bottom > .item.stat-card {
    position: relative;
    padding: 22px 22px 24px;
    border-radius: 16px;
    background: var(--trust-bg);
    border: 1px solid var(--trust-border);
    box-shadow: 0 1px 3px var(--trust-shadow);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.page-home .info-bottom > .item.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 22px;
    right: 22px;
    height: 3px;
    border-radius: 0 0 999px 999px;
    opacity: 0.9;
}

.page-home .stat-card--founder::before {
    background: linear-gradient(90deg, #1d4ed8, #3b82f6);
}

.page-home .stat-card--fund::before {
    background: linear-gradient(90deg, #1e40af, #2563eb);
}

.page-home .stat-card--deadline::before {
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.page-home .stat-card--terms::before {
    background: linear-gradient(90deg, #059669, #34d399);
}

.page-home .info-bottom > .item.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--trust-primary-border);
    box-shadow: 0 8px 24px var(--trust-shadow);
}

.page-home .stat-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.page-home .stat-card__icon svg {
    width: 22px;
    height: 22px;
}

.page-home .stat-card--founder .stat-card__icon {
    background: var(--trust-primary-soft);
    color: var(--trust-primary);
}

.page-home .stat-card--fund .stat-card__icon {
    background: #dbeafe;
    color: var(--trust-navy);
}

.page-home .stat-card--deadline .stat-card__icon {
    background: #eff6ff;
    color: #2563eb;
}

.page-home .stat-card--terms .stat-card__icon {
    background: #ecfdf5;
    color: var(--trust-success);
}

.page-home .stat-card__label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--trust-text-label) !important;
    -webkit-text-fill-color: var(--trust-text-label) !important;
}

.page-home .info-bottom > .item.stat-card > h1,
.page-home .info-bottom > .item.stat-card > h3 {
    color: var(--trust-text) !important;
    -webkit-text-fill-color: var(--trust-text) !important;
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.page-home .stat-card--fund > h1,
.page-home .stat-card--fund > h3 {
    color: var(--trust-navy) !important;
    -webkit-text-fill-color: var(--trust-navy) !important;
    background: none;
    font-size: 1.35rem;
}

.page-home .stat-card--terms > h1,
.page-home .stat-card--terms > h3 {
    font-size: 1rem;
}

.page-home .info-bottom > .item.stat-card > p {
    color: var(--trust-text-muted) !important;
    -webkit-text-fill-color: var(--trust-text-muted) !important;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* Scroll reveal */
.page-home .home-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s var(--trust-ease), transform 0.65s var(--trust-ease);
}

.page-home .home-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.page-home .info-bottom .home-reveal:nth-child(1) { transition-delay: 0.05s; }
.page-home .info-bottom .home-reveal:nth-child(2) { transition-delay: 0.12s; }
.page-home .info-bottom .home-reveal:nth-child(3) { transition-delay: 0.19s; }
.page-home .info-bottom .home-reveal:nth-child(4) { transition-delay: 0.26s; }

/* Footer */
.page-home .home-footer {
    margin-top: auto;
    padding: 28px 0 32px;
    border-top: 1px solid var(--trust-border);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.page-home .home-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
}

.page-home .home-footer__copy {
    font-size: 13px;
    color: var(--trust-text-muted);
    margin: 0;
}

.page-home .home-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 16px;
}

.page-home .home-footer__secure {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--trust-text-muted);
}

.page-home .home-footer__secure svg {
    width: 14px;
    height: 14px;
    color: var(--trust-success);
}

.page-home a.logo:focus-visible {
    outline: 2px solid var(--trust-primary);
    outline-offset: 4px;
    border-radius: 4px;
}

@media screen and (max-width: 1028px) {
    .page-home .info-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 32px;
    }

    .page-home .info-head,
    .page-home .info-head-content,
    .page-home .home-profile {
        align-items: center;
        text-align: center;
    }

    .page-home .home-profile {
        flex-direction: column;
    }

    .page-home .home-profile__meta {
        align-items: center;
    }

    .page-home .home-trust-bar {
        justify-content: center;
    }

    .page-home .info-head-content > h1,
    .page-home .info-head-content > p,
    .page-home .home-lead {
        text-align: center;
    }

    .page-home .home-h1__amount {
        text-align: center;
    }

    .page-home .info-head-action {
        justify-content: center;
        width: 100%;
    }

    .page-home .button-a {
        flex: 1;
        min-width: 140px;
    }

    .page-home .home-stats-zone {
        margin-top: 48px;
    }

    .page-home .info-bottom {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 0;
        gap: 14px;
    }

    .page-home .info-bottom > .item.stat-card {
        padding: 20px;
    }

    .page-home .home-activity__row {
        grid-template-columns: 24px 1fr auto;
        gap: 10px;
        padding: 11px 14px;
    }

    .page-home .home-activity__status {
        grid-column: 3;
    }

    .page-home header {
        flex-wrap: wrap;
        gap: 16px;
    }

    .page-home .home-footer__inner {
        flex-direction: column;
        text-align: center;
    }
}

@media screen and (max-width: 560px) {
    .page-home .container {
        padding: 0 16px;
    }

    .page-home .current-items {
        width: 100%;
        justify-content: space-between;
    }

    .page-home .current-items > .item {
        padding: 8px 10px;
    }

    .page-home .info-bottom {
        grid-template-columns: 1fr;
    }

    .page-home .info-head-action {
        flex-direction: column;
    }

    .page-home .button-a {
        width: 100%;
    }

    .page-home .home-trust-bar {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}
