/* ========================================
   Homepage — Hero section
   ======================================== */

.hp-hero {
    padding-top: 94px;
    margin-top: -97px; /* overlap with header sticky space */
}

.hp-hero__card {
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-section);
    overflow: hidden;
    background: linear-gradient(58deg, var(--hp-hero-gradient-from) 35%, var(--hp-hero-gradient-to) 86%);
    min-height: 688px;
    display: flex;
    flex-direction: column;
    position: relative;
}

#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    z-index: 0;
}

.hp-hero__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 24px;
    gap: 48px;
    position: relative;
    overflow: hidden;
}

.hp-hero__text,
.hp-hero__actions {
    position: relative;
    z-index: 1;
}

.hp-hero__text {
    text-align: center;
}

.hp-hero__heading {
    font-family: 'FbMetali', 'Almoni Tzar', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--hp-text);
    margin-bottom: 8px;
}

.hp-hero__highlight {
    background: linear-gradient(to right, var(--hp-highlight-from), var(--hp-highlight-to));
    border-radius: var(--hp-radius-highlight);
    padding: 4px 20px;
    color: var(--hp-highlight-text);
    transform: rotate(2.43deg);
    display: inline-block;
    font-size: 44px;
}

.hp-hero__divider {
    width: calc(100% + 48px);
    margin: 32px -24px;
    height: 1px;
    background: var(--hp-border);
}

.hp-hero__desc {
    font-family: 'Heebo', sans-serif;
    font-size: 14px;
    line-height: 24px;
    color: var(--hp-text);
    text-align: center;
    max-width: 540px;
    margin: 0 auto;
}

.hp-hero__desc u {
    text-underline-offset: 3px;
}

.hp-hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-hero__buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

/* Desktop desc duplicate: hidden on mobile/tablet, shown on desktop */
.hp-hero__desc--desktop {
    display: none;
}

/* Stats bar */
.hp-hero__stats {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 36px 12px;
    border-top: 1px solid var(--hp-border);
}

.hp-hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 0;
}

.hp-hero__stat-number {
    font-family: 'FbMetali', 'Almoni Tzar', sans-serif;
    font-size: 36px;
    font-weight: 400;
    color: var(--hp-text);
    margin-bottom: 15px;
}

.hp-hero__stat-label {
    font-family: 'Heebo', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    color: var(--hp-text-muted);
}

.hp-hero__stat-divider {
    width: 1px;
    align-self: stretch;
    background: var(--hp-border);
    flex-shrink: 0;
}

/* Scroll arrow */
.hp-hero__arrow {
    display: flex;
    justify-content: center;
    margin: 24px auto 0;
    padding-bottom: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Tablet */
@media (min-width: 800px) {
    .hp-hero__heading {
        font-size: 56px;
    }

    .hp-hero__highlight {
        font-size: 52px;
    }

    .hp-hero__buttons {
        flex-direction: row;
    }
}

/* Desktop */
@media (min-width: 1300px) {
    .hp-hero__card {
        min-height: 720px;
        background: linear-gradient(58deg, var(--hp-hero-gradient-from) 35%, var(--hp-hero-gradient-to-desktop) 86%);
    }

    .hp-hero__content {
        flex-direction: row;
        padding: 48px;
        gap: 0;
    }

    .hp-hero__text {
        flex: 1;
        text-align: right;
    }

    .hp-hero__text .hp-hero__desc {
        display: none;
    }

    .hp-hero__divider {
        display: none;
    }

    .hp-hero__desc--desktop {
        display: block;
        text-align: right;
        margin: 0;
    }

    .hp-hero__heading {
        font-size: 78px;
    }

    .hp-hero__highlight {
        font-size: 68px;
    }

    .hp-hero__desc {
        text-align: right;
        margin: 0;
    }

    .hp-hero__actions {
        flex: 0 0 auto;
        padding-right: 48px;
    }

    .hp-hero__stats {
        padding: 48px;
    }
}
