/* =========================================================================
   Homepage
   Loaded only on the homepage, after theme/css/app.css, so the token
   overrides below never reach other pages. Layout is written here rather
   than with Tailwind utilities because theme/css/app.css is a purged build.
   ========================================================================= */

/* ---- Palette -------------------------------------------------------------
   The page is dark whichever theme the visitor chose: the design is built
   on it and the logo is lime-on-dark. Change the accent here and the whole
   page follows. */
html.dark,
html:not(.dark) {
    --bg: #07090c;
    --surface: #0d1117;
    --surface-2: #11161d;
    --border: rgb(255 255 255 / 0.08);
    --text: #f3f5f7;
    --muted: #8a94a0;
    --accent: #ccff00;
    --accent-hover: #d9ff33;
    --accent-soft: rgb(204 255 0 / 0.12);
    --hp-mint: #5ff5c4;
    --hp-up: #34d399;
    --hp-down: #ff6b6b;
    --hp-glass: linear-gradient(180deg, rgb(255 255 255 / 0.04), rgb(255 255 255 / 0.015));
    --hp-radius: 1.25rem;
    color-scheme: dark;
}

/* Always show the dark-theme logo, even if the visitor picked light mode. */
html:not(.dark) .dark\:hidden {
    display: none;
}

html:not(.dark) .hidden.dark\:block {
    display: block;
}

/* ---- Header over the hero ------------------------------------------------
   Transparent at the top, frosted once scrolled. The layout's own rules take
   over while the mobile menu is open. */
.site-header.site-header--over-hero:not(.is-scrolled) {
    background-color: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

.site-header.site-header--over-hero.is-scrolled {
    background-color: color-mix(in srgb, var(--bg) 82%, transparent);
    border-bottom-color: var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* ---- Footer (variables defined by the layout) ---------------------------- */
.site-footer {
    --footer-bg: var(--surface);
    --footer-text: var(--text);
    --footer-muted: var(--muted);
    --footer-border: var(--border);
    --footer-rule: var(--border);
}

.site-footer a:hover {
    color: var(--accent);
}

/* ---- Type ---------------------------------------------------------------- */
.hp-title {
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.04;
    color: var(--text);
    text-wrap: balance;
}

.hp-title .accent {
    color: var(--accent);
}

.hp-title .grad {
    background: linear-gradient(92deg, var(--accent) 0%, var(--hp-mint) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hp-kicker {
    margin-bottom: 0.875rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.hp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem 0.375rem 0.625rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgb(255 255 255 / 0.03);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.hp-eyebrow::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.hp-lead {
    max-width: 36rem;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--muted);
}

.hp-lead a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.is-up {
    color: var(--hp-up);
}

.is-down {
    color: var(--hp-down);
}

/* ---- Layout -------------------------------------------------------------- */
.hp-section {
    padding-block: 5rem;
}

.hp-section--tight {
    padding-block: 3rem 0;
}

.hp-section--alt {
    background: linear-gradient(180deg, rgb(255 255 255 / 0.02), transparent);
    border-top: 1px solid var(--border);
}

@media (width >= 768px) {
    .hp-section {
        padding-block: 7rem;
    }

    .hp-section--tight {
        padding-block: 3.5rem 0;
    }
}

.hp-head {
    max-width: 44rem;
    margin-bottom: 3rem;
}

.hp-head .hp-title {
    font-size: clamp(2rem, 4.4vw, 3.25rem);
    margin-bottom: 1rem;
}

.hp-head--row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: none;
}

.hp-head--row .hp-title {
    margin-bottom: 0;
}

.hp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: color 0.15s ease;
}

.hp-link svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
}

.hp-link:hover {
    color: var(--accent);
}

.hp-link:hover svg {
    transform: translateX(3px);
}

/* ---- Buttons ------------------------------------------------------------- */
.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 3rem;
    padding: 0 1.625rem;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition:
        filter 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.hp-btn svg {
    width: 1rem;
    height: 1rem;
}

.hp-btn--primary {
    background: var(--accent);
    color: var(--color-ink-950);
    box-shadow:
        0 0 0 1px rgb(204 255 0 / 0.25),
        0 12px 32px -12px rgb(204 255 0 / 0.55);
}

.hp-btn--primary:hover {
    filter: brightness(1.06);
}

.hp-btn--ghost {
    border: 1px solid var(--border);
    background: rgb(255 255 255 / 0.02);
    color: var(--text);
}

.hp-btn--ghost:hover {
    border-color: rgb(255 255 255 / 0.22);
    background: rgb(255 255 255 / 0.05);
}

/* ---- Cards --------------------------------------------------------------- */
.hp-card {
    position: relative;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--hp-radius);
    background: var(--hp-glass);
    transition: border-color 0.25s ease;
}

