/* PAGE HERO */
.rs-hero {
    position: relative;
    padding-top: 40px;
    min-height: calc(100vh - 90px);
    overflow: hidden;
    background:
        radial-gradient(circle at 70% 22%, rgba(94, 172, 255, 0.34), transparent 34%),
        radial-gradient(circle at 28% 72%, rgba(255, 255, 255, 0.95), transparent 38%),
        linear-gradient(110deg, #f7fbff 0%, #eaf5ff 46%, #d9ecff 100%);
}

.rs-hero::after {
    content: "";
    position: absolute;
    right: -8%;
    bottom: 0;
    width: 72%;
    height: 42%;
    background-size: cover;
    background-position: bottom right;
    opacity: 0.75;
    pointer-events: none;
}

.rs-hero .container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
}

.rs-hero-row {
    position: relative;
}

.rs-hero-content {
    padding-top: -96px;
    z-index: 3;
}

.rs-badge {
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    margin-bottom: 26px;
    border-radius: 999px;
    color: var(--color2);
    font-size: 13px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 35px rgba(13, 110, 253, 0.12);
    backdrop-filter: blur(16px);
}

.rs-hero-title {
    margin: 0 0 16px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -2.8px;
    color: var(--color1);
}

.rs-hero-title span {
    color: var(--color2);
    font-size: clamp(22px, 5vw, 30px);
    letter-spacing: -1.8px;
}

.rs-hero-subtitle {
    margin-bottom: 26px;
    font-size: clamp(16px, 1.5vw, 22px);
    font-weight: 900;
    color: #081638;
}

.rs-hero-desc {
    max-width: 610px;
    margin-bottom: 34px;
    font-size: 17px;
    line-height: 1.85;
    font-weight: 300;
    color: #263657;
}

.rs-hero-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 34px;
}

.rs-social-proof {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
}

.rs-social-proof a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #15294d;
    font-size: 13px;
    font-weight: 800;
    transition: 0.3s ease;
}

.rs-social-proof a i {
    color: var(--color2);
    font-size: 18px;
}

.rs-social-proof a:hover {
    color: var(--color2);
    transform: translateY(-3px);
}

.rs-hero-visual {
    position: relative;
    min-height: 600px;
    z-index: 2;
}

.rs-photo-wrap {
    position: absolute;
    left: 2%;
    right: 40%;
    bottom: 0;
    z-index: 3;
}

.rs-hero-photo {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 30px 50px rgba(8, 24, 74, 0.18));
}

.rs-credential-stack {
    position: absolute;
    top: 50%;
    right: 0;
    z-index: 4;
    width: clamp(280px, 34vw, 375px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(14px, 2.2vh, 22px);
    transform: translateY(-50%);
}

.rs-credential-card {
    position: relative;
    width: 100%;
    min-height: clamp(76px, 8.8vh, 96px);
    padding: clamp(12px, 1.7vw, 18px) clamp(16px, 2.2vw, 24px);
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.6vw, 18px);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 46px rgba(36, 95, 170, 0.13);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden;
    cursor: default;
    transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.rs-credential-card::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.72), transparent 34%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.3), transparent 48%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.rs-credential-card::after {
    content: "";
    position: absolute;
    top: -80%;
    left: -55%;
    z-index: 1;
    width: 42%;
    height: 240%;
    background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.52), transparent);
    transform: rotate(18deg) translateX(-140%);
    transition: transform 0.65s ease;
    pointer-events: none;
}

.rs-credential-card > * {
    position: relative;
    z-index: 2;
}

.rs-credential-card > div {
    min-width: 0;
}

.rs-credential-card:hover {
    transform: translateY(-8px) translateX(-4px) scale(1.02);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(232, 246, 255, 0.56));
    border-color: rgba(255, 255, 255, 0.96);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        0 28px 72px rgba(13, 110, 253, 0.2);
}

.rs-credential-card:hover::before {
    opacity: 1;
}

.rs-credential-card:hover::after {
    transform: rotate(18deg) translateX(420%);
}

.rs-credential-card i {
    flex: 0 0 clamp(48px, 5vw, 58px);
    width: clamp(48px, 5vw, 58px);
    height: clamp(48px, 5vw, 58px);
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color2);
    font-size: 27px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.86);
    box-shadow: inset 0 0 24px rgba(13, 110, 253, 0.08);
    transition: transform 0.35s ease, color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.rs-credential-card:hover i {
    color: #ffffff;
    background: linear-gradient(135deg, #0d6efd, #56a8ff);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 14px 28px rgba(13, 110, 253, 0.24);
    transform: rotate(-6deg) scale(1.08);
}

.rs-credential-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: clamp(13px, 1.1vw, 15px);
    font-weight: 900;
    color: var(--color1);
    overflow-wrap: anywhere;
    transition: color 0.3s ease, transform 0.3s ease;
}

