/*
 * Brand language derived from the Neves Infotec editorial creatives:
 * high-contrast dark surfaces, technical dividers and decisive red moments.
 */
:root {
    --creative-void: #07090d;
    --creative-ink: #0d121a;
    --creative-panel: #121922;
    --creative-panel-raised: #17212c;
    --creative-grid: rgba(184, 198, 212, .11);
    --creative-line: #2c3744;
    --creative-copy: #f2f5f8;
    --creative-muted: #aeb9c7;
    --creative-red: #ff2939;
    --creative-red-deep: #cd1627;
    --creative-red-glow: rgba(255, 41, 57, .25);
    --creative-condensed: "Barlow Condensed", Impact, sans-serif;
    --creative-body: "Manrope", "Trebuchet MS", sans-serif;
    --bg: var(--creative-void);
    --surface: var(--creative-panel);
    --surface-soft: var(--creative-ink);
    --text: var(--creative-copy);
    --muted: var(--creative-muted);
    --line: var(--creative-line);
    --brand: var(--creative-red);
    --brand-dark: var(--creative-red-deep);
    --ink: var(--creative-void);
}

body {
    background: var(--creative-void);
    color: var(--creative-copy);
    font-family: var(--creative-body);
    font-size: 15px;
}

body::before {
    content: '';
    position: fixed;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    opacity: .38;
    background-image:
        linear-gradient(rgba(255, 255, 255, .016) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .016) 1px, transparent 1px),
        radial-gradient(circle at 92% 10%, rgba(255, 41, 57, .13), transparent 26rem);
    background-size: 42px 42px, 42px 42px, auto;
}

h1,
h2,
h3,
h4,
.brand-name,
.button,
.button-outline,
.nav-link,
.eyebrow,
.published-kicker,
.published-section-head > span,
.published-eyebrow,
.catalog-kicker,
.ai-series-kicker {
    font-family: var(--creative-condensed);
    letter-spacing: .025em;
}

h1,
h2,
h3,
h4 {
    font-weight: 800;
}

/* Header: mirrors the slim information rail from the creative artwork. */
.site-header {
    border-top: 2px solid var(--creative-red);
    border-bottom: 1px solid var(--creative-line);
    background: rgba(7, 9, 13, .94);
}

.header-inner {
    min-height: 74px;
}

.brand {
    position: relative;
    gap: 10px;
}

.brand::after {
    content: 'TECNOLOGIA · MARKETING · INOVAÇÃO';
    position: absolute;
    bottom: -14px;
    left: 59px;
    color: #7f8a98;
    font-size: .53rem;
    font-weight: 800;
    letter-spacing: .16em;
    white-space: nowrap;
}

.brand-logo {
    width: 43px;
    height: 43px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.brand-name {
    color: #fff;
    font-size: 1.42rem;
    font-weight: 800;
    line-height: .9;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.brand-tagline {
    display: none;
}

.nav-link {
    padding: 26px 11px 23px;
    color: #c2cad4;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.nav-link::after {
    right: 11px;
    bottom: 14px;
    left: 11px;
    height: 2px;
}

.header-actions .button,
.button,
.button-outline,
.ai-series-button {
    min-height: 44px;
    border-radius: 2px;
    font-family: var(--creative-condensed);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.button,
.header-actions .button,
.ai-series-button {
    border: 1px solid var(--creative-red);
    background: var(--creative-red);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, .26);
}

.button:hover,
.header-actions .button:hover,
.ai-series-button:hover {
    border-color: #fff;
    background: transparent;
    color: #fff;
}

.button-outline {
    border-color: #596675;
    background: rgba(255, 255, 255, .02);
    color: #fff;
}

.button-outline:hover {
    border-color: var(--creative-red);
    background: rgba(255, 41, 57, .09);
    color: #fff;
}

/* Shared page surfaces */
.page-hero,
.calculator-hero,
.solutions-hero,
.solution-detail-hero,
.ai-series-hero,
.ai-article-hero {
    isolation: isolate;
    background-color: var(--creative-void);
    background-image:
        linear-gradient(90deg, transparent 0 72%, rgba(255, 255, 255, .035) 72% 72.1%, transparent 72.1%),
        radial-gradient(circle at 82% 22%, rgba(255, 41, 57, .2), transparent 22rem);
}

.page-hero::after,
.solutions-hero::after,
.solution-detail-hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    right: 5%;
    bottom: 0;
    width: min(42vw, 520px);
    height: 38%;
    border-top: 1px solid var(--creative-grid);
    border-left: 1px solid var(--creative-grid);
    background: repeating-linear-gradient(90deg, transparent 0 42px, var(--creative-grid) 42px 43px);
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%, 0 22%);
}

