/*
 * KODEX SOLUTIONS — SITE E PORTFÓLIO
 * Identidade KodeX: azul #0066FF, azul profundo #0052CC, fundo #0B0F1A e branco #F4F7FF.
 *
 * Como editar:
 * 1. Cores globais: variáveis em :root.
 * 2. Cada seção do site tem um bloco numerado abaixo.
 * 3. Ajustes para tablets e celulares ficam no final (media queries).
 * 4. As ilustrações dos projetos têm estilos próprios identificados.
 */

/* 01. PALETA DA KODEX SOLUTIONS — altere as variáveis para mudar o tema */
:root {
    --bg: #0b0f1a;
    --panel: #101c30;
    --text: #f4f7ff;
    --muted: #a7b5cc;
    --accent: #0066ff;
    --accent-hover: #0052cc;
    --accent-text: #55b0ff;
    --navy: #071f45;
    --line: #203149;
    --surface: #0e1727;
    --field: #101d30;
}

/* 02. BASE, ACESSIBILIDADE E ELEMENTOS GERAIS */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}

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

button,
input,
textarea {
    font: inherit;
}

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

button {
    cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-text);
    outline-offset: 5px;
}

[hidden] {
    display: none !important;
}

::selection {
    background: var(--accent-text);
    color: var(--bg);
}

/* 03. CONTAINER, CABEÇALHO E NAVEGAÇÃO */
.container {
    width: min(1180px, calc(100% - 96px));
    margin-inline: auto;
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(11, 15, 26, .96);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 37px;
    font-weight: 800;
    letter-spacing: -4px;
}

.logo span {
    color: var(--accent-text);
}

nav {
    display: flex;
    align-items: center;
    gap: 38px;
    font-size: 13px;
}

nav>a {
    color: #bdbdc5;
    transition: color .2s;
}

nav>a:hover,
.text-link:hover {
    color: var(--accent-text);
}

nav .nav-contact {
    border: 1px solid #56566b;
    border-radius: 6px;
    padding: 13px 17px;
    color: var(--accent-text);
    margin-left: 20px;
}

.nav-contact span {
    margin-left: 24px;
}

.menu-toggle {
    display: none;
}

/* 04. APRESENTAÇÃO PRINCIPAL (HERO) */
.hero {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    column-gap: 45px;
    padding-top: 67px;
}

.availability {
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 35px;
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 8px 12px;
    width: fit-content;
    color: #bfbfce;
}

.availability span,
.tiny-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-text);
    border-radius: 50%;
    display: inline-block;
}

.eyebrow {
    font-family: monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.5px;
    margin: 0 0 23px;
}

.eyebrow>span {
    color: var(--accent-text);
    margin-right: 12px;
}

.hero-name {
    font-size: 10px;
    color: var(--muted);
}

h1 {
    font-size: clamp(54px, 5.9vw, 82px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -4px;
    margin: 0 0 27px;
}

em {
    color: var(--accent-text);
    font-style: normal;
}

p {
    line-height: 1.75;
}

.intro {
    font-size: 15px;
    max-width: 435px;
    color: var(--muted);
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 30px;
    align-items: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 16px 21px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 5px;
    border: 1px solid transparent;
    min-height: 48px;
    transition: background .2s, transform .2s;
}

.primary {
    background: var(--accent);
    color: #ffffff;
}

.primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.text-link {
    font-size: 12px;
}

.text-link span {
    margin-left: 13px;
}

/* 05. ILUSTRAÇÃO DO HERO */
.hero-art {
    height: 440px;
    align-self: center;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 45%, #27265b 0%, var(--navy) 40%, var(--bg) 80%);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.art-top {
    display: flex;
    justify-content: space-between;
    padding: 23px;
    font: 9px monospace;
    letter-spacing: 1.2px;
    color: #8f8fa9;
}

.orbit {
    position: absolute;
    border: 1px solid #4a4b8259;
    width: 310px;
    height: 310px;
    border-radius: 50%;
    top: 57px;
    left: 50%;
    transform: translateX(-50%) rotate(-32deg);
}

.orbit-two {
    height: 150px;
    top: 135px;
    width: 380px;
}

.orbit-three {
    height: 350px;
    width: 140px;
    top: 40px;
    transform: translateX(-50%) rotate(38deg);
}

.code-symbol {
    position: absolute;
    inset: 120px 0 auto;
    text-align: center;
    font-family: monospace;
    font-size: 125px;
    letter-spacing: -20px;
    color: var(--accent-text);
    text-shadow: 0 0 40px #0066ff40;
    transform: rotate(-8deg);
}

.code-symbol span {
    color: var(--accent);
}

.floating-tag {
    position: absolute;
    padding: 12px 15px;
    background: #1f1f28;
    border: 1px solid #474762;
    border-radius: 6px;
    font-size: 10px;
    box-shadow: 0 10px 30px #0005;
}

.tag-web {
    top: 110px;
    right: 18px;
    transform: rotate(7deg);
}

.tag-app {
    bottom: 95px;
    left: 20px;
    transform: rotate(-6deg);
}

.art-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 8px;
    align-items: center;
    border-top: 1px solid var(--line);
    padding: 20px;
    font: 9px monospace;
    color: var(--muted);
}

