/* =========================================================
   1. TOKENS, RESET E ELEMENTOS GERAIS
========================================================= */
:root {
    --bg: #f7f9fc;
    --surface: #ffffff;
    --surface-secondary: #edf2f8;
    --text: #101827;
    --text-muted: #5d6879;
    --border: #dce3ec;
    --primary: #1268ff;
    --primary-hover: #0754d6;
    --primary-soft: rgba(18, 104, 255, 0.1);
    --header-bg: rgba(7, 15, 27, 0.92);
    --header-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 18px 50px rgba(17, 34, 58, 0.09);
    --shadow-strong: 0 28px 70px rgba(9, 23, 43, 0.16);
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 26px;
    --container: 1360px;
    --header-height: 76px;
    --transition: 180ms ease;
    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #07090d;
    --surface: #0d1117;
    --surface-secondary: #111821;
    --text: #f1f5f9;
    --text-muted: #a2adbc;
    --border: #252d38;
    --primary: #3b8cff;
    --primary-hover: #65c9ff;
    --primary-soft: rgba(59, 140, 255, 0.13);
    --header-bg: rgba(5, 7, 11, 0.94);
    --header-border: rgba(255, 255, 255, 0.08);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
    --shadow-strong: 0 28px 70px rgba(0, 0, 0, 0.42);
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
    background: var(--bg);
}

body {
    min-width: 320px;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    transition: background-color var(--transition), color var(--transition);
}

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

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

ul {
    list-style: none;
}

address {
    font-style: normal;
}

section[id] {
    scroll-margin-top: calc(var(--header-height) + 12px);
}

.container {
    width: min(calc(100% - clamp(40px, 7vw, 112px)), var(--container));
    margin-inline: auto;
}

.section {
    padding-block: clamp(72px, 7vw, 104px);
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 2000;
    padding: 10px 16px;
    border-radius: 8px;
    background: #ffffff;
    color: #07101e;
    font-weight: 700;
    transform: translateY(-150%);
    transition: transform var(--transition);
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid #65c9ff;
    outline-offset: 3px;
}

.btn {
    min-height: 48px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 12px 28px rgba(18, 104, 255, 0.25);
    transform: translateY(-2px);
}

.eyebrow,
.card-label,
.case-category {
    display: block;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow {
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.card-label,
.case-category {
    font-size: 0.78rem;
}

.eyebrow--light {
    color: #71b7ff;
}

.section-heading,
.about-intro {
    margin-bottom: clamp(34px, 4vw, 52px);
}

.section-heading--split,
.about-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.6fr);
    gap: clamp(40px, 8vw, 120px);
    align-items: end;
}

.section-heading h2,
.about-intro h2,
.contact-copy h2 {
    max-width: 940px;
    font-size: clamp(2.65rem, 5vw, 4.4rem);
    font-weight: 750;
    letter-spacing: -0.045em;
    line-height: 1.06;
}

.section-heading > p,
.about-intro > p,
.contact-copy > p {
    max-width: 520px;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* =========================================================
   2. HEADER
========================================================= */
.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: var(--header-height);
    border-bottom: 1px solid var(--header-border);
    background: var(--header-bg);
    backdrop-filter: blur(18px);
}

.nav {
    height: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 32px;
}

.logo {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.logo-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-name {
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(22px, 2.4vw, 38px);
}

.nav-menu a {
    position: relative;
    padding: 25px 0;
    color: #bec8d7;
    font-size: 0.92rem;
    font-weight: 600;
    transition: color var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ffffff;
}

.nav-menu a.active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 16px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: #45a6ff;
}

.nav-menu__cta {
    display: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.header-cta {
    min-height: 42px;
    padding-inline: 18px;
    font-size: 0.88rem;
}

.theme-toggle,
.menu-toggle {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    cursor: pointer;
    transition: border-color var(--transition), background-color var(--transition);
}

.theme-toggle:hover,
.menu-toggle:hover {
    border-color: rgba(101, 201, 255, 0.65);
    background: rgba(59, 140, 255, 0.16);
}

.theme-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-icon--sun,
[data-theme="dark"] .theme-icon--moon {
    display: none;
}

[data-theme="dark"] .theme-icon--sun {
    display: block;
}

.menu-toggle {
    display: none;
    padding: 10px;
    align-content: center;
    gap: 4px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: currentColor;
    transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* =========================================================
   3. HERO
========================================================= */
.hero {
    position: relative;
    min-height: 560px;
    padding-top: var(--header-height);
    overflow: hidden;
    background: #050b14;
    color: #ffffff;
}

.hero-media,
.hero-media picture,
.hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-media img {
    object-fit: cover;
    object-position: center 38%;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 9, 18, 0.98) 0%, rgba(3, 9, 18, 0.88) 35%, rgba(3, 9, 18, 0.34) 67%, rgba(3, 9, 18, 0.08) 100%),
        linear-gradient(0deg, rgba(3, 9, 18, 0.45), transparent 38%);
}

