/* ===== RESET BÁSICO ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Roboto", sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    padding-top: var(--header-height);
}

/* ===== VARIÁVEIS DE TEMA ===== */
:root {
    --bg-main: #0b0b0f;
    --bg-elevated: #111827;
    --bg-elevated-alt: #020617;
    --bg-card: #111827;
    --bg-card-alt: #020617;
    --bg-hero: #020617;
    --bg-footer: #020617;
    --header-bg: rgba(15, 23, 42, 0.9);

    --border-subtle: #1f2937;
    --border-strong: #374151;

    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    --accent: #f8fafc;
    --accent-hover: #ffffff;
    --accent-soft: rgba(248, 250, 252, 0.14);
    --button-primary: #f8fafc;
    --button-primary-text: #020617;
    --danger: #dc2626;
    --success: #22c55e;

    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.65);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --header-height: 72px;
}

/* ===== ELEMENTOS BASE ===== */
img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    font: inherit;
    border: none;
    background: none;
    color: inherit;
    cursor: pointer;
}

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section--alt {
    background-color: var(--bg-elevated-alt);
}

.section__header {
    text-align: center;
    margin-bottom: 2.75rem;
}

.section__title {
    font-size: 2rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.section__subtitle {
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
}

/* ===== GRID ===== */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid--3cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid--2cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--1col {
    grid-template-columns: minmax(0, 1fr);
}

/* ===== CARDS E BOTÕES ===== */
.card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.card--large {
    min-height: 260px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    padding: 0.9rem 1.7rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.65) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
}

.btn--primary {
    background: var(--button-primary);
    color: var(--button-primary-text);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
}

.btn--primary:hover {
    background: #38bdf8;
    color: #020617;
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(56, 189, 248, 0.42);
}

.btn--ghost {
    background-color: transparent;
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    background-color: rgba(56, 189, 248, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(56, 189, 248, 0.18);
}

.btn:hover::before {
    transform: translateX(120%);
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
    background-color: var(--bg-elevated);
    transition: all 0.2s ease;
}

.btn-icon:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 40;
    height: var(--header-height);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.14), transparent 60%),
        var(--header-bg);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.header__content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
}

.header__brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.header__logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 0.75rem;
    background: radial-gradient(circle at 10% 0, #38bdf8, #0f172a);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e5e7eb;
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.4);
}

.header__logo-text {
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav {
    flex: 1;
    position: relative;
    padding-right: 15rem;
}

.nav__list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
}

.nav__link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    padding-bottom: 0.35rem;
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00bfff, #38bdf8);
    border-radius: 999px;
    transition: width 0.22s ease;
}

.nav__link:hover,
.nav__link.active {
    color: var(--text-primary);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.header__btn-portfolio {
    font-size: 0.85rem;
}

.header__btn-cta {
    font-size: 0.85rem;
}

.header__menu-toggle {
    display: none;
}

/* ===== HERO ===== */
.hero {
    padding: 4.5rem 0 4rem;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 55%),
        radial-gradient(circle at top right, rgba(45, 212, 191, 0.12), transparent 55%),
        var(--bg-hero);
}

.hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
}

.hero__eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.9rem;
    opacity: 0;
    animation: hero-rise-in 0.7s ease forwards;
}

.hero__title {
    font-size: clamp(2.1rem, 3vw, 2.7rem);
    line-height: 1.15;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    opacity: 0;
    animation: hero-rise-in 0.7s 0.12s ease forwards;
}

.hero__title span {
    position: relative;
    display: inline-block;
    color: #e5f2ff;
}

.hero__title span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 100%;
    height: 2px;
    background: #38bdf8;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.7);
    transform: scaleX(0);
    transform-origin: left;
    animation: hero-line-in 0.8s 0.72s ease forwards;
}

.hero__subtitle {
    color: var(--text-secondary);
    max-width: 580px;
    margin-bottom: 1.6rem;
    opacity: 0;
    animation: hero-rise-in 0.7s 0.24s ease forwards;
}

.hero__cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
    opacity: 0;
    animation: hero-rise-in 0.7s 0.36s ease forwards;
}

.hero__note {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0;
    animation: hero-rise-in 0.7s 0.48s ease forwards;
}

.hero__note i {
    color: var(--success);
}

/* bloco visual hero */
.hero__visual {
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    animation: hero-visual-in 0.9s 0.2s ease forwards;
}

.code-window {
    width: 100%;
    max-width: 480px;
    min-height: 300px;
    padding: 1.5rem;
    background: radial-gradient(circle at 10% 0, rgba(56, 189, 248, 0.16), transparent 70%),
        var(--bg-card-alt);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.9);
    overflow: hidden;
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.72rem;
    line-height: 1.6;
    color: var(--text-secondary);
    position: relative;
    animation: code-window-float 6s 1.1s ease-in-out infinite;
}