.page-hero h1,
.solutions-hero h1,
.solution-detail-hero h1 {
    max-width: 850px;
    font-family: var(--creative-condensed);
    font-size: clamp(3.3rem, 7vw, 6.5rem);
    font-weight: 900;
    letter-spacing: -.025em;
    line-height: .84;
    text-transform: uppercase;
}

.page-hero p,
.solutions-hero p,
.solution-detail-hero p {
    color: var(--creative-muted);
}

.page-hero::before {
    width: 3px;
    background: var(--creative-red);
}

.content-band,
.published-resources,
.published-about,
.published-ecosystem,
.ai-series-catalog,
.ai-article-layout {
    background: var(--creative-ink);
    color: var(--creative-copy);
}

.content-band-soft,
.published-specialties,
.published-method,
.solution-consulting-band,
.solution-benefits-band,
.ai-series-intro,
.ai-series-business,
.ai-article-pagination {
    background: #090d13;
}

.content-band,
.content-band-soft,
.published-resources,
.published-about,
.published-ecosystem,
.published-specialties,
.published-method,
.ai-series-catalog,
.ai-article-layout {
    border-color: var(--creative-line);
}

.section-head h2,
.calculator-intro h2,
.calculator-category-head h2,
.published-section-head h2,
.published-about h2,
.published-ecosystem h2,
.ai-series-section-head h2 {
    color: #fff;
    font-family: var(--creative-condensed);
    font-size: clamp(2.4rem, 4.5vw, 4.35rem);
    font-weight: 800;
    letter-spacing: -.018em;
    line-height: .9;
    text-transform: uppercase;
}

.section-head p,
.published-section-head p,
.published-about p,
.published-ecosystem p,
.ai-series-section-head p,
.article-body,
.article-body p {
    color: var(--creative-muted);
}

