/* Modern segmented control style */
.segmented-control {
    position: relative;
    display: flex;
    background: white;
    border: 2px solid #000000;
    border-radius: 50px;
    padding: 4px;
    width: 100%;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    min-width: 720px;
}

.segment-btn {
    position: relative;
    flex: 1;
    padding: 6px 24px;
    border: none;
    background: transparent;
    color: #000000;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    z-index: 2;
}

.segment-btn.active {
    color: white;
    background: #000000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.20);
}

.segment-btn:hover:not(.active) {
    color: #374151;
    background: rgba(0, 0, 0, 0.04);
}

.segment-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: #000000;
    border-radius: 50px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Slider animation */
.segmented-control[data-active="add"] .segment-slider {
    transform: translateX(100%);
}

/* Main container */
.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 10px;
    margin-top: 20px;
    border-radius: 20px;
    background-color: #f8f9fa;
    border: 1px solid #b9b9b9;
}

/* Responsive */
@media (max-width: 768px) {
    .segment-btn {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .segment-btn {
        font-size: 12px;
    }

    .segmented-control{
        min-width: 100% !important;
    }
}

/* Additional animations */
.segmented-control {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Press effect on click */
.segment-btn:active {
    transform: scale(0.98);
}

/* Alternative version with smoother transition */
.segmented-control.smooth {
    overflow: hidden;
}

.segmented-control.smooth .segment-slider {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Ripple effect on click */
.segment-btn {
    position: relative;
    overflow: hidden;
}

.segment-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.segment-btn:active::after {
    width: 200px;
    height: 200px;
}

.hero-container-2-item{
    width: 120px;
}

.hero-container-2{
    display: flex;
    gap: 20px;
}

.heroSection{
    object-fit: cover;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: auto;
    width: 100%;
    margin-top: 0 !important;
    padding-top: 140px !important;
    padding-bottom: 24px !important;
    min-height: auto !important;
}

@media (max-width: 767px) {
    .heroSection {
        padding-top: 100px !important;
        padding-bottom: 12px !important;
        min-height: 0 !important;
    }
    .heroSection .hero-left {
        padding-bottom: 0 !important;
    }
    .heroSection .company-logos-section {
        margin-top: 8px !important;
    }
}

.new_header-scrolled{
    background-color: transparent;
    border-bottom: none;
}

.hero-all-container{
    display: flex;
    width: 100%;
    justify-content: center;
}

@media (min-width: 768px) and (max-width: 880px) {
    .hero-all-container{
        padding: 0 20px;
    }
}

/*--------------------- Fancy Hero One HOME V2 --------------------*/
.fancy-hero-one {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 10px 0 10px;
}
.fancy-hero-one h2 {
    /*font-size: 80px; */
    line-height: 1.1em;
}
.fancy-hero-one p {
    font-size: 24px;
    line-height: 1.75em;
    padding: 20px 25px 0;
    color: #232830;
}
.fancy-hero-one .page-title {
    font-size: 18px;
    text-transform: uppercase;
    color: rgba(42, 42, 42, 0.3);
    letter-spacing: 1.4px;
}
.fancy-hero-one .search-form {
    max-width: 720px;
    height: 70px;
    margin: 55px auto 0;
    position: relative;
}
.fancy-hero-one .search-form input {
    width: 100%;
    height: 100%;
    border: 2px solid #000;
    border-radius: 5px;
    padding: 0 95px 0 38px;
}
.fancy-hero-one .search-form button {
    width: 80px;
    background: var(--blue-dark);
    position: absolute;
    top: 7px;
    right: 7px;
    bottom: 7px;
    z-index: 5;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}
.fancy-hero-one .search-form button img {
    margin: 0 auto;
}
.fancy-hero-one .search-form button:hover {
    background: var(--yellow-deep);
}
.fancy-hero-one [class*="bubble"] {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
}
.fancy-hero-one [class*="bubble"]:before {
    content: "";
    border-radius: 50%;
    position: absolute;
}
.fancy-hero-one .bubble-one {
    width: 120px;
    height: 120px;
    left: 4%;
    top: 15%;
    animation: rotated 12s infinite linear;
}
.fancy-hero-one .bubble-one:before {
    width: 6px;
    height: 6px;
    background: #fac3ff;
    top: 0;
    left: 50%;
}
.fancy-hero-one .bubble-two {
    width: 160px;
    height: 160px;
    top: 30%;
    left: 15%;
    animation: rotated 17s infinite linear;
}
.fancy-hero-one .bubble-two:before {
    width: 10px;
    height: 10px;
    background: #8fe9e0;
    top: 50%;
    right: 100%;
}
.fancy-hero-one .bubble-three {
    width: 120px;
    height: 120px;
    bottom: 33%;
    left: 4%;
    animation: rotatedTwo 12s infinite linear;
}
.fancy-hero-one .bubble-three:before {
    width: 6px;
    height: 6px;
    background: #ffd5ad;
    bottom: 0;
    left: 50%;
}

.fancy-hero-one .bubble-four {
    width: 120px;
    height: 120px;
    right: 5%;
    top: 13%;
    animation: rotated 12s infinite linear;
}
.fancy-hero-one .bubble-four:before {
    width: 6px;
    height: 6px;
    background: #8fe9e1;
    top: 0;
    left: 50%;
}
.fancy-hero-one .bubble-five {
    width: 160px;
    height: 160px;
    top: 30%;
    right: 7%;
    animation: rotated 17s infinite linear;
}
.fancy-hero-one .bubble-five:before {
    width: 10px;
    height: 10px;
    background: #ffd5ad;
    top: 50%;
    right: 100%;
}
.fancy-hero-one .bubble-six {
    width: 120px;
    height: 120px;
    bottom: 33%;
    right: 4%;
    animation: rotatedTwo 12s infinite linear;
}
.fancy-hero-one .bubble-six:before {
    width: 6px;
    height: 6px;
    background: #fac3ff;
    bottom: 0;
    left: 50%;
}

@-webkit-keyframes rotated {
    0% {
        -webkit-transform: rotate(0);
        transform: rotate(0);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@keyframes rotated {
    0% {
        -webkit-transform: rotate(0);
        transform: rotate(0);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-webkit-keyframes rotatedTwo {
    0% {
        -webkit-transform: rotate(0);
        transform: rotate(0);
    }
    100% {
        -webkit-transform: rotate(-360deg);
        transform: rotate(-360deg);
    }
}
@keyframes rotatedTwo {
    0% {
        -webkit-transform: rotate(0);
        transform: rotate(0);
    }
    100% {
        -webkit-transform: rotate(-360deg);
        transform: rotate(-360deg);
    }
}

@-webkit-keyframes rotatedHalf {
    0% {
        -webkit-transform: rotate(0);
        transform: rotate(0);
    }
    50% {
        -webkit-transform: rotate(90deg);
        transform: rotate(90deg);
    }
    100% {
        -webkit-transform: rotate(0);
        transform: rotate(0);
    }
}
@keyframes rotatedHalf {
    0% {
        -webkit-transform: rotate(0);
        transform: rotate(0);
    }
    50% {
        -webkit-transform: rotate(90deg);
        transform: rotate(90deg);
    }
    100% {
        -webkit-transform: rotate(0);
        transform: rotate(0);
    }
}

@-webkit-keyframes rotatedHalfTwo {
    0% {
        -webkit-transform: rotate(-90deg);
        transform: rotate(-90deg);
    }
    100% {
        -webkit-transform: rotate(90deg);
        transform: rotate(90deg);
    }
}
@keyframes rotatedHalfTwo {
    0% {
        -webkit-transform: rotate(-90deg);
        transform: rotate(-90deg);
    }
    100% {
        -webkit-transform: rotate(90deg);
        transform: rotate(90deg);
    }
}

/*end fancy hero one home v2*/

/* Fondo animado de burbujas difusas para el hero */
.hero-bg-bubbles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-bg-bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    filter: blur(16px);
    animation: float-bubble 18s infinite alternate ease-in-out;
}
/* Animaciones personalizadas para cada burbuja de fondo */
.hero-bg-bubble.b1 {
    width: 180px; height: 180px;
    left: 10%; top: 20%;
    background: #000000;
    animation: float-bubble-1 18s infinite alternate ease-in-out;
}
.hero-bg-bubble.b2 {
    width: 120px; height: 120px;
    left: 70%; top: 10%;
    background: #2ac4b5;
    animation: float-bubble-2 22s infinite alternate-reverse ease-in-out;
}
.hero-bg-bubble.b3 {
    width: 140px; height: 140px;
    left: 50%; top: 60%;
    background: #000000;
    animation: float-bubble-3 26s infinite alternate ease-in-out;
}
.hero-bg-bubble.b4 {
    width: 100px; height: 100px;
    left: 80%; top: 70%;
    background: #2ac4b5;
    animation: float-bubble-4 20s infinite alternate-reverse ease-in-out;
}

@keyframes float-bubble-1 {
    0%   { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.7; }
    20%  { transform: translate(-30px, -40px) scale(1.08) rotate(8deg); opacity: 0.8; }
    40%  { transform: translate(-60px, -80px) scale(1.12) rotate(-6deg); opacity: 0.6; }
    60%  { transform: translate(-40px, -120px) scale(1.15) rotate(12deg); opacity: 0.7; }
    80%  { transform: translate(-10px, -80px) scale(1.1) rotate(-8deg); opacity: 0.8; }
    100% { transform: translate(-40px, -120px) scale(1.18) rotate(0deg); opacity: 0.7; }
}
@keyframes float-bubble-2 {
    0%   { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.7; }
    25%  { transform: translate(40px, -30px) scale(1.05) rotate(-10deg); opacity: 0.8; }
    50%  { transform: translate(60px, -80px) scale(1.1) rotate(10deg); opacity: 0.6; }
    75%  { transform: translate(30px, -40px) scale(1.08) rotate(-8deg); opacity: 0.8; }
    100% { transform: translate(60px, -80px) scale(1.13) rotate(0deg); opacity: 0.7; }
}
@keyframes float-bubble-3 {
    0%   { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.7; }
    20%  { transform: translate(-40px, 30px) scale(1.1) rotate(6deg); opacity: 0.8; }
    40%  { transform: translate(-80px, 60px) scale(1.2) rotate(-8deg); opacity: 0.6; }
    60%  { transform: translate(-40px, 100px) scale(1.15) rotate(10deg); opacity: 0.7; }
    80%  { transform: translate(-10px, 60px) scale(1.1) rotate(-6deg); opacity: 0.8; }
    100% { transform: translate(-80px, 60px) scale(1.22) rotate(0deg); opacity: 0.7; }
}
@keyframes float-bubble-4 {
    0%   { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.7; }
    30%  { transform: translate(20px, 40px) scale(1.03) rotate(8deg); opacity: 0.8; }
    60%  { transform: translate(40px, 100px) scale(1.05) rotate(-6deg); opacity: 0.6; }
    80%  { transform: translate(10px, 60px) scale(1.02) rotate(10deg); opacity: 0.8; }
    100% { transform: translate(40px, 100px) scale(1.08) rotate(0deg); opacity: 0.7; }
}

/* Decorative 3D PNG icons (code.png, server.png, ai3d.png) — were purple.
   Convert via grayscale filter so we don't have to ship new assets. */
.hero-bg-icon {
    filter: grayscale(100%) brightness(0.85) opacity(0.75);
}

.floating-brace {
    position: absolute;
    font-size: 120px;
    font-weight: bold;
    color: #000000;
    opacity: 0.13;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    filter: blur(0.5px);
    animation: float-brace 18s infinite alternate ease-in-out;
}
.floating-brace.brace-left {
    left: 8%;
    top: 35%;
    animation: float-brace-left 18s infinite alternate-reverse ease-in-out;
}
.floating-brace.brace-right {
    right: 5%;
    top: 45%;
    color: #2ac4b5;
    animation: float-brace-right 22s infinite alternate ease-in-out;
}
@keyframes float-brace-left {
    0%   { transform: translateY(0) rotate(-10deg);}
    50%  { transform: translateY(-40px) rotate(10deg);}
    100% { transform: translateY(0) rotate(-10deg);}
}
@keyframes float-brace-right {
    0%   { transform: translateY(0) rotate(10deg);}
    50%  { transform: translateY(40px) rotate(-10deg);}
    100% { transform: translateY(0) rotate(10deg);}
}

.hero-bg-icon.icon1 {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    width: 140px;
    height: 140px;
    left: 5%;
    top: 20%;
    animation: float-icon-1 18s infinite alternate ease-in-out;
}
@keyframes float-icon-1 {
    0%   { transform: translate(0, 0) scale(1) rotate(-8deg);}
    20%  { transform: translate(-20px, -20px) scale(1.08) rotate(8deg);}
    40%  { transform: translate(-30px, -40px) scale(1.12) rotate(-6deg);}
    60%  { transform: translate(-20px, -60px) scale(1.15) rotate(12deg);}
    80%  { transform: translate(-10px, -40px) scale(1.1) rotate(-8deg);}
    100% { transform: translate(-20px, -60px) scale(1.18) rotate(0deg);}
}

.hero-bg-icon.icon2 {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    width: 100px;
    height: 100px;
    left: 80%;
    top: 20%;
    animation: float-icon-2 22s infinite alternate-reverse ease-in-out;
}
.hero-bg-icon.icon3 {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    width: 150px;
    height: 150px;
    left: 75%;
    top: 60%;
    animation: float-icon-3 26s infinite alternate ease-in-out;
}
.hero-bg-icon.icon4 {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    width: 80px;
    height: 80px;
    left: 80%;
    top: 35%;
    animation: float-icon-4 20s infinite alternate-reverse ease-in-out;
}

.hero-bg-icon.icon5 {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    width: 100px;
    height: 100px;
    left: 5%;
    top: 55%;
    animation: float-icon-4 20s infinite alternate-reverse ease-in-out;
}


@keyframes float-icon-2 {
    0%   { transform: translate(0, 0) scale(1) rotate(0deg);  }
    25%  { transform: translate(20px, -30px) scale(1.05) rotate(-10deg);  }
    50%  { transform: translate(40px, -40px) scale(1.1) rotate(10deg);  }
    75%  { transform: translate(30px, -20px) scale(1.08) rotate(-8deg);  }
    100% { transform: translate(40px, -40px) scale(1.13) rotate(0deg);  }
}
@keyframes float-icon-3 {
    0%   { transform: translate(0, 0) scale(1) rotate(0deg);  }
    20%  { transform: translate(-40px, 30px) scale(1.1) rotate(6deg);  }
    40%  { transform: translate(-80px, 60px) scale(1.2) rotate(-8deg);  }
    60%  { transform: translate(-40px, 100px) scale(1.15) rotate(10deg);  }
    80%  { transform: translate(-10px, 60px) scale(1.1) rotate(-6deg);  }
    100% { transform: translate(-80px, 60px) scale(1.22) rotate(0deg);  }
}
@keyframes float-icon-4 {
    0%   { transform: translate(0, 0) scale(1) rotate(0deg);  }
    30%  { transform: translate(20px, 40px) scale(1.03) rotate(8deg);  }
    60%  { transform: translate(20px, 40px) scale(1.05) rotate(-6deg);  }
    80%  { transform: translate(10px, 30px) scale(1.02) rotate(10deg);  }
    100% { transform: translate(20px, 40px) scale(1.08) rotate(0deg);  }
}

@keyframes float-icon-5 {
    0%   { transform: translate(0, 0) scale(1) rotate(0deg);  }
    30%  { transform: translate(20px, 40px) scale(1.03) rotate(8deg);  }
    60%  { transform: translate(40px, 100px) scale(1.05) rotate(-6deg);  }
    80%  { transform: translate(10px, 60px) scale(1.02) rotate(10deg);  }
    100% { transform: translate(40px, 100px) scale(1.08) rotate(0deg);  }
}

@media (max-width: 800px) {
    .hero-bg-icon.icon1 {
        left: 10%;
        width: 80px;
        height: 80px;
        top: 15%;
    }
    .hero-bg-icon.icon2 {
        left: 60%;
        width: 80px;
        height: 80px;
        top: 15%;
    }
    .hero-bg-icon.icon3 {
        top: 76%;
        left: 70%;
        width: 100px;
        height: 100px;
    }
    .hero-bg-icon.icon4 {
        left: 5%;
        top: 80%;
        width: 60px;
        height: 60px;
    }
    .hero-bg-icon.icon5 {
        left: 5%;
    }

    .segmented-control{
        min-width: 640px;
    }
}

@media (max-width: 721px) {
    .segmented-control{
        min-width: 430px;
    }
}

/*---------------------  END Fancy Hero One HOME V2 --------------------*/


#find-apis-container{
    display: flex;
    width: 100% !important;
    flex-direction: column;
}

.apple-logo-v2{
    width: 60px !important;
}

.reviewsContainer{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
}

.reviewsContainer h3{
    height: 42px;
}

@media (max-width: 768px) {
    .company-logos-container img{
        width: 50px;
    }

    .hero-left h2{
        font-size: 16px !important;
    }

    .apple-logo-v2{
        width: 30px !important;
        margin-bottom: 12px !important;
    }

    .aa-DetachedSearchButtonPlaceholder{
        font-size:14px !important;
    }

    .reviewsContainer h3{
        font-size: 18px !important;
        height: 26px;
    }

    .reviewsContainer img{
        width: 120px !important;
    }

    .youtube-play-button{
        width: 160px !important;
        height: 160px !important;
    }
}

.trustpilot-widget iframe {
    transform: scale(1.2);
    margin-top: 5px;
  }

@keyframes textBounce360X {
    0%   { transform: perspective(1000px) rotateX(0deg); }
    100% { transform: perspective(1000px) rotateX(360deg); }
}

/* ---------- AI Agent MCP Banner (Give your AI agent...) ----------
   Mirrors the compact MCP card on the API item page for visual consistency. */
.agent-banner-section {
    /* Generous gap from the hero so the MCP card reads as its own block
       and pushes "How It Works" below the fold on common laptop heights. */
    padding-top: 56px !important;
    padding-bottom: 8px !important;
}
.agent-banner-section .container {
    padding-left: 16px;
    padding-right: 16px;
}

@media (max-width: 768px) {
    .agent-banner-section {
        padding-top: 32px !important;
    }
}

.agent-banner {
    /* Match the search-first hero card: white surface, neutral border, same radius + shadow */
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 20px 44px 20px 24px;
    position: relative;
    box-shadow: 0 8px 32px -16px rgba(15, 23, 42, 0.10);
}

.agent-banner-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
}

.agent-banner-close:hover {
    color: #000000;
}

.agent-banner-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.agent-banner-text-block {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.agent-banner-icon {
    background: #f3f4f6;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #000000;
    font-size: 14px;
}

.agent-banner-copy {
    min-width: 0;
}

.agent-banner-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.agent-banner-desc {
    font-size: 12px;
    color: #6b7280;
    margin-top: 3px;
    line-height: 1.4;
}

.agent-banner-cta {
    background: #000000;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.agent-banner-cta:hover {
    color: #fff;
    background: #374151;
}

.agent-banner-cta i {
    font-size: 11px;
}

.agent-banner-code-row {
    margin-top: 12px;
    background: #0f0f1a;
    border: 1px solid #1f1f2e;
    border-radius: 8px;
    padding: 10px 12px 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.agent-banner-code {
    flex: 1;
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
    font-size: 12px;
    color: #e5e7eb;
    word-break: break-all;
    line-height: 1.5;
    background: transparent;
    border: 0;
    padding: 0;
    min-width: 0;
}

.agent-banner-copy-btn {
    background: #000000;
    border: 0;
    color: #fff;
    border-radius: 6px;
    padding: 6px 11px;
    cursor: pointer;
    font-size: 12px;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.agent-banner-copy-btn:hover {
    background: #374151;
}

@media (max-width: 767px) {
    .agent-banner-section {
        padding: 16px 0;
    }

    .agent-banner-section .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .agent-banner {
        padding: 12px 32px 12px 14px;
    }

    .agent-banner-close {
        top: 6px;
        right: 8px;
        font-size: 16px;
        padding: 2px 6px;
    }

    .agent-banner-top {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .agent-banner-text-block {
        flex: none;
    }

    .agent-banner-cta {
        width: 100%;
        justify-content: center;
        white-space: normal;
        padding: 10px 14px;
    }

    .agent-banner-code-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
        margin-top: 12px;
    }

    .agent-banner-code {
        font-size: 11px;
        display: block;
    }

    .agent-banner-copy-btn {
        align-self: flex-end;
        padding: 8px 14px;
    }
}

@media (max-width: 480px) {
    .agent-banner-title {
        font-size: 14px;
    }

    .agent-banner-desc {
        font-size: 12px;
    }

    .agent-banner-code {
        font-size: 10px;
    }
}

/*=================================================================
  Search-first hero (replaces segmented control + heavy trust band)
  See resources/views/home/v2.blade.php hero section.
=================================================================*/

.hero-container--search-first {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 32px -16px rgba(15, 23, 42, 0.10);
    padding: 28px 28px 22px;
    gap: 18px;
}

/* Wrap the autocomplete. Customize via Algolia's CSS custom properties so we
   don't fight `.aa-Input` styles (those overrides caused a double-input look). */
.hero-search {
    width: 100%;
    margin-top: 0 !important;
    /* Bigger input + icon, scoped to the hero only */
    --aa-search-input-height: 60px;
    --aa-input-icon-size: 22px;
    --aa-font-size: 17px;
}

/* Category chips row */
.hero-chips {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}
.hero-chips__label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    margin-right: 4px;
}
.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    background: #f3f4f6;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.hero-chip__icon {
    color: #6b7280;
    transition: color 0.15s ease;
}
.hero-chip:hover,
.hero-chip:focus {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
    text-decoration: none;
}
.hero-chip:hover .hero-chip__icon,
.hero-chip:focus .hero-chip__icon {
    color: #ffffff;
}

/* ---------- Inline MCP announcement (between chips and trust strip) ---------- */
.hero-mcp-row {
    display: inline-flex;
    align-items: stretch;
    gap: 0;
    margin: 16px auto 4px;
    padding: 4px;
    border: 1px solid #ececf5;
    background: #fafaff;
    border-radius: 999px;
    font-size: 13.5px;
    line-height: 1.2;
    max-width: 100%;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.hero-mcp-row:hover,
.hero-mcp-row:focus-within {
    border-color: #d4cbff;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(76, 50, 200, 0.08);
}

/* Left side: link to /agents/setup */
.hero-mcp-row__main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 6px 6px;
    border-radius: 999px;
    text-decoration: none;
    color: #374151;
    transition: transform 0.18s ease, background-color 0.18s ease;
}
.hero-mcp-row__main:hover,
.hero-mcp-row__main:focus {
    text-decoration: none;
    color: #374151;
    transform: translateY(-1px);
}
.hero-mcp-row__tag {
    display: inline-flex;
    align-items: center;
    background: #16a34a;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 4px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    line-height: 1;
}
.hero-mcp-row__text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4b5067;
    flex-wrap: wrap;
}
.hero-mcp-row__text strong {
    color: #111827;
    font-weight: 700;
}
.hero-mcp-row__sep {
    color: #9ca3af;
}
.hero-mcp-row__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #693bf5;
    color: #ffffff;
    transition: background-color 0.18s ease, transform 0.18s ease;
}
.hero-mcp-row__main:hover .hero-mcp-row__arrow,
.hero-mcp-row__main:focus .hero-mcp-row__arrow {
    background: #693bf5;
    transform: translateX(2px);
}

/* Slim trust strip: small label + monochrome logos */
.hero-trust-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}
.hero-trust-strip__label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9ca3af;
}
.hero-trust-strip__logos {
    display: inline-flex;
    align-items: center;
    gap: 44px;
    flex-wrap: wrap;
    justify-content: center;
}
.hero-trust-strip__logos img {
    height: 56px;
    width: auto;
    opacity: 0.7;
    filter: grayscale(100%) brightness(0);
    transition: opacity 0.2s ease;
}
.hero-trust-strip__logos img:hover {
    opacity: 1;
}
.hero-trust-strip__logos .apple-logo-v2 {
    height: 56px;
    width: auto !important;
}

@media (max-width: 640px) {
    .hero-container--search-first {
        padding: 20px 16px 18px;
        gap: 14px;
    }
    .hero-search {
        --aa-search-input-height: 52px;
        --aa-input-icon-size: 20px;
        --aa-font-size: 16px;
    }
    .hero-trust-strip {
        gap: 18px;
    }
    .hero-trust-strip__logos {
        gap: 30px;
    }
    .hero-trust-strip__logos img,
    .hero-trust-strip__logos .apple-logo-v2 {
        height: 36px;
    }
    .hero-mcp-row {
        font-size: 12px;
        padding: 3px;
        margin: 12px 4px 0;
        flex-wrap: nowrap;
        max-width: 100%;
    }
    .hero-mcp-row__main {
        gap: 8px;
        padding: 5px 6px 5px 4px;
        min-width: 0;
        flex: 1 1 auto;
    }
    .hero-mcp-row__text {
        gap: 4px;
        min-width: 0;
    }
    .hero-mcp-row__arrow {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
    }
}

/* ============================================================
   Home v2 — Section rhythm & heading pattern
   Unified spacing + iconified section headers for:
   How It Works, Categories, Inspired, Trending, Recently Added
   ============================================================ */
.home-section {
    padding: 64px 0;
}
.home-section + .home-section {
    padding-top: 24px; /* avoid double padding when stacked */
}
.home-section.home-section--tight {
    padding: 40px 0 32px;
}

/* Override legacy spacing on sections that adopt .home-section */
.home-section.service-section,
.home-section.categories-section,
.home-section.how-it-works-section {
    margin-top: 0 !important;
    padding-top: 64px;
}

/* The section heading: icon chip + title + optional subtitle */
.home-section-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}
.home-section-heading__icon {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, #ffffff 0%, #f4f4f5 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 16px;
    color: #4f46e5;
    font-size: 24px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(15, 23, 42, 0.04),
        0 1px 2px rgba(15, 23, 42, 0.06),
        0 6px 14px -6px rgba(15, 23, 42, 0.14);
}
.home-section-heading__icon--fire   { color: #f97316; }
.home-section-heading__icon--eye    { color: #0ea5e9; }
.home-section-heading__icon--grid   { color: #8b5cf6; }
.home-section-heading__icon--play   { color: #ef4444; }
.home-section-heading__icon--spark  { color: #10b981; }

.home-section-heading__text {
    flex: 1 1 auto;
    min-width: 0;
}
.home-section-heading__title {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}
.home-section-heading__subtitle {
    font-size: 15px;
    color: #64748b;
    font-weight: 500;
    margin: 0;
    line-height: 1.45;
}

/* Suppress legacy .section-title spacing when nested inside .home-section */
.home-section .section-title { margin-bottom: 0; }

@media (max-width: 768px) {
    .home-section { padding: 40px 0; }
    .home-section.service-section,
    .home-section.categories-section,
    .home-section.how-it-works-section { padding-top: 40px; }
    .home-section-heading { gap: 14px; margin-bottom: 22px; }
    .home-section-heading__icon { width: 46px; height: 46px; font-size: 20px; border-radius: 14px; }
    .home-section-heading__title { font-size: 24px; }
    .home-section-heading__subtitle { font-size: 14px; }
}