.hp-card:hover {
    border-color: rgb(204 255 0 / 0.3);
}

/* ---- Hero ---------------------------------------------------------------- */
.home-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 100svh;
    margin-top: -4.45rem; /* sit under the transparent header */
    padding-top: calc(4.45rem + 4.5rem);
    padding-bottom: 4rem;
    overflow: hidden;
    background: var(--bg);
}

.home-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.home-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgb(255 255 255 / 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255 255 255 / 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 15%, #000 15%, transparent 100%);
    mask-image: radial-gradient(ellipse 75% 65% at 50% 15%, #000 15%, transparent 100%);
}

.home-hero__glow {
    position: absolute;
    border-radius: 50%;
}

.home-hero__glow--a {
    top: -16rem;
    right: -12rem;
    width: 44rem;
    height: 44rem;
    background: radial-gradient(circle, rgb(204 255 0 / 0.17), transparent 62%);
}

.home-hero__glow--b {
    bottom: -18rem;
    left: -14rem;
    width: 38rem;
    height: 38rem;
    background: radial-gradient(circle, rgb(95 245 196 / 0.13), transparent 62%);
}

.home-hero__inner {
    display: grid;
    gap: 3.5rem;
    align-items: center;
}

@media (width >= 1024px) {
    .home-hero__inner {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 4rem;
    }
}

.home-hero__content {
    max-width: 38rem;
}

.home-hero__title {
    margin: 1.375rem 0 1.25rem;
    font-size: clamp(2.75rem, 5.2vw, 4.25rem);
}

.home-hero__title .motion-line-mask {
    display: block;
}

.home-hero__desc {
    max-width: 32rem;
    margin-bottom: 2rem;
    font-family: var(--font-sans);
    font-size: 1.125rem;
    line-height: 1.6;
    letter-spacing: -0.01em;
    color: var(--muted);
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.home-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: var(--muted);
}

.home-hero__trust li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.home-hero__trust svg {
    width: 1rem;
    height: 1rem;
    flex: none;
    color: var(--accent);
}

/* Wallet card illustration (pure CSS/SVG, animated without the GSAP bundle) */
.home-hero__visual {
    position: relative;
    width: min(100%, 26rem);
    margin-inline: auto;
    font-family: var(--font-sans);
}

.hero-card {
    width: 100%;
    padding: 1.5rem;
    border: 1px solid rgb(255 255 255 / 0.1);
    border-radius: 1.5rem;
    background: linear-gradient(160deg, rgb(255 255 255 / 0.07), rgb(255 255 255 / 0.02));
    box-shadow:
        0 40px 90px -35px rgb(0 0 0 / 0.85),
        inset 0 1px 0 rgb(255 255 255 / 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: hero-card-in 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both;
}

.hero-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.hero-card__label {
    font-size: 0.8125rem;
    color: var(--muted);
}

.hero-card__net {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--muted);
}

.hero-card__net::before {
    content: "";
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: var(--hp-up);
    box-shadow: 0 0 0 3px rgb(52 211 153 / 0.2);
}

.hero-card__balance {
    margin-top: 0.5rem;
    font-size: 2.25rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

.hero-card__delta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--hp-up);
}

.hero-card__delta small {
    font-weight: 400;
    color: var(--muted);
}

.hero-card__spark {
    height: 4.5rem;
    margin: 1.25rem -0.25rem 0.75rem;
}

.hero-card__spark svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.hero-card__assets {
    display: grid;
    gap: 0.125rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-card__asset {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.5rem;
    border-radius: 0.75rem;
}

.hero-card__asset img {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: contain;
}

.hero-card__asset-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.hero-card__asset-sub {
    font-size: 0.75rem;
    color: var(--muted);
}

.hero-card__asset-val {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

.hero-card__asset-chg {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: right;
}

.hero-card__actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

.hero-card__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.875rem;
    background: rgb(255 255 255 / 0.04);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
}

.hero-card__action svg {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--accent);
}

.hero-card__action--primary {
    border-color: transparent;
    background: var(--accent);
    color: var(--color-ink-950);
}

.hero-card__action--primary svg {
    color: var(--color-ink-950);
}

