.hero {
    position: relative;
    overflow: hidden;
    /* clip doesn't create a scroll container, so #contact anchors scroll the window instead of the hero */
    overflow: clip;
    background: linear-gradient(270deg, var(--main-orange) 0%, var(--main-blue) 100%);
}

/* Camadas decorativas */
.hero__decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero__glow,
.hero__wing {
    position: absolute;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

/* Glow drawn with gradients (no image request, never an LCP candidate).
   Stops reproduce the Figma circles blurred by stdDeviation 200 at 50% opacity */
.hero__glow {
    --glow-blue: rgb(0 0 130 / .432) 0%, rgb(0 0 130 / .365) 20%, rgb(0 0 130 / .244) 35%, rgb(0 0 130 / .116) 50%, rgb(0 0 130 / .037) 65%, rgb(0 0 130 / .007) 80%, rgb(0 0 130 / 0) 100%;
    --glow-orange: rgb(246 141 57 / .361) 0%, rgb(246 141 57 / .291) 20%, rgb(246 141 57 / .182) 35%, rgb(246 141 57 / .082) 50%, rgb(246 141 57 / .026) 65%, rgb(246 141 57 / .006) 80%, rgb(246 141 57 / 0) 100%;
    --glow-orange-small: rgb(246 141 57 / .197) 0%, rgb(246 141 57 / .154) 20%, rgb(246 141 57 / .092) 35%, rgb(246 141 57 / .041) 50%, rgb(246 141 57 / .013) 65%, rgb(246 141 57 / .003) 80%, rgb(246 141 57 / 0) 100%;
    top: -518px;
    left: calc(54.17% - 970.25px);
    width: 1923px;
    height: 2382px;
    background-image:
        radial-gradient(circle 800px at 828px 1291px, var(--glow-orange-small)),
        radial-gradient(circle 920px at 720px 720px, var(--glow-orange)),
        radial-gradient(circle 1000px at 1123px 1582px, var(--glow-blue));
}

.hero__wing {
    mix-blend-mode: soft-light;
}

.hero__wing--top {
    top: -107px;
    right: -95px;
    width: 321px;
    height: 160px;
    background-image: url('../../assets/img/hero/wing-top-mobile.svg');
}

.hero__wing--left {
    top: 328px;
    left: 20px;
    width: 121px;
    height: 60px;
    background-image: url('../../assets/img/hero/wing-left-mobile.svg');
}

.hero__wing--center {
    top: 80px;
    left: calc(91.67% - 331.5px);
    width: 643px;
    height: 320px;
    background-image: url('../../assets/img/hero/wing-center-mobile.svg');
}

.hero__image {
    position: absolute;
    top: 2px;
    right: -334px;
    width: 900px;
    height: 600px;
    max-width: none;
    object-fit: cover;
    pointer-events: none;
}

.hero__icons {
    position: absolute;
    bottom: 20px;
    left: 50%;
    display: flex;
    gap: 64px;
    opacity: .4;
    transform: translateX(-50%);
}

.hero__icon img {
    display: block;
}

/* Conteúdo */
.hero__container {
    position: relative;
    z-index: 1;
    padding-top: 48px;
    padding-bottom: 48px;
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    width: 220px;
}

.hero__intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

.hero__title {
    font-size: 20px;
    line-height: 1.2;
    color: var(--white);
}

.hero__break {
    display: none;
}

.hero__brands {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 800px;
    background: var(--white);
    overflow: hidden;
}

.hero__brand {
    position: relative;
    flex-shrink: 0;
    width: 63px;
    height: 40px;
    overflow: hidden;
}

.hero__brand + .hero__brand {
    margin-left: -2px;
}

.hero__brand-img {
    position: absolute;
    top: -6.3%;
    left: -6.03%;
    width: 112.23%;
    height: 112.25%;
    max-width: none;
}

.hero__slogan {
    display: block;
    width: 165px;
    height: 72px;
}

/* Formulário */
.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
}

.hero__form {
    margin-top: 40px;
    scroll-margin-top: 24px;
}

.form__title {
    font-family: 'Amplesoft Pro Bold', sans-serif;
    font-size: 21px;
    line-height: 26px;
    color: var(--main-blue);
}

.form__body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form__fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form__row {
    display: flex;
    gap: 16px;
}

.form__row .form__input {
    flex: 1 1 0;
    min-width: 0;
}

.form__row .form__input--ddd {
    max-width: 80px;
}

.form__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.form__input {
    display: block;
    width: 100%;
    height: 40px;
    padding: 0 12px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1;
    color: var(--gray-800);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    outline: none;
    appearance: none;
    transition: border-color .2s ease;
}

.form__input::placeholder {
    color: var(--gray-600);
    opacity: 1;
}

.form__input:focus {
    border-color: var(--main-blue);
}

.form__input--error,
.form__input--error:focus {
    border-color: #E5484D;
}

.form__input--textarea {
    height: 80px;
    padding: 16px 12px;
    resize: none;
}

