/* RIVR Glass Hero — DeFi glassmorphism slider */

@font-face {
    font-family: "Helvetica Regular";
    src: url("https://db.onlinewebfonts.com/t/a64ff11d2c24584c767f6257e880dc65.eot");
    src: url("https://db.onlinewebfonts.com/t/a64ff11d2c24584c767f6257e880dc65.eot?#iefix") format("embedded-opentype"),
        url("https://db.onlinewebfonts.com/t/a64ff11d2c24584c767f6257e880dc65.woff2") format("woff2"),
        url("https://db.onlinewebfonts.com/t/a64ff11d2c24584c767f6257e880dc65.woff") format("woff"),
        url("https://db.onlinewebfonts.com/t/a64ff11d2c24584c767f6257e880dc65.ttf") format("truetype"),
        url("https://db.onlinewebfonts.com/t/a64ff11d2c24584c767f6257e880dc65.svg#Helvetica Regular") format("svg");
    font-display: swap;
}

.rivr-hero-wrap {
    --rivr-hero-height: clamp(420px, 78vh, 680px);
    width: 100%;
    min-height: var(--rivr-hero-height);
    background-color: #f0f0f0;
    font-family: "Helvetica Regular", ui-sans-serif, system-ui, sans-serif;
    overflow-x: hidden;
}

.rivr-hero-wrap *,
.rivr-hero-wrap *::before,
.rivr-hero-wrap *::after {
    box-sizing: border-box;
}