.hero-float {
    position: absolute;
    display: none;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    border: 1px solid rgb(255 255 255 / 0.1);
    border-radius: 0.875rem;
    background: rgb(13 17 23 / 0.88);
    box-shadow: 0 24px 50px -20px rgb(0 0 0 / 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    animation:
        hero-float-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.9s both,
        hero-float 6s ease-in-out 1.8s infinite;
}

.hero-float small {
    display: block;
    font-size: 0.6875rem;
    font-weight: 400;
    color: var(--muted);
}

.hero-float__icon {
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    flex: none;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
}

.hero-float__icon svg {
    width: 0.9rem;
    height: 0.9rem;
}

.hero-float--sent {
    top: 33%;
    left: 0;
    animation-delay: 0.9s, -1.2s;
}

.hero-float--swap {
    right: 0;
    bottom: 11%;
    animation-delay: 1.1s, 1.8s;
}

@media (width >= 640px) {
    .hero-float {
        display: flex;
    }

    .hero-float--sent {
        left: -1.5rem;
    }

    .hero-float--swap {
        right: -1.5rem;
    }
}

@media (width >= 1024px) {
    .hero-float--sent {
        left: -2.5rem;
    }

    .hero-float--swap {
        right: -2.5rem;
    }
}

@keyframes hero-card-in {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes hero-float-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes hero-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ---- Live price ticker --------------------------------------------------- */
.hp-ticker {
    position: relative;
    display: flex;
    align-items: center;
    height: 3.25rem;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgb(255 255 255 / 0.015);
    font-family: var(--font-sans);
}

.hp-ticker[hidden] {
    display: none;
}

.hp-ticker__label {
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.5rem 0 1rem;
    background: linear-gradient(90deg, var(--bg) 70%, transparent);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.hp-ticker__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--accent);
    animation: hp-pulse 1.8s ease-in-out infinite;
}

.hp-ticker__track {
    display: flex;
    width: max-content;
    padding-left: 6rem;
    animation: hp-ticker 50s linear infinite;
    will-change: transform;
}

.hp-ticker:hover .hp-ticker__track {
    animation-play-state: paused;
}

.hp-ticker__placeholder {
    font-size: 0.8125rem;
    color: var(--muted);
}

.hp-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-right: 2.75rem;
    font-size: 0.8125rem;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.hp-ticker__item img {
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 50%;
    object-fit: contain;
}

.hp-ticker__sym {
    font-weight: 700;
    color: var(--text);
}

.hp-ticker__price {
    color: var(--text);
}

.hp-ticker__chg {
    font-weight: 600;
}

@keyframes hp-ticker {
    to {
        transform: translateX(-50%);
    }
}

@keyframes hp-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgb(204 255 0 / 0.5);
    }

    70% {
        box-shadow: 0 0 0 6px rgb(204 255 0 / 0);
    }
}

/* ---- Stats --------------------------------------------------------------- */
.hp-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--hp-radius);
    background: var(--border);
}

@media (width >= 768px) {
    .hp-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.hp-stat {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--bg);
    font-family: var(--font-sans);
}

.hp-stat dd {
    margin: 0;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text);
}

.hp-stat dd .accent {
    color: var(--accent);
}

.hp-stat dt {
    font-size: 0.8125rem;
    color: var(--muted);
}

/* ---- How it works -------------------------------------------------------- */
.hp-steps {
    display: grid;
    gap: 1rem;
}

@media (width >= 768px) {
    .hp-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

.hp-step {
    font-family: var(--font-sans);
}

.hp-step__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}

.hp-step__icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.875rem;
    background: var(--accent-soft);
    color: var(--accent);
}

.hp-step__icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.hp-step__num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.hp-step__title {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
}

.hp-step__text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--muted);
}

/* ---- Feature bento ------------------------------------------------------- */
.hp-bento {
    display: grid;
    gap: 1.25rem;
}

@media (width >= 768px) {
    .hp-bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .hp-bento__wide {
        grid-column: span 2;
    }
}

@media (width >= 1024px) {
    .hp-bento {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hp-feature {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 19rem;
    overflow: hidden;
    font-family: var(--font-sans);
}

.hp-feature__title {
    margin-bottom: 0.375rem;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
}

.hp-feature__text {
    max-width: 30rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--muted);
}

.hp-feature__visual {
    display: flex;
    flex: 1;
    align-items: flex-end;
    justify-content: center;
}

/* Swap widget illustration */
.hp-swap {
    width: min(100%, 24rem);
}

.hp-swap__pair {
    position: relative;
    display: grid;
    gap: 0.375rem;
}

.hp-swap__box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.875rem;
    background: rgb(7 9 12 / 0.6);
}

.hp-swap__box small {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.6875rem;
    color: var(--muted);
}