.eyebrow,
.published-kicker,
.published-eyebrow,
.published-section-head > span,
.ai-series-section-head > span,
.catalog-kicker {
    color: var(--creative-red);
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* Cards use the same framed, technical-panel treatment as the post artwork. */
.card,
.project-tile,
.blog-card,
.contact-card,
.result-card,
.newsletter-panel,
.department-hero-card,
.solution-area-card,
.solution-item-card,
.calculator-card,
.calculator-tool,
.calculator-nav-card,
.published-resource-card,
.published-area,
.published-about-panel,
.published-specialty-card,
.published-method-grid li,
.editorial-card {
    border: 1px solid var(--creative-line);
    border-radius: 2px;
    background: var(--creative-panel);
    box-shadow: inset 0 1px rgba(255, 255, 255, .025), 8px 8px 0 rgba(0, 0, 0, .12);
}

.card::before,
.project-tile::before,
.blog-card::before,
.solution-area-card::before,
.solution-item-card::before,
.calculator-card::before {
    width: 52px;
    height: 3px;
    background: var(--creative-red);
}

.card h2,
.card h3,
.project-tile h3,
.blog-card h3,
.solution-area-card h2,
.solution-item-card h3,
.calculator-card strong,
.published-resource-card h3,
.published-area strong,
.published-about-panel h3,
.editorial-card h2,
.editorial-card h3 {
    color: #fff;
    font-family: var(--creative-condensed);
    letter-spacing: .015em;
}

.card p,
.project-tile p,
.blog-card p,
.solution-area-card p,
.solution-item-card p,
.calculator-card p,
.published-resource-card p,
.published-area small,
.published-about-panel span,
.editorial-card p {
    color: var(--creative-muted);
}

.card-link,
.solution-card-link,
.calculator-card-action,
.published-resource-card a,
.ai-series-text-link {
    color: var(--creative-red);
    font-family: var(--creative-condensed);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.filter-pill,
.feature-pills li,
.ai-article-tags span {
    border-color: #45515f;
    border-radius: 1px;
    background: transparent;
    color: #d4dae1;
}

.filter-pill:hover,
.filter-pill.is-active,
.filter-pill.is-static {
    border-color: var(--creative-red);
    background: var(--creative-red);
}

/* Home page */
.published-home {
    background: var(--creative-void);
}

.published-hero {
    isolation: isolate;
    min-height: 680px;
    background-color: var(--creative-void);
    background-image:
        linear-gradient(90deg, transparent 0 66%, rgba(255, 255, 255, .035) 66% 66.12%, transparent 66.12%),
        radial-gradient(circle at 79% 39%, rgba(255, 41, 57, .19), transparent 25rem);
}

.published-hero::before {
    right: 0;
    width: 34%;
    background: linear-gradient(180deg, #131a23, #090d13);
}

.published-hero::after {
    right: 34%;
    width: 2px;
    background: var(--creative-red);
    box-shadow: 0 0 22px var(--creative-red-glow);
}

.published-hero-copy::before {
    content: 'NEVES INFOTEC / 01';
    display: block;
    margin-bottom: 21px;
    color: #8e9aa8;
    font-family: var(--creative-condensed);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .18em;
}

.published-kicker {
    margin-bottom: 8px;
    color: var(--creative-red);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.published-hero h1 {
    max-width: 720px;
    color: #fff;
    font-family: var(--creative-condensed);
    font-size: clamp(4.3rem, 8vw, 7.6rem);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: .78;
    text-transform: uppercase;
}

.published-hero h1 span,
.published-hero-copy strong {
    color: var(--creative-red);
}

.published-hero h2 {
    max-width: 520px;
    margin-top: 26px;
    color: #e7ebf0;
    font-family: var(--creative-condensed);
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 700;
    letter-spacing: .015em;
    line-height: 1;
    text-transform: uppercase;
}

.published-hero-copy > p {
    max-width: 580px;
    color: var(--creative-muted);
}

.published-actions {
    gap: 14px;
}

.published-portrait {
    overflow: visible;
}

.published-portrait-ring img {
    border: 1px solid rgba(255, 255, 255, .08);
    filter: contrast(1.04) saturate(.86);
}

.published-portrait::before {
    right: -14px;
    bottom: 20px;
    width: 83%;
    height: 79%;
    border: 1px solid #7e2631;
    border-radius: 0;
    background: linear-gradient(145deg, #1a2029, #0c1016);
}

.published-portrait::after {
    content: '';
    position: absolute;
    z-index: -1;
    right: 7%;
    bottom: 7%;
    width: 74%;
    height: 63%;
    border: 1px solid rgba(255, 255, 255, .13);
    border-right: 0;
    background-image: repeating-linear-gradient(0deg, transparent 0 29px, rgba(255, 255, 255, .05) 29px 30px);
}

.published-portrait-badge {
    right: -6px;
    bottom: 22px;
    border-radius: 0;
    box-shadow: 5px 5px 0 #07090d;
}

.published-specialties,
.published-method {
    background: #090d13;
}

.published-specialty-card,
.published-method-grid li {
    border-radius: 2px;
    background: #121922;
}

.published-specialty-icon,
.published-area-icon,
.solution-area-icon,
.solution-detail-icon {
    border: 1px solid rgba(255, 41, 57, .45);
    border-radius: 50%;
    background: rgba(255, 41, 57, .07);
    color: var(--creative-red);
}

.published-resources {
    background: #0d121a;
}

.published-resource-card {
    min-height: 226px;
    border-radius: 2px;
    background: #121922;
    box-shadow: inset 0 1px rgba(255, 255, 255, .025), 8px 8px 0 rgba(0, 0, 0, .12);
}

.published-resource-icon {
    border: 1px solid rgba(255, 41, 57, .45);
    border-radius: 50%;
    background: rgba(255, 41, 57, .08);
    color: var(--creative-red);
    font-family: var(--creative-condensed);
    font-size: 1.45rem;
}

.published-resource-label {
    color: var(--creative-red);
    font-family: var(--creative-condensed);
    font-size: .82rem;
    letter-spacing: .12em;
}

.published-about,
.published-ecosystem {
    background: var(--creative-ink);
}

.published-about-panel {
    border-left: 3px solid var(--creative-red);
    border-radius: 0;
    background: #121922;
}

.published-area {
    border-radius: 2px;
    background: #121922;
}

.published-cta {
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--creative-red);
    background: #d91d2e;
}

.published-cta::before {
    content: '';
    position: absolute;
    top: -80%;
    right: 8%;
    width: 360px;
    height: 380px;
    border: 1px solid rgba(255, 255, 255, .36);
    transform: rotate(32deg);
}

.published-cta-inner {
    position: relative;
    z-index: 1;
}

/* Forms and long-form content */
.form-panel,
.faq-item {
    border-color: var(--creative-line);
    border-radius: 2px;
    background: var(--creative-panel);
}

label,
.faq-item summary,
.article-body h2,
.article-body h3 {
    color: #fff;
}

input,
textarea,
select,
.calculator-input-wrap {
    border-color: #3a4654;
    border-radius: 2px;
    background: #090d13;
    color: #fff;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--creative-red);
    box-shadow: 0 0 0 3px rgba(255, 41, 57, .15);
}

.ai-series-page,
.ai-article {
    --ai-bg: var(--creative-void);
    --ai-panel: var(--creative-panel);
    --ai-panel-soft: var(--creative-panel-raised);
    --ai-red: var(--creative-red);
    --ai-line: var(--creative-line);
}

.ai-series-hero h1,
.ai-article-heading h1 {
    font-family: var(--creative-condensed);
    font-weight: 900;
    letter-spacing: -.025em;
    text-transform: uppercase;
}

.ai-series-hero h1 {
    font-size: clamp(4rem, 7vw, 7rem);
    line-height: .8;
}

.ai-series-hero-media,
.ai-article-poster,
.ai-blog-feature-media {
    border-radius: 0;
    box-shadow: 14px 14px 0 #1b222c;
}

.ai-series-hero-media img,
.ai-article-poster img,
.ai-blog-feature-media img {
    border-radius: 0;
}

.ai-series-card {
    border-color: var(--creative-line);
    border-radius: 2px;
    background: var(--creative-panel);
}

.ai-series-card h3 a,
.ai-series-card p,
.ai-article-body > p {
    color: var(--creative-copy);
}

.ai-series-card p,
.ai-article-body > p:not(:first-child) {
    color: var(--creative-muted);
}

.ai-article-layout {
    background: var(--creative-ink);
}

.ai-article-pagination,
.ai-article-pagination a,
.ai-article-pagination-grid > span {
    border-color: var(--creative-line);
    background: #090d13;
    color: #fff;
}

/* Footer */
.site-footer {
    border-top: 2px solid var(--creative-red);
    background: #05070a;
}

.footer-logo > span {
    width: 46px;
    height: 46px;
    border-radius: 0;
    background: transparent;
}

.footer-logo img {
    width: 46px;
    height: 46px;
}

.footer-logo strong,
.footer-column h4,
.footer-contact h4 {
    font-family: var(--creative-condensed);
    letter-spacing: .05em;
    text-transform: uppercase;
}

.footer-tagline {
    color: var(--creative-red);
    font-family: var(--creative-condensed);
    letter-spacing: .11em;
}

.footer-social a,
.footer-contact-button {
    border-radius: 1px;
}

@media (max-width: 980px) {
    .site-nav {
        background: #090d13;
    }

    .published-hero {
        min-height: 610px;
    }
}

@media (max-width: 760px) {
    .header-inner {
        min-height: 67px;
    }

    .brand::after {
        display: none;
    }

    .brand-name {
        font-size: 1.2rem;
    }

    .site-nav {
        border-color: var(--creative-line);
    }

    .nav-link {
        padding: 14px 16px;
        font-size: 1.05rem;
    }

    .page-hero h1,
    .solutions-hero h1,
    .solution-detail-hero h1,
    .published-hero h1 {
        line-height: .86;
    }

    .published-hero {
        min-height: auto;
    }

    .published-hero-copy::before {
        margin-bottom: 15px;
    }

    .published-portrait::after {
        right: 0;
    }

    .published-resource-card {
        min-height: 0;
    }

    .published-cta::before {
        right: -180px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .page-hero .container,
    .published-hero-copy,
    .published-portrait,
    .section-head,
    .published-section-head {
        animation: creative-reveal .58s ease both;
    }

    .published-portrait {
        animation-delay: .12s;
    }
}

@keyframes creative-reveal {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

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