:root {
    --bg: #fbfbfd;
    --surface: #ffffff;
    --ink: #0e1420;
    --muted: #5a6472;
    --line: #e7eaf1;
    --accent: #1f5fe0;
    --accent-deep: #123b96;
    --accent-tint: #eaf1ff;
}
body {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    margin: 0;
}
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: 'IBM Plex Mono', monospace; }
.kicker {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 16px;
}

/* Botões */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    border: none; cursor: pointer; border-radius: 10px;
    font-size: 15px; font-weight: 600; padding: 14px 26px;
    text-decoration: none; font-family: inherit;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-outline { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--ink); }
.btn-white { background: #fff; color: var(--accent-deep); font-weight: 700; white-space: nowrap; }
.btn-white:hover { background: var(--accent-tint); color: var(--accent-deep); }

/* Header / nav */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(251, 251, 253, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav-row { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
    width: 34px; height: 34px; border-radius: 9px; background: var(--accent);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 15px; letter-spacing: -.5px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: -.3px; color: var(--ink); }
.brand-sub {
    font-family: 'IBM Plex Mono', monospace; font-size: 9px;
    letter-spacing: 1px; color: var(--muted); text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-link {
    position: relative; padding: 8px 14px; font-size: 14.5px; font-weight: 500;
    color: var(--ink); opacity: .82; text-decoration: none;
}
.nav-link:hover { opacity: 1; color: var(--ink); }
.nav-link.is-active::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 1px;
    height: 2px; border-radius: 2px; background: var(--accent);
}
.btn-nav { margin-left: 8px; padding: 10px 18px; font-size: 14px; border-radius: 9px; }

/* Seções */
.section { padding: 80px 0; }
.section-hero { padding: 88px 0 72px; }
.section-surface { border-top: 1px solid var(--line); background: var(--surface); padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-title { font-size: 36px; line-height: 1.12; letter-spacing: -1px; font-weight: 700; margin: 0; }
.section-row {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 24px; margin-bottom: 40px; flex-wrap: wrap;
}
.page-head { max-width: 680px; margin-bottom: 56px; }
.page-title { font-size: 44px; line-height: 1.08; letter-spacing: -1.3px; font-weight: 700; margin: 0 0 18px; }
.page-lead { font-size: 17px; color: var(--muted); margin: 0; }

/* Hero */
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-title { font-size: 52px; line-height: 1.06; letter-spacing: -1.5px; font-weight: 700; margin: 0 0 22px; }
.hero-lead { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0 0 34px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { margin-top: 40px; display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stat-value { font-size: 26px; font-weight: 700; letter-spacing: -.5px; }
.hero-stat-label { font-size: 13px; color: var(--muted); }
.hero-art { display: flex; align-items: center; justify-content: center; }
.hero-art img { width: 100%; max-width: 520px; height: auto; display: block; filter: hue-rotate(-50deg) saturate(1.2); }

/* Grids e cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
    border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
    background: var(--surface); display: flex; flex-direction: column;
}
.card:hover { border-color: var(--accent); }
.card-media {
    aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
    border-bottom: 1px solid var(--line); text-decoration: none; overflow: hidden;
    background: repeating-linear-gradient(135deg, var(--accent-tint), var(--accent-tint) 11px, var(--surface) 11px, var(--surface) 22px);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-note {
    font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--muted);
    background: var(--bg); padding: 6px 12px; border-radius: 7px; border: 1px solid var(--line);
}
.card-body { padding: 24px 22px; display: flex; flex-direction: column; flex: 1; }
.card-meta {
    display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
    font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--muted);
}
.chip {
    color: var(--accent); background: var(--accent-tint); padding: 4px 9px;
    border-radius: 6px; text-transform: uppercase; letter-spacing: .5px;
    font-family: 'IBM Plex Mono', monospace; font-size: 11px; display: inline-flex;
}
.card-title { font-size: 19px; font-weight: 600; letter-spacing: -.3px; margin: 0 0 10px; line-height: 1.3; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-text { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0 0 18px; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); }
.read-link { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.read-link:hover { color: var(--accent-deep); }
.project-card-title { font-size: 22px; font-weight: 700; letter-spacing: -.4px; margin: 0 0 10px; }
.project-card-title a { color: var(--ink); text-decoration: none; }
.project-card-title a:hover { color: var(--accent); }
.project-card-body { padding: 28px 26px; }
.project-card-body .chip { align-self: flex-start; margin-bottom: 16px; padding: 5px 10px; }

/* Serviços */
.services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: var(--line); border: 1px solid var(--line);
    border-radius: 14px; overflow: hidden;
}
.service-cell { background: var(--surface); padding: 32px 28px; }
.service-cell:hover { background: var(--accent-tint); }
.service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.service-icon {
    width: 46px; height: 46px; border-radius: 11px; background: var(--accent-tint);
    color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.service-no { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--muted); }
.service-title { font-size: 19px; font-weight: 600; letter-spacing: -.3px; margin: 0 0 10px; }
.service-desc { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0; }
.service-cta {
    background: var(--accent); color: #fff; text-align: left; padding: 32px 28px;
    display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
    text-decoration: none;
}
.service-cta:hover { background: var(--accent-deep); color: #fff; }
.service-cta .service-icon { background: rgba(255, 255, 255, .16); color: #fff; }
.service-cta-title { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.3px; margin-bottom: 6px; }
.service-cta-desc { display: block; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .85); }

/* Marquee de setores */
.logos-section { padding: 80px 0; }
.logos-label {
    text-align: center; font-family: 'IBM Plex Mono', monospace; font-size: 12px;
    letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 0 0 36px;
}
.logos-mask {
    position: relative; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.pr2-track { display: flex; gap: 16px; width: max-content; animation: pr2marquee 26s linear infinite; }
.pr2-track--static { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
.logo-cell img { max-height: 40px; max-width: 150px; object-fit: contain; display: block; }
.logo-cell {
    flex: 0 0 auto; width: 190px; height: 70px; border: 1px dashed var(--line);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--muted);
    letter-spacing: .5px; background: var(--surface);
}

/* CTA band */
.cta-band {
    background: var(--accent); border-radius: 18px; padding: 64px 56px;
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
    flex-wrap: wrap; overflow: hidden; position: relative; margin-bottom: 88px;
}
.cta-band::after {
    content: ""; position: absolute; right: -60px; top: -60px;
    width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 255, 255, .08);
}
.cta-band-title { color: #fff; font-size: 32px; letter-spacing: -.8px; font-weight: 700; margin: 0 0 10px; max-width: 560px; }
.cta-band-text { color: rgba(255, 255, 255, .82); font-size: 16px; margin: 0; max-width: 480px; }
.cta-band .btn-white { position: relative; z-index: 1; }
.cta-band > div { position: relative; z-index: 1; }

/* Detalhe de projeto */
.detail-main { max-width: 920px; margin: 0 auto; padding: 56px 24px 90px; }
.back-link { color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: none; display: inline-block; margin-bottom: 32px; }
.back-link:hover { color: var(--accent-deep); }
.detail-title { font-size: 46px; line-height: 1.06; letter-spacing: -1.4px; font-weight: 700; margin: 0 0 18px; }
.detail-lead { font-size: 20px; line-height: 1.6; color: var(--muted); margin: 0 0 24px; max-width: 660px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0 0 40px; font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--muted); align-items: center; }
.detail-shot {
    aspect-ratio: 16/8; border-radius: 16px; border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px; overflow: hidden;
    background: repeating-linear-gradient(135deg, var(--accent-tint), var(--accent-tint) 12px, var(--surface) 12px, var(--surface) 24px);
}
.detail-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.gallery-thumbs a { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; aspect-ratio: 16/10; display: block; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 28px 0 48px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 30px 28px; }
.panel-label {
    font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 1px;
    text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.panel p { font-size: 16px; line-height: 1.7; color: var(--muted); margin: 0; }
.detail-h2 { font-size: 26px; letter-spacing: -.6px; font-weight: 700; margin: 0 0 20px; }
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 48px; }
.feature-item {
    display: flex; align-items: flex-start; gap: 12px; background: var(--surface);
    border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
    font-size: 15px; line-height: 1.5;
}
.feature-item i { color: var(--accent); font-size: 15px; margin-top: 2px; }
.tech-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.tech-pill {
    font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--ink);
    background: var(--accent-tint); border: 1px solid var(--line);
    padding: 8px 14px; border-radius: 999px;
}
.cta-inline {
    padding: 32px 30px; border-radius: 16px; background: var(--accent);
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cta-inline-title { font-size: 20px; font-weight: 700; letter-spacing: -.4px; color: #fff; margin-bottom: 4px; }
.cta-inline-text { font-size: 14.5px; color: rgba(255, 255, 255, .82); }
.cta-tint {
    margin-top: 48px; padding: 32px 30px; border-radius: 16px; background: var(--accent-tint);
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cta-tint-title { font-size: 19px; font-weight: 700; letter-spacing: -.4px; margin-bottom: 4px; }
.cta-tint-text { font-size: 14.5px; color: var(--muted); }

/* Artigo */
.post-main { max-width: 760px; margin: 0 auto; padding: 56px 24px 90px; }
.post-meta {
    display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap;
    font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--muted);
}
.post-title { font-size: 40px; line-height: 1.12; letter-spacing: -1.2px; font-weight: 700; margin: 0 0 20px; }
.author-row {
    display: flex; align-items: center; gap: 12px; padding-bottom: 32px;
    border-bottom: 1px solid var(--line); margin-bottom: 36px;
}
.avatar {
    width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
.author-name { font-size: 14px; font-weight: 600; }
.author-org { font-size: 12.5px; color: var(--muted); }
.post-content { font-size: 17px; line-height: 1.75; color: var(--muted); }
.post-content > p:first-child { font-size: 20px; line-height: 1.6; color: var(--ink); font-weight: 500; }
.post-content h2 { font-size: 24px; letter-spacing: -.5px; font-weight: 700; margin: 36px 0 14px; color: var(--ink); }
.post-content h3 { font-size: 20px; letter-spacing: -.4px; font-weight: 700; margin: 30px 0 12px; color: var(--ink); }
.post-content pre { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; overflow-x: auto; font-size: 14px; }
.post-content img { max-width: 100%; height: auto; border-radius: 12px; }

/* Paginação */
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 56px; flex-wrap: wrap; }
.page-info { font-size: 13px; color: var(--muted); }

/* Contato */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; padding: 80px 0 90px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; max-width: 520px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
    padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px;
    font-size: 15px; background: var(--surface); color: var(--ink); outline: none;
    font-family: inherit;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 120px; }
.field-error { font-size: 12.5px; color: #d43852; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-success { border: 1px solid var(--accent); background: var(--accent-tint); border-radius: 14px; padding: 32px 28px; max-width: 520px; }
.form-success-title { font-size: 20px; font-weight: 700; color: var(--accent-deep); margin-bottom: 8px; }
.contact-aside { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
    border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px;
    background: var(--surface); display: block; text-decoration: none;
}
a.contact-card:hover { border-color: var(--accent); }
.contact-card-label {
    font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 1px;
    text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.contact-card-value { font-size: 16px; font-weight: 600; color: var(--ink); }
.contact-card-hint { font-size: 13px; color: var(--accent); margin-top: 6px; }
.contact-card.is-tint { background: var(--accent-tint); }
.contact-card.is-tint .contact-card-label { color: var(--accent); }
.contact-card.is-tint div:last-child { font-size: 14.5px; line-height: 1.6; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-row { padding: 44px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 11px; font-size: 14px; color: var(--muted); }
.footer-brand .brand-mark { width: 30px; height: 30px; border-radius: 8px; font-size: 13px; }
.footer-links { display: flex; gap: 22px; font-size: 14px; flex-wrap: wrap; }
.footer-links .muted { color: var(--muted); }

/* Erros */
.error-wrap { padding: 120px 24px; text-align: center; max-width: 640px; }
.error-wrap h1 { font-size: 44px; letter-spacing: -1.3px; margin: 0 0 16px; }
.error-wrap p { color: var(--muted); margin: 0 0 32px; }

/* Responsivo */
@media (max-width: 960px) {
    .hero-grid, .contact-grid, .panel-grid { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 40px; }
    .page-title, .detail-title { font-size: 36px; }
    .post-title { font-size: 32px; }
    .cta-band { padding: 44px 32px; }
}
@media (max-width: 640px) {
    .grid-2, .grid-3, .services-grid, .features-grid, .gallery-thumbs { grid-template-columns: 1fr; }
    .nav-row { height: auto; padding: 12px 0; flex-wrap: wrap; }
    .hero-title { font-size: 34px; }
    .section-hero { padding: 48px 0 40px; }
}
