/**
 * rp-seo-everywhere.css
 * Styles for the [rp_seo_everywhere] homepage section (Rankers SEO Everywhere
 * plugin). A purple radial-gradient band holding a two-panel layout — an
 * animated multilingual orbit on the left, an interactive niche-bar chart on
 * the right — whose panels overhang downward and overlap the dark "bridge"
 * band rendered directly beneath. Neon accent values are intentionally literal
 * (the section has its own bespoke look); a few site tokens are reused where
 * they exist. Fully responsive: two columns on desktop, single column stacked
 * on tablet/mobile.
 */

.rp-seo-everywhere {
    /* Local design tokens for this section (scoped, don't leak site-wide). */
    --seo-green: #22e39a;
    --seo-violet: #6c4dff;
    --seo-ink: #0d0b2e;
    /* The bridge band is deliberately a LIGHTER purple than the bottom of the
     * section's gradient (which fades to --seo-ink). That contrast is the whole
     * point: it's what makes the overhanging cards visibly straddle the seam.
     * Earlier this was set to --seo-ink — identical to the gradient's end colour
     * — so the cards overhung correctly but there was no visible boundary. */
    --seo-bridge: #2a1f52;
    --seo-text: #b7afda;
    --seo-line: rgba(255, 255, 255, 0.10);
    /* Near-opaque (not a translucent white wash): the panels straddle the seam
     * between the section and the lighter bridge band, so a see-through panel
     * would pick up BOTH backgrounds and show a colour seam running through the
     * card itself. A near-solid panel reads as one object floating over the
     * boundary — which is what sells the overlap. */
    --seo-panel: rgba(25, 18, 62, 0.94);
}

/* ---- Section band ---------------------------------------------------- */
.rp-seo {
    position: relative;
    padding: 72px 24px 40px;
    background:
        radial-gradient(120% 95% at 50% -12%, #2c1b68 0%, #1c1350 34%, #130c3a 66%, #0d0b2e 100%);
    color: #fff;
    overflow: visible;
}
.rp-seo__inner {
    max-width: 1180px;
    margin: 0 auto;
}
.rp-seo__head {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 44px;
}
.rp-seo__title {
    margin: 0 0 16px;
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.01em;
    font-size: clamp(1.7rem, 3.4vw, 2.85rem);
    color: #fff;
}
.rp-seo__emoji {
    -webkit-text-fill-color: initial;
}
.rp-seo__lede {
    margin: 0;
    color: var(--seo-text);
    font-size: clamp(0.95rem, 1.3vw, 1.05rem);
    line-height: 1.6;
}

/* ---- Two-panel grid (overhangs into the bridge band below) ----------- */
.rp-seo__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: -125px; /* panels overhang downward → straddle the bridge */
}
.rp-seo__panel {
    background: var(--seo-panel);
    border: 1px solid var(--seo-line);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* ---- Left panel: pills, orbit, stats --------------------------------- */
.rp-seo__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}
.rp-seo__pill {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 8px 14px;
    border-radius: 99px;
    color: #c9c2e8;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--seo-line);
    white-space: nowrap;
}
.rp-seo__pill--active {
    color: var(--seo-green);
    border-color: rgba(34, 227, 154, 0.5);
    box-shadow: 0 0 20px rgba(34, 227, 154, 0.22);
}