.rs-credential-card span {
    display: block;
    font-size: clamp(11px, 0.95vw, 12px);
    line-height: 1.55;
    font-weight: 300;
    color: #30405f;
    overflow-wrap: anywhere;
    transition: color 0.3s ease, transform 0.3s ease;
}

.rs-credential-card:hover strong {
    color: var(--color2);
    transform: translateX(3px);
}

.rs-credential-card:hover span {
    color: #243653;
    transform: translateX(3px);
}

.rs-credential-stack .rs-credential-card:nth-child(2) {
    animation-delay: 0.12s;
}

.rs-credential-stack .rs-credential-card:nth-child(3) {
    animation-delay: 0.24s;
}

.rs-credential-stack .rs-credential-card:nth-child(4) {
    animation-delay: 0.36s;
}

.animate-fade-up {
    opacity: 0;
    transform: translateY(26px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.12s;
}

.delay-2 {
    animation-delay: 0.22s;
}

.delay-3 {
    animation-delay: 0.32s;
}

.delay-4 {
    animation-delay: 0.42s;
}

.delay-5 {
    animation-delay: 0.52s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1199.98px) {
    .rs-hero-visual {
        min-height: 660px;
    }

    .rs-photo-wrap {
        left: -4%;
        right: 26%;
    }

    .rs-credential-stack {
        width: clamp(250px, 32vw, 320px);
    }

    .rs-credential-card {
        padding: 18px;
    }
}

@media (max-width: 991.98px) {
    .rs-hero .animate-fade-up {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .rs-hero {
        padding-top: 115px;
    }

    .rs-hero-row {
        min-height: auto !important;
        padding: 34px 0 0;
    }

    .rs-hero-content {
        text-align: center;
        padding-top: 0;
    }

    .rs-badge {
        margin-inline: auto;
    }

    .rs-hero-desc {
        margin-inline: auto;
    }

    .rs-hero-actions {
        justify-content: center;
    }

    .rs-social-proof {
        justify-content: center;
    }

    .rs-hero-visual {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: auto;
        margin-top: 20px;
        padding-bottom: 0;
    }

    .rs-photo-wrap {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        width: min(92%, 520px);
        max-width: 520px;
        margin: 0 auto;
    }

    .rs-credential-stack {
        position: relative;
        top: auto;
        right: auto;
        width: min(92%, 520px);
        margin: 18px auto 0;
        gap: 14px;
        transform: none;
    }

    .rs-credential-card {
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
        margin: 0;
    }

    .rs-credential-card:hover {
        transform: translateY(-6px) scale(1.01);
    }
}

@media (max-width: 767.98px) {
    .rs-hero {
        padding-top: 100px;
    }

    .rs-hero-title {
        letter-spacing: -1.5px;
    }

    .rs-hero-desc {
        font-size: 15px;
        line-height: 1.75;
    }

    .rs-hero-actions {
        flex-direction: column;
        gap: 14px;
    }

    .rs-hero-actions .btn {
        width: 100%;
    }

    .rs-social-proof {
        gap: 16px;
    }

    .rs-social-proof a {
        width: calc(50% - 8px);
        justify-content: center;
        padding: 12px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.54);
        border: 1px solid rgba(255, 255, 255, 0.76);
    }

    .rs-hero-visual {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: auto;
        padding-bottom: 0;
        margin-top: 20px;
    }

    .rs-photo-wrap {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        width: 90%;
        max-width: 420px;
        margin: 0 auto;
    }

    .rs-hero-photo {
        max-height: 46vh;
    }

    .rs-credential-stack {
        width: 92%;
        max-width: 420px;
        margin-top: 18px;
        gap: 12px;
    }

    .rs-credential-card {
        position: relative;
        top: auto !important;
        right: auto;
        width: 100%;
        max-width: none;
        margin: 0;
        min-height: auto;
        padding: 14px;
        gap: 12px;
    }

    .rs-credential-card:hover {
        transform: translateY(-4px);
    }

    .rs-credential-card i {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    .rs-credential-card strong {
        font-size: 14px;
    }

    .rs-credential-card span {
        font-size: 12px;
    }
}

@media (max-width: 575.98px) {
    .rs-hero-visual {
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 1rem;
        padding-bottom: 0;
        margin-top: 16px;
    }

    .rs-photo-wrap {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        width: 92%;
        max-width: 420px;
        margin: 0 auto;
    }

    .rs-hero-photo {
        max-height: 42vh;
    }

    .rs-credential-stack {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        gap: 10px;
    }

    .rs-credential-card {
        position: relative;
        top: auto !important;
        right: auto;
        width: 100%;
        max-width: 420px;
        margin: 0;
        animation: none;
        z-index: 5;
    }
}