.rivr-hero {
    position: relative;
    width: 100%;
    min-height: var(--rivr-hero-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

@media (min-width: 768px) {
    .rivr-hero {
        padding: 20px;
    }
}

.rivr-hero__panel {
    position: absolute;
    inset: 12px;
    max-width: 1536px;
    width: calc(100% - 24px);
    height: calc(var(--rivr-hero-height) - 24px);
    margin: auto;
    left: 0;
    right: 0;
    border-radius: 1.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.65s ease, visibility 0.65s ease;
    z-index: 1;
}

@media (min-width: 768px) {
    .rivr-hero__panel {
        inset: 20px;
        width: calc(100% - 40px);
        height: calc(var(--rivr-hero-height) - 40px);
        border-radius: 3rem;
    }
}

.rivr-hero__panel.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

.rivr-hero__video,
.rivr-hero__media--youtube {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.rivr-hero__video {
    object-fit: cover;
    object-position: 65% center;
}

@media (min-width: 1024px) {
    .rivr-hero__video {
        object-position: center;
    }
}

.rivr-hero__media--youtube {
    overflow: hidden;
    pointer-events: none;
}

.rivr-hero__youtube {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    max-width: none;
    border: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.rivr-hero__content {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Navbar */
.rivr-hero__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    width: 100%;
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .rivr-hero__nav {
        padding: 24px 40px;
    }
}

.rivr-hero__nav--minimal {
    justify-content: space-between;
}

.rivr-hero__brand-mobile {
    font-size: 20px;
    letter-spacing: -0.02em;
    color: rgba(30, 50, 90, 0.9);
}

@media (min-width: 768px) {
    .rivr-hero__brand-mobile {
        display: none;
    }

    .rivr-hero__nav--minimal {
        justify-content: flex-end;
    }
}

.rivr-hero__nav-cta-wrap {
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
}

.rivr-hero__demo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 50, 90, 0.8);
    color: #fff;
    border-radius: 999px;
    padding: 6px 16px 6px 8px;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.15s ease;
}

@media (min-width: 768px) {
    .rivr-hero__demo-btn {
        gap: 12px;
        padding: 8px 24px 8px 8px;
    }
}

.rivr-hero__demo-btn:hover {
    background: rgba(30, 50, 90, 1);
    transform: scale(1.02);
    color: #fff !important;
}

.rivr-hero__demo-btn:active {
    transform: scale(0.98);
}

.rivr-hero__demo-icon-wrap {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .rivr-hero__demo-icon-wrap {
        padding: 6px;
    }
}

.rivr-hero__demo-text {
    font-size: 12px;
    font-weight: 400;
}

@media (min-width: 768px) {
    .rivr-hero__demo-text {
        font-size: 14px;
    }
}

.rivr-hero__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .rivr-hero__demo-icon-wrap .rivr-hero__icon {
        width: 20px;
        height: 20px;
    }
}

.rivr-hero__icon--chev {
    width: 16px;
    height: 16px;
}

.rivr-hero__icon--spark {
    color: rgba(30, 50, 90, 0.8);
}

/* Hero text */
.rivr-hero__text {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(20px, 5vh, 48px) 24px 0;
    margin: 0 auto;
    text-align: center;
    max-width: 56rem;
    flex: 0 0 auto;
    justify-content: flex-start;
}

@media (min-width: 768px) {
    .rivr-hero__text {
        padding-top: clamp(28px, 6vh, 56px);
        padding-left: 40px;
        padding-right: 40px;
    }
}

.rivr-hero__panel .rivr-hero__badge {
    color: var(--rivr-badge-color, rgba(30, 50, 90, 0.9));
}

.rivr-hero__panel .rivr-hero__title {
    color: var(--rivr-title-color, #5e6470);
}

.rivr-hero__panel .rivr-hero__subtitle {
    color: var(--rivr-subtitle-color, #5e6470);
}

.rivr-hero__badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 auto 12px;
    width: fit-content;
    font-size: 14px;
    color: rgba(30, 50, 90, 0.9);
    animation: rivrBadgeIn 0.6s ease-out forwards;
}

.rivr-hero__panel:not(.is-active) .rivr-hero__badge,
.rivr-hero__panel:not(.is-active) .rivr-hero__title,
.rivr-hero__panel:not(.is-active) .rivr-hero__subtitle {
    animation: none;
    opacity: 0;
}

.rivr-hero__panel.is-active .rivr-hero__title {
    animation: rivrTitleIn 0.8s ease 0.2s forwards;
    opacity: 0;
}

.rivr-hero__panel.is-active .rivr-hero__subtitle {
    animation: rivrSubtitleIn 0.8s ease 0.4s forwards;
    opacity: 0;
}

@keyframes rivrBadgeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rivrTitleIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rivrSubtitleIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.rivr-hero__title {
    font-size: 2.25rem;
    font-weight: 400;
    color: #5e6470;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

@media (min-width: 640px) {
    .rivr-hero__title {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .rivr-hero__title {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .rivr-hero__title {
        font-size: clamp(2.75rem, 5vw, 64px);
    }
}

.rivr-hero__subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #5e6470;
    opacity: 0.8;
    line-height: 1.625;
    max-width: 36rem;
    margin: 0;
}

@media (min-width: 640px) {
    .rivr-hero__subtitle {
        font-size: 16px;
    }
}

@media (min-width: 768px) {
    .rivr-hero__subtitle {
        font-size: 18px;
    }
}

/* Bottom left card */
.rivr-hero__card-left {
    position: absolute;
    bottom: 5rem;
    right: 16px;
    left: auto;
    padding: 12px;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 140px;
    width: fit-content;
    animation: rivrCardLeftIn 0.8s ease 0.2s forwards;
    opacity: 0;
}

.rivr-hero__panel.is-active .rivr-hero__card-left {
    animation: rivrCardLeftIn 0.8s ease 0.2s forwards;
}

.rivr-hero__panel:not(.is-active) .rivr-hero__card-left,
.rivr-hero__panel:not(.is-active) .rivr-hero__corner {
    animation: none;
    opacity: 0;
}

@media (min-width: 768px) {
    .rivr-hero__card-left {
        bottom: 24px;
        left: 24px;
        right: auto;
        padding: 16px;
        border-radius: 1.5rem;
        gap: 12px;
        min-width: 150px;
    }
}

@media (min-width: 1024px) {
    .rivr-hero__card-left {
        bottom: 40px;
        left: 40px;
        padding: 20px;
        border-radius: 2.2rem;
        gap: 12px;
        min-width: 180px;
    }
}

@keyframes rivrCardLeftIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.rivr-hero__stat-value {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(30, 50, 90, 0.9);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .rivr-hero__stat-value {
        font-size: 1.875rem;
    }
}

.rivr-hero__stat-label {
    font-size: 10px;
    font-weight: 400;
    color: rgba(30, 50, 90, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@media (min-width: 768px) {
    .rivr-hero__stat-label {
        font-size: 12px;
    }
}

.rivr-hero__discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 999px;
    padding: 6px 20px 6px 6px;
    text-decoration: none !important;
    align-self: flex-start;
    transition: background 0.2s ease, transform 0.15s ease;
    font-size: 14px;
    color: rgba(30, 50, 90, 0.9);
}

.rivr-hero__discord-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.02);
    color: rgba(30, 50, 90, 0.9) !important;
}

.rivr-hero__discord-btn:active {
    transform: scale(0.98);
}

.rivr-hero__discord-icon-wrap {
    background: rgba(30, 50, 90, 0.1);
    padding: 4px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(30, 50, 90, 0.9);
}

/* Bottom right corner */
.rivr-hero__corner {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 12px 32px 12px 12px;
    padding-top: 20px;
    background: #f0f0f0;
    border-top-left-radius: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: rivrCornerIn 0.8s ease 0.4s forwards;
    opacity: 0;
}

.rivr-hero__panel.is-active .rivr-hero__corner {
    animation: rivrCornerIn 0.8s ease 0.4s forwards;
}

@media (min-width: 640px) {
    .rivr-hero__corner {
        padding: 16px 40px 16px 16px;
        padding-top: 24px;
        border-top-left-radius: 2rem;
        gap: 16px;
    }
}

@media (min-width: 768px) {
    .rivr-hero__corner {
        padding: 24px 56px 24px 24px;
        padding-top: 32px;
        border-top-left-radius: 3.5rem;
        gap: 24px;
    }
}

@keyframes rivrCornerIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rivr-hero__corner-mask {
    position: absolute;
    pointer-events: none;
}

.rivr-hero__corner-mask--top {
    top: -1.5rem;
    right: 0;
    width: 1.5rem;
    height: 1.5rem;
}

.rivr-hero__corner-mask--left {
    bottom: 0;
    left: -1.5rem;
    width: 1.5rem;
    height: 1.5rem;
}

@media (min-width: 640px) {
    .rivr-hero__corner-mask--top {
        top: -2rem;
        width: 2rem;
        height: 2rem;
    }
    .rivr-hero__corner-mask--left {
        left: -2rem;
        width: 2rem;
        height: 2rem;
    }
}

@media (min-width: 768px) {
    .rivr-hero__corner-mask--top {
        top: -3.5rem;
        width: 3.5rem;
        height: 3.5rem;
    }
    .rivr-hero__corner-mask--left {
        left: -3.5rem;
        width: 3.5rem;
        height: 3.5rem;
    }
}

.rivr-hero__corner-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(30, 50, 90, 0.05);
    border: 1px solid rgba(30, 50, 90, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(30, 50, 90, 0.8);
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .rivr-hero__corner-icon-wrap {
        width: 56px;
        height: 56px;
    }
}

.rivr-hero__corner-title {
    font-size: 16px;
    font-weight: 400;
    color: rgba(30, 50, 90, 0.95);
    line-height: 1.2;
}

@media (min-width: 768px) {
    .rivr-hero__corner-title {
        font-size: 20px;
    }
}

.rivr-hero__corner-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(30, 50, 90, 0.6);
    text-decoration: none !important;
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 12px;
    font-weight: 400;
}

.rivr-hero__corner-link:hover {
    color: rgba(30, 50, 90, 0.8);
}

@media (min-width: 768px) {
    .rivr-hero__corner-link {
        font-size: 15px;
    }
}

/* Slider controls */
.rivr-hero__controls {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.rivr-hero__ctrl-btn {
    border: none;
    background: rgba(30, 50, 90, 0.08);
    color: rgba(30, 50, 90, 0.85);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.rivr-hero__ctrl-btn:hover {
    background: rgba(30, 50, 90, 0.15);
}

.rivr-hero__ctrl-btn svg {
    width: 20px;
    height: 20px;
}

.rivr-hero__dots {
    display: flex;
    gap: 8px;
}

.rivr-hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: rgba(30, 50, 90, 0.25);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.rivr-hero__dot.is-active {
    width: 24px;
    background: rgba(30, 50, 90, 0.75);
}
