:root {
    --bg: #0a0d12;
    --bg2: #10151d;
    --surface: #141b25;
    --border: rgba(255, 255, 255, 0.07);
    --white: #f0f4f8;
    --white-dim: rgba(240, 244, 248, 0.62);
    --white-faint: rgba(240, 244, 248, 0.56);
    --cyan: #5fe3e3;
    --cyan-dim: rgba(95, 227, 227, 0.15);
    --warn: #f0b429;
    --warn-dim: rgba(240, 180, 41, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
}

a {
    color: var(--cyan);
}

.blog-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    max-width: 760px;
    margin: 0 auto;
    border-bottom: 1px solid var(--border);
}

.blog-nav .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    text-decoration: none;
}

/* Logo da marca (símbolo + ABT TECNOLOGIA) */
.blog-nav .brand-lockup {
    display: block;
    width: 154px;
    height: 40px;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .blog-nav .brand-lockup {
        width: 130px;
        height: auto;
    }
}

/* Navegação das páginas internas: o essencial para seguir lendo ou falar comigo. */
.site-links {
    display: flex;
    align-items: center;
    gap: 22px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.site-links a {
    display: inline-block;
    padding: 10px 0;
    color: var(--white-dim);
    text-decoration: none;
    transition: color 0.2s;
}

.site-links a:hover,
.site-links a[aria-current="page"] {
    color: var(--cyan);
}

.site-links .site-links-contact {
    padding: 9px 14px;
    border: 1px solid rgba(95, 227, 227, 0.35);
    border-radius: 30px;
    color: var(--white);
}

.site-links .site-links-contact:hover {
    border-color: var(--cyan);
}

/* No celular fica só o Contato; o caminho de volta está no breadcrumb logo abaixo. */
@media (max-width: 600px) {
    .site-links a:not(.site-links-contact) {
        display: none;
    }
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10000;
    padding: 12px 18px;
    background: var(--cyan);
    color: #080b10;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    text-decoration: none;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
}

main {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 24px 24px;
}

.wide {
    max-width: 1080px;
}

.crumbs {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--white-dim);
    letter-spacing: 0.06em;
    margin-bottom: 24px;
}

.crumbs a {
    color: var(--white-dim);
    text-decoration: none;
}

.crumbs a:hover {
    color: var(--cyan);
}

/* INDEX */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Só transform, sem opacity: o texto é pintado já no primeiro frame (importa para o LCP) */
@keyframes riseUp {
    from {
        transform: translateY(18px);
    }
    to {
        transform: none;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.blog-hero {
    position: relative;
}

.blog-hero--index {
    background: url("/images/illustrations/blog-notes.svg") right center / min(500px, 100%) auto no-repeat;
}

.blog-hero-glow {
    position: absolute;
    top: -140px;
    right: -160px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(95, 227, 227, 0.10) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* O brilho passa 160px da coluna, o que estoura a largura da tela abaixo de ~1350px */
@media (max-width: 1350px) {
    .blog-hero-glow {
        right: -24px;
    }
}

.blog-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--cyan);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: riseUp 0.6s ease both;
}

.blog-index-title {
    margin-top: 14px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.1;
    font-weight: 700;
    animation: riseUp 0.6s ease 0.05s both;
}

.blog-index-title em {
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--cyan);
}

.blog-index-lead {
    margin-top: 18px;
    max-width: 560px;
    color: var(--white-dim);
    font-size: 16px;
    animation: riseUp 0.6s ease 0.1s both;
}

/* Post cover art, shared by the featured card and the grid cards */
.post-cover {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0d1520 0%, #0a0e14 100%);
}

.post-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}

.post-cover svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.cover-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cyan);
    z-index: 1;
}

.cover-tag::before {
    content: '';
    width: 18px;
    height: 1px;
    background: currentColor;
}

.cover-warn .cover-tag {
    color: var(--warn);
}

/* Featured post */
.featured-post {
    display: block;
    margin-top: 52px;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.25s, transform 0.25s;
    animation: riseUp 0.6s ease 0.15s both;
}

.featured-post:hover {
    border-color: rgba(95, 227, 227, 0.35);
    transform: translateY(-3px);
}

.featured-post .post-cover {
    aspect-ratio: 21 / 8;
}

.featured-body {
    padding: 30px 32px 34px;
}