.code-window::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    border-radius: inherit;
    background: linear-gradient(115deg, transparent 25%, rgba(56, 189, 248, 0.7), transparent 75%) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    background-size: 220% 100%;
    animation: code-border-sweep 4.5s linear infinite;
    pointer-events: none;
}

.code-window p {
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.code-indent-1 {
    margin-left: 1rem;
}

.code-indent-2 {
    margin-left: 2rem;
}

.code-indent-3 {
    margin-left: 3rem;
}

.code-tag {
    color: #38bdf8;
}

.code-attribute {
    color: #facc15;
}

.code-text {
    color: #e5e7eb;
}

.code-success {
    color: var(--success);
}

.code-caret {
    display: inline-block;
    width: 0.5rem;
    height: 1em;
    margin-top: 0.25rem;
    background-color: #38bdf8;
    vertical-align: middle;
    animation: code-caret-pulse 1s steps(2, start) infinite;
}

@keyframes hero-rise-in {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-visual-in {
    from {
        opacity: 0;
        transform: translateX(2rem) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes hero-line-in {
    to {
        transform: scaleX(1);
    }
}

@keyframes code-window-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-0.45rem);
    }
}

@keyframes code-border-sweep {
    from {
        background-position: 120% 0;
    }

    to {
        background-position: -120% 0;
    }
}

@keyframes code-caret-pulse {
    50% {
        opacity: 0;
    }
}

/* ===== SERVIÇOS ===== */
.services-grid {
    margin-top: 1rem;
}

.service-card {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    border-radius: 14px;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.1), transparent 55%),
        var(--bg-card);
    border: 1px solid rgba(148, 163, 184, 0.3);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: radial-gradient(circle at 25% -20%, var(--accent), var(--bg-elevated-alt));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e5e7eb;
    margin-bottom: 0.75rem;
}

.service-card__title {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.service-card__text {
    font-size: 0.94rem;
    color: var(--text-secondary);
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.9);
    border-color: var(--accent);
}

/* ===== DESAFIOS / SOLUÇÃO ===== */
.challenges {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
}

.challenges__block {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.9rem 1.6rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    transform: translateX(-1.5rem);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.challenges__block.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.challenges__block:hover {
    border-color: var(--accent);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.78);
}

.challenges__block--solution {
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.16), transparent 60%),
        var(--bg-card-alt);
    border-color: rgba(56, 189, 248, 0.6);
    transform: translateX(1.5rem);
}

.challenges__block--solution.is-visible {
    transform: translateX(0);
}

.challenges__title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.challenge-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1rem;
}

.challenge-list__item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.challenge-list__icon {
    margin-top: 2px;
    font-size: 1.05rem;
}

.challenge-list__icon--danger {
    color: var(--danger);
}

.challenge-list__icon--success {
    color: var(--success);
}

/* ===== PROCESSO ===== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.3rem;
}

.process-step {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.3rem 1.2rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.process-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.9);
    border-color: var(--accent);
}

.process-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background-color: var(--bg-card-alt);
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 0.7rem;
}

.process-step__title {
    font-size: 1.02rem;
    margin-bottom: 0.3rem;
}

.process-step__text {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.process__note {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===== PROJETOS ===== */
.projects__subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.3rem;
}

.projects__subtitle--margin {
    margin-top: 2.5rem;
}

.project-card {
    display: flex;
    gap: 1.25rem;
    align-items: stretch;
}

.project-card__thumb {
    width: 40%;
    aspect-ratio: 16 / 10;
    min-height: 140px;
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-subtle);
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.12), transparent 65%),
        var(--bg-card-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.7rem;
}

.project-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.project-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-card__title {
    font-size: 1.02rem;
    margin-bottom: 0.45rem;
}

.project-card__text {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
}

.project-card__link {
    font-size: 0.9rem;
    color: var(--accent);
    transition: color 0.3s ease;
}

.project-card__link:hover {
    color: #38bdf8;
    text-decoration: underline;
}

/* ===== SOBRE ===== */
.about {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    gap: 2.5rem;
    align-items: center;
}

.about__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about__icon {
    font-size: 3rem;
    color: var(--text-secondary);
}

.about__text .section__title {
    text-align: left;
    margin-bottom: 1rem;
}