.hp-swap__amt {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

.hp-swap__coin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.625rem 0.375rem 0.375rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgb(255 255 255 / 0.04);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
}

.hp-swap__coin img {
    width: 1.375rem;
    height: 1.375rem;
    border-radius: 50%;
}

.hp-swap__arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    transform: translate(-50%, -50%);
    border: 1px solid rgb(204 255 0 / 0.3);
    border-radius: 50%;
    background: var(--surface);
    color: var(--accent);
    box-shadow: 0 0 24px -6px rgb(204 255 0 / 0.5);
}

.hp-swap__arrow svg {
    width: 1rem;
    height: 1rem;
}

.hp-swap__rate {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.25rem 0;
    font-size: 0.75rem;
    color: var(--muted);
}

.hp-swap__rate b {
    font-weight: 600;
    color: var(--text);
}

/* Send illustration */
.hp-send {
    width: 100%;
    display: grid;
    gap: 0.5rem;
}

.hp-send__field {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: 0.875rem;
    background: rgb(7 9 12 / 0.6);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text);
    overflow: hidden;
    white-space: nowrap;
}

.hp-send__field svg {
    width: 1rem;
    height: 1rem;
    flex: none;
    color: var(--muted);
}

.hp-send__field .ok {
    margin-left: auto;
    color: var(--hp-up);
}

.hp-send__status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.25rem;
    font-size: 0.75rem;
    color: var(--muted);
}

.hp-send__status i {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--hp-up);
}

/* Multi-chain illustration */
.hp-chains {
    display: grid;
    grid-template-columns: repeat(4, 2.5rem);
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
}

