/* MirandasTech — tema do blog 1.1 (12/10/2026).
   Mesma identidade do www (sites/www/app/globals.css): fundo #080c14, ciano #65e8ff, violeta #8b5cf6,
   Geist + Geist Mono + Instrument Serif itálico como assinatura, granulado e faixas que correm.
   Animações só com CSS, SVG e um script pequeno (sem WebGL: ver memória sobre a Radeon 680M). */

:root {
    --bg: #080c14;
    --ink: #f5f7fa;
    --ink-soft: #b7c0cd;
    --ink-body: #c3cbd7;
    --muted: #7d8798;
    --line: rgba(255, 255, 255, .10);
    --line-strong: rgba(255, 255, 255, .18);
    --card: #0c1220;
    --surface: #0e1526;
    --code: #0b1120;
    --accent: #65e8ff;
    --cyan-rgb: 101, 232, 255;
    --violet: #8b5cf6;
    --violet-ink: #c4b5fd;
    --sans: 'Geist', system-ui, -apple-system, sans-serif;
    --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --gutter: clamp(20px, 5vw, 64px);
    --max: 1360px;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }
::selection { background: var(--accent); color: #05070c; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 14px; background: var(--accent); color: #05070c; font-weight: 600; border-radius: 999px; transition: top .16s; }
.skip:focus { top: 16px; }
.grain { position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: .035; background-image: repeating-radial-gradient(circle at 17% 32%, rgba(255, 255, 255, .9) 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }

/* Assinatura da marca: itálico serifado ciano dentro dos títulos (a mesma do site) */
.h1 em, .h2 em, .h3 em, .prose h2 em, .prose h3 em, .foot-big em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -.01em; }

/* ---------- Movimento ---------- */
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pulse { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.25); } }
@keyframes scan { from { top: -140px; } to { top: 100%; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes rise { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes line { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes beam { to { --beam: 360deg; } }
@property --beam { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes glow { from { box-shadow: 0 0 0 0 rgba(var(--cyan-rgb), .5); } to { box-shadow: 0 0 0 16px transparent; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes flow { from { background-position: 0 -100%; } to { background-position: 0 100%; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(var(--cyan-rgb), .7); } 100% { box-shadow: 0 0 0 10px transparent; } }

.in { animation: rise .9s var(--ease) both; }
.rise { animation: rise .9s var(--ease) both; }
@supports (animation-timeline: view()) {
    .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
}

/* ---------- Cabeçalho ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); background: rgba(8, 12, 20, .74); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; flex: none; }
.brand-mark { color: var(--accent); }
.brand-accent { color: var(--accent); }
/* {{navigation}} gera <ul class="nav">: zera a lista e não herda nada do cabeçalho */
.links ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 24px; }
.links li { margin: 0; }
.links a { font-size: 15px; color: var(--ink-soft); transition: color .2s; white-space: nowrap; }
.links a:hover, .links .nav-current a { color: var(--accent); }
/* Item do menu que sai do blog (as páginas do site) ganha a seta de link externo */
.links a[href^="http"]:not([href^="https://blog.mirandastech.com.br"])::after,
.menu-panel li a[href^="http"]:not([href^="https://blog.mirandastech.com.br"])::after { content: " ↗"; color: var(--accent); }

/* Menu do celular: o mesmo {{navigation}} num painel, como o menu do site */
.menu { display: none; position: relative; }
.menu summary { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary i { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.menu[open] summary i:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu[open] summary i:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); display: grid; gap: 4px; min-width: 230px; padding: 12px; border-radius: 16px; border: 1px solid var(--line-strong); background: rgba(12, 18, 32, .97); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8); }
.menu-panel ul { list-style: none; margin: 0; padding: 0; display: grid; }
.menu-panel li a { display: block; padding: 11px 10px; border-radius: 10px; font-size: 16px; color: var(--ink-soft); }
.menu-panel li a:hover, .menu-panel .nav-current a { color: var(--accent); background: rgba(255, 255, 255, .04); }
.menu-panel .btn { width: 100%; margin-top: 8px; }

/* ---------- Tipografia e botões ---------- */
.kicker { margin: 0; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.label { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.label::before { content: ""; width: 22px; height: 1px; background: var(--accent); box-shadow: 0 0 10px rgba(var(--cyan-rgb), .8); }
.h1 { font-size: clamp(40px, 6.2vw, 88px); line-height: 1; letter-spacing: -.05em; margin: 18px 0 0; font-weight: 600; text-wrap: balance; }
.h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -.04em; margin: 10px 0 0; font-weight: 600; text-wrap: balance; }
.h3 { font-size: 21px; line-height: 1.22; letter-spacing: -.02em; margin: 0; font-weight: 600; text-wrap: pretty; }
.lede { font-size: 19px; line-height: 1.6; color: var(--ink-soft); margin: 20px 0 0; max-width: 54ch; }
.body { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.6; max-width: 46ch; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-strong); font-weight: 600; font-size: 15px; color: var(--ink); cursor: pointer; background: rgba(255, 255, 255, .02); font-family: inherit; transition: border-color .25s, background-color .25s; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: #05070c; border-color: transparent; animation: glow 2.4s ease-out infinite; }
.btn.primary:hover { background: #8df0ff; }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- Home: hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding: 104px var(--gutter) 88px; min-height: 620px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 30% 40%, #000 10%, transparent 70%); }
.circuit { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.trace { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-opacity: .32; stroke-dasharray: 1; animation: draw 2.4s cubic-bezier(.6, .05, .2, 1) both; }
.node { fill: var(--accent); transform-box: fill-box; transform-origin: center; animation: pulse 2.8s ease-in-out infinite; animation-delay: var(--d, 0s); }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 140px; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, transparent, rgba(var(--cyan-rgb), .09), transparent); animation: scan 8s linear infinite; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-copy { position: relative; }
.hero-art { position: relative; }
/* Rede neural prevendo o próximo token (partials/rede.hbs): sinais correm pelas ligações,
   nós pulsam, as barras de probabilidade "pensam" e a rede inclina com o ponteiro. Só SVG + CSS. */
.rede-tilt { position: relative; perspective: 1100px; }
.rede-tilt::before { content: ""; position: absolute; inset: 6% 4%; z-index: -1; background: radial-gradient(closest-side at 40% 50%, rgba(var(--cyan-rgb), .16), transparent 72%), radial-gradient(closest-side at 72% 55%, rgba(139, 92, 246, .16), transparent 70%); filter: blur(12px); }
.rede { width: 100%; height: auto; overflow: visible; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .6s var(--ease); animation: bob 9s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -10px; } }
.rede .edges line { stroke: rgba(255, 255, 255, .1); stroke-width: 1; }
.rede .routes path { fill: none; stroke: #a5f3ff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: .035 1.2; stroke-dashoffset: .035; animation: signal var(--t, 3.4s) linear infinite; animation-delay: var(--d, 0s); filter: drop-shadow(0 0 4px rgba(var(--cyan-rgb), .9)); }
@keyframes signal { to { stroke-dashoffset: -1; } }
.rede .nodes circle { fill: var(--bg); stroke: rgba(var(--cyan-rgb), .45); stroke-width: 1.4; animation: node 3.4s ease-in-out infinite; animation-delay: var(--n, 0s); }
.rede .nodes.in circle { stroke: rgba(255, 255, 255, .45); animation: none; }
.rede .nodes.h circle { stroke: rgba(196, 181, 253, .55); }
@keyframes node { 50% { stroke: rgba(var(--cyan-rgb), 1); fill: rgba(var(--cyan-rgb), .22); } }
.rede .nodes circle.hot { fill: var(--accent); stroke: var(--accent); animation: hot 2.2s ease-out infinite; }
@keyframes hot { 0% { stroke-width: 1.4; stroke-opacity: 1; } 100% { stroke-width: 14; stroke-opacity: 0; } }
.rede text { font-family: var(--mono); font-size: 13px; fill: var(--ink-soft); }
.rede .tok text { fill: var(--ink); }
.rede .cap text { font-size: 10.5px; fill: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.rede .probs .w { font-size: 14px; }
.rede .probs .w.hot, .rede .probs .p.hot { fill: var(--accent); }
.rede .probs .p { font-size: 11px; fill: var(--muted); }
.rede .track { fill: rgba(255, 255, 255, .06); }
.rede .bar { fill: rgba(255, 255, 255, .32); transform-box: fill-box; transform-origin: left center; animation: think 5s var(--ease) infinite; }
.rede .bar.hot { fill: var(--accent); }
.rede .bar.b2 { animation-delay: .25s; }
.rede .bar.b3 { animation-delay: .4s; }
@keyframes think { 0%, 100% { transform: scaleX(.2); } 30%, 80% { transform: scaleX(1); } }

.term { margin-top: 40px; max-width: 470px; background: var(--code); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px 20px; font-family: var(--mono); font-size: 14px; line-height: 1.9; color: #c9d3e0; box-shadow: 0 30px 80px -30px rgba(var(--cyan-rgb), .4); }
.term-bar { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: block; }
.term-bar span { margin-left: 10px; }
.line { margin: 0; animation: line .5s ease both; animation-delay: calc(var(--i) * .45s + .9s); }
.term .src { margin: 0; font: inherit; line-height: 1.75; white-space: pre; overflow-x: auto; counter-reset: ln; scrollbar-width: none; }
.term .ln { display: inline-block; animation: line .45s ease both; animation-delay: calc(var(--i) * .2s + 1s); }
.term .ln::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 1.4ch; margin-right: 14px; text-align: right; color: rgba(255, 255, 255, .22); }
.term .k { color: var(--violet-ink); }
.term .f { color: var(--accent); }
.term .n { color: #f0abfc; }
.term .c { color: var(--muted); font-style: italic; }
.term .run { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.line .pr { color: var(--muted); margin-right: 6px; }
.line b { color: var(--accent); font-weight: 500; margin-left: 6px; }
.wait { color: var(--violet-ink); margin-left: 6px; }
.caret { display: inline-block; width: .55em; height: 1em; margin-left: 6px; vertical-align: -.15em; background: var(--accent); animation: blink 1s steps(1) infinite; }
.term-link { display: inline-block; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); width: 100%; color: var(--accent); font-size: 13px; }
.term-link:hover { color: #8df0ff; }

/* ---------- Faixas: desenvolvimento e IA/pesquisa, em sentidos opostos ---------- */
.faixas { border-block: 1px solid var(--line); background: var(--bg); }
.faixa { position: relative; overflow: hidden; padding: 18px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.faixa + .faixa { border-top: 1px solid var(--line); }
.faixa-track { display: flex; width: max-content; animation: marquee 46s linear infinite; will-change: transform; }
.faixa.is-reverse .faixa-track { animation-direction: reverse; animation-duration: 54s; }
.faixa.is-off .faixa-track { animation-play-state: paused; }
.faixa-group { display: flex; align-items: center; gap: 40px; padding-right: 40px; white-space: nowrap; font-size: clamp(26px, 3.4vw, 46px); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .34); }
.faixa-group span { display: inline-flex; align-items: center; gap: 40px; }
.faixa-group span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); -webkit-text-stroke: 0; }
.faixa-group .em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); -webkit-text-stroke: 0; letter-spacing: -.01em; }
.faixa.is-reverse .faixa-group { font-size: clamp(22px, 2.6vw, 36px); -webkit-text-stroke-color: rgba(255, 255, 255, .24); }
.faixa.is-reverse .faixa-group span::after { background: var(--violet); box-shadow: 0 0 14px var(--violet); }
.faixa.is-reverse .faixa-group .em { color: var(--violet-ink); }

/* ---------- Seções e cards ---------- */
.sec { padding: 96px var(--gutter) 24px; max-width: var(--max); margin-inline: auto; }
.sec-tight { padding-top: 32px; }
.sec-head { margin-bottom: 40px; }
.sec-head.split { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 48px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home-template .cards > .card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto auto 1fr; gap: 16px 44px; padding: 22px; }
.home-template .cards > .card:first-child .vis { grid-column: 1; grid-row: 1 / -1; align-self: center; }
.home-template .cards > .card:first-child .meta { grid-column: 2; grid-row: 2; }
.home-template .cards > .card:first-child .h3 { grid-column: 2; grid-row: 3; }
.home-template .cards > .card:first-child .excerpt { grid-column: 2; grid-row: 4; }
.home-template .cards > .card:first-child .h3 { font-size: clamp(26px, 2.8vw, 42px); line-height: 1.08; letter-spacing: -.035em; }
.home-template .cards > .card:first-child .excerpt { font-size: 17px; max-width: 46ch; }

/* Vídeos (/videos/): o card da home com a capa do YouTube; o player só carrega no clique.
   O botão fica no canto porque o centro das capas leva o título da aula. */
.vids-head .h1 { font-size: clamp(40px, 5.4vw, 68px); }
.vids-sec { padding-top: 56px; }
.vids > .card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr; gap: 16px 44px; padding: 22px; }
.vids > .card:first-child .vis { grid-column: 1; grid-row: 1 / -1; align-self: center; }
.vids > .card:first-child .meta { grid-column: 2; grid-row: 2; }
.vids > .card:first-child .h3 { grid-column: 2; grid-row: 3; font-size: clamp(26px, 2.8vw, 42px); line-height: 1.08; letter-spacing: -.035em; }
.vid { cursor: pointer; }
.vid.is-on { cursor: default; }
.vid.is-on:hover { transform: none; }
.vid-play { position: relative; display: block; width: 100%; height: 100%; }
.vid-play::before { content: ""; position: absolute; z-index: 1; right: 12px; bottom: 12px; width: 48px; height: 48px; border-radius: 50%; background: rgba(8, 12, 20, .72); border: 1px solid var(--line-strong); transition: background .25s, border-color .25s; }
.vid-play::after { content: ""; position: absolute; z-index: 2; right: 27px; bottom: 28px; border-style: solid; border-width: 8px 0 8px 14px; border-color: transparent transparent transparent var(--accent); transition: border-color .25s; }
.vid:hover .vid-play::before, .vid-play:focus-visible::before { background: var(--accent); border-color: transparent; }
.vid:hover .vid-play::after, .vid-play:focus-visible::after { border-left-color: #05070c; }
.vis iframe { display: block; width: 100%; height: 100%; border: 0; }
.vid-yt { padding-block: 5px; color: var(--accent); }
.vid-yt:hover { color: var(--accent); text-decoration: underline; }

.card { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 18px; background: var(--card); transition: transform .35s var(--ease); }
.card:hover { transform: translateY(-4px); }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--beam), transparent 70%, var(--accent)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: beam 6s linear infinite; }
.spot::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: radial-gradient(280px circle at var(--sx, 50%) var(--sy, 50%), rgba(var(--cyan-rgb), .10), transparent 65%); opacity: 0; transition: opacity .3s; }
.spot:hover::after { opacity: 1; }
.vis { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background-color: #0a1020; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 32px 32px; }
.vis img, .vis svg { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.card:hover .vis img { transform: scale(1.03); }
.wave { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 1; animation: draw 2.6s ease-out both; }
.wave.soft { stroke-opacity: .35; }
.meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); margin: 0; }
.tag { color: var(--accent); font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.excerpt { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 48px; }
.pager-n { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.count { margin-bottom: 24px; font-family: var(--mono); }

/* ---------- Trilha (as mesmas estações do site) ---------- */
.stations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; position: relative; }
.stations::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: linear-gradient(90deg, var(--accent), rgba(var(--cyan-rgb), .15) 60%, var(--line)); }
.station { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 10px; min-height: 172px; padding: 40px 16px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: border-color .25s, transform .35s var(--ease); }
.station::before { content: ""; position: absolute; left: 16px; top: 17px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong); }
.is-now .station::before { background: var(--accent); border-color: var(--accent); animation: ping 2s ease-out infinite; }
.station:hover { border-color: rgba(var(--cyan-rgb), .5); transform: translateY(-3px); }
.st-n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.station b { font-size: 17px; line-height: 1.25; letter-spacing: -.02em; font-weight: 600; }
.st-s { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.st-s i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.is-now .st-s { color: var(--accent); }
.is-now .st-s i { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.more { display: inline-flex; gap: 6px; margin-top: 28px; color: var(--accent); font-weight: 600; font-size: 15px; }
.more:hover { color: #8df0ff; }

/* ---------- Laboratório de pesquisa (lab.mirandastech.com.br) ---------- */
.lab { padding-top: 72px; }
.lab-card { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding: 56px; border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(ellipse at 88% 12%, rgba(139, 92, 246, .22), transparent 55%), radial-gradient(ellipse at 8% 100%, rgba(var(--cyan-rgb), .10), transparent 60%), var(--card); }
.lab-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 80% 50%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 80% 50%, #000, transparent 70%); }
.lab-badge { display: flex; width: fit-content; align-items: center; gap: 8px; margin: 0 0 22px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(139, 92, 246, .45); font-family: var(--mono); font-size: 12px; color: var(--violet-ink); }
.lab-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 10px var(--violet); }
.lab .h2 em { color: var(--violet-ink); }
.lab .body { margin-top: 18px; }
/* Torre de quatro andares: 01 embaixo, 04 em cima, cada andar um pouco mais estreito */
.lab-floors { list-style: none; margin: 0; padding: 0 0 0 22px; display: flex; flex-direction: column-reverse; gap: 10px; position: relative; }
.lab-floors::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: linear-gradient(to top, var(--accent), var(--violet)); box-shadow: 0 0 12px rgba(139, 92, 246, .6); }
.lab-floors::after { content: ""; position: absolute; left: 0; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px var(--violet); animation: elevador 6s var(--ease) infinite; }
@keyframes elevador { 0%, 100% { bottom: 6%; } 25% { bottom: 32%; } 50% { bottom: 58%; } 75% { bottom: 84%; } }
.lab-floors li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: baseline; margin-left: calc(var(--f) * 14px); padding: 16px 20px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(120deg, rgba(139, 92, 246, calc(.06 + var(--f) * .04)), rgba(8, 12, 20, .6)); transition: transform .35s var(--ease), border-color .25s; }
.lab-floors li:hover { transform: translateX(6px); border-color: rgba(139, 92, 246, .6); }
.lf-n { grid-row: span 2; font-family: var(--mono); font-size: 13px; color: var(--violet-ink); }
.lab-floors b { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.lab-floors small { color: var(--muted); font-size: 13px; }

/* ---------- Cabeçalho de páginas (tag, arquivo) ---------- */
.page-head { max-width: var(--max); margin-inline: auto; padding: 88px var(--gutter) 0; }
.page-head .meta { margin-top: 18px; font-family: var(--mono); }

/* ---------- Ponte para o site ---------- */
.bridge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; max-width: calc(var(--max) - 2 * var(--gutter)); margin: 72px var(--gutter) 0; padding: 28px 32px; border-radius: 20px; background: linear-gradient(120deg, rgba(var(--cyan-rgb), .08), rgba(139, 92, 246, .06) 60%, transparent), var(--card); border: 1px solid var(--line); }
@media (min-width: 1489px) { .bridge:not(.in-article) { margin-inline: auto; } }
.bridge.in-article { margin: 56px 0 0; padding: 24px; }
.bridge-text { margin: 10px 0 0; color: var(--ink-soft); font-size: 16px; line-height: 1.6; max-width: 56ch; }
.bridge-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Newsletter ---------- */
.news { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 40px; align-items: end; max-width: calc(var(--max) - 2 * var(--gutter)); margin: 96px var(--gutter) 0; padding: 48px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); }
@media (min-width: 1489px) { .news { margin-inline: auto; } }
.form { display: flex; flex-wrap: wrap; gap: 12px; }
.form label { width: 100%; font-size: 13px; color: var(--muted); }
.input { flex: 1 1 220px; height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font: inherit; font-size: 15px; }
.input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-msg { display: none; width: 100%; margin: 4px 0 0; font-size: 14px; }
.form-msg.ok { color: var(--accent); }
.form-msg.err { color: #fca5a5; }
.form.success .form-msg.ok, .form.error .form-msg.err { display: block; }
.form.loading .btn { opacity: .6; pointer-events: none; }

/* ---------- Rodapé ---------- */
.foot { max-width: var(--max); margin: 112px auto 0; padding: 0 var(--gutter) 40px; color: var(--muted); font-size: 14px; }
.foot-big { margin: 0 0 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(14px, 2vw, 28px); font-size: clamp(40px, 6.6vw, 112px); font-weight: 600; line-height: 1.05; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .22); }
.foot-big i { width: clamp(8px, 1vw, 14px); height: clamp(8px, 1vw, 14px); border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--accent); }
.foot-big em { -webkit-text-stroke: 0; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 40px; border-top: 1px solid var(--line); }
.foot-about p { margin: 14px 0 18px; max-width: 42ch; line-height: 1.6; color: var(--ink-soft); }
.foot-about .brand { color: var(--ink); }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col a { color: var(--ink-soft); transition: color .2s; width: fit-content; }
.foot-col a:hover { color: var(--accent); }
.foot-h { margin: 0 0 4px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------- Post ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 30; background: linear-gradient(90deg, var(--accent), var(--violet)); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
    .progress { animation: grow linear both; animation-timeline: scroll(root); }
}
.article { max-width: 760px; margin: 0 auto; padding: 72px 24px 0; }
.article .h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.04; }
.meta-line { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 0; font-size: 13px; color: var(--muted); }
.meta-line a.tag:hover { text-decoration: underline; }
.fig { margin: 44px 0 0; }
/* A capa aparece inteira, na proporção dela (as capas do blog são 16:9 com texto: recortar cortava o texto) */
.fig-img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); }
.fig figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 48px 0 0; }
.post-tags a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--ink-soft); transition: border-color .2s, color .2s; }
.post-tags a:hover { border-color: var(--accent); color: var(--accent); }
.related { padding-top: 80px; }