.featured-title {
    margin-top: 4px;
    font-size: clamp(23px, 3.2vw, 32px);
    font-weight: 700;
    line-height: 1.25;
    transition: color 0.2s;
}

.featured-post:hover .featured-title {
    color: var(--cyan);
}

.featured-excerpt {
    margin-top: 14px;
    color: var(--white-dim);
    font-size: 15.5px;
    max-width: 620px;
}

.post-meta-row {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, #1565c0, #5fe3e3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: #04141c;
}

.post-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--white-faint);
    letter-spacing: 0.04em;
}

.read-more {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--cyan);
    white-space: nowrap;
}

.read-more svg {
    transition: transform 0.2s;
}

.featured-post:hover .read-more svg {
    transform: translateX(4px);
}

/* More posts grid */
.more-posts-heading {
    margin-top: 68px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--white-faint);
    text-transform: uppercase;
}

.more-posts-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.post-grid {
    list-style: none;
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 22px;
}

.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.25s, transform 0.25s;
    animation: riseUp 0.5s ease both;
}

.post-grid li:nth-child(1) .post-card {
    animation-delay: 0.1s;
}

.post-grid li:nth-child(2) .post-card {
    animation-delay: 0.18s;
}

.post-grid li:nth-child(3) .post-card {
    animation-delay: 0.26s;
}

.post-grid li:nth-child(4) .post-card {
    animation-delay: 0.34s;
}

.post-grid li:nth-child(5) .post-card {
    animation-delay: 0.42s;
}

.post-grid li:nth-child(6) .post-card {
    animation-delay: 0.5s;
}

.post-grid li:nth-child(7) .post-card {
    animation-delay: 0.58s;
}

.post-grid li:nth-child(8) .post-card {
    animation-delay: 0.66s;
}

.post-card:hover {
    border-color: rgba(95, 227, 227, 0.3);
    transform: translateY(-3px);
}

.post-card:hover .post-title {
    color: var(--cyan);
}

.post-card .post-cover {
    aspect-ratio: 16 / 9;
}

.card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 20px 22px;
}

.post-title {
    margin-top: 10px;
    font-size: clamp(17px, 2vw, 19px);
    font-weight: 600;
    line-height: 1.35;
    transition: color 0.2s;
}

.post-excerpt {
    margin-top: 8px;
    color: var(--white-dim);
    font-size: 13.5px;
    flex: 1;
}

.card-arrow {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--cyan);
}

.card-arrow svg {
    transition: transform 0.2s;
}

.post-card:hover .card-arrow svg {
    transform: translateX(4px);
}

/* ARTICLE */
.post-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--cyan);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.post-eyebrow::before {
    content: '';
    width: 18px;
    height: 1px;
    background: currentColor;
}

article h1 {
    margin-top: 14px;
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.15;
    font-weight: 700;
    max-width: 720px;
}

.post-byline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--white-faint);
}

.post-byline strong {
    color: var(--white-dim);
    font-weight: 400;
    font-family: 'DM Sans', sans-serif;
}

.post-body {
    margin-top: 40px;
    max-width: 680px;
    font-size: 16.5px;
    line-height: 1.75;
    color: rgba(240, 244, 248, 0.85);
}

.post-body p {
    margin-top: 20px;
}

.post-body h2 {
    margin-top: 60px;
    margin-bottom: 4px;
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 600;
    line-height: 1.3;
    color: var(--white);
}

/* Mais ar entre o título e o que vem logo depois dele */
.post-body h2 + p,
.post-body h2 + ol,
.post-body h2 + ul {
    margin-top: 28px;
}

.post-body h3 + p {
    margin-top: 22px;
}

.post-body strong {
    color: var(--white);
}

.post-body ol {
    margin-top: 20px;
    padding-left: 0;
    list-style: none;
    counter-reset: checklist;
    display: grid;
    gap: 10px;
}

.post-body ol li {
    counter-increment: checklist;
    padding: 14px 16px 14px 46px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 15px;
    position: relative;
}

.post-body ol li::before {
    content: counter(checklist);
    position: absolute;
    left: 16px;
    top: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--cyan);
}

.post-body a {
    text-underline-offset: 3px;
}

.post-body h3 {
    margin-top: 36px;
    margin-bottom: 4px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--white);
}