.rp-seo__orbit {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 8px auto 22px;
    aspect-ratio: 1 / 1;
}
.rp-seo__ring {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.14);
}
.rp-seo__ring--1 { width: 84%; height: 84%; }
.rp-seo__ring--2 { width: 62%; height: 62%; border-style: dotted; opacity: 0.7; }
.rp-seo__sphere {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 44%;
    height: 44%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at 38% 30%, #63ffcf 0%, #1fd79a 50%, #0c9d73 100%);
    box-shadow: 0 0 70px rgba(34, 227, 154, 0.55), inset 0 -10px 30px rgba(0, 0, 0, 0.25);
}
.rp-seo__orbit-spin {
    position: absolute;
    inset: 0;
}
.rp-seo__lang {
    position: absolute;
    transform: translate(-50%, -50%);
    will-change: transform;
}
.rp-seo__lang-inner {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #dcd7f4;
    background: rgba(13, 9, 34, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 4px 9px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.rp-seo__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}
.rp-seo__stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--seo-line);
    border-radius: 12px;
}
.rp-seo__stat-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    color: #8f87b8;
}
.rp-seo__stat-value {
    font-family: 'Poppins', system-ui, sans-serif;
    /* Shrinks on narrow panels so a long single word ("Worldwide") never breaks
     * mid-word; keep-all/normal stop an ugly intra-word split if it still tightens. */
    font-size: clamp(15px, 1.7vw, 20px);
    font-weight: 700;
    color: #fff;
    word-break: keep-all;
    overflow-wrap: normal;
}
.rp-seo__panel-title {
    margin: 0 0 8px;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}
.rp-seo__panel-text {
    margin: 0;
    color: var(--seo-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ---- Right panel: interactive niche bars ----------------------------- */
.rp-seo__panel-title--niches {
    line-height: 1.2;
}
.rp-seo__nowrap { white-space: nowrap; }
.rp-seo__hint {
    margin: 6px 0 22px;
    font-size: 0.85rem;
    color: #8f87b8;
}
.rp-seo__bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 26px;
}
.rp-seo__bar {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.rp-seo__bar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
}
.rp-seo__bar-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #efecfb;
}
.rp-seo__bar-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--seo-green);
    box-shadow: 0 0 8px rgba(34, 227, 154, 0.8);
}
.rp-seo__bar-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    color: #8f87b8;
    text-align: right;
    white-space: nowrap;
}
.rp-seo__bar-track {
    position: relative;
    display: block;
    height: 9px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.07);
    overflow: visible;
}
.rp-seo__bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    border-radius: 99px;
    background: linear-gradient(90deg, #16e08c 0%, #35c2c9 45%, var(--seo-violet) 100%);
}
.rp-seo__bar-fill::after { /* travelling end-dot */
    content: "";
    position: absolute;
    right: -3px;
    top: 50%;
    width: 11px;
    height: 11px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #2effb0;
    box-shadow: 0 0 10px rgba(46, 255, 176, 0.9);
}
.rp-seo__bar:hover .rp-seo__bar-label { color: #fff; }

.rp-seo__rocket { /* spawned on click, animated + removed by JS */
    position: absolute;
    top: -6px;
    font-size: 16px;
    pointer-events: none;
    will-change: transform, opacity;
}

.rp-seo__cta {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 99px;
    background: linear-gradient(90deg, #24e6a6, #17cfd6);
    color: #06261f;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(23, 207, 214, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.rp-seo__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(23, 207, 214, 0.42);
    color: #06261f;
}
.rp-seo__cta-note {
    margin: 14px 0 0;
    font-size: 0.82rem;
    color: #8f87b8;
}

/* ---- Bridge band (receives the overhang) ----------------------------- */
.rp-seo-bridge {
    position: relative;
    z-index: 1;
    background: var(--seo-bridge);
    padding: 165px 24px 76px;
}

/* ---- One-off services glass panel (sits inside the bridge band) ------ */
/* Translucent glass here is correct — unlike .rp-seo__panel this block does NOT
 * straddle a background seam, so it can safely pick up the band behind it. */
.rp-oneoff-block {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(13, 11, 46, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 38px 48px 46px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: start;
    text-align: left;
}
.rp-oneoff-shimmer {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40%;
    width: 40%;
    background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.10) 45%, rgba(255,255,255,0.16) 50%, rgba(255,255,255,0.10) 55%, transparent 100%);
    pointer-events: none;
    will-change: transform;
}
.rp-oneoff-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}
.rp-oneoff-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}
.rp-oneoff-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    white-space: nowrap;
    font: 700 12px/1 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #00e5a8;
    background: rgba(0, 229, 168, 0.12);
    border: 1px solid rgba(0, 229, 168, 0.35);
    border-radius: 999px;
    padding: 9px 18px;
}
.rp-oneoff-pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00e5a8;
}
.rp-oneoff-title {
    margin: 0;
    font: 700 20px/1.3 'Poppins', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1 1 auto;
    color: #fff;
}
.rp-oneoff-rule {
    width: 100%;
    height: 2px;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
    background: transparent;
}
/* Real element (not ::after) so GSAP can animate it — the brand rainbow rule. */
.rp-oneoff-rule-fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #2f7bff, #b341ff, #ff2d8e);
    box-shadow: 0 0 10px rgba(179, 65, 255, 0.5);
    transform-origin: left center;
}
.rp-oneoff-desc {
    margin: 2px 0 0;
    max-width: 620px;
    font: 400 15px/1.6 'Mulish', sans-serif;
    color: rgba(255, 255, 255, 0.65);
}
.rp-oneoff-chips,
.rp-oneoff-feats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 2px;
}
.rp-oneoff-block .chip {
    font: 600 13px/1 'Mulish', sans-serif;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    padding: 9px 16px;
}
.rp-oneoff-block .feat {
    font: 500 13px/1 'Mulish', sans-serif;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    padding: 9px 16px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.rp-oneoff-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-top: 2px;
}
.rp-oneoff-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #0d0b2e;
    background: #00e5a8;
    border: none;
    border-radius: 999px;
    padding: 15px 28px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(0, 229, 168, 0.30);
}
.rp-oneoff-cta:hover {
    background: #00c794;
    color: #0d0b2e;
}
.rp-oneoff-cta:active {
    transform: translateY(1px) scale(0.98);
}
.rp-oneoff-note {
    margin: 0;
    max-width: 230px;
    text-align: center;
    font: 400 13px/1.5 'Mulish', sans-serif;
    color: rgba(255, 255, 255, 0.65);
}
.rp-oneoff-note a {
    color: #00e5a8;
    text-decoration: underline;
}