/* Conteúdo do Ghost (Koenig): texto, código, fórmulas e cards */
.prose { font-size: 19px; line-height: 1.75; color: var(--ink-body); margin-top: 48px; }
.prose > * + * { margin-top: 22px; }
.prose h2 { font-size: 34px; line-height: 1.1; letter-spacing: -.035em; color: var(--ink); font-weight: 600; margin-top: 56px; scroll-margin-top: 90px; }
.prose h3 { font-size: 24px; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); font-weight: 600; margin-top: 44px; scroll-margin-top: 90px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); color: var(--ink-soft); }
.prose hr { border: 0; height: 1px; background: var(--line); }
.prose code { font-family: var(--mono); font-size: .86em; background: var(--code); border: 1px solid var(--line); border-radius: 6px; padding: .1em .35em; color: #dbe7f5; }
.prose pre { margin: 0; padding: 20px 22px; border-radius: 14px; background: var(--code); border: 1px solid var(--line); overflow-x: auto; font-size: 15px; line-height: 1.7; }
.prose pre code { background: none; border: 0; padding: 0; color: #c9d3e0; font-size: inherit; }
/* Bloco de código com barra (linguagem + copiar), montada pelo main.js */
.code { border-radius: 14px; border: 1px solid var(--line); background: var(--code); overflow: hidden; }
.code pre { border: 0; border-radius: 0; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.code-head i { display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.copy { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-soft); font: inherit; font-size: 12px; cursor: pointer; transition: border-color .2s, color .2s; }
.copy:hover { border-color: var(--accent); color: var(--accent); }
.copy.is-done { color: var(--accent); border-color: var(--accent); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); font-weight: 600; }
.prose .katex-display { margin: 1.4em 0; overflow-x: auto; overflow-y: hidden; padding: .2em 0; }
.prose .katex { font-size: 1.06em; }
.prose p.math-display { text-align: center; }

.prose img { border-radius: 14px; }
.kg-width-wide { position: relative; width: min(1000px, 100vw - 48px); margin-left: 50%; transform: translateX(-50%); }
.kg-width-full { position: relative; width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.kg-image-card img { width: 100%; }
.kg-image-card figcaption, .kg-gallery-card figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }
.kg-gallery-container { display: flex; flex-direction: column; gap: 8px; }
.kg-gallery-row { display: flex; gap: 8px; }
.kg-gallery-image { flex: 1 1 0; min-width: 0; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }

.kg-callout-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); position: relative; overflow: hidden; color: var(--ink-body); }
.kg-callout-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(to bottom, transparent, var(--accent), transparent); background-size: 100% 200%; animation: flow 2.4s linear infinite; }
.kg-callout-text { margin: 0; font-size: 17px; line-height: 1.65; }