.art-bottom>span:last-child {
    font-size: 20px;
    color: var(--accent-text);
    margin-left: auto;
}

.hero-bottom {
    grid-column: 1/-1;
    display: flex;
    justify-content: space-between;
    padding: 45px 0 28px;
    color: var(--muted);
    font-size: 10px;
}

.hero-bottom a {
    letter-spacing: 1px;
    font: 9px monospace;
}

.hero-bottom a span {
    margin-left: 20px;
    color: var(--accent-text);
}

/* 06. FAIXA DE ESPECIALIDADES */
.specialties {
    border-block: 1px solid var(--line);
    margin-top: 0;
    background: var(--surface);
}

.specialties .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-block: 22px;
    font: 10px monospace;
    letter-spacing: 1.3px;
    color: #b2b2c1;
}

.specialties i {
    color: var(--accent-text);
    font-size: 20px;
    font-style: normal;
}

/* 07. SEÇÕES E TÍTULOS */
.section {
    padding-block: 100px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 42px;
    gap: 30px;
}

h2 {
    font-size: clamp(35px, 4vw, 53px);
    font-weight: 400;
    letter-spacing: -2px;
    line-height: 1.12;
    margin: 0;
}

.section-heading>p {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 5px;
}

/* 08. GRADE E CARDS DOS PROJETOS */
.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.project-card {
    border: 1px solid var(--line);
    border-radius: 9px;
    overflow: hidden;
    background: var(--surface);
}

.project-card.featured {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
}

.project-art {
    height: 300px;
    position: relative;
    overflow: hidden;
}