.hero-container {
    position: relative;
    z-index: 1;
    min-height: calc(560px - var(--header-height));
    display: flex;
    align-items: center;
}

.hero-content {
    width: min(62%, 790px);
    padding-block: 44px 34px;
}

.hero h1 {
    margin-bottom: 22px;
    font-size: clamp(3rem, 5.7vw, 5.25rem);
    font-weight: 760;
    letter-spacing: -0.06em;
    line-height: 0.98;
}

.hero h1 span {
    color: #55adff;
}

.hero-content > p {
    max-width: 640px;
    color: #ced8e6;
    font-size: clamp(1.05rem, 1.4vw, 1.22rem);
    line-height: 1.65;
}

/* =========================================================
   4. SOLUÇÕES
========================================================= */
.solutions {
    position: relative;
    background: var(--bg);
}

.solutions::before {
    content: "";
    position: absolute;
    top: 0;
    right: 8%;
    width: 260px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary));
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.solution-card {
    position: relative;
    min-height: 318px;
    padding: clamp(26px, 2.7vw, 38px);
    display: flex;
    flex-direction: column;
    border-top: 3px solid transparent;
    transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}

.solution-card + .solution-card {
    border-left: 1px solid var(--border);
}

.solution-card:hover {
    z-index: 1;
    border-top-color: var(--primary);
    background: var(--primary-soft);
    transform: translateY(-5px);
}

.solution-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 52px;
}