.kg-bookmark-card a { display: block; padding: 18px 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); transition: border-color .25s; }
.kg-bookmark-card a:hover { border-color: var(--accent); }
.kg-bookmark-title { font-weight: 600; color: var(--ink); }
.kg-bookmark-description, .kg-bookmark-metadata { font-size: 14px; color: var(--muted); }

.kg-button-card { text-align: center; }
.kg-btn { display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: var(--bg); font-weight: 600; font-size: 15px; }

.kg-toggle-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: var(--card); }

/* ---------- 404 ---------- */
.err { max-width: 760px; margin: 0 auto; padding: 120px 24px 96px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
    .links ul { gap: 18px; }
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* A trilha vira faixa rolável com encaixe */
    .stations { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(196px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
    .stations li { scroll-snap-align: start; }
    .stations::before { right: auto; width: calc(7 * 208px); }
    .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .foot-about { grid-column: 1 / -1; }
}
/* Com 7 itens no menu, abaixo de 960px o cabeçalho não comporta: entra o hambúrguer */
@media (max-width: 960px) {
    .topbar .links, .topbar > .btn { display: none; }
    .menu { display: block; }
}
@media (max-width: 860px) {
    .hero { grid-template-columns: minmax(0, 1fr); padding: 72px var(--gutter) 56px; gap: 36px; min-height: 0; }
    .sec { padding-top: 72px; }
    .news { grid-template-columns: minmax(0, 1fr); margin-top: 72px; padding: 28px; }
    .article { padding: 48px 20px 0; }
    .prose { font-size: 18px; }
    .kg-width-wide, .kg-width-full { width: 100%; margin-left: 0; transform: none; }
    .bridge { padding: 24px; }
    .lab-card { grid-template-columns: minmax(0, 1fr); padding: 28px; gap: 32px; }
    .rede-tilt { max-width: 560px; margin-inline: auto; }
}
@media (max-width: 700px) {
    .cards { grid-template-columns: minmax(0, 1fr); }
    .home-template .cards > .card:first-child { display: flex; }
    .vids > .card:first-child { display: flex; padding: 18px; }
        .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .faixa { padding: 14px 0; }
}
@media (max-width: 560px) {
    .links .nav-blog { display: none; }
    .links ul { gap: 16px; }
    .links a { font-size: 14px; }
    .brand { font-size: 16px; }
    .term { font-size: 11.5px; padding: 14px 14px 16px; }
    .term .ln::before { margin-right: 10px; }
    .lab-floors li { margin-left: calc(var(--f) * 8px); padding: 14px 16px; }
}
@media (max-width: 480px) {
    .topbar .btn { display: none; }
    .foot-base { flex-direction: column; }
}

/* Movimento reduzido: sem animação; todo o conteúdo continua visível */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}
