/* HERO */
#mainContent > section#hero {
    min-height: calc(100svh - 130px);
    align-items: center;
    background-color: var(--color-primary);
    padding-block: 2rem;
}

.gridHero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 4rem;
}

.gridHero > div h1 {
    color: var(--color-white);
}

.gridHero > div em {
    color: var(--color-text-muted);
    font-style: normal;
}

.gridHero > div p {
    color: var(--color-text-muted);
}

.vetor {
    width: min(100%, 700px);
    animation: heroVectorEntrance 0.9s ease-out both,
        heroVectorFloat 6s ease-in-out 0.9s infinite;
    transform-origin: center bottom;
}

.gridFilter {
    display: flex;
    gap: 10px;
    align-items: center;
    text-align: center;
}

.gridFilter span {
    display: block;
    color: var(--color-text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.gridFilter button {
    background-color: transparent;
    color: var(--color-text-muted);
    padding: 2px;
    border: solid 10px var(--color-border);
    border-radius: 5px;
}

.gridFilter button:hover {
    cursor: pointer;
    color: var(--color-white);
}

@keyframes heroVectorEntrance {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroVectorFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* NAVIGATION */
.navigation {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    padding-block: 0.75rem;
}

.navigation a {
    text-decoration: none;
}

.navigation p {
    margin: 0;
    font-size: inherit;
    font-weight: 600;
}

/* HOW IT WORKS */
#how {
    background-color: var(--color-background-muted);
}

.gridHow {
    text-align: center;
}

.steps {
    display: flex;
    position: relative;
    gap: 0;
}

.steps-line {
    position: absolute;
    top: 27px;
    right: calc(12.5% + 20px);
    left: calc(12.5% + 20px);
    height: 2px;
    overflow: hidden;
    background-color: var(--color-border);
    z-index: 0;
}

.steps-line-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--color-text-secondary), rgba(74, 90, 114, 0.4));
    transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.steps-line-fill.animated {
    width: 100%;
}

.step {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 0 20px;
    text-align: center;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.steps.is-animated .step {
    opacity: 0;
    transform: translateY(18px);
}

.steps.is-animated .step.activated {
    opacity: 1;
    transform: translateY(0);
}

.stepNum {
    display: flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 20px;
    border: 2px solid var(--color-border);
    border-radius: 50%;
    background-color: var(--color-background-muted);
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    font-weight: 700;
    transition: background-color 0.4s ease, border-color 0.4s ease,
        color 0.4s ease, transform 0.3s ease, box-shadow 0.4s ease;
}

.step.activated .stepNum {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 8px 20px rgba(12, 29, 54, 0.2);
    transform: scale(1.08);
}

.stepNumText,
.stepIcon {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.stepIcon {
    position: absolute;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    opacity: 0;
    transform: scale(0.5);
}

.step.activated .stepNumText {
    opacity: 0;
    transform: scale(0.5);
}

.step.activated .stepIcon {
    opacity: 1;
    transform: scale(1);
}

.step h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.step p {
    margin-top: 0;
}

/* SERVICES */
.gridServices {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
}

.services {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 1.5rem;
    border: solid 1px var(--color-border);
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.notFound {
    background-color: var(--color-background-muted);
}

.services::before {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background-color: var(--color-primary);
    content: '';
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.services:hover {
    background-color: var(--color-background-muted);
    box-shadow: inset 0 0 0 1px var(--color-border);
}

.services:hover::before {
    transform: scaleX(1);
}

.services > h3,
.services > p {
    margin: 0;
}

.services > h3 {
    font-size: 1rem;
    line-height: 1.3;
    color: var(--color-primary);
}

.services > p {
    font-size: 0.85rem;
    flex: 1;
}

.services > div:last-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.serviceSpan span {
    color: var(--color-text-secondary);
    background-color: var(--color-background-muted);
    border-radius: 2px;
    padding: 3px 8px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.serviceSpan {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.service-arrow {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: var(--color-primary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.services:hover .service-arrow {
    transform: translateX(5px);
}

.serviceIconCta {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.serviceIconCta svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform-origin: center;
    animation: ctaIconHover 0.8s ease-in-out 0.35s both;
}

/* SERVICE ICON ANIMATION */
@keyframes ctaIconHover {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    35% {
        transform: rotate(-7deg) scale(1.08);
    }
    70% {
        transform: rotate(5deg) scale(1.04);
    }
}

/* CTA */
#ctaServices {
    background-color: var(--color-primary);
    text-align: center;
}

#ctaServices > div {
    max-width: 640px;
    margin: 0 auto;
}

#ctaServices .label {
    color: rgba(214, 221, 230, 0.55);
}

#ctaServices h2 {
    margin-bottom: 1.125rem;
    color: var(--color-white);
}

#ctaServices p {
    margin-bottom: 2.25rem;
    color: rgba(214, 221, 230, 0.65);
    line-height: 1.8;
}

#ctaServices > div > div {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}