.post-body ul.triggers,
.post-body ul.check,
.post-body ul.cheat {
    margin-top: 20px;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.post-body ul.triggers li,
.post-body ul.check li {
    position: relative;
    padding: 14px 16px 14px 44px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 15px;
}

.post-body ul.triggers li::before,
.post-body ul.check li::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 21px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--warn);
    box-shadow: 0 0 10px rgba(240, 180, 41, 0.45);
}

.post-body ul.check li::before {
    top: 20px;
    width: 10px;
    height: 6px;
    border-radius: 0;
    background: none;
    box-shadow: none;
    border-left: 2px solid var(--cyan);
    border-bottom: 2px solid var(--cyan);
    transform: rotate(-45deg);
}

.post-body .scam {
    margin-top: 28px;
    padding: 22px 22px 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 2px solid var(--warn);
    border-radius: 6px;
}

.post-body .scam h3 {
    margin-top: 0;
    margin-bottom: 0;
}

.post-body .scam h3 + p {
    margin-top: 18px;
}

.post-body .scam p {
    margin-top: 14px;
    margin-bottom: 14px;
    font-size: 15.5px;
    line-height: 1.7;
}

.post-body .scam p strong {
    display: block;
    margin-bottom: 2px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan);
}

.post-body ul.cheat {
    padding: 22px 22px 22px 22px;
    background: var(--cyan-dim);
    border: 1px solid rgba(95, 227, 227, 0.35);
    border-radius: 6px;
    gap: 8px;
}

.post-body ul.cheat li {
    padding-left: 22px;
    position: relative;
    font-size: 16px;
    color: var(--white);
}

.post-body ul.cheat li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-family: 'JetBrains Mono', monospace;
}

.post-body .post-tip {
    margin-top: 20px;
    padding: 16px 18px;
    border-left: 2px solid var(--cyan);
    background: var(--cyan-dim);
    font-size: 15px;
}

.post-cta {
    margin-top: 64px;
    padding: 32px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.post-cta h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.post-cta p {
    color: var(--white-dim);
    max-width: 520px;
    font-size: 15px;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 14px 26px;
    background: var(--cyan);
    color: #041016;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: opacity 0.2s;
}

.cta:hover {
    opacity: 0.85;
}

footer {
    max-width: 760px;
    margin: 64px auto 0;
    padding: 28px 24px 40px;
    border-top: 1px solid var(--border);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--white-dim);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

footer a {
    color: var(--white-dim);
    text-decoration: none;
}

footer a:hover {
    color: var(--cyan);
}

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 2px;
}

@media (max-width: 600px) {
    main {
        padding-top: 36px;
    }

    .post-cta {
        padding: 26px 20px;
    }
}

/* Tabela comparativa dentro dos artigos */
.post-body .compare {
    margin-top: 28px;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.post-body table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.55;
}

.post-body th,
.post-body td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

.post-body thead th {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cyan);
}

.post-body tbody th {
    font-weight: 600;
    color: var(--white);
}

.post-body tbody tr:last-child th,
.post-body tbody tr:last-child td {
    border-bottom: 0;
}

/* Leia também, no fim de cada artigo */
.post-related {
    max-width: 680px;
    margin-top: 56px;
}

.post-related h2 {
    margin-bottom: 18px;
    font-size: clamp(18px, 2.6vw, 22px);
    font-weight: 600;
    color: var(--white);
}

.post-related ul {
    list-style: none;
    display: grid;
    gap: 10px;
    padding: 0;
}

.post-related a {
    display: block;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.25s, background 0.25s;
}

.post-related a:hover,
.post-related a:focus-visible {
    border-color: rgba(95, 227, 227, 0.4);
    background: rgba(95, 227, 227, 0.04);
}

.post-related-title {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: var(--white);
}

.post-related-desc {
    display: block;
    font-size: 14px;
    line-height: 1.55;
    color: var(--white-dim);
}

/* Editorial cover collection: responsive artwork with legible category labels. */
.post-cover--editorial { background: #eee9df; }
.post-cover--editorial::before { display: none; }
.post-cover-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.featured-post .post-cover--editorial { aspect-ratio: 2 / 1; }
.post-cover--editorial .cover-tag {
    padding: 6px 10px;
    border: 1px solid #17242d22;
    border-radius: 4px;
    color: #17242d;
    background: #f4f0e8f2;
    font-size: 9px;
    letter-spacing: .1em;
}
