.ai-powered {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(47, 47, 47, 1);
    font-size: 16px;
    font-weight: 400;
    line-height: 100%;
    background-color: rgba(229, 229, 229, 1);
    border: 1px solid rgba(93, 93, 93, 1);
    border-radius: 32px;
    padding: 8px 14px;
    box-sizing: border-box;
    margin-top: 15vh;

    min-height: 39px;
}



.ai-powered>* {
    margin: 0;
}

.ai-powered-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    display: block;
}

.ai-powered p {
    margin: 0;
    line-height: 1;
    white-space: nowrap;
}



.first-section {
    text-align: center;
    top: 0;
    min-height: 100vh;
    width: 100%;
    background-image: url("../images/bg1.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.first-section > .description {
    font-weight: 400;
    font-size: 24px;
    width: 731px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.first-section > .nested-button > .url-input {
  width: 100%;
  height: 4.8rem;
  border-radius: 10px;
  border: none;
  box-sizing: border-box;
  padding: 1.5rem;                       /* base padding */
  padding-right: calc(197px + 12px);     /* button width + gap */
  font-size: 20px;
}

.first-section > .nested-button > .url-input::placeholder {
    font-weight: 400;
    font-size: 16px;
    color: rgba(170, 170, 170, 1);
    line-height: 100%;
    padding: 1.5rem;
}

.nested-button {
  display: grid;
  width: 771px;
  margin: 24px auto 0;
}

.nested-button {
  display: grid;
  /* Match the intended input width, but clamp for small screens */
  width: min(48.18rem, 90vw);
  margin: 24px auto 0;   /* <— centers horizontally */
  margin-top: 48px;
}

.nested-button > * {
  grid-area: 1 / 1;
}


.nested-button .pill {
  justify-self: end;
  align-self: center;
  margin-right: 12px;
  width: 197px;
  height: 57px;
  border: 0;
  border-radius: 10px;
  background: rgba(0, 157, 255, 1);
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  font-weight: 400;
}

.nested-button > .pill > .arrow {
    margin-left: 8px;
}

.first-section > .bullets {
    color: rgba(170, 170, 170, 1);
    display: flex;
    justify-content: center;
    gap: 64px;
    margin-top: 24px;
    font-size: 16px;
    font-weight: 400;

}

.first-section > .bullets > .bullet {
    display: flex;
    align-items: center;
    gap: 12px;
}

.second-section {
    text-align: center;
    margin-top: 64px;
}

.second-section > .description {
    color: rgba(111, 111, 111, 1);
    width: 929px;
    margin-right: auto;
    margin-left: auto;
    font-size: 24px;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.card {
    background: white;
    border-radius: 10px;
    border: 2px solid rgba(226, 226, 226, 1);
    width: 25.6vw;
    padding: 24px;
    box-sizing: border-box;
    text-align: left;
}

.cards > .card > .icon {
    width: 50px;
    height: 50px;
}

.cards > .card > .card-title {
    font-weight: 500;
    font-size: 24px;
    color: rgba(48, 48, 48, 1);
}

.cards > .card > .card-description {
    font-weight: 400;
    font-size: 20px;
    color: rgba(111, 111, 111, 1);
    margin-top: 8px;
}

.third-section {
    background-color: rgba(241, 250, 255, 1);
    text-align: center;
    padding: 40px;
    margin-top: 40px;
}

.third-section > h2 {
    color: rgba(0, 157, 255, 1);
    font-weight: 600;
    font-size: 48px;
    margin: 0;
}

.third-section > p {
    color: rgba(48, 48, 48, 1);
    font-weight: 400;
    font-size: 24px;
    margin-top: 16px;
    margin-bottom: 0;
}

/* How It Works Section */
.how-it-works-section {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    padding: 60px 40px;
    background-color: white;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    flex: 1;
    background: white;
    border: 2px solid #009DFF;
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 157, 255, 0.2);
}

.step-number {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #009DFF;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.step-icon {
    margin-top: 20px;
    margin-bottom: 20px;
}

.step-icon svg {
    width: 64px;
    height: 64px;
}

.step-title {
    color: #303030;
    font-size: 24px;
    font-weight: 600;
    margin: 16px 0;
}

.step-description {
    color: #6F6F6F;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
}

/* Footer */
.footer {
    background-color: #f5f5f5;
    text-align: center;
    padding: 30px 20px;
    color: #6F6F6F;
    font-size: 14px;
    margin-top: 60px;
}

.footer p {
    margin: 0;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .ai-powered {
        margin-top: 10vh;
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .ai-powered-icon {
        width: 12px;
        height: 12px;
    }

    .first-section {
        min-height: 85%;
        height: 85%;
    }
    
    .first-section > .description {
        width: 90%;
        font-size: 18px;
        padding: 0 16px;
    }
    
    .nested-button {
        width: 90%;
        margin-top: 32px;
    }
    
    .first-section > .nested-button > .url-input {
        height: auto;
        min-height: 56px;
        padding: 12px;
        padding-right: 12px;
        font-size: 14px;
    }
    
    .first-section > .nested-button > .url-input::placeholder {
        font-size: 14px;
        padding: 0;
    }
    
    .nested-button .pill {
        position: relative;
        width: 100%;
        margin: 8px 0 0 0;
        justify-self: stretch;
        height: 48px;
        font-size: 18px;
    }
    
    .nested-button {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .nested-button > * {
        grid-area: unset;
    }
    
    .first-section > .bullets {
        flex-direction: column;
        gap: 16px;
        margin-top: 24px;
        padding: 0 16px;
    }
    
    .second-section {
        margin-top: 48px;
        padding: 0 16px;
    }
    
    .second-section > .description {
        width: 100%;
        font-size: 18px;
    }
    
    .cards {
        gap: 16px;
        margin-top: 32px;
        padding: 0 16px;
    }
    
    .card {
        width: 100%;
        max-width: 100%;
        padding: 20px;
    }
    
    .cards > .card > .card-title {
        font-size: 20px;
    }
    
    .cards > .card > .card-description {
        font-size: 16px;
    }
    
    .third-section {
        padding: 32px 16px;
    }
    
    .third-section > h2 {
        font-size: 32px;
    }
    
    .third-section > p {
        font-size: 18px;
    }
    
    .how-it-works-section {
        flex-direction: column;
        gap: 24px;
        padding: 40px 20px;
    }
    
    .step-card {
        padding: 32px 20px;
    }
    
    .step-title {
        font-size: 20px;
    }
    
    .step-description {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .ai-powered {
        margin-top: 8vh;
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .first-section > .description {
        font-size: 16px;
    }
    
    .nested-button .pill {
        height: 44px;
        font-size: 16px;
    }
    
    .cards > .card > .icon {
        width: 40px;
        height: 40px;
    }
    
    .cards > .card > .card-title {
        font-size: 18px;
    }
    
    .cards > .card > .card-description {
        font-size: 14px;
    }
    
    .third-section > h2 {
        font-size: 28px;
    }
    
    .third-section > p {
        font-size: 16px;
    }
    
    .how-it-works-section {
        padding: 32px 16px;
    }
    
    .step-card {
        padding: 28px 16px;
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 16px;
        top: 16px;
        left: 16px;
    }
    
    .step-icon svg {
        width: 48px;
        height: 48px;
    }
    
    .step-title {
        font-size: 18px;
    }
    
    .step-description {
        font-size: 13px;
    }
}