/* Reseller tools landing page */

.rtools-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.25rem);
    background:
        radial-gradient(ellipse 55% 60% at 8% 15%, rgba(0, 174, 239, 0.12), transparent 70%),
        radial-gradient(ellipse 50% 55% at 92% 88%, rgba(56, 189, 248, 0.1), transparent 68%),
        linear-gradient(180deg, #f4f9fd 0%, #ffffff 100%);
}

.rtools-hero__blob {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(2px);
}

.rtools-hero__blob--tl {
    left: -6rem;
    top: -4rem;
    width: 18rem;
    height: 18rem;
    background: radial-gradient(circle, rgba(0, 174, 239, 0.16), transparent 68%);
}

.rtools-hero__blob--br {
    right: -8rem;
    bottom: -6rem;
    width: 22rem;
    height: 22rem;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.18), transparent 70%);
}

.rtools-hero__dots {
    position: absolute;
    right: clamp(1rem, 6vw, 5rem);
    top: clamp(1.5rem, 4vw, 3rem);
    width: 9.5rem;
    height: 6rem;
    pointer-events: none;
    opacity: 0.45;
    background-image: radial-gradient(#9eb6cb 1.4px, transparent 1.5px);
    background-size: 14px 14px;
}

.rtools-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.rtools-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 1.15rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: rgba(0, 174, 239, 0.12);
    color: #0096d1;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rtools-hero__badge-icon {
    display: inline-grid;
    place-items: center;
    color: #00aeef;
}

.rtools-hero h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4.2vw, 2.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #0b1c2c;
}

.rtools-hero h1 span {
    color: #00aeef;
}

.rtools-hero__lead {
    margin: 1rem auto 0;
    max-width: 38rem;
    font-size: 1.05rem;
    line-height: 1.55;
    color: #5a6b7d;
}

/* Feature grid */
.rtools-grid-section {
    padding: 0.5rem 0 clamp(2.75rem, 5vw, 4rem);
    background: #fff;
}

.rtools-grid {
    display: grid;
    gap: 1.15rem;
    grid-template-columns: 1fr;
}

@media (min-width: 700px) {
    .rtools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .rtools-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

.rtools-card {
    display: flex;
    flex-direction: column;
    padding: 1.4rem 1.3rem 1.5rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(160, 195, 225, 0.45);
    box-shadow: 0 12px 28px rgba(20, 55, 100, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.rtools-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 174, 239, 0.35);
    box-shadow: 0 16px 34px rgba(20, 55, 100, 0.1);
}

.rtools-card__icon {
    display: inline-grid;
    place-items: center;
    width: 3.15rem;
    height: 3.15rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    color: #00aeef;
    background: linear-gradient(145deg, #e8f7fd 0%, #d7f0fb 100%);
    border: 1px solid rgba(0, 174, 239, 0.16);
}

.rtools-card h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0b1c2c;
}

.rtools-card p {
    margin: 0.55rem 0 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #5a6b7d;
}

/* Bottom CTA */
.rtools-cta {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: clamp(24rem, 36vw, 32rem);
    padding: clamp(2.75rem, 4.5vw, 3.75rem) 0;
    color: #fff;
    background-color: #030d1c;
}

.rtools-cta__atmosphere {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 50% 70% at 12% 50%, rgba(0, 120, 200, 0.22), transparent 70%),
        linear-gradient(90deg, #030d1c 0%, #030d1c 38%, rgba(3, 13, 28, 0.55) 58%, rgba(3, 13, 28, 0.15) 100%),
        var(--rtools-cta-bg) right center / cover no-repeat;
    filter: saturate(1.05);
}

.rtools-cta__art {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    display: block;
    width: min(62%, 52rem);
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    object-fit: cover;
    object-position: left center;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 18%);
}

.rtools-cta__overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(3, 13, 28, 0.2) 0%,
        transparent 18%,
        transparent 82%,
        rgba(3, 13, 28, 0.28) 100%
    );
}

.rtools-cta__inner {
    position: relative;
    z-index: 1;
    width: min(1200px, 100% - 3rem);
    margin-inline: auto;
    pointer-events: none;
}

.rtools-cta__inner a {
    pointer-events: auto;
}

.rtools-cta__copy {
    max-width: 34rem;
}

.rtools-cta__eyebrow {
    margin: 0 0 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #38bdf8;
}

.rtools-cta__eyebrow::after {
    content: "";
    display: block;
    width: 3.5rem;
    height: 1.5px;
    background: #00aeef;
}

.rtools-cta h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.6vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
    color: #fff;
}

.rtools-cta h2 span {
    color: #00aeef;
}

.rtools-cta__lead {
    margin: 1rem 0 0;
    max-width: 31rem;
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(226, 236, 248, 0.88);
}

.rtools-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.75rem;
}

.rtools-cta__primary,
.rtools-cta__secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 3.1rem;
    padding: 0.75rem 1.35rem;
    border-radius: 10px;
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.rtools-cta__primary {
    background: #0ea5ff;
    color: #fff;
    box-shadow: 0 10px 26px rgba(14, 165, 255, 0.35);
}

.rtools-cta__primary:hover {
    background: #0090e0;
    color: #fff;
}

.rtools-cta__secondary {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.rtools-cta__secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.rtools-cta__btn-icon {
    display: inline-grid;
    place-items: center;
}

@media (max-width: 979px) {
    .rtools-cta {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        padding-bottom: 0;
    }

    .rtools-cta__atmosphere {
        background:
            radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 120, 200, 0.2), transparent 70%),
            #030d1c;
    }

    .rtools-cta__art {
        position: relative;
        order: 2;
        width: 100%;
        height: auto;
        aspect-ratio: 1792 / 1440;
        margin-top: 1.5rem;
        object-position: center;
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%);
        mask-image: linear-gradient(180deg, transparent 0%, #000 16%);
    }

    .rtools-cta__overlay {
        background: linear-gradient(180deg, rgba(3, 13, 28, 0.25) 0%, transparent 40%);
    }

    .rtools-cta__copy {
        max-width: 36rem;
    }
}

@media (max-width: 639px) {
    .rtools-cta__actions {
        flex-direction: column;
    }

    .rtools-cta__primary,
    .rtools-cta__secondary {
        width: 100%;
        justify-content: center;
    }
}