.form__actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    padding: 8px 20px 8px 24px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    background: var(--main-orange);
    border: 0;
    border-radius: 800px;
    cursor: pointer;
    transition: filter .2s ease;
}

.form__button:hover,
.form__button:focus-visible {
    filter: brightness(.92);
}

.form__consent {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--gray-800);
    cursor: pointer;
}

.form__checkbox {
    position: relative;
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    margin: 0;
    background: var(--white);
    border: 1px solid var(--gray-400);
    border-radius: 2px;
    appearance: none;
    cursor: pointer;
}

.form__checkbox:checked {
    background: var(--main-blue);
    border-color: var(--main-blue);
}

.form__checkbox:checked::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 3px;
    width: 3px;
    height: 6px;
    border: solid var(--white);
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.form__checkbox:focus-visible {
    outline: 2px solid var(--main-blue);
    outline-offset: 2px;
}

.form__link {
    font-weight: 500;
    color: var(--main-blue);
    text-decoration: none;
}

.form__link:hover,
.form__link:focus-visible {
    text-decoration: underline;
}

.form__dot {
    font-weight: 500;
}

@media (min-width: 768px) {
    .hero__glow {
        top: -826px;
        left: calc(50% - 1130px);
        width: 2262px;
        height: 2382px;
        background-image:
            radial-gradient(circle 800px at 872px 1291px, var(--glow-orange-small)),
            radial-gradient(circle 920px at 720px 720px, var(--glow-orange)),
            radial-gradient(circle 1000px at 1462px 1582px, var(--glow-blue));
    }

    .hero__wing--top {
        top: -16px;
        right: -40px;
    }

    .hero__wing--left {
        top: 459px;
        left: calc(12.5% - 50px);
    }

    .hero__wing--center {
        top: 120px;
        left: calc(50% - 323px);
    }

    .hero__image {
        top: 39px;
        right: auto;
        left: calc(50% - 450px);
    }

    .hero__icons {
        top: 561px;
        bottom: auto;
        left: 6%;
        transform: none;
    }

    .hero__container {
        height: 640px;
        padding-top: 65px;
        padding-bottom: 0;
    }

    .hero__content {
        gap: 40px;
        width: 242px;
    }

    .hero__intro {
        gap: 32px;
    }

    .hero__title {
        font-size: 32px;
        line-height: 1.25;
    }

    .hero__brands {
        width: 100%;
        padding: 0 16px;
    }

    .hero__brand {
        width: 75px;
        height: 48px;
    }

    .hero__brand + .hero__brand {
        margin-left: 4px;
    }

    .hero__slogan {
        width: 229px;
        height: 100px;
    }

    .hero__form {
        position: absolute;
        top: 50%;
        left: calc(50% + 10px);
        width: 328px;
        margin-top: 0;
        transform: translateY(-50%);
    }

    .form__row--name {
        flex-direction: column;
    }

    .form__row--name .form__input {
        flex: none;
    }
}

@media (min-width: 1200px) {
    .hero__glow {
        top: -763px;
        left: calc(50% - 1654px);
        width: 3257px;
        height: 2272px;
        background-image:
            radial-gradient(circle 800px at 1003px 1302px, var(--glow-orange-small)),
            radial-gradient(circle 920px at 720px 720px, var(--glow-orange)),
            radial-gradient(circle 1000px at 2457px 1472px, var(--glow-blue));
    }

    .hero__wing--top {
        top: -20px;
        right: auto;
        left: calc(50% + 318px);
        width: 402px;
        height: 200px;
        background-image: url('../../assets/img/hero/wing-top-desktop.svg');
    }

    .hero__wing--left {
        top: 440px;
        left: calc(50% - 720px);
        width: 161px;
        height: 80px;
        background-image: url('../../assets/img/hero/wing-left-desktop.svg');
    }

    .hero__wing--center {
        left: calc(50% - 331px);
        width: 803px;
        height: 400px;
        background-image: url('../../assets/img/hero/wing-center-desktop.svg');
    }

    .hero__image {
        left: calc(50% - 473px);
    }

    .hero__icons {
        left: calc(50% - 491px);
    }

    .hero__container {
        padding-top: 99px;
    }

    .hero__content {
        gap: 48px;
        width: 461px;
    }

    .hero__title {
        white-space: nowrap;
    }

    .hero__break {
        display: inline;
    }

    .hero__brands {
        width: auto;
    }

    .hero__brand {
        width: 94px;
        height: 60px;
    }

    .hero__brand + .hero__brand {
        margin-left: 8px;
    }

    .hero__slogan {
        width: 366px;
        height: 160px;
    }

    .hero__form {
        top: 59px;
        right: 0;
        left: auto;
        width: 480px;
        transform: none;
    }

    .form {
        gap: 24px;
        padding: 32px;
    }

    .form__body {
        gap: 32px;
    }

    .form__row--name {
        flex-direction: row;
    }

    .form__row--name .form__input {
        flex: 1 1 0;
    }
}