.solution-number {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.solution-card svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: var(--primary);
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.solution-card h3 {
    margin-bottom: 14px;
    font-size: clamp(1.25rem, 1.7vw, 1.55rem);
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.solution-card p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.solution-detail {
    margin-top: auto;
    padding-top: 24px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

/* =========================================================
   5. PÚBLICOS
========================================================= */
.audience {
    background: var(--surface-secondary);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.audience-card {
    min-height: 370px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(190px, 0.75fr);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.audience-card:hover {
    border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
    box-shadow: var(--shadow-strong);
    transform: translateY(-5px);
}

.audience-copy {
    padding: clamp(28px, 3.3vw, 46px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card-label {
    margin-bottom: 34px;
}

.audience-copy h3 {
    margin-bottom: 13px;
    font-size: clamp(1.4rem, 2vw, 1.82rem);
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.audience-copy p {
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 0.96rem;
}

.audience-copy ul {
    display: grid;
    gap: 8px;
    margin-bottom: 0;
}

.audience-copy li {
    position: relative;
    padding-left: 17px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.audience-copy li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    transform: translateY(-50%);
}

.audience-image,
.audience-image picture,
.audience-image img {
    width: 100%;
    height: 100%;
}

.audience-image {
    position: relative;
    min-height: 370px;
    overflow: hidden;
}

.audience-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 15, 27, 0.14), transparent 60%);
}

.audience-image img {
    object-fit: cover;
    transition: transform 500ms ease;
}

.audience-card:hover .audience-image img {
    transform: scale(1.04);
}

/* =========================================================
   6. SOBRE
========================================================= */
.about {
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

.about::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: -220px;
    right: -200px;
    width: 500px;
    height: 500px;
    border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
    border-radius: 50%;
    box-shadow: 0 0 0 80px color-mix(in srgb, var(--primary) 3%, transparent);
    pointer-events: none;
}

.about .container {
    position: relative;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.about-card {
    position: relative;
    min-height: 250px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color var(--transition), transform var(--transition);
}

.about-card:hover {
    border-color: color-mix(in srgb, var(--primary) 50%, var(--border));
    transform: translateY(-4px);
}

.about-card--featured,
.about-card--vision {
    background: linear-gradient(145deg, var(--primary-soft), var(--surface));
}

.about-card__number {
    display: block;
    margin-bottom: 42px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
}

.about-card h3 {
    margin-bottom: 12px;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.about-card p {
    position: relative;
    z-index: 1;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.vision-year {
    position: absolute;
    right: 14px;
    bottom: 2px;
    color: var(--primary);
    font-size: 3.6rem;
    letter-spacing: -0.08em;
    line-height: 1;
    opacity: 0.1;
}

/* =========================================================
   7. CASES
========================================================= */
.cases {
    background:
        radial-gradient(circle at 88% 10%, rgba(35, 125, 255, 0.16), transparent 28%),
        #08111f;
    color: #eef5ff;
}

[data-theme="dark"] .cases {
    background:
        radial-gradient(circle at 88% 10%, rgba(35, 125, 255, 0.14), transparent 28%),
        #05070b;
}

.cases .section-heading > p {
    color: #aebbc9;
}

.case-card {
    display: grid;
    grid-template-columns: minmax(250px, 0.62fr) minmax(0, 1.65fr);
    gap: clamp(28px, 4vw, 58px);
    padding: clamp(24px, 3.2vw, 46px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.045);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.case-copy {
    align-self: center;
}

.case-category {
    margin-bottom: 20px;
    color: #69b4ff;
}

.case-copy h3 {
    margin-bottom: 15px;
    font-size: clamp(2rem, 3vw, 3rem);
    letter-spacing: -0.05em;
    line-height: 1.05;
}

.case-copy > p {
    color: #b7c3d2;
    font-size: 1rem;
}

.case-copy small {
    display: block;
    margin-top: 22px;
    color: #8391a2;
    font-size: 0.74rem;
    line-height: 1.55;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.tech-list li {
    padding: 7px 10px;
    border: 1px solid rgba(105, 180, 255, 0.25);
    border-radius: 999px;
    background: rgba(35, 125, 255, 0.08);
    color: #c8ddf5;
    font-size: 0.74rem;
    font-weight: 700;
}

.case-showcase {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.8fr);
    gap: 16px;
}

.product-preview,
.code-window {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: #0b1421;
}

.product-preview__top,
.code-window__bar {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #111c2a;
}

.product-preview__top > span,
.window-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #405067;
}

.product-preview__top b,
.code-window__bar b {
    margin-left: 7px;
    color: #8999ac;
    font-size: 0.68rem;
    font-weight: 600;
}

.product-preview__body {
    min-height: 320px;
    display: grid;
    grid-template-columns: 48px 1fr;
}

.product-preview aside {
    padding-top: 26px;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    background: #0d1724;
}

.product-preview aside i {
    width: 17px;
    height: 17px;
    border: 1px solid #44546a;
    border-radius: 5px;
}

.product-preview aside i:first-child {
    border-color: #378cff;
    background: rgba(55, 140, 255, 0.22);
}

.dashboard {
    min-width: 0;
    padding: 25px;
    background: #0a121e;
}

.dashboard__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.dashboard__heading span,
.dashboard__heading strong {
    display: block;
}

.dashboard__heading span {
    color: #4f9dff;
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.dashboard__heading strong {
    margin-top: 3px;
    font-size: 1.05rem;
}

.dashboard__heading button {
    padding: 6px 9px;
    border: 1px solid #2e7fe9;
    border-radius: 5px;
    background: rgba(46, 127, 233, 0.12);
    color: #82baff;
    font-size: 0.6rem;
}

.dashboard__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.dashboard__stats > div {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 7px;
    background: #111c2a;
}

.dashboard__stats span,
.dashboard__stats strong,
.dashboard__stats small {
    display: block;
}

.dashboard__stats span {
    overflow: hidden;
    color: #7f8da0;
    font-size: 0.56rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard__stats strong {
    margin-block: 4px 2px;
    font-size: 1.12rem;
}

.dashboard__stats small {
    overflow: hidden;
    color: #59697e;
    font-size: 0.48rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard__chart {
    height: 132px;
    margin-top: 16px;
    padding: 15px 14px 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    align-items: end;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    background: repeating-linear-gradient(to top, transparent 0 32px, rgba(255, 255, 255, 0.035) 33px);
}

.dashboard__chart span {
    height: var(--value);
    min-height: 12px;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(#48a4ff, rgba(18, 104, 255, 0.25));
}

.code-window {
    align-self: stretch;
    background: #090d14;
}

.window-dot--red {
    background: #ff5f57;
}

.window-dot--yellow {
    background: #febc2e;
}

.window-dot--green {
    background: #28c840;
}

.code-window pre {
    max-width: 100%;
    overflow-x: auto;
    padding: 28px 20px;
    color: #d7dee9;
    font: 0.77rem/2.05 Consolas, "Courier New", monospace;
    tab-size: 2;
}

.line {
    display: block;
    white-space: pre;
}

.line i {
    width: 28px;
    display: inline-block;
    color: #46556a;
    font-style: normal;
    user-select: none;
}

.token-keyword {
    color: #c792ea;
}

.token-string {
    color: #a5d6a7;
}

.token-function {
    color: #82aaff;
}

/* =========================================================
   8. CONTATO
========================================================= */
.contact {
    background: var(--surface-secondary);
}

.contact-container {
    display: grid;
    grid-template-columns: minmax(300px, 0.72fr) minmax(520px, 1.28fr);
    gap: clamp(48px, 8vw, 120px);
    align-items: start;
}

.contact-copy {
    padding-top: 16px;
}

.contact-copy > p {
    margin-top: 20px;
}

.contact-info {
    display: grid;
    gap: 15px;
    margin-top: 36px;
}

.contact-info-item {
    min-width: 0;
    padding: 15px 0;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    border-bottom: 1px solid var(--border);
}

.contact-info-item svg {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--primary);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-info-item strong,
.contact-info-item span {
    display: block;
}

.contact-info-item strong {
    margin-bottom: 2px;
    color: var(--text);
    font-size: 0.86rem;
}

.contact-info-item span {
    color: var(--text-muted);
    font-size: 0.85rem;
    overflow-wrap: anywhere;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: clamp(24px, 3.4vw, 46px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.form-field {
    min-width: 0;
}

.form-field--full,
.captcha-field,
.form-submit,
.form-status {
    grid-column: 1 / -1;
}

.form-field label,
.captcha-field__label {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    background: var(--bg);
    color: var(--text);
    font-size: 0.94rem;
    transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.contact-form input {
    height: 48px;
    padding: 0 14px;
}

.contact-form textarea {
    min-height: 116px;
    padding: 13px 14px;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: color-mix(in srgb, var(--text-muted) 78%, transparent);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.captcha-field {
    min-width: 0;
    padding: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
}

.h-captcha {
    min-height: 78px;
}

.captcha-warning,
.form-status.is-error {
    color: #d34b4b;
}

.captcha-warning,
.form-status {
    font-size: 0.82rem;
}

.form-submit {
    width: fit-content;
    margin-top: 2px;
}

.form-submit:disabled {
    cursor: wait;
    opacity: 0.62;
    transform: none;
}

.form-status {
    min-height: 1.4em;
    color: var(--text-muted);
}

.form-status.is-success {
    color: #1b9561;
}

/* =========================================================
   9. FOOTER
========================================================= */
.footer {
    padding-top: 64px;
    background: #07101d;
    color: #b9c5d4;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.7fr) 1fr 1fr minmax(250px, 1.25fr);
    gap: clamp(30px, 6vw, 90px);
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    max-width: 320px;
    color: #8f9caf;
    font-size: 0.94rem;
}

.footer-grid h3 {
    margin-bottom: 16px;
    color: #ffffff;
    font-size: 0.94rem;
}

.footer-grid > div > a:not(.logo),
.footer-grid > div > p {
    width: fit-content;
    display: block;
    margin-bottom: 8px;
    color: #a9b5c5;
    font-size: 0.88rem;
    transition: color var(--transition);
}

.footer-grid > div > a:not(.logo):hover,
.copyright a:hover {
    color: #62b2ff;
}

.footer-social {
    display: flex;
    gap: 9px;
    margin-top: 18px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9px;
    color: #ffffff;
    transition: border-color var(--transition), background-color var(--transition), transform var(--transition);
}

.footer-social a:hover {
    border-color: #3b8cff;
    background: rgba(59, 140, 255, 0.18);
    transform: translateY(-2px);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.copyright {
    margin-top: 52px;
    padding-block: 20px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    color: #77869a;
    font-size: 0.8rem;
}

/* =========================================================
   10. RESPONSIVIDADE
========================================================= */
@media (max-width: 1180px) {
    .solutions-grid,
    .about-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .solution-card:nth-child(3) {
        border-left: 0;
    }

    .solution-card:nth-child(n + 3) {
        border-top: 1px solid var(--border);
    }

    .case-card {
        grid-template-columns: 1fr;
    }

    .case-copy {
        max-width: 720px;
    }
}

@media (max-width: 980px) {
    :root {
        --header-height: 70px;
    }

    .nav {
        grid-template-columns: 1fr auto;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 10px);
        right: clamp(20px, 5vw, 48px);
        left: clamp(20px, 5vw, 48px);
        padding: 10px;
        display: grid;
        gap: 0;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 14px;
        background: #0a1422;
        box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
    }

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

    .nav-menu a {
        padding: 12px 14px;
        border-radius: 8px;
        font-size: 0.96rem;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background: rgba(59, 140, 255, 0.12);
    }

    .nav-menu a.active::after {
        display: none;
    }

    .nav-menu .nav-menu__cta {
        margin-top: 6px;
        display: flex;
        justify-content: center;
        background: #1268ff;
        color: #ffffff;
    }

    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: grid;
    }

    .hero,
    .hero-container {
        min-height: 540px;
    }

    .hero-container {
        min-height: calc(540px - var(--header-height));
    }

    .hero-content {
        width: 72%;
    }

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

    .audience-card {
        min-height: 340px;
        grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.75fr);
    }

    .audience-image {
        min-height: 340px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-copy {
        max-width: 720px;
        padding-top: 0;
    }

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

    .contact-info-item {
        border-top: 1px solid var(--border);
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .footer-grid > div:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .section-heading--split,
    .about-intro {
        grid-template-columns: 1fr;
        gap: 18px;
        align-items: start;
    }

    .section-heading h2,
    .about-intro h2,
    .contact-copy h2 {
        font-size: clamp(2.5rem, 9.5vw, 3.5rem);
    }

    .case-showcase {
        grid-template-columns: 1fr;
    }

    .code-window pre {
        min-height: 250px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

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

    .footer-brand,
    .footer-grid > div:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .container {
        width: calc(100% - 40px);
    }

    .section {
        padding-block: 68px;
    }

    .logo-name {
        font-size: 1.15rem;
    }

    .theme-toggle,
    .menu-toggle {
        width: 40px;
        height: 40px;
    }

    .nav-actions {
        gap: 8px;
    }

    .nav-menu {
        right: 20px;
        left: 20px;
    }

    .hero,
    .hero-container {
        min-height: 530px;
    }

    .hero-container {
        min-height: calc(530px - var(--header-height));
        align-items: flex-start;
    }

    .hero-content {
        width: 100%;
        padding-top: 72px;
    }

    .hero h1 {
        font-size: clamp(2.65rem, 13vw, 4rem);
    }

    .hero-content > p {
        max-width: 490px;
        font-size: 1rem;
    }

    .hero-media img {
        object-position: 60% center;
    }

    .hero-media::after {
        background: linear-gradient(180deg, rgba(3, 9, 18, 0.94) 0%, rgba(3, 9, 18, 0.8) 58%, rgba(3, 9, 18, 0.48) 100%);
    }

    .solutions-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .solution-card {
        min-height: 275px;
    }

    .solution-card + .solution-card,
    .solution-card:nth-child(3) {
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .solution-card__top {
        margin-bottom: 34px;
    }

    .audience-card {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .audience-copy {
        min-height: 360px;
    }

    .audience-image {
        min-height: 250px;
        max-height: 300px;
    }

    .audience-image img {
        object-position: center 30%;
    }

    .about-card {
        min-height: 220px;
    }

    .case-card {
        padding: 20px;
    }

    .product-preview__body {
        grid-template-columns: 38px 1fr;
    }

    .dashboard {
        padding: 18px 14px;
    }

    .dashboard__stats > div {
        padding: 9px 7px;
    }

    .dashboard__chart {
        gap: 6px;
    }

    .contact-form {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .form-field,
    .form-field--full,
    .captcha-field,
    .form-submit,
    .form-status {
        grid-column: 1;
    }

    .form-submit {
        width: 100%;
    }

    .copyright {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 380px) {
    .container {
        width: calc(100% - 32px);
    }

    .nav-menu {
        right: 16px;
        left: 16px;
    }

    .captcha-field {
        padding: 12px 8px;
    }

    .h-captcha {
        width: 112%;
        margin-bottom: -9px;
        transform: scale(0.89);
        transform-origin: left top;
    }

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

    .footer-brand,
    .footer-grid > div:last-child {
        grid-column: auto;
    }
}

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

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