/* 09. CONCEITO VISUAL — ORGANIZE */
.organize-art {
    height: 380px;
    background: linear-gradient(135deg, #11121d, var(--navy));
    display: flex;
    align-items: center;
    padding: 32px;
    color: var(--text);
    isolation: isolate;
}

.organize-art:before {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    border: 1px solid #0066ff4d;
    border-radius: 50%;
    left: -140px;
    bottom: -220px;
}

.organize-word {
    font-size: 35px;
    font-weight: 700;
    letter-spacing: -1.8px;
    position: absolute;
    left: 30px;
    top: 83px;
}

.organize-word>span {
    font-size: 13px;
    vertical-align: top;
}

.organize-word small {
    display: block;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0;
    margin-top: 9px;
}

.phone {
    width: 218px;
    height: 372px;
    background: #000000;
    border: 6px solid #203149;
    border-radius: 32px;
    position: absolute;
    right: 30px;
    top: 36px;
    transform: rotate(8deg);
    box-shadow: 15px 20px 35px #00000066;
    color: #e9e9f3;
}

.phone-island {
    width: 70px;
    height: 14px;
    background: #050507;
    border-radius: 0 0 12px 12px;
    position: absolute;
    top: 0;
    left: calc(50% - 35px);
}

.phone-top {
    font-size: 8px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
}

.phone-content {
    padding: 8px 12px;
}

.phone-muted {
    font-size: 7px;
    color: #9999b1;
}

.phone-content>strong {
    font-size: 17px;
    display: flex;
    justify-content: space-between;
    margin: 5px 0 16px;
}

.phone-content>strong span {
    color: var(--accent-text);
}

.balance {
    padding: 15px 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, #000000, var(--navy));
}

.balance small {
    font-size: 8px;
    color: #b1b1c8;
}

.balance b {
    font-size: 25px;
    display: block;
    font-weight: 500;
    margin: 8px 0 14px;
    letter-spacing: -1px;
}

.balance b>span {
    font-size: 17px;
    color: #a4a4c3;
}

.balance>div {
    display: flex;
    justify-content: space-between;
    font-size: 7px;
    color: var(--accent-text);
}

.phone-subtitle {
    font-size: 9px;
    display: flex;
    justify-content: space-between;
    margin: 17px 0 8px;
}

.phone-subtitle>span {
    color: #9e9eb2;
}

.chart {
    height: 56px;
    display: flex;
    align-items: flex-end;
    gap: 7px;
    border-bottom: 1px solid #313143;
    padding: 0 4px;
}

.chart i {
    width: 13px;
    background: var(--accent-text);
    border-radius: 3px 3px 0 0;
    height: 45%;
}

.chart i:nth-child(2n) {
    height: 73%;
    background: var(--accent);
}

.chart i:nth-child(3n) {
    height: 90%;
}

.chart i:nth-child(5n) {
    height: 60%;
}

.goal {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 8px;
}

.goal>span {
    color: var(--accent-text);
    font-size: 20px;
}

.goal small {
    display: block;
    font-size: 7px;
    color: #85859c;
    margin: 5px 0;
}

.progress {
    height: 4px;
    background: linear-gradient(to right, var(--accent) 65%, #203149 65%);
    width: 130px;
    border-radius: 3px;
}

.art-caption {
    position: absolute;
    bottom: 14px;
    left: 18px;
    font: 7px monospace;
    letter-spacing: 1px;
    opacity: .65;
}

/* 10. TEXTOS, TAGS E AÇÕES DOS PROJETOS */
.project-info {
    padding: 28px;
}

.featured .project-info {
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font: 9px monospace;
    letter-spacing: .6px;
    color: var(--muted);
}

.status {
    padding: 6px 8px;
    background: #0066ff26;
    color: #a8d6ff;
    border-radius: 20px;
    font-size: 8px;
    white-space: nowrap;
    letter-spacing: 0;
}

.status.neutral {
    background: #24242d;
    color: #d4caa6;
}

h3 {
    font-size: 25px;
    font-weight: 500;
    letter-spacing: -.7px;
    margin: 20px 0 10px;
}

.featured h3 {
    font-size: 39px;
}

.project-info>p {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 25px;
    max-width: 410px;
}

.project-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tags>span {
    font-size: 9px;
    border: 1px solid #303040;
    padding: 6px 9px;
    border-radius: 4px;
    color: #b9b9c9;
}

.project-link {
    border: 0;
    padding: 9px 0;
    background: none;
    color: var(--accent-text);
    font-size: 11px;
}

.project-link>span {
    margin-left: 8px;
}

.project-link:hover,
.download-link:hover {
    text-decoration: underline;
}

.download-link {
    font-size: 10px;
    color: var(--accent-text);
    display: inline-block;
    margin-top: 20px;
}

/* 11. CONCEITO VISUAL — WEBUDGET (tema escuro KodeX) */
.calculator-art {
    background: radial-gradient(ellipse at top right, #103d70, #061426 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f4f7ff;
}

.mini-window {
    width: 80%;
    max-width: 390px;
    background: #0b182a;
    border: 1px solid #2b5a8b;
    border-radius: 7px;
    box-shadow: 0 15px 30px #00000066;
    transform: rotate(-3deg);
}

.window-bar {
    padding: 11px 13px;
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    border-bottom: 1px solid #25486b;
}

.window-bar>span:first-child {
    color: #55b0ff;
    font-size: 7px;
}

.calculator-content {
    padding: 17px;
}

.calculator-content>small {
    font: 7px monospace;
    letter-spacing: 1px;
    color: #79bfff;
}

.calculator-content>strong {
    display: block;
    font-size: 17px;
    margin: 7px 0 15px;
    font-weight: 500;
    letter-spacing: -.4px;
}

.mock-input {
    border: 1px solid #294665;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 7px;
    color: #b3c4d9;
    display: flex;
    justify-content: space-between;
}

.mock-input b {
    font-size: 8px;
    font-weight: 400;
    color: #f4f7ff;
}

.mock-row {
    display: flex;
    gap: 9px;
    margin: 9px 0;
    font-size: 7px;
    color: #b3c4d9;
}

.mock-row>div {
    width: 50%;
    border: 1px solid #294665;
    padding: 8px;
    border-radius: 4px;
}

.mock-row b {
    font-size: 10px;
    display: block;
    margin-top: 5px;
    color: #f4f7ff;
}

.mock-result {
    background: linear-gradient(120deg, #0052cc, #063877);
    color: #ffffff;
    padding: 13px 11px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
}

.mock-result>span {
    font-size: 8px;
}

.mock-result>b {
    font-size: 18px;
    letter-spacing: -.5px;
}

/* 12. CONCEITO VISUAL — LJM TÊXTIL */
.textile-art {
    background: #d2c7b5;
    padding: 38px 35px;
    color: #25252b;
}

.textile-window {
    height: 245px;
    background: #f1ede4;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 30px #55452d24;
    transform: rotate(3deg);
}

.textile-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #d4cec0;
    font-size: 7px;
    position: relative;
    z-index: 1;
}

.textile-nav>b {
    font-size: 16px;
    letter-spacing: -1px;
}

.textile-nav>b span {
    font-size: 7px;
    letter-spacing: 1px;
}

.textile-content {
    padding: 20px;
    position: relative;
    z-index: 1;
}

.textile-content>small {
    font: 6px monospace;
    letter-spacing: 1px;
}

.textile-content>strong {
    display: block;
    font-size: 27px;
    line-height: 1.05;
    letter-spacing: -1px;
    margin: 11px 0 15px;
}

.textile-content em {
    color: #927248;
}

.mock-button {
    background: #343446;
    color: #fff;
    padding: 8px 11px;
    font-size: 6px;
    display: inline-block;
}

.textile-lines {
    position: absolute;
    width: 220px;
    height: 270px;
    right: -65px;
    top: 80px;
    transform: rotate(-30deg);
    background: repeating-linear-gradient(90deg, #af9f8333 0px, #af9f83 2px, #e6e0d2 3px, #eee8dd 11px);
    border-radius: 50%;
}

/* 13. SOBRE MIM */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    border-block: 1px solid var(--line);
}

.about h2 {
    margin-bottom: 30px;
}

.about-copy>p {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 20px;
}

.about-copy>.large-copy {
    font-size: 23px;
    color: var(--text);
    line-height: 1.5;
    letter-spacing: -.5px;
}

.values {
    display: flex;
    flex-direction: column;
    margin-top: 30px;
}

.values>span {
    font-size: 12px;
    padding: 15px 0;
    border-top: 1px solid var(--line);
}

.values b {
    font: 10px monospace;
    color: var(--accent-text);
    margin-right: 20px;
}

/* 14. HABILIDADES */
.skill-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.skill-grid>article {
    border-top: 1px solid #4c4c60;
    padding: 27px 0;
}

.skill-icon {
    font: 24px monospace;
    color: var(--accent-text);
}

.skill-grid h3 {
    font-size: 20px;
    margin-top: 25px;
}

.skill-grid p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 22px;
    max-width: 310px;
}

/* 15. CONTATO E FORMULÁRIO */
.contact {
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 90px;
}

.contact-copy>p:not(.eyebrow) {
    color: var(--muted);
    font-size: 13px;
    margin: 25px 0;
}

.contact-copy>.text-link {
    font-size: 17px;
}

.contact-location {
    display: block;
    font: 10px monospace;
    color: var(--muted);
    margin-top: 16px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-top: 4px;
}

label {
    font-size: 11px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

input,
textarea {
    background: var(--field);
    color: var(--text);
    border: 1px solid #323243;
    border-radius: 5px;
    width: 100%;
    padding: 14px;
    font-size: 12px;
}

input::placeholder,
textarea::placeholder {
    color: #818193;
}

textarea {
    resize: vertical;
    min-height: 112px;
}

form>.button {
    width: 100%;
}

.email-button {
    background: none;
    border: 0;
    color: #bfbfd1;
    font-size: 11px;
    padding: 3px;
}

.email-button:hover {
    color: var(--accent-text);
}

.form-note {
    font-size: 9px;
    color: var(--muted);
    margin: -6px 0 0;
    text-align: center;
    line-height: 1.6;
}

/* 16. RODAPÉ */
.footer {
    display: flex;
    align-items: center;
    gap: 27px;
    border-top: 1px solid var(--line);
    padding-block: 28px;
}

.footer .logo {
    font-size: 28px;
}

.footer p,
.footer>span {
    font-size: 10px;
    color: var(--muted);
}

.footer>span {
    margin-left: auto;
}

.footer>a:last-child {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--accent-text);
}

/* 17. LINK PARA PULAR A NAVEGAÇÃO */
.skip-link {
    position: fixed;
    top: -100px;
    left: 15px;
    z-index: 30;
    padding: 15px;
    background: var(--accent-text);
    color: var(--bg);
}

.skip-link:focus {
    top: 10px;
}

/* 18. JANELA DE DETALHES DOS PROJETOS */
dialog {
    background: var(--panel);
    color: var(--text);
    border: 1px solid #3d3d59;
    border-radius: 12px;
    max-width: 590px;
    width: calc(100% - 32px);
    padding: 0;
    max-height: 85dvh;
}

dialog::backdrop {
    background: #050509cc;
    backdrop-filter: blur(6px);
}

.dialog-inner {
    padding: 40px;
}

.dialog-close {
    position: absolute;
    right: 14px;
    top: 10px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--muted);
    padding: 5px 10px;
}

.dialog-inner>.eyebrow {
    padding-right: 20px;
    font-size: 9px;
    color: var(--accent-text);
}

.dialog-inner h2 {
    font-size: 38px;
}

.dialog-inner>p:not(.eyebrow) {
    font-size: 14px;
    color: var(--muted);
}

.dialog-inner h3 {
    font-size: 17px;
    margin-top: 25px;
}

.dialog-inner ul {
    padding-left: 20px;
    font-size: 13px;
    line-height: 1.8;
    color: #bfbfce;
}

.dialog-inner .dialog-note {
    font-size: 11px!important;
    border-top: 1px solid var(--line);
    padding-top: 20px;
    margin: 22px 0;
}

/* 19. TELAS GRANDES — a partir de 1500px */
@media(min-width:1500px) {
    .hero {
        padding-top: 85px;
    }

    .hero-art {
        height: 460px;
    }

}

/* 20. TABLETS E NOTEBOOKS — até 1050px */
@media(max-width:1050px) {
    .container {
        width: calc(100% - 60px);
    }

    .hero {
        gap: 25px;
    }

    h1 {
        font-size: 62px;
    }

    .hero-art {
        height: 410px;
    }

    .organize-word {
        font-size: 28px;
        left: 20px;
    }

    .phone {
        right: 12px;
        width: 195px;
    }

    .featured .project-info {
        padding: 28px;
    }

    .contact {
        gap: 50px;
    }

    .specialties .container {
        font-size: 8px;
    }

    .project-meta {
        font-size: 8px;
    }

    .project-info {
        padding: 22px;
    }

    .project-art:not(.organize-art) {
        height: 280px;
    }

    .textile-art {
        padding: 35px 22px;
    }

    .mock-result>b {
        font-size: 15px;
    }

    .about {
        gap: 45px;
    }

}

/* 21. CELULARES — até 760px */
@media(max-width:760px) {
    .container {
        width: calc(100% - 40px);
    }

    .header-inner {
        height: auto;
        min-height: 76px;
        flex-wrap: wrap;
    }

    .logo {
        font-size: 32px;
    }

    .menu-toggle:not([hidden]) {
        display: flex;
        align-items: center;
        gap: 13px;
        background: none;
        border: 1px solid #3b3b52;
        color: var(--text);
        border-radius: 4px;
        padding: 10px 12px;
        font-size: 12px;
    }

    nav {
        width: 100%;
        padding: 12px 0 20px;
        gap: 18px;
        flex-wrap: wrap;
        font-size: 12px;
    }

    .menu-toggle:not([hidden])+nav {
        display: none;
    }

    .menu-toggle:not([hidden])+nav.is-open {
        display: flex;
    }

    nav .nav-contact {
        margin-left: 0;
        padding: 10px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 36px;
        gap: 32px;
    }

    .availability {
        margin-bottom: 27px;
    }

    .hero-name {
        font-size: 9px;
        letter-spacing: 1px;
    }

    h1 {
        font-size: clamp(51px, 10vw, 76px);
        letter-spacing: -2.7px;
    }

    .intro {
        max-width: 480px;
    }

    .hero-art {
        height: 350px;
        width: 100%;
        max-width: 540px;
        justify-self: center;
    }

    .orbit-one {
        top: 24px;
        width: 270px;
        height: 270px;
    }

    .orbit-two {
        top: 90px;
        width: 330px;
    }

    .orbit-three {
        top: 15px;
        height: 280px;
    }

    .code-symbol {
        top: 75px;
        font-size: 110px;
    }

    .tag-web {
        top: 83px;
    }

    .tag-app {
        bottom: 79px;
    }

    .hero-bottom {
        padding: 0 0 22px;
        gap: 15px;
        font-size: 9px;
    }

    .hero-bottom a {
        font-size: 8px;
    }

    .specialties .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 17px;
        font-size: 8px;
        text-align: center;
    }

    .specialties i {
        display: none;
    }

    .section {
        padding-block: 65px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
        margin-bottom: 30px;
    }

    h2 {
        font-size: 42px;
    }

    .section-heading>p br {
        display: none;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .project-card.featured {
        display: block;
    }

    .project-art.organize-art {
        height: 350px;
    }

    .phone {
        width: 215px;
        right: 10%;
        top: 30px;
    }

    .organize-word {
        left: 7%;
        font-size: 33px;
    }

    .featured .project-info,
.project-info {
        padding: 25px;
    }

    .featured h3 {
        font-size: 29px;
    }

    .project-meta {
        font-size: 9px;
    }

    .project-art:not(.organize-art) {
        height: 290px;
    }

    .mini-window {
        max-width: 360px;
    }

    .textile-art {
        padding: 30px 40px;
    }

    .textile-window {
        max-width: 400px;
        margin: auto;
    }

    .project-bottom {
        gap: 12px;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 33px;
    }

    .about-copy>.large-copy {
        font-size: 22px;
    }

    .skill-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .skill-grid>article {
        padding: 25px 0;
    }

    .skill-grid h3 {
        margin-top: 16px;
    }

    .skill-grid p {
        max-width: none;
    }

    .contact {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer {
        flex-wrap: wrap;
        gap: 15px;
    }

    .footer>span {
        order: 4;
        width: 100%;
        margin: 0;
    }

    .footer>a:last-child {
        margin-left: auto;
    }

    .dialog-inner {
        padding: 35px 24px;
    }

    .dialog-inner h2 {
        font-size: 32px;
    }

}

/* 22. CELULARES PEQUENOS — até 390px */
@media(max-width:390px) {
    .hero-actions {
        gap: 19px;
    }

    .button {
        gap: 12px;
        padding: 15px;
        font-size: 11px;
    }

    .phone {
        right: 16px;
        width: 188px;
    }

    .organize-word {
        font-size: 25px;
        left: 17px;
        top: 59px;
    }

    .organize-word small {
        max-width: 90px;
        line-height: 1.5;
    }

    .textile-art {
        padding: 30px 20px;
    }

    .hero-bottom a {
        letter-spacing: 0;
    }

    .project-meta {
        font-size: 8px;
    }

    .tags>span {
        font-size: 8px;
    }

}

/* 23. ACABAMENTO VISUAL — luz, profundidade e interação */
.site-header {
    transition: box-shadow 240ms ease, border-color 240ms ease;
    backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
    border-color: #0066ff4d;
    box-shadow: 0 12px 35px #00000040;
}

.hero {
    position: relative;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse at 65% 25%, #0066ff14, transparent 65%);
}

.hero h1 em {
    background: linear-gradient(110deg, #9bd4ff, #168bff 55%, #9bd4ff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-art {
    box-shadow: inset 0 1px 0 #ffffff0a, 0 24px 70px #00000030;
}

.project-card {
    transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.project-card:focus-within {
    border-color: var(--accent-text);
}

.button,
.text-link,
.project-link,
.footer > a:last-child {
    transition: color 200ms ease, background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.button > span,
.project-link > span,
.nav-contact > span {
    display: inline-block;
    transition: transform 200ms ease;
}

nav > a:not(.nav-contact) {
    position: relative;
    padding-block: 8px;
}

nav > a:not(.nav-contact)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-text);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 200ms ease;
}

nav > a:focus-visible::after {
    transform: scaleX(1);
}

input,
textarea {
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

input:focus,
textarea:focus {
    border-color: var(--accent-text);
    box-shadow: 0 0 0 4px #0066ff1a;
}

.skill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid #0066ff40;
    border-radius: 12px;
    background: linear-gradient(135deg, #0066ff26, #071f4526);
}

/* Efeitos de mouse só em dispositivos que oferecem hover real. */
@media (hover: hover) and (pointer: fine) {
    .project-card:hover {
        transform: translateY(-5px);
        border-color: #357bcd;
        box-shadow: 0 18px 44px #00000045, 0 0 28px #0066ff10;
    }

    .primary:hover {
        box-shadow: 0 8px 28px #0066ff40;
    }

    .button:hover > span,
    .project-link:hover > span,
    .nav-contact:hover > span {
        transform: translate(2px, -2px);
    }

    nav > a:hover::after {
        transform: scaleX(1);
    }

    .footer > a:last-child:hover {
        background: #0066ff26;
        transform: translateY(-3px);
    }
}

/* 24. ANIMAÇÕES — entradas curtas, sem esconder conteúdo sem JavaScript */
@keyframes section-enter {
    from {
        opacity: 0.25;
        transform: translateY(18px);
    }

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

@keyframes hero-enter {
    from {
        opacity: 0.4;
        transform: translateY(12px);
    }

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

@keyframes artwork-enter {
    from {
        opacity: 0.4;
        transform: scale(0.96);
    }

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

@media (prefers-reduced-motion: no-preference) {
    .hero-copy {
        animation: hero-enter 650ms ease-out;
    }

    .hero-art {
        animation: artwork-enter 800ms ease-out;
    }

    .reveal-enter {
        animation: section-enter 600ms cubic-bezier(0.2, 0.65, 0.3, 1);
    }

    dialog[open] {
        animation: hero-enter 220ms ease-out;
    }
}

/* 25. KODEX SOLUTIONS — apresentação da empresa na seção Sobre */
.company-card {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 230px 1fr auto;
    align-items: center;
    gap: 30px;
    padding: 28px;
    border: 1px solid #0066ff40;
    border-radius: 12px;
    background: linear-gradient(120deg, #10121d, #0e1727);
}

.company-logo {
    overflow: hidden;
    border-radius: 8px;
    background: #000000;
}

.company-logo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2.4 / 1;
    object-fit: cover;
}

.company-copy .eyebrow {
    color: var(--accent-text);
    font-size: 9px;
    margin-bottom: 10px;
}

.company-copy h3 {
    margin: 0 0 8px;
    font-size: 23px;
}

.company-copy > p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    max-width: 440px;
}

.company-action {
    color: var(--accent-text);
    white-space: nowrap;
}

@media (max-width: 1050px) {
    .company-card {
        grid-template-columns: 200px 1fr;
    }

    .company-action {
        grid-column: 2;
    }
}

@media (max-width: 760px) {
    .company-card {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 22px;
    }

    .company-logo {
        max-width: 260px;
        width: 100%;
    }

    .company-action {
        grid-column: auto;
        white-space: normal;
    }
}

/* 26. WHATSAPP — atalho fixo no canto inferior direito */
.whatsapp-float {
    position: fixed;
    right: max(24px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #1dbe69;
    box-shadow: 0 6px 24px #00000066;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.whatsapp-float img {
    display: block;
    width: 58px;
    height: 58px;
}

.whatsapp-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: var(--text);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.whatsapp-float:focus-visible .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Mantém o rodapé acessível e retira o atalho durante os detalhes de projeto. */
.footer {
    padding-bottom: 100px;
}

body.modal-open .whatsapp-float {
    visibility: hidden;
}

@media (hover: hover) and (pointer: fine) {
    .whatsapp-float:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px #00000080;
    }

    .whatsapp-float:hover .whatsapp-tooltip {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 760px) {
    .whatsapp-float {
        right: max(16px, env(safe-area-inset-right));
        bottom: max(16px, env(safe-area-inset-bottom));
    }
}

/* 28. IDENTIDADE KODEX — marca, apresentação e serviços */
.brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    color: var(--text);
}

.brand-name {
    font-size: 35px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -1.8px;
}

.brand-name > span {
    color: var(--accent);
}

.brand-subtitle {
    margin-top: 7px;
    font-size: 9px;
    letter-spacing: 5.5px;
    padding-left: 5px;
}

.hero {
    grid-template-columns: 1.12fr 1fr;
    padding-top: 66px;
    column-gap: 32px;
}

.hero h1 {
    font-size: clamp(45px, 4.8vw, 66px);
    line-height: 1.08;
    letter-spacing: -2.9px;
}

.hero .intro {
    max-width: 510px;
    font-size: 15px;
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 25px;
    color: var(--muted);
    font-size: 10px;
}

.hero-benefits > span::before {
    content: "✓";
    margin-right: 7px;
    color: var(--accent-text);
}

.hero-showcase {
    position: relative;
    align-self: center;
    height: 480px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #0066ff55;
    box-shadow: 0 24px 90px #0066ff14;
    background: #050d1b;
}

.hero-showcase > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 87% center;
}

.showcase-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    background: linear-gradient(transparent, #030d20 45%);
    font: 9px monospace;
    letter-spacing: 1px;
}

.showcase-label > span:last-child {
    margin-left: auto;
    color: var(--muted);
    font-size: 7px;
}

.services {
    padding-bottom: 40px;
}

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

.service-card {
    display: flex;
    flex-direction: column;
    padding: 30px;
    background: linear-gradient(145deg, #10213a, #0c1422 70%);
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: border-color 200ms ease, transform 200ms ease;
}

.service-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 27px;
}

.service-top svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: var(--accent-text);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-top > span {
    color: #7891b1;
    font: 11px monospace;
}

.service-category {
    margin: 0;
    color: var(--accent-text);
    font-size: 10px;
    letter-spacing: 0.7px;
}

.service-card h3 {
    font-size: 22px;
    margin: 11px 0 12px;
}

.service-card > p:not(.service-category) {
    margin: 0 0 25px;
    color: var(--muted);
    font-size: 13px;
}

.service-card > a {
    margin-top: auto;
    align-self: flex-start;
    color: var(--accent-text);
}

.service-cta {
    background: linear-gradient(130deg, #06367c, #081a36);
    border-color: #0066ff70;
}

.service-cta > .primary {
    color: #ffffff;
}

.service-spark {
    color: var(--accent-text);
    font-size: 35px;
    margin-bottom: 15px;
}

.about-intro {
    max-width: 420px;
    font-size: 15px;
    color: var(--muted);
    margin-block: 25px;
}

.about-copy > .founder-label {
    color: var(--accent-text);
    font-size: 10px;
}

.founder-name {
    margin: 0 0 18px;
    font-size: 32px;
}

.process {
    padding-bottom: 30px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.process-grid > li {
    border-top: 1px solid #0066ff70;
    padding-top: 23px;
}

.process-grid > li > span {
    font: 12px monospace;
    color: var(--accent-text);
}

.process-grid h3 {
    font-size: 20px;
}

.process-grid p {
    color: var(--muted);
    font-size: 13px;
}

.brand-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #0066ff66;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(115deg, #10294e, #071222);
    margin-bottom: 90px;
}

.brand-banner > div:first-child {
    padding: 48px;
}

.brand-banner h2 {
    font-size: 40px;
}

.brand-banner p:not(.eyebrow) {
    color: var(--muted);
    font-size: 13px;
    margin-block: 22px;
}

.banner-art {
    background: url("assets/kodex-aplicativos.jpeg") 64% 50% / auto 165% no-repeat;
    min-height: 330px;
}

.footer .brand-name {
    font-size: 28px;
}

.footer .brand-subtitle {
    font-size: 7px;
    letter-spacing: 4px;
}

@media (hover: hover) and (pointer: fine) {
    .service-card:hover {
        border-color: #168bff;
        transform: translateY(-4px);
    }
}

@media (max-width: 1050px) {
    nav {
        gap: 22px;
    }

    nav .nav-contact {
        margin-left: 0;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-showcase {
        height: 440px;
    }

    .service-card {
        padding: 24px;
    }

    .brand-banner > div:first-child {
        padding: 32px;
    }
}

@media (max-width: 760px) {
    .brand-name {
        font-size: 29px;
    }

    .brand-subtitle {
        font-size: 7px;
        letter-spacing: 4.8px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 36px;
    }

    .hero h1 {
        font-size: clamp(40px, 8.5vw, 58px);
        letter-spacing: -2px;
    }

    .hero h1 br {
        display: none;
    }

    .hero-showcase {
        height: 340px;
        width: 100%;
    }

    .hero-showcase > img {
        object-position: 84% center;
    }

    .hero-actions {
        gap: 19px;
        flex-wrap: wrap;
    }

    .hero-name {
        font-size: 8px;
    }

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

    .brand-banner {
        grid-template-columns: 1fr;
        margin-bottom: 60px;
    }

    .banner-art {
        min-height: 260px;
    }

    .brand-banner h2 {
        font-size: 34px;
    }
}

@media (max-width: 520px) {
    .services-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .hero-showcase {
        height: 280px;
    }

    .service-card {
        padding: 26px;
    }

    .hero-bottom {
        flex-wrap: wrap;
    }
}

/* PRÉVIA LJM — captura real do site publicado */
.ljm-preview {
    display: block;
    background: #031426;
    border-bottom: 1px solid #164773;
}

.ljm-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.ljm-preview-caption {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 9px 12px;
    border: 1px solid #2476ad;
    border-radius: 5px;
    background: #031426ed;
    color: #e9f5ff;
    font: 9px monospace;
    letter-spacing: 1px;
}

/* REDES SOCIAIS — contatos da empresa e perfil pessoal do fundador */
.founder-socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 26px;
}

.personal-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.personal-linkedin svg,
.social-item svg {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer {
    flex-wrap: wrap;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    order: 5;
}

.social-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--accent-text);
    font-size: 11px;
    transition: border-color 180ms ease, background 180ms ease;
}

.social-item small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
}

.social-item.is-pending {
    color: var(--muted);
}

a.social-item:hover {
    border-color: var(--accent-text);
    background: #0066ff1a;
}

@media (max-width: 390px) {
    .social-item {
        padding: 10px;
        gap: 7px;
        font-size: 10px;
    }
}

/* 29. ACESSIBILIDADE — movimento reduzido */
@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *:before,
    *:after {
        transition: none !important;
        animation: none !important;
    }

}