/* ---- Responsive ------------------------------------------------------ */
@media (max-width: 860px) {
    .rp-seo__grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: -80px;
    }
    .rp-seo-bridge {
        padding-top: 125px;
    }
    .rp-seo__orbit {
        max-width: 300px;
    }
    /* One-off panel: stack the CTA under the copy, and let the header wrap.
     * The desktop spec keeps the title on one line (nowrap + ellipsis); on
     * narrow screens that would just truncate the sentence, so allow wrapping. */
    .rp-oneoff-block {
        grid-template-columns: 1fr;
        padding: 30px 28px 34px;
    }
    .rp-oneoff-header {
        flex-wrap: wrap;
        overflow: visible;
    }
    .rp-oneoff-title {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        flex: 1 1 100%;
    }
    .rp-oneoff-right {
        align-items: flex-start;
    }
    .rp-oneoff-note {
        text-align: left;
        max-width: none;
    }
}
@media (max-width: 480px) {
    .rp-seo { padding: 52px 16px 32px; }
    .rp-seo__panel { padding: 22px; }
    .rp-seo__stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
    .rp-seo__bar-tag { font-size: 9px; }
    .rp-seo-bridge { padding-left: 16px; padding-right: 16px; }
    .rp-oneoff-block { padding: 24px 20px 28px; }
    .rp-oneoff-cta { width: 100%; justify-content: center; }
}

/* Respect reduced motion at the CSS layer too: show final bar fills instead of
 * the JS 0→target animation, and stop the orbit spin. The JS also checks this,
 * but this keeps the section correct even if JS is delayed/blocked. */
@media (prefers-reduced-motion: reduce) {
    .rp-seo__bar-fill { transition: none; }
}
