:root {
    --ink: #15132f;
    --ink-soft: #55556d;
    --navy: #060b2e;
    --navy-soft: #10194a;
    --purple: #8b5cf6;
    --purple-dark: #6d28d9;
    --cyan: #22d3ee;
    --surface: #f6f5fb;
    --white: #ffffff;
    --border: rgba(92, 73, 160, 0.14);
    --shadow: 0 22px 60px rgba(28, 20, 76, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 280px;
    color: var(--ink);
    background: var(--surface);
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.wrapper {
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.hero {
    position: relative;
    isolation: isolate;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: clamp(48px, 8vw, 96px) 24px;
    background:
        radial-gradient(circle at 50% 28%, rgba(139, 92, 246, 0.35), transparent 34%),
        linear-gradient(180deg, rgba(3, 7, 30, 0.7), rgba(8, 9, 40, 0.84)),
        url("./assets/hero-technology.webp") center bottom / cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: auto 0 0;
    height: 28%;
    background: linear-gradient(transparent, rgba(6, 11, 46, 0.95));
}

.hero-content {
    width: min(940px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.img-logo {
    width: clamp(250px, 30vw, 390px);
    height: auto;
    margin-bottom: clamp(22px, 4vw, 38px);
    filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.45));
}

.eyebrow {
    color: var(--cyan);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 900px;
    margin-top: 14px;
    color: var(--white);
    font-family: "Poppins", "Inter", sans-serif;
    font-size: clamp(2.15rem, 6vw, 4.6rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.045em;
    text-wrap: balance;
    text-shadow: 0 8px 32px rgba(0, 0, 0, 0.42);
}

.hero-text {
    max-width: 720px;
    margin-top: 24px;
    color: #e7e9f8;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    line-height: 1.65;
    text-wrap: balance;
}

.button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 34px;
    padding: 15px 30px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    box-shadow: 0 14px 34px rgba(109, 40, 217, 0.38);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(109, 40, 217, 0.5);
    filter: brightness(1.08);
}

.button:focus-visible,
footer a:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 4px;
}

.section-assuntos {
    padding: clamp(72px, 10vw, 130px) 24px;
    background:
        radial-gradient(circle at 10% 15%, rgba(139, 92, 246, 0.11), transparent 24%),
        var(--surface);
}

.section-heading {
    width: min(760px, 100%);
    margin: 0 auto clamp(42px, 6vw, 72px);
    text-align: center;
}

.section-heading .eyebrow {
    color: var(--purple-dark);
}

.section-heading h2,
.sobre-text h2 {
    margin-top: 12px;
    font-family: "Poppins", "Inter", sans-serif;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.section-heading > p:last-child {
    max-width: 650px;
    margin: 18px auto 0;
    color: var(--ink-soft);
    font-size: 1.05rem;
}

.container-assuntos {
    width: min(1200px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(18px, 2.4vw, 30px);
}

.assuntos {
    min-width: 0;
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 26px;
    background: var(--white);
    box-shadow: 0 12px 38px rgba(28, 20, 76, 0.07);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.assuntos:hover {
    transform: translateY(-7px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: var(--shadow);
}

.img-assunto {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--navy);
}

.img-assunto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 400ms ease;
}

.assuntos:hover .img-assunto img {
    transform: scale(1.035);
}

.assunto-texto {
    display: flex;
    flex-direction: column;
    padding: 24px 22px 26px;
}

.assunto-texto h3 {
    min-height: 2.7em;
    color: var(--ink);
    font-size: 1.14rem;
    font-weight: 800;
    line-height: 1.35;
    text-wrap: balance;
}

.assunto-texto p {
    flex: 1;
    margin-top: 12px;
    color: var(--ink-soft);
    font-size: 0.93rem;
    line-height: 1.65;
}

.assunto-link {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    padding: 12px 18px;
    border: 1px solid rgba(109, 40, 217, 0.18);
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    box-shadow: 0 10px 24px rgba(109, 40, 217, 0.2);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.assunto-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(109, 40, 217, 0.3);
    filter: brightness(1.08);
}

.assunto-link:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 3px;
}

.section-sobre {
    display: grid;
    grid-template-columns: minmax(280px, 460px) minmax(0, 620px);
    align-items: center;
    justify-content: center;
    gap: clamp(42px, 7vw, 92px);
    padding: clamp(72px, 10vw, 128px) 24px;
    background:
        radial-gradient(circle at 22% 40%, rgba(34, 211, 238, 0.14), transparent 32%),
        linear-gradient(135deg, #080d35, #24104f 62%, #111746);
}

.sobre-imagem {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 32px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.sobre-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.sobre-text {
    color: #e9eaf7;
}

.sobre-text h2 {
    color: var(--white);
}

.sobre-text > p:not(.eyebrow) {
    margin-top: 18px;
    color: #cfd2e7;
    font-size: 1.02rem;
}

.button-light {
    background: linear-gradient(135deg, #935ff7, #5b27ce);
}

footer {
    display: grid;
    grid-template-columns: minmax(0, 440px) minmax(280px, 440px);
    align-items: center;
    justify-content: center;
    gap: clamp(42px, 8vw, 120px);
    padding: clamp(60px, 8vw, 92px) 24px;
    color: #d9dcef;
    background: #05091f;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.img-logo-footer {
    width: min(300px, 100%);
    height: auto;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.32));
}

.footer-brand p {
    max-width: 380px;
    margin-top: 18px;
    color: #aeb4d0;
}

.texto-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-style: normal;
}

.texto-footer h2 {
    margin-bottom: 4px;
    color: var(--white);
    font-size: 1.7rem;
    line-height: 1.2;
}

.texto-footer a,
.texto-footer p {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #c8cce0;
    font-size: 0.98rem;
    text-decoration: none;
}

.texto-footer > a:not(.social-link):hover {
    color: var(--cyan);
}

.img-contatos {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.82;
}

.social-link {
    min-height: 46px;
    margin-top: 8px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.social-link:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, 0.5);
    background: rgba(34, 211, 238, 0.1);
}

.social-link img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Páginas individuais dos serviços */
.service-body {
    color: var(--ink);
    background: var(--surface);
}

.service-topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(5, 9, 31, 0.94);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(14px);
}

.service-nav {
    width: min(1200px, calc(100% - 48px));
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 auto;
}

.service-nav > a:first-child {
    flex: 0 0 auto;
    border-radius: 12px;
    text-decoration: none;
}

.service-nav img {
    width: 112px;
    height: auto;
    filter: drop-shadow(0 7px 9px rgba(0, 0, 0, 0.35));
}

.back-link,
.service-nav > a:last-child {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #e8eaf8;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.back-link:hover,
.service-nav > a:last-child:hover {
    border-color: rgba(34, 211, 238, 0.5);
    color: var(--white);
    background: rgba(34, 211, 238, 0.09);
}

.service-nav a:focus-visible,
.text-link:focus-visible,
.service-footer a:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 4px;
}

.service-detail-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(64px, 8vw, 112px) 24px;
    color: var(--white);
    background:
        radial-gradient(circle at 78% 26%, rgba(34, 211, 238, 0.14), transparent 28%),
        radial-gradient(circle at 20% 48%, rgba(139, 92, 246, 0.23), transparent 32%),
        linear-gradient(135deg, #05091f, #11194b 58%, #24104f);
}

.service-detail-grid {
    width: min(1200px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: center;
    gap: clamp(46px, 7vw, 88px);
    margin: 0 auto;
}

.service-detail-copy h1 {
    max-width: 760px;
    margin-top: 14px;
    font-family: "Poppins", "Inter", sans-serif;
    font-size: clamp(2.5rem, 5.4vw, 4.7rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.service-lead {
    max-width: 670px;
    margin-top: 24px;
    color: #d4d7ea;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.7;
}

.service-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px 24px;
    margin-top: 34px;
}

.service-actions .button {
    margin-top: 0;
}

.text-link {
    position: relative;
    color: var(--cyan);
    font-size: 0.92rem;
    font-weight: 800;
    text-underline-offset: 5px;
}

.text-link:hover {
    color: var(--white);
}

.service-detail-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 32px;
    background: var(--navy);
    box-shadow: 0 32px 84px rgba(0, 0, 0, 0.38);
}

.service-detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.service-detail-content {
    padding: clamp(70px, 9vw, 124px) 24px;
    background:
        radial-gradient(circle at 10% 10%, rgba(139, 92, 246, 0.09), transparent 26%),
        var(--surface);
}

.service-detail-inner {
    width: min(1050px, 100%);
    margin: 0 auto;
}

.service-intro {
    max-width: 830px;
}

.service-intro h2,
.service-final-cta h2 {
    font-family: "Poppins", "Inter", sans-serif;
    font-size: clamp(1.9rem, 4vw, 3.1rem);
    line-height: 1.13;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.service-intro p {
    margin-top: 20px;
    color: var(--ink-soft);
    font-size: 1.04rem;
    line-height: 1.78;
}

.service-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: clamp(42px, 6vw, 68px);
}

.info-card {
    padding: clamp(28px, 4vw, 42px);
    border: 1px solid var(--border);
    border-radius: 26px;
    background: var(--white);
    box-shadow: 0 14px 42px rgba(28, 20, 76, 0.07);
}

.info-card h2,
.info-card h3 {
    color: var(--ink);
    font-size: 1.3rem;
    line-height: 1.3;
}

.info-card ul {
    display: grid;
    gap: 17px;
    margin-top: 24px;
    list-style: none;
}

.info-card li {
    position: relative;
    padding-left: 30px;
    color: var(--ink-soft);
    line-height: 1.6;
}

.info-card li::before {
    content: "✓";
    position: absolute;
    top: 0;
    left: 0;
    color: var(--purple-dark);
    font-weight: 900;
}

.service-final-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(70px, 9vw, 112px) 24px;
    color: var(--white);
    text-align: center;
    background:
        radial-gradient(circle at 50% 20%, rgba(34, 211, 238, 0.15), transparent 34%),
        linear-gradient(135deg, #11194b, #391276);
}

.service-final-cta h2,
.service-final-cta p {
    max-width: 760px;
}

.service-final-cta p {
    margin-top: 18px;
    color: #d4d7ea;
    font-size: 1.04rem;
}

.service-final-cta .button {
    margin-top: 30px;
}

.service-footer {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 24px;
    color: #aeb4d0;
    text-align: center;
    background: #05091f;
}

.service-footer a {
    color: var(--cyan);
    font-weight: 700;
    text-underline-offset: 4px;
}

.service-footer a:hover {
    color: var(--white);
}

@media (max-width: 1050px) {
    .container-assuntos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .assunto-texto h3 {
        min-height: auto;
    }
}

@media (max-width: 820px) {
    .hero {
        min-height: auto;
        background-position: center;
    }

    .section-sobre {
        grid-template-columns: minmax(0, 560px);
    }

    .sobre-imagem {
        width: min(100%, 430px);
        justify-self: center;
    }

    .sobre-text {
        text-align: center;
    }

    footer {
        grid-template-columns: minmax(0, 520px);
        text-align: center;
    }

    .footer-brand,
    .texto-footer {
        align-items: center;
    }

    .service-detail-grid {
        grid-template-columns: minmax(0, 620px);
        justify-content: center;
    }

    .service-detail-copy {
        text-align: center;
    }

    .service-actions {
        justify-content: center;
    }

    .service-detail-media {
        width: min(100%, 500px);
        justify-self: center;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 42px 18px 64px;
    }

    .img-logo {
        width: min(310px, 88vw);
    }

    .hero h1 {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .button {
        width: 100%;
        max-width: 360px;
        padding-inline: 20px;
    }

    .section-assuntos,
    .section-sobre {
        padding-inline: 16px;
    }

    .container-assuntos {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .assuntos {
        width: min(100%, 430px);
        margin-inline: auto;
    }

    .assunto-texto {
        padding: 22px 20px 24px;
    }

    .assunto-texto h3 {
        font-size: 1.17rem;
    }

    .sobre-imagem {
        border-radius: 24px;
    }

    footer {
        padding-inline: 18px;
    }

    .texto-footer a,
    .texto-footer p {
        justify-content: center;
        text-align: left;
    }

    .service-nav {
        width: calc(100% - 28px);
        min-height: 74px;
        gap: 12px;
    }

    .service-nav img {
        width: 88px;
    }

    .back-link,
    .service-nav > a:last-child {
        min-height: 38px;
        padding: 8px 12px;
        font-size: 0.76rem;
    }

    .service-detail-hero,
    .service-detail-content,
    .service-final-cta {
        padding-inline: 16px;
    }

    .service-detail-copy h1 {
        font-size: clamp(2.15rem, 12vw, 3.2rem);
    }

    .service-actions {
        flex-direction: column;
    }

    .service-actions .button {
        width: 100%;
    }

    .service-detail-media {
        border-radius: 24px;
    }

    .service-columns {
        grid-template-columns: 1fr;
    }

    .info-card {
        border-radius: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