.about__paragraph {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

/* ===== DIFERENCIAIS ===== */
.benefits-grid {
    margin-top: 1.5rem;
}

.benefit {
    text-align: left;
    padding: 1.25rem;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.benefit:hover {
    background-color: var(--bg-card);
    border-color: var(--accent);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.9);
    transform: translateY(-3px);
}

.benefit__icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background-color: var(--bg-card-alt);
    border: 1px solid rgba(148, 163, 184, 0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

.benefit__title {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.benefit__text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===== PACOTES ===== */
.plans-grid {
    margin-top: 1.2rem;
}

.plan-card {
    position: relative;
    padding-top: 1.6rem;
}

.plan-card__title {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.plan-card__badge {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.1rem;
}

.plan-card__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.4rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.plan-card__list i {
    color: var(--accent);
    margin-right: 0.45rem;
}

.plan-card__btn {
    width: 100%;
}

.plan-card--featured {
    border-color: var(--accent);
    box-shadow: 0 30px 80px rgba(56, 189, 248, 0.4);
}

.plan-card__ribbon {
    position: absolute;
    top: 0.7rem;
    right: 1.2rem;
    background: linear-gradient(135deg, #0ea5e9, #22c55e);
    color: #020617;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-weight: 600;
}

.plans__note {
    margin-top: 1.8rem;
    font-size: 0.9rem;
    text-align: center;
    color: var(--text-secondary);
}

/* ===== COMPROMISSO ===== */
.commitment {
    text-align: center;
    position: relative;
    max-width: 920px;
    padding: 3rem clamp(1.5rem, 5vw, 4rem);
    border: 1px solid rgba(56, 189, 248, 0.5);
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at 50% 0, rgba(56, 189, 248, 0.18), transparent 65%),
        linear-gradient(135deg, #050b18, #020617);
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.72), 0 0 34px rgba(56, 189, 248, 0.08);
    opacity: 0;
    transform: translateY(1.25rem);
    overflow: hidden;
    transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.3s ease;
}

.commitment__text {
    max-width: 760px;
}

.commitment::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 8rem;
    height: 2px;
    background: #38bdf8;
    box-shadow: 0 0 22px 4px rgba(56, 189, 248, 0.45);
    transform: translateX(-50%);
}

.commitment.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.commitment:hover {
    box-shadow: 0 32px 78px rgba(2, 6, 23, 0.82), 0 0 42px rgba(56, 189, 248, 0.14);
}

/* ===== FAQ ===== */
.faq {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.faq__item {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background-color: var(--bg-card);
    overflow: hidden;
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq__item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.faq__item:nth-child(2) {
    transition-delay: 0.06s;
}

.faq__item:nth-child(3) {
    transition-delay: 0.12s;
}

.faq__item:nth-child(4) {
    transition-delay: 0.18s;
}

.faq__item:nth-child(5) {
    transition-delay: 0.24s;
}

.faq__item:nth-child(6) {
    transition-delay: 0.3s;
}

.faq__item:hover,
.faq__item.active {
    border-color: rgba(56, 189, 248, 0.65);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.42);
}

.faq__question {
    width: 100%;
    padding: 0.9rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.faq__item:hover .faq__question,
.faq__item.active .faq__question {
    color: #38bdf8;
}

.faq__question i {
    transition: transform 0.2s ease;
}

.faq__item.active .faq__question i {
    transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {

    .challenges__block,
    .faq__item,
    .faq__question,
    .faq__question i,
    .commitment,
    .hero__eyebrow,
    .hero__title,
    .hero__title span::after,
    .hero__subtitle,
    .hero__cta-group,
    .hero__note,
    .hero__visual,
    .code-window {
        transition: none;
        animation: none;
    }

    .challenges__block,
    .faq__item,
    .commitment,
    .hero__eyebrow,
    .hero__title,
    .hero__subtitle,
    .hero__cta-group,
    .hero__note,
    .hero__visual {
        opacity: 1;
        transform: none;
    }
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.1rem;
    transition: max-height 0.25s ease;
}

.faq__answer p {
    padding: 0 0 1rem 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

/* ===== CTA FINAL ===== */
.section-cta {
    background: linear-gradient(135deg, var(--bg-card-alt), var(--bg-elevated-alt));
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.section-cta__content {
    text-align: center;
}

.section-cta__title {
    margin-bottom: 0.7rem;
}

.section-cta__subtitle {
    max-width: 640px;
    margin: 0 auto 1.5rem auto;
}

.section-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(180deg, #020617 0%, #050b18 100%);
    border-top: 1px solid rgba(56, 189, 248, 0.22);
    padding-top: 3.5rem;
}

.footer__content {
    display: grid;
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.6fr);
    gap: 4rem;
    align-items: start;
    padding-bottom: 2.5rem;
}

.footer__brand {
    max-width: 320px;
    padding-top: 0.35rem;
}

.footer__brand::after {
    content: "";
    display: block;
    width: 3.5rem;
    height: 2px;
    margin-top: 1.4rem;
    background: #38bdf8;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.65);
}

.footer__logo {
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.footer__text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer__columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.footer__title {
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
}

.footer__link {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
    transition: color 0.3s ease;
}

.footer__link i {
    margin-right: 0.4rem;
}

.footer__link:hover {
    color: #38bdf8;
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-top: 0;
    padding: 1.25rem max(1.5rem, calc((100% - 1120px) / 2 + 1.5rem)) 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: left;
}

.footer__small {
    margin-top: 0;
    text-align: right;
}

/* ===== ACOES FLUTUANTES ===== */
.floating-action {
    position: fixed;
    bottom: 1.5rem;
    z-index: 50;
    width: 3.25rem;
    height: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-strong);
    border-radius: 999px;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, border-color 0.2s ease;
}

.floating-action--whatsapp {
    left: 1.5rem;
    background-color: #16a34a;
    border-color: #22c55e;
    animation: whatsapp-pulse 2.4s ease-in-out infinite;
}

.floating-action--scrollup {
    right: 1.5rem;
    background-color: var(--bg-elevated);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(0.75rem);
    border-color: #38bdf8;
    animation: scrollup-pulse 2.8s ease-in-out infinite;
}

.floating-action--scrollup.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.floating-action:hover {
    border-color: var(--accent);
    transform: translateY(-0.2rem);
}

@keyframes whatsapp-pulse {

    0%,
    100% {
        border-color: #22c55e;
        box-shadow: 0 12px 30px rgba(22, 163, 74, 0.3), 0 0 0 0 rgba(34, 197, 94, 0.5);
    }

    50% {
        border-color: #86efac;
        box-shadow: 0 16px 36px rgba(22, 163, 74, 0.42), 0 0 0 7px rgba(34, 197, 94, 0);
    }
}

@keyframes scrollup-pulse {

    0%,
    100% {
        border-color: #38bdf8;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38), 0 0 0 0 rgba(56, 189, 248, 0.48);
    }

    50% {
        border-color: #bae6fd;
        box-shadow: 0 16px 36px rgba(56, 189, 248, 0.3), 0 0 0 7px rgba(56, 189, 248, 0);
    }
}

.footer__copy {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.footer__copy:hover {
    color: #38bdf8;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1024px) {
    .header__btn-portfolio {
        display: none;
    }

    .grid--3cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid--4cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .hero__content {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero__visual {
        justify-content: flex-start;
    }

    .about {
        grid-template-columns: minmax(0, 1fr);
    }

    .about__visual {
        order: 2;
    }
}

@media (max-width: 900px) {
    .nav {
        position: absolute;
        inset: var(--header-height) 0 auto;
        padding-right: 0;
        z-index: 1;
        background-color: var(--bg-elevated);
        border-bottom: 1px solid var(--border-subtle);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: transform 0.22s ease;
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav__list {
        flex-direction: column;
        padding: 1rem 1.5rem 1.4rem;
        align-items: flex-start;
    }

    .header__actions {
        gap: 0.4rem;
    }

    .nav__actions {
        position: static;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0 1.5rem 1.4rem;
        transform: none;
    }

    .nav__actions .btn {
        justify-content: center;
        width: 100%;
    }

    .nav__actions .header__btn-portfolio {
        display: inline-flex;
    }

    .header__menu-toggle {
        display: inline-flex;
        position: relative;
        z-index: 2;
    }

    .grid--3cols {
        grid-template-columns: minmax(0, 1fr);
    }

    .grid--4cols {
        grid-template-columns: minmax(0, 1fr);
    }

    .grid--2cols {
        grid-template-columns: minmax(0, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .challenges__block {
        margin-inline: 0.35rem;
    }

    .project-card {
        flex-direction: column;
    }

    .project-card__thumb {
        width: 100%;
    }

    .footer__columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer__content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer__brand {
        max-width: 420px;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .footer__small {
        text-align: left;
    }

    .hero {
        padding-top: 3.2rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .section__title {
        font-size: 1.7rem;
    }

    .challenges__block {
        margin-inline: 0.75rem;
    }
}

@media (max-width: 480px) {
    .header__content {
        gap: 0.5rem;
    }

    .header__actions {
        gap: 0.35rem;
    }

    .process-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .code-window {
        max-width: 100%;
        overflow-x: auto;
        font-size: 0.65rem;
    }

    .header__logo-text {
        max-width: 145px;
        font-size: 0.75rem;
        line-height: 1.15;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__title br {
        display: none;
    }

    .hero__cta-group,
    .section-cta__actions {
        flex-direction: column;
    }

    .hero__cta-group .btn,
    .section-cta__actions .btn {
        width: 100%;
    }

    .floating-action {
        bottom: 1rem;
        width: 2.9rem;
        height: 2.9rem;
    }

    .floating-action--whatsapp {
        left: 1rem;
    }

    .floating-action--scrollup {
        right: 1rem;
    }
}