.hp-chains img {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.375rem;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgb(7 9 12 / 0.6);
    object-fit: contain;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.hp-feature:hover .hp-chains img {
    border-color: rgb(204 255 0 / 0.35);
}

/* Card illustration */
.hp-bankcard {
    width: min(100%, 15rem);
    aspect-ratio: 1.6;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgb(255 255 255 / 0.12);
    border-radius: 1rem;
    background:
        radial-gradient(circle at 80% 20%, rgb(204 255 0 / 0.25), transparent 45%),
        linear-gradient(160deg, #161c25, #0b0f15);
    box-shadow: 0 24px 50px -24px rgb(0 0 0 / 0.9);
}

.hp-bankcard__chip {
    width: 1.75rem;
    height: 1.25rem;
    border-radius: 0.25rem;
    background: linear-gradient(135deg, #e6e8eb, #8b939c);
}

.hp-bankcard__num {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    letter-spacing: 0.18em;
    color: var(--text);
}

/* Markets sparkline illustration */
.hp-mini-chart {
    width: 100%;
}

.hp-mini-chart svg {
    display: block;
    width: 100%;
    height: 5.5rem;
    overflow: visible;
}

.hp-mini-chart__row {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--muted);
}

.hp-mini-chart__row b {
    font-weight: 600;
    color: var(--text);
}

/* ---- Assets -------------------------------------------------------------- */
.hp-assets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (width >= 640px) {
    .hp-assets {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (width >= 1024px) {
    .hp-assets {
        grid-template-columns: repeat(5, 1fr);
        gap: 1rem;
    }
}

.hp-asset {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    font-family: var(--font-sans);
}

.hp-asset__head {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
}

.hp-asset__head img {
    width: 2rem;
    height: 2rem;
    flex: none;
    border-radius: 50%;
    object-fit: contain;
}

.hp-asset__name {
    overflow: hidden;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--text);
}

.hp-asset__ticker {
    font-size: 0.75rem;
    color: var(--muted);
}

.hp-asset__quote {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.hp-asset__price {
    font-size: 1rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

.hp-asset__chg {
    font-size: 0.75rem;
    font-weight: 600;
}

.hp-skel {
    display: inline-block;
    width: 4.5rem;
    height: 0.9rem;
    border-radius: 0.25rem;
    background: rgb(255 255 255 / 0.08);
    animation: hp-skel 1.4s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes hp-skel {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.45;
    }
}

/* ---- Security ------------------------------------------------------------ */
.hp-security {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (width >= 1024px) {
    .hp-security {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.hp-security .hp-title {
    font-size: clamp(2rem, 4.4vw, 3.25rem);
    margin-bottom: 1rem;
}

.hp-points {
    display: grid;
    gap: 0.75rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
    font-family: var(--font-sans);
}

.hp-point {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.125rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: rgb(255 255 255 / 0.02);
}

.hp-point__icon {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    flex: none;
    border-radius: 0.75rem;
    background: var(--accent-soft);
    color: var(--accent);
}

.hp-point__icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

.hp-point__title {
    margin-bottom: 0.125rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
}

.hp-point__text {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--muted);
}

/* Passcode illustration */
.hp-lock {
    position: relative;
    display: grid;
    place-items: center;
    width: min(100%, 22rem);
    aspect-ratio: 1;
    margin: 0 auto;
    font-family: var(--font-sans);
}

.hp-lock__ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgb(204 255 0 / 0.14);
    border-radius: 50%;
}

.hp-lock__ring:nth-child(2) {
    inset: 14%;
    border-style: dashed;
    animation: hp-spin 60s linear infinite;
}

.hp-lock__ring:nth-child(3) {
    inset: 28%;
    border-color: rgb(204 255 0 / 0.22);
}

.hp-lock__core {
    position: relative;
    display: grid;
    place-items: center;
    width: 42%;
    aspect-ratio: 1;
    border: 1px solid rgb(255 255 255 / 0.12);
    border-radius: 28%;
    background: linear-gradient(160deg, rgb(255 255 255 / 0.08), rgb(255 255 255 / 0.02));
    box-shadow:
        0 30px 60px -30px rgb(0 0 0 / 0.85),
        0 0 70px -20px rgb(204 255 0 / 0.45);
}

.hp-lock__core svg {
    width: 40%;
    height: 40%;
    color: var(--accent);
}

.hp-lock__badge {
    position: absolute;
    top: 8%;
    right: 2%;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgb(13 17 23 / 0.9);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
}

.hp-lock__badge svg {
    width: 0.875rem;
    height: 0.875rem;
    color: var(--hp-up);
}

.hp-lock__dots {
    position: absolute;
    bottom: 6%;
    left: 50%;
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    transform: translateX(-50%);
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgb(13 17 23 / 0.9);
}

.hp-lock__dots i {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--accent);
    animation: hp-dot 3s ease-in-out infinite;
}

.hp-lock__dots i:nth-child(2) { animation-delay: 0.15s; }
.hp-lock__dots i:nth-child(3) { animation-delay: 0.3s; }
.hp-lock__dots i:nth-child(4) { animation-delay: 0.45s; }
.hp-lock__dots i:nth-child(5) { animation-delay: 0.6s; }
.hp-lock__dots i:nth-child(6) { animation-delay: 0.75s; }

@keyframes hp-dot {
    0%,
    20% {
        background: rgb(255 255 255 / 0.15);
        transform: scale(0.85);
    }

    45%,
    80% {
        background: var(--accent);
        transform: scale(1);
    }

    100% {
        background: rgb(255 255 255 / 0.15);
        transform: scale(0.85);
    }
}

@keyframes hp-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---- Closing CTA --------------------------------------------------------- */
.hp-cta {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 1.75rem;
    text-align: center;
    background:
        radial-gradient(ellipse 60% 80% at 50% 120%, rgb(204 255 0 / 0.2), transparent 70%),
        var(--hp-glass);
}

.hp-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 100%, #000 10%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 70% at 50% 100%, #000 10%, transparent 100%);
}

.hp-cta > * {
    position: relative;
}

@media (width >= 768px) {
    .hp-cta {
        padding: 5.5rem 2rem;
    }
}

.hp-cta .hp-title {
    font-size: clamp(2.25rem, 5.4vw, 4.25rem);
    margin-bottom: 1rem;
}

.hp-cta .hp-lead {
    margin-inline: auto;
}

.hp-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.hp-cta__legal {
    max-width: 36rem;
    margin: 2rem auto 0;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--muted);
}

.hp-cta__legal a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* ---- Motion hooks (used by theme/js/home.js) ----------------------------- */
html.has-motion [data-motion-text],
html.has-motion [data-reveal],
html.has-motion [data-reveal-item],
html.has-motion [data-image-reveal] {
    visibility: hidden;
}

.motion-line-mask,
.motion-word-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    /* room for descenders under the clip */
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
}

.motion-line,
.motion-word {
    display: inline-block;
    will-change: transform, opacity, filter;
}

[data-magnetic] {
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    html.has-motion [data-motion-text],
    html.has-motion [data-reveal],
    html.has-motion [data-reveal-item],
    html.has-motion [data-image-reveal] {
        visibility: visible;
    }

    .hero-card,
    .hero-float,
    .hp-ticker__track,
    .hp-ticker__dot,
    .hp-lock__ring,
    .hp-lock__dots i,
    .hp-skel {
        animation: none;
    }
}
