@import url(https://db.onlinewebfonts.com/c/33d2ace98dd5231182427e6acc4bc372?family=Right+Grotesk+Medium);

.services-hero {
    position: relative;
    width: 100%;
    min-height: 400px;
    background: #0a0e27;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 40px;
}

.hero-bg-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.hero-bg-layer.visible {
    opacity: 1;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(6, 8, 21, 0.75) 0%, rgba(6, 8, 21, 0.4) 45%, rgba(6, 8, 21, 0.85) 100%);
    pointer-events: none;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image:
        linear-gradient(rgba(120, 150, 220, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 150, 220, 0.06) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(ellipse 900px 500px at 50% 10%, #000 40%, transparent 90%);
    pointer-events: none;
}

.hero-heading-wrap {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-heading-wrap h1 {
    font-weight: 400;
    font-size: 42px;
    font-family: "Right Grotesk Medium";
    color: #ffffff;
    margin-bottom: 12px;
    transition: opacity 0.25s ease;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.hero-heading-wrap p {
    font-size: 20px;
    line-height: 1.4;
    color: #dfe1ec;
    transition: opacity 0.25s ease;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* ===================== NEW: pill navigation (sits above Key Capabilities) ===================== */
.service-pills-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 40px 0;
}

.service-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.service-pill {
    padding: 15px 26px;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 60%),
        #12162e;
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    font-family: "Right Grotesk Medium";
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 1px;
    /* box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.25); */
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.service-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.18);
}

.service-pill.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #e0902f 100%);
    border-color: transparent;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 6px 18px rgba(216, 130, 40, 0.3);
}

/* ===================== KEY FEATURES ===================== */
.rd-services-grid-section {
    max-width: 1700px;
    margin: 0 auto;
    padding: 32px 40px 80px;
}

.key-features-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    /* margin-bottom: 56px;
    padding-bottom: 44px; */
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.08); */
}

.capabilities {
    flex: 1;
    max-width: 560px;
}

.capabilities .label {
    font-family: "Right Grotesk Medium";
    font-weight: 600;
    font-size: 32px;
    color: #ffffff;
    letter-spacing: 1.2px;
    border-bottom: 2px solid #f2b705;
    display: inline-block;
    padding-bottom: 6px;
    margin-bottom: 20px;
}

.capabilities ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.capabilities li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 20px;
    color: #cfd1de;
    opacity: 0;
    transform: translateX(-8px);
    animation: slideIn 0.4s ease forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.capabilities li svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    stroke: #f2b705;
}

.icon-badge {
    flex-shrink: 0;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.icon-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 183, 5, 0.55) 0%, rgba(242, 113, 28, 0.28) 40%, rgba(120, 60, 160, 0.12) 65%, rgba(242, 113, 28, 0) 78%);
    filter: blur(6px);
}

.icon-badge-inner {
    position: relative;
    width: 170px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-badge-inner svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.bulb-outline {
    fill: none;
    stroke: #ffffff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bulb-node-line {
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.5;
    stroke-linecap: round;
}

.bulb-node-dot {
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.5;
}

.bulb-label {
    font-weight: 700;
    font-size: 26px;
    fill: #ffffff;
    text-anchor: middle;
    dominant-baseline: middle;
    transition: opacity 0.25s ease;
}

.rd-fade-update {
    animation: fadeUpdate 0.4s ease;
}

@keyframes fadeUpdate {
    0% {
        opacity: 0;
        transform: translateY(6px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .services-hero {
        min-height: 360px;
    }

    .key-features-block {
        flex-direction: column;
        align-items: flex-start;
    }

    .icon-badge {
        align-self: center;
        margin-top: 10px;
    }
}

@media (max-width: 560px) {
    .hero-heading-wrap h1 {
        font-size: 30px;
    }

    .rd-services-grid-section {
        padding: 40px 20px 60px;
    }

    .service-pill {
        padding: 10px 18px;
        font-size: 13px;
